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 action.
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() |
String |
getPath()
The path to the role.
|
String |
getRoleId()
The stable and unique string identifying the role.
|
String |
getRoleName()
The friendly name that identifies the role.
|
List<PolicyDetail> |
getRolePolicyList()
A list of inline policies embedded in 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) |
void |
setPath(String path)
The path to the role.
|
void |
setRoleId(String roleId)
The stable and unique string identifying the role.
|
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.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
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) |
RoleDetail |
withInstanceProfileList(InstanceProfile... instanceProfileList)
NOTE: This method appends the values to the existing list (if
any).
|
RoleDetail |
withPath(String path)
The path to the role.
|
RoleDetail |
withRoleId(String roleId)
The stable and unique string identifying the role.
|
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.
|
public void setPath(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 String getPath()
The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
public RoleDetail withPath(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(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 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 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(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(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()
public void setInstanceProfileList(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(Collection<InstanceProfile> instanceProfileList)
instanceProfileList
- 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 String toString()
toString
in class Object
Object.toString()
public RoleDetail clone()
Copyright © 2018. All rights reserved.