Class Role
- All Implemented Interfaces:
Serializable
,Cloneable
Contains information about an IAM role.
This data type is used as a response element in the following actions:
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getArn()
The Amazon Resource Name (ARN) specifying the role.The policy that grants an entity permission to assume 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.int
hashCode()
void
The Amazon Resource Name (ARN) specifying the role.void
setAssumeRolePolicyDocument
(String assumeRolePolicyDocument) The policy that grants an entity permission to assume the role.void
setCreateDate
(Date createDate) The date and time, in ISO 8601 date-time format, when the role was created.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.toString()
Returns a string representation of this object; useful for testing and debugging.The Amazon Resource Name (ARN) specifying the role.withAssumeRolePolicyDocument
(String assumeRolePolicyDocument) The policy that grants an entity permission to assume the role.withCreateDate
(Date createDate) The date and time, in ISO 8601 date-time format, when the role was created.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.
-
Constructor Details
-
Role
public Role()
-
-
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
The Amazon Resource Name (ARN) specifying the role. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.
- Parameters:
arn
- The Amazon Resource Name (ARN) specifying the role. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.
-
getArn
The Amazon Resource Name (ARN) specifying the role. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.
- Returns:
- The Amazon Resource Name (ARN) specifying the role. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.
-
withArn
The Amazon Resource Name (ARN) specifying the role. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.
- Parameters:
arn
- The Amazon Resource Name (ARN) specifying the role. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.- 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 policy that grants an entity permission to assume the role.
- Parameters:
assumeRolePolicyDocument
- The policy that grants an entity permission to assume the role.
-
getAssumeRolePolicyDocument
The policy that grants an entity permission to assume the role.
- Returns:
- The policy that grants an entity permission to assume the role.
-
withAssumeRolePolicyDocument
The policy that grants an entity permission to assume the role.
- Parameters:
assumeRolePolicyDocument
- The policy that grants an entity permission to assume the role.- 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
-