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()
The Amazon Resource Name (ARN).
|
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()
Contains a list of instance profiles.
|
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)
The Amazon Resource Name (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)
Contains a list of instance profiles.
|
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)
The Amazon Resource Name (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)
Contains a list of instance profiles.
|
RoleDetail |
withInstanceProfileList(InstanceProfile... instanceProfileList)
Contains a list of instance profiles.
|
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 String getPath()
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
public void setPath(String path)
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
path - The path to the role. For more information about paths, see IAM
Identifiers in the Using IAM guide.public RoleDetail withPath(String path)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
path - The path to the role. For more information about paths, see IAM
Identifiers in the Using IAM guide.public String getRoleName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
public void setRoleName(String roleName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
roleName - The friendly name that identifies the role.public RoleDetail withRoleName(String roleName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
roleName - The friendly name that identifies the role.public String getRoleId()
Constraints:
Length: 16 - 32
Pattern: [\w]+
public void setRoleId(String roleId)
Constraints:
Length: 16 - 32
Pattern: [\w]+
roleId - 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)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 16 - 32
Pattern: [\w]+
roleId - The stable and unique string identifying the role. For more
information about IDs, see IAM
Identifiers in the Using IAM guide.public String getArn()
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Constraints:
Length: 20 - 2048
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public void setArn(String arn)
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Constraints:
Length: 20 - 2048
arn - The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS
resources. For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public RoleDetail withArn(String arn)
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
arn - The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS
resources. For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public Date getCreateDate()
public void setCreateDate(Date createDate)
createDate - The date and time, in ISO
8601 date-time format, when the role was created.public RoleDetail withCreateDate(Date createDate)
Returns a reference to this object so that method calls can be chained together.
createDate - The date and time, in ISO
8601 date-time format, when the role was created.public String getAssumeRolePolicyDocument()
Constraints:
Length: 1 - 131072
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
public void setAssumeRolePolicyDocument(String assumeRolePolicyDocument)
Constraints:
Length: 1 - 131072
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
assumeRolePolicyDocument - The trust policy that grants permission to assume the role.public RoleDetail withAssumeRolePolicyDocument(String assumeRolePolicyDocument)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 131072
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
assumeRolePolicyDocument - The trust policy that grants permission to assume the role.public List<InstanceProfile> getInstanceProfileList()
public void setInstanceProfileList(Collection<InstanceProfile> instanceProfileList)
instanceProfileList - Contains a list of instance profiles.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.
Returns a reference to this object so that method calls can be chained together.
instanceProfileList - Contains a list of instance profiles.public RoleDetail withInstanceProfileList(Collection<InstanceProfile> instanceProfileList)
Returns a reference to this object so that method calls can be chained together.
instanceProfileList - Contains a list of instance profiles.public List<PolicyDetail> getRolePolicyList()
public void setRolePolicyList(Collection<PolicyDetail> rolePolicyList)
rolePolicyList - A list of inline policies embedded in the role. These policies are the
role's access (permissions) policies.public RoleDetail withRolePolicyList(PolicyDetail... rolePolicyList)
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.
Returns a reference to this object so that method calls can be chained together.
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)
Returns a reference to this object so that method calls can be chained together.
rolePolicyList - A list of inline policies embedded in the role. These policies are the
role's access (permissions) policies.public List<AttachedPolicy> getAttachedManagedPolicies()
public void setAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)
attachedManagedPolicies - A list of managed policies attached to the role. These policies are
the role's access (permissions) policies.public RoleDetail withAttachedManagedPolicies(AttachedPolicy... attachedManagedPolicies)
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.
Returns a reference to this object so that method calls can be chained together.
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)
Returns a reference to this object so that method calls can be chained together.
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 ObjectObject.toString()public RoleDetail clone()
Copyright © 2015. All rights reserved.