Class RoleDetail
- All Implemented Interfaces:
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getArn()
The trust policy that grants permission to assume the role.A list of managed policies attached to the role.The date and time, in ISO 8601 date-time format, when the role was created.getPath()
The path to the role.The stable and unique string identifying the role.The friendly name that identifies the role.A list of inline policies embedded in the role.int
hashCode()
void
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
The path to the role.void
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.toString()
Returns a string representation of this object; useful for testing and debugging.withAssumeRolePolicyDocument
(String assumeRolePolicyDocument) The trust policy that grants permission to assume the role.withAttachedManagedPolicies
(AttachedPolicy... attachedManagedPolicies) A list of managed policies attached to the role.withAttachedManagedPolicies
(Collection<AttachedPolicy> attachedManagedPolicies) A list of managed policies attached to the role.withCreateDate
(Date createDate) The date and time, in ISO 8601 date-time format, when the role was created.withInstanceProfileList
(InstanceProfile... instanceProfileList) NOTE: This method appends the values to the existing list (if any).withInstanceProfileList
(Collection<InstanceProfile> instanceProfileList) The path to the role.withRoleId
(String roleId) The stable and unique string identifying the role.withRoleName
(String roleName) The friendly name that identifies the role.withRolePolicyList
(PolicyDetail... rolePolicyList) A list of inline policies embedded in the role.withRolePolicyList
(Collection<PolicyDetail> rolePolicyList) A list of inline policies embedded in the role.
-
Constructor Details
-
RoleDetail
public RoleDetail()
-
-
Method Details
-
setPath
The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
- Parameters:
path
- The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
-
getPath
The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
- Returns:
- The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
-
withPath
The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
- Parameters:
path
- The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRoleName
The friendly name that identifies the role.
- Parameters:
roleName
- The friendly name that identifies the role.
-
getRoleName
The friendly name that identifies the role.
- Returns:
- The friendly name that identifies the role.
-
withRoleName
The friendly name that identifies the role.
- Parameters:
roleName
- The friendly name that identifies the role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRoleId
The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.
- Parameters:
roleId
- The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.
-
getRoleId
The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.
- Returns:
- The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.
-
withRoleId
The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.
- Parameters:
roleId
- The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setArn
- Parameters:
arn
-
-
getArn
- Returns:
-
withArn
- Parameters:
arn
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreateDate
The date and time, in ISO 8601 date-time format, when the role was created.
- Parameters:
createDate
- The date and time, in ISO 8601 date-time format, when the role was created.
-
getCreateDate
The date and time, in ISO 8601 date-time format, when the role was created.
- Returns:
- The date and time, in ISO 8601 date-time format, when the role was created.
-
withCreateDate
The date and time, in ISO 8601 date-time format, when the role was created.
- Parameters:
createDate
- The date and time, in ISO 8601 date-time format, when the role was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAssumeRolePolicyDocument
The trust policy that grants permission to assume the role.
- Parameters:
assumeRolePolicyDocument
- The trust policy that grants permission to assume the role.
-
getAssumeRolePolicyDocument
The trust policy that grants permission to assume the role.
- Returns:
- The trust policy that grants permission to assume the role.
-
withAssumeRolePolicyDocument
The trust policy that grants permission to assume the role.
- Parameters:
assumeRolePolicyDocument
- The trust policy that grants permission to assume the role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getInstanceProfileList
- Returns:
-
setInstanceProfileList
- Parameters:
instanceProfileList
-
-
withInstanceProfileList
NOTE: This method appends the values to the existing list (if any). Use
setInstanceProfileList(java.util.Collection)
orwithInstanceProfileList(java.util.Collection)
if you want to override the existing values.- Parameters:
instanceProfileList
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withInstanceProfileList
- Parameters:
instanceProfileList
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getRolePolicyList
A list of inline policies embedded in the role. These policies are the role's access (permissions) policies.
- Returns:
- A list of inline policies embedded in the role. These policies are the role's access (permissions) policies.
-
setRolePolicyList
A list of inline policies embedded in the role. These policies are the role's access (permissions) policies.
- Parameters:
rolePolicyList
- A list of inline policies embedded in the role. These policies are the role's access (permissions) policies.
-
withRolePolicyList
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)
orwithRolePolicyList(java.util.Collection)
if you want to override the existing values.- Parameters:
rolePolicyList
- A list of inline policies embedded in the role. These policies are the role's access (permissions) policies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRolePolicyList
A list of inline policies embedded in the role. These policies are the role's access (permissions) policies.
- Parameters:
rolePolicyList
- A list of inline policies embedded in the role. These policies are the role's access (permissions) policies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAttachedManagedPolicies
A list of managed policies attached to the role. These policies are the role's access (permissions) policies.
- Returns:
- A list of managed policies attached to the role. These policies are the role's access (permissions) policies.
-
setAttachedManagedPolicies
A list of managed policies attached to the role. These policies are the role's access (permissions) policies.
- Parameters:
attachedManagedPolicies
- A list of managed policies attached to the role. These policies are the role's access (permissions) policies.
-
withAttachedManagedPolicies
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)
orwithAttachedManagedPolicies(java.util.Collection)
if you want to override the existing values.- Parameters:
attachedManagedPolicies
- A list of managed policies attached to the role. These policies are the role's access (permissions) policies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAttachedManagedPolicies
A list of managed policies attached to the role. These policies are the role's access (permissions) policies.
- Parameters:
attachedManagedPolicies
- A list of managed policies attached to the role. These policies are the role's access (permissions) policies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-