public class RoleDetail
extends java.lang.Object
implements java.io.Serializable, java.lang.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 action.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
arn |
private java.lang.String |
assumeRolePolicyDocument
The trust policy that grants permission to assume the role.
|
private SdkInternalList<AttachedPolicy> |
attachedManagedPolicies
A list of managed policies attached to the role.
|
private java.util.Date |
createDate
The date and time, in ISO 8601
date-time format, when the role was created.
|
private SdkInternalList<InstanceProfile> |
instanceProfileList |
private java.lang.String |
path
The path to the role.
|
private java.lang.String |
roleId
The stable and unique string identifying the role.
|
private java.lang.String |
roleName
The friendly name that identifies the role.
|
private SdkInternalList<PolicyDetail> |
rolePolicyList
A list of inline policies embedded in the role.
|
Constructor and Description |
---|
RoleDetail() |
Modifier and Type | Method and Description |
---|---|
RoleDetail |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn() |
java.lang.String |
getAssumeRolePolicyDocument()
The trust policy that grants permission to assume the role.
|
java.util.List<AttachedPolicy> |
getAttachedManagedPolicies()
A list of managed policies attached to the role.
|
java.util.Date |
getCreateDate()
The date and time, in ISO 8601
date-time format, when the role was created.
|
java.util.List<InstanceProfile> |
getInstanceProfileList() |
java.lang.String |
getPath()
The path to the role.
|
java.lang.String |
getRoleId()
The stable and unique string identifying the role.
|
java.lang.String |
getRoleName()
The friendly name that identifies the role.
|
java.util.List<PolicyDetail> |
getRolePolicyList()
A list of inline policies embedded in the role.
|
int |
hashCode() |
void |
setArn(java.lang.String arn) |
void |
setAssumeRolePolicyDocument(java.lang.String assumeRolePolicyDocument)
The trust policy that grants permission to assume the role.
|
void |
setAttachedManagedPolicies(java.util.Collection<AttachedPolicy> attachedManagedPolicies)
A list of managed policies attached to the role.
|
void |
setCreateDate(java.util.Date createDate)
The date and time, in ISO 8601
date-time format, when the role was created.
|
void |
setInstanceProfileList(java.util.Collection<InstanceProfile> instanceProfileList) |
void |
setPath(java.lang.String path)
The path to the role.
|
void |
setRoleId(java.lang.String roleId)
The stable and unique string identifying the role.
|
void |
setRoleName(java.lang.String roleName)
The friendly name that identifies the role.
|
void |
setRolePolicyList(java.util.Collection<PolicyDetail> rolePolicyList)
A list of inline policies embedded in the role.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RoleDetail |
withArn(java.lang.String arn) |
RoleDetail |
withAssumeRolePolicyDocument(java.lang.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(java.util.Collection<AttachedPolicy> attachedManagedPolicies)
A list of managed policies attached to the role.
|
RoleDetail |
withCreateDate(java.util.Date createDate)
The date and time, in ISO 8601
date-time format, when the role was created.
|
RoleDetail |
withInstanceProfileList(java.util.Collection<InstanceProfile> instanceProfileList) |
RoleDetail |
withInstanceProfileList(InstanceProfile... instanceProfileList)
NOTE: This method appends the values to the existing list (if
any).
|
RoleDetail |
withPath(java.lang.String path)
The path to the role.
|
RoleDetail |
withRoleId(java.lang.String roleId)
The stable and unique string identifying the role.
|
RoleDetail |
withRoleName(java.lang.String roleName)
The friendly name that identifies the role.
|
RoleDetail |
withRolePolicyList(java.util.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.
|
private java.lang.String path
The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
private java.lang.String roleName
The friendly name that identifies the role.
private java.lang.String roleId
The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.
private java.lang.String arn
private java.util.Date createDate
The date and time, in ISO 8601 date-time format, when the role was created.
private java.lang.String assumeRolePolicyDocument
The trust policy that grants permission to assume the role.
private SdkInternalList<InstanceProfile> instanceProfileList
private SdkInternalList<PolicyDetail> rolePolicyList
A list of inline policies embedded in the role. These policies are the role's access (permissions) policies.
private SdkInternalList<AttachedPolicy> attachedManagedPolicies
A list of managed policies attached to the role. These policies are the role's access (permissions) policies.
public void setPath(java.lang.String path)
The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
path
- The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.public java.lang.String getPath()
The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
public RoleDetail withPath(java.lang.String path)
The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
path
- The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.public void setRoleName(java.lang.String roleName)
The friendly name that identifies the role.
roleName
- The friendly name that identifies the role.public java.lang.String getRoleName()
The friendly name that identifies the role.
public RoleDetail withRoleName(java.lang.String roleName)
The friendly name that identifies the role.
roleName
- The friendly name that identifies the role.public void setRoleId(java.lang.String roleId)
The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.
roleId
- The stable and unique string identifying the role. For more
information about IDs, see IAM Identifiers in the Using IAM guide.public java.lang.String getRoleId()
The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.
public RoleDetail withRoleId(java.lang.String roleId)
The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.
roleId
- The stable and unique string identifying the role. For more
information about IDs, see IAM Identifiers in the Using IAM guide.public void setArn(java.lang.String arn)
arn
- public java.lang.String getArn()
public RoleDetail withArn(java.lang.String arn)
arn
- public void setCreateDate(java.util.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 java.util.Date getCreateDate()
The date and time, in ISO 8601 date-time format, when the role was created.
public RoleDetail withCreateDate(java.util.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(java.lang.String assumeRolePolicyDocument)
The trust policy that grants permission to assume the role.
assumeRolePolicyDocument
- The trust policy that grants permission to assume the role.public java.lang.String getAssumeRolePolicyDocument()
The trust policy that grants permission to assume the role.
public RoleDetail withAssumeRolePolicyDocument(java.lang.String assumeRolePolicyDocument)
The trust policy that grants permission to assume the role.
assumeRolePolicyDocument
- The trust policy that grants permission to assume the role.public java.util.List<InstanceProfile> getInstanceProfileList()
public void setInstanceProfileList(java.util.Collection<InstanceProfile> instanceProfileList)
instanceProfileList
- public RoleDetail withInstanceProfileList(InstanceProfile... instanceProfileList)
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
- public RoleDetail withInstanceProfileList(java.util.Collection<InstanceProfile> instanceProfileList)
instanceProfileList
- public java.util.List<PolicyDetail> getRolePolicyList()
A list of inline policies embedded in the role. These policies are the role's access (permissions) policies.
public void setRolePolicyList(java.util.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(java.util.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 java.util.List<AttachedPolicy> getAttachedManagedPolicies()
A list of managed policies attached to the role. These policies are the role's access (permissions) policies.
public void setAttachedManagedPolicies(java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public RoleDetail clone()
clone
in class java.lang.Object