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 RoleDetailclone()booleanequals(Object obj)StringgetArn()StringgetAssumeRolePolicyDocument()The trust policy that grants permission to assume the role.List<AttachedPolicy>getAttachedManagedPolicies()A list of managed policies attached to the role.DategetCreateDate()The date and time, in ISO 8601 date-time format, when the role was created.List<InstanceProfile>getInstanceProfileList()StringgetPath()The path to the role.StringgetRoleId()The stable and unique string identifying the role.StringgetRoleName()The friendly name that identifies the role.List<PolicyDetail>getRolePolicyList()A list of inline policies embedded in the role.inthashCode()voidsetArn(String arn)voidsetAssumeRolePolicyDocument(String assumeRolePolicyDocument)The trust policy that grants permission to assume the role.voidsetAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)A list of managed policies attached to the role.voidsetCreateDate(Date createDate)The date and time, in ISO 8601 date-time format, when the role was created.voidsetInstanceProfileList(Collection<InstanceProfile> instanceProfileList)voidsetPath(String path)The path to the role.voidsetRoleId(String roleId)The stable and unique string identifying the role.voidsetRoleName(String roleName)The friendly name that identifies the role.voidsetRolePolicyList(Collection<PolicyDetail> rolePolicyList)A list of inline policies embedded in the role.StringtoString()Returns a string representation of this object; useful for testing and debugging.RoleDetailwithArn(String arn)RoleDetailwithAssumeRolePolicyDocument(String assumeRolePolicyDocument)The trust policy that grants permission to assume the role.RoleDetailwithAttachedManagedPolicies(AttachedPolicy... attachedManagedPolicies)A list of managed policies attached to the role.RoleDetailwithAttachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)A list of managed policies attached to the role.RoleDetailwithCreateDate(Date createDate)The date and time, in ISO 8601 date-time format, when the role was created.RoleDetailwithInstanceProfileList(InstanceProfile... instanceProfileList)NOTE: This method appends the values to the existing list (if any).RoleDetailwithInstanceProfileList(Collection<InstanceProfile> instanceProfileList)RoleDetailwithPath(String path)The path to the role.RoleDetailwithRoleId(String roleId)The stable and unique string identifying the role.RoleDetailwithRoleName(String roleName)The friendly name that identifies the role.RoleDetailwithRolePolicyList(PolicyDetail... rolePolicyList)A list of inline policies embedded in the role.RoleDetailwithRolePolicyList(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RoleDetail clone()
-
-