@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RoleUsageType extends Object implements Serializable, Cloneable
An object that contains details about how a service-linked role is used.
This data type is used as a response element in the GetServiceLinkedRoleDeletionStatus operation.
| Constructor and Description |
|---|
RoleUsageType() |
| Modifier and Type | Method and Description |
|---|---|
RoleUsageType |
clone() |
boolean |
equals(Object obj) |
String |
getRegion()
The name of the region where the service-linked role is being used.
|
List<String> |
getResources()
The name of the resource that is using the service-linked role.
|
int |
hashCode() |
void |
setRegion(String region)
The name of the region where the service-linked role is being used.
|
void |
setResources(Collection<String> resources)
The name of the resource that is using the service-linked role.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
RoleUsageType |
withRegion(String region)
The name of the region where the service-linked role is being used.
|
RoleUsageType |
withResources(Collection<String> resources)
The name of the resource that is using the service-linked role.
|
RoleUsageType |
withResources(String... resources)
The name of the resource that is using the service-linked role.
|
public void setRegion(String region)
The name of the region where the service-linked role is being used.
region - The name of the region where the service-linked role is being used.public String getRegion()
The name of the region where the service-linked role is being used.
public RoleUsageType withRegion(String region)
The name of the region where the service-linked role is being used.
region - The name of the region where the service-linked role is being used.public List<String> getResources()
The name of the resource that is using the service-linked role.
public void setResources(Collection<String> resources)
The name of the resource that is using the service-linked role.
resources - The name of the resource that is using the service-linked role.public RoleUsageType withResources(String... resources)
The name of the resource that is using the service-linked role.
NOTE: This method appends the values to the existing list (if any). Use
setResources(java.util.Collection) or withResources(java.util.Collection) if you want to
override the existing values.
resources - The name of the resource that is using the service-linked role.public RoleUsageType withResources(Collection<String> resources)
The name of the resource that is using the service-linked role.
resources - The name of the resource that is using the service-linked role.public String toString()
toString in class ObjectObject.toString()public RoleUsageType clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.