@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RoleDetail extends Object implements Serializable, Cloneable
Contains information about an IAM role, including all of the role's policies.
This data type is used as a response element in the GetAccountAuthorizationDetails operation.
Constructor and Description |
---|
RoleDetail() |
Modifier and Type | Method and Description |
---|---|
RoleDetail |
clone() |
boolean |
equals(Object obj) |
String |
getArn() |
String |
getAssumeRolePolicyDocument()
The trust policy that grants permission to assume the role.
|
List<AttachedPolicy> |
getAttachedManagedPolicies()
A list of managed policies attached to the role.
|
Date |
getCreateDate()
The date and time, in ISO 8601 date-time format, when the role was
created.
|
List<InstanceProfile> |
getInstanceProfileList()
A list of instance profiles that contain this role.
|
String |
getPath()
The path to the role.
|
AttachedPermissionsBoundary |
getPermissionsBoundary()
The ARN of the policy used to set the permissions boundary for the role.
|
String |
getRoleId()
The stable and unique string identifying the role.
|
RoleLastUsed |
getRoleLastUsed()
Contains information about the last time that an IAM role was used.
|
String |
getRoleName()
The friendly name that identifies the role.
|
List<PolicyDetail> |
getRolePolicyList()
A list of inline policies embedded in the role.
|
List<Tag> |
getTags()
A list of tags that are attached to the role.
|
int |
hashCode() |
void |
setArn(String arn) |
void |
setAssumeRolePolicyDocument(String assumeRolePolicyDocument)
The trust policy that grants permission to assume the role.
|
void |
setAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)
A list of managed policies attached to the role.
|
void |
setCreateDate(Date createDate)
The date and time, in ISO 8601 date-time format, when the role was
created.
|
void |
setInstanceProfileList(Collection<InstanceProfile> instanceProfileList)
A list of instance profiles that contain this role.
|
void |
setPath(String path)
The path to the role.
|
void |
setPermissionsBoundary(AttachedPermissionsBoundary permissionsBoundary)
The ARN of the policy used to set the permissions boundary for the role.
|
void |
setRoleId(String roleId)
The stable and unique string identifying the role.
|
void |
setRoleLastUsed(RoleLastUsed roleLastUsed)
Contains information about the last time that an IAM role was used.
|
void |
setRoleName(String roleName)
The friendly name that identifies the role.
|
void |
setRolePolicyList(Collection<PolicyDetail> rolePolicyList)
A list of inline policies embedded in the role.
|
void |
setTags(Collection<Tag> tags)
A list of tags that are attached to the role.
|
String |
toString()
Returns a string representation of this object.
|
RoleDetail |
withArn(String arn) |
RoleDetail |
withAssumeRolePolicyDocument(String assumeRolePolicyDocument)
The trust policy that grants permission to assume the role.
|
RoleDetail |
withAttachedManagedPolicies(AttachedPolicy... attachedManagedPolicies)
A list of managed policies attached to the role.
|
RoleDetail |
withAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)
A list of managed policies attached to the role.
|
RoleDetail |
withCreateDate(Date createDate)
The date and time, in ISO 8601 date-time format, when the role was
created.
|
RoleDetail |
withInstanceProfileList(Collection<InstanceProfile> instanceProfileList)
A list of instance profiles that contain this role.
|
RoleDetail |
withInstanceProfileList(InstanceProfile... instanceProfileList)
A list of instance profiles that contain this role.
|
RoleDetail |
withPath(String path)
The path to the role.
|
RoleDetail |
withPermissionsBoundary(AttachedPermissionsBoundary permissionsBoundary)
The ARN of the policy used to set the permissions boundary for the role.
|
RoleDetail |
withRoleId(String roleId)
The stable and unique string identifying the role.
|
RoleDetail |
withRoleLastUsed(RoleLastUsed roleLastUsed)
Contains information about the last time that an IAM role was used.
|
RoleDetail |
withRoleName(String roleName)
The friendly name that identifies the role.
|
RoleDetail |
withRolePolicyList(Collection<PolicyDetail> rolePolicyList)
A list of inline policies embedded in the role.
|
RoleDetail |
withRolePolicyList(PolicyDetail... rolePolicyList)
A list of inline policies embedded in the role.
|
RoleDetail |
withTags(Collection<Tag> tags)
A list of tags that are attached to the role.
|
RoleDetail |
withTags(Tag... tags)
A list of tags that are attached to the role.
|
public void setPath(String path)
The path to the role. For more information about paths, see IAM identifiers in the IAM User Guide.
path
- The path to the role. For more information about paths, see IAM identifiers in the
IAM User Guide.public String getPath()
The path to the role. For more information about paths, see IAM identifiers in the IAM User Guide.
public RoleDetail withPath(String path)
The path to the role. For more information about paths, see IAM identifiers in the IAM User Guide.
path
- The path to the role. For more information about paths, see IAM identifiers in the
IAM User Guide.public void setRoleName(String roleName)
The friendly name that identifies the role.
roleName
- The friendly name that identifies the role.public String getRoleName()
The friendly name that identifies the role.
public RoleDetail withRoleName(String roleName)
The friendly name that identifies the role.
roleName
- The friendly name that identifies the role.public void setRoleId(String roleId)
The stable and unique string identifying the role. For more information about IDs, see IAM identifiers in the IAM User Guide.
roleId
- The stable and unique string identifying the role. For more information about IDs, see IAM identifiers in the
IAM User Guide.public String getRoleId()
The stable and unique string identifying the role. For more information about IDs, see IAM identifiers in the IAM User Guide.
public RoleDetail withRoleId(String roleId)
The stable and unique string identifying the role. For more information about IDs, see IAM identifiers in the IAM User Guide.
roleId
- The stable and unique string identifying the role. For more information about IDs, see IAM identifiers in the
IAM User Guide.public void setArn(String arn)
arn
- public String getArn()
public RoleDetail withArn(String arn)
arn
- public void setCreateDate(Date createDate)
The date and time, in ISO 8601 date-time format, when the role was created.
createDate
- The date and time, in ISO 8601 date-time format, when the
role was created.public Date getCreateDate()
The date and time, in ISO 8601 date-time format, when the role was created.
public RoleDetail withCreateDate(Date createDate)
The date and time, in ISO 8601 date-time format, when the role was created.
createDate
- The date and time, in ISO 8601 date-time format, when the
role was created.public void setAssumeRolePolicyDocument(String assumeRolePolicyDocument)
The trust policy that grants permission to assume the role.
assumeRolePolicyDocument
- The trust policy that grants permission to assume the role.public String getAssumeRolePolicyDocument()
The trust policy that grants permission to assume the role.
public RoleDetail withAssumeRolePolicyDocument(String assumeRolePolicyDocument)
The trust policy that grants permission to assume the role.
assumeRolePolicyDocument
- The trust policy that grants permission to assume the role.public List<InstanceProfile> getInstanceProfileList()
A list of instance profiles that contain this role.
public void setInstanceProfileList(Collection<InstanceProfile> instanceProfileList)
A list of instance profiles that contain this role.
instanceProfileList
- A list of instance profiles that contain this role.public RoleDetail withInstanceProfileList(InstanceProfile... instanceProfileList)
A list of instance profiles that contain this role.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceProfileList(java.util.Collection)
or withInstanceProfileList(java.util.Collection)
if you want to override the existing values.
instanceProfileList
- A list of instance profiles that contain this role.public RoleDetail withInstanceProfileList(Collection<InstanceProfile> instanceProfileList)
A list of instance profiles that contain this role.
instanceProfileList
- A list of instance profiles that contain this role.public List<PolicyDetail> getRolePolicyList()
A list of inline policies embedded in the role. These policies are the role's access (permissions) policies.
public void setRolePolicyList(Collection<PolicyDetail> rolePolicyList)
A list of inline policies embedded in the role. These policies are the role's access (permissions) policies.
rolePolicyList
- A list of inline policies embedded in the role. These policies are the role's access (permissions)
policies.public RoleDetail withRolePolicyList(PolicyDetail... rolePolicyList)
A list of inline policies embedded in the role. These policies are the role's access (permissions) policies.
NOTE: This method appends the values to the existing list (if any). Use
setRolePolicyList(java.util.Collection)
or withRolePolicyList(java.util.Collection)
if you want
to override the existing values.
rolePolicyList
- A list of inline policies embedded in the role. These policies are the role's access (permissions)
policies.public RoleDetail withRolePolicyList(Collection<PolicyDetail> rolePolicyList)
A list of inline policies embedded in the role. These policies are the role's access (permissions) policies.
rolePolicyList
- A list of inline policies embedded in the role. These policies are the role's access (permissions)
policies.public List<AttachedPolicy> getAttachedManagedPolicies()
A list of managed policies attached to the role. These policies are the role's access (permissions) policies.
public void setAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)
A list of managed policies attached to the role. These policies are the role's access (permissions) policies.
attachedManagedPolicies
- A list of managed policies attached to the role. These policies are the role's access (permissions)
policies.public RoleDetail withAttachedManagedPolicies(AttachedPolicy... attachedManagedPolicies)
A list of managed policies attached to the role. These policies are the role's access (permissions) policies.
NOTE: This method appends the values to the existing list (if any). Use
setAttachedManagedPolicies(java.util.Collection)
or
withAttachedManagedPolicies(java.util.Collection)
if you want to override the existing values.
attachedManagedPolicies
- A list of managed policies attached to the role. These policies are the role's access (permissions)
policies.public RoleDetail withAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)
A list of managed policies attached to the role. These policies are the role's access (permissions) policies.
attachedManagedPolicies
- A list of managed policies attached to the role. These policies are the role's access (permissions)
policies.public void setPermissionsBoundary(AttachedPermissionsBoundary permissionsBoundary)
The ARN of the policy used to set the permissions boundary for the role.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
permissionsBoundary
- The ARN of the policy used to set the permissions boundary for the role.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
public AttachedPermissionsBoundary getPermissionsBoundary()
The ARN of the policy used to set the permissions boundary for the role.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
public RoleDetail withPermissionsBoundary(AttachedPermissionsBoundary permissionsBoundary)
The ARN of the policy used to set the permissions boundary for the role.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
permissionsBoundary
- The ARN of the policy used to set the permissions boundary for the role.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
public List<Tag> getTags()
A list of tags that are attached to the role. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
public void setTags(Collection<Tag> tags)
A list of tags that are attached to the role. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
tags
- A list of tags that are attached to the role. For more information about tagging, see Tagging IAM resources in the
IAM User Guide.public RoleDetail withTags(Tag... tags)
A list of tags that are attached to the role. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A list of tags that are attached to the role. For more information about tagging, see Tagging IAM resources in the
IAM User Guide.public RoleDetail withTags(Collection<Tag> tags)
A list of tags that are attached to the role. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
tags
- A list of tags that are attached to the role. For more information about tagging, see Tagging IAM resources in the
IAM User Guide.public void setRoleLastUsed(RoleLastUsed roleLastUsed)
Contains information about the last time that an IAM role was used. This includes the date and time and the Region in which the role was last used. Activity is only reported for the trailing 400 days. This period can be shorter if your Region began supporting these features within the last year. The role might have been used more than 400 days ago. For more information, see Regions where data is tracked in the IAM User Guide.
roleLastUsed
- Contains information about the last time that an IAM role was used. This includes the date and time and
the Region in which the role was last used. Activity is only reported for the trailing 400 days. This
period can be shorter if your Region began supporting these features within the last year. The role might
have been used more than 400 days ago. For more information, see Regions where data is tracked in the IAM User Guide.public RoleLastUsed getRoleLastUsed()
Contains information about the last time that an IAM role was used. This includes the date and time and the Region in which the role was last used. Activity is only reported for the trailing 400 days. This period can be shorter if your Region began supporting these features within the last year. The role might have been used more than 400 days ago. For more information, see Regions where data is tracked in the IAM User Guide.
public RoleDetail withRoleLastUsed(RoleLastUsed roleLastUsed)
Contains information about the last time that an IAM role was used. This includes the date and time and the Region in which the role was last used. Activity is only reported for the trailing 400 days. This period can be shorter if your Region began supporting these features within the last year. The role might have been used more than 400 days ago. For more information, see Regions where data is tracked in the IAM User Guide.
roleLastUsed
- Contains information about the last time that an IAM role was used. This includes the date and time and
the Region in which the role was last used. Activity is only reported for the trailing 400 days. This
period can be shorter if your Region began supporting these features within the last year. The role might
have been used more than 400 days ago. For more information, see Regions where data is tracked in the IAM User Guide.public String toString()
toString
in class Object
Object.toString()
public RoleDetail clone()