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:
  • Constructor Details

    • RoleDetail

      public RoleDetail()
  • Method Details

    • 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) or withInstanceProfileList(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) or withRolePolicyList(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) or withAttachedManagedPolicies(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public RoleDetail clone()
      Overrides:
      clone in class Object