Class RoleDetail
- java.lang.Object
-
- com.amazonaws.services.identitymanagement.model.RoleDetail
-
- All Implemented Interfaces:
Serializable
,Cloneable
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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RoleDetail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(InstanceProfile... instanceProfileList)
NOTE: This method appends the values to the existing list (if any).RoleDetail
withInstanceProfileList(Collection<InstanceProfile> instanceProfileList)
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(PolicyDetail... rolePolicyList)
A list of inline policies embedded in the role.RoleDetail
withRolePolicyList(Collection<PolicyDetail> rolePolicyList)
A list of inline policies embedded in the role.
-
-
-
Method Detail
-
setPath
public void setPath(String path)
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
public String 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
public RoleDetail withPath(String path)
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
public void setRoleName(String roleName)
The friendly name that identifies the role.
- Parameters:
roleName
- The friendly name that identifies the role.
-
getRoleName
public String getRoleName()
The friendly name that identifies the role.
- Returns:
- The friendly name that identifies the role.
-
withRoleName
public RoleDetail withRoleName(String roleName)
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
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.
- Parameters:
roleId
- The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.
-
getRoleId
public String 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
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.
- 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
public void setArn(String arn)
- Parameters:
arn
-
-
getArn
public String getArn()
- Returns:
-
withArn
public RoleDetail withArn(String arn)
- Parameters:
arn
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreateDate
public void setCreateDate(Date createDate)
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
public Date 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
public RoleDetail withCreateDate(Date createDate)
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
public void setAssumeRolePolicyDocument(String assumeRolePolicyDocument)
The trust policy that grants permission to assume the role.
- Parameters:
assumeRolePolicyDocument
- The trust policy that grants permission to assume the role.
-
getAssumeRolePolicyDocument
public String getAssumeRolePolicyDocument()
The trust policy that grants permission to assume the role.
- Returns:
- The trust policy that grants permission to assume the role.
-
withAssumeRolePolicyDocument
public RoleDetail withAssumeRolePolicyDocument(String assumeRolePolicyDocument)
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
public List<InstanceProfile> getInstanceProfileList()
- Returns:
-
setInstanceProfileList
public void setInstanceProfileList(Collection<InstanceProfile> instanceProfileList)
- Parameters:
instanceProfileList
-
-
withInstanceProfileList
public RoleDetail withInstanceProfileList(InstanceProfile... instanceProfileList)
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
public RoleDetail withInstanceProfileList(Collection<InstanceProfile> instanceProfileList)
- Parameters:
instanceProfileList
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getRolePolicyList
public List<PolicyDetail> 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
public void setRolePolicyList(Collection<PolicyDetail> rolePolicyList)
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
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)
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
public RoleDetail withRolePolicyList(Collection<PolicyDetail> rolePolicyList)
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
public List<AttachedPolicy> 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
public void setAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)
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
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)
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
public RoleDetail withAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RoleDetail clone()
-
-