@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, if that information is returned by the service.
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.
|
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 Object
Object.toString()
public RoleUsageType clone()