public class Role
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about an IAM role.
This data type is used as a response element in the following actions:
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
arn
The Amazon Resource Name (ARN) specifying the role.
|
private java.lang.String |
assumeRolePolicyDocument
The policy that grants an entity permission to assume the role.
|
private java.util.Date |
createDate
The date and time, in ISO 8601
date-time format, when the role was created.
|
private java.lang.String |
path
The path to the role.
|
private java.lang.String |
roleId
The stable and unique string identifying the role.
|
private java.lang.String |
roleName
The friendly name that identifies the role.
|
Constructor and Description |
---|
Role() |
Modifier and Type | Method and Description |
---|---|
Role |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn()
The Amazon Resource Name (ARN) specifying the role.
|
java.lang.String |
getAssumeRolePolicyDocument()
The policy that grants an entity permission to assume the role.
|
java.util.Date |
getCreateDate()
The date and time, in ISO 8601
date-time format, when the role was created.
|
java.lang.String |
getPath()
The path to the role.
|
java.lang.String |
getRoleId()
The stable and unique string identifying the role.
|
java.lang.String |
getRoleName()
The friendly name that identifies the role.
|
int |
hashCode() |
void |
setArn(java.lang.String arn)
The Amazon Resource Name (ARN) specifying the role.
|
void |
setAssumeRolePolicyDocument(java.lang.String assumeRolePolicyDocument)
The policy that grants an entity permission to assume the role.
|
void |
setCreateDate(java.util.Date createDate)
The date and time, in ISO 8601
date-time format, when the role was created.
|
void |
setPath(java.lang.String path)
The path to the role.
|
void |
setRoleId(java.lang.String roleId)
The stable and unique string identifying the role.
|
void |
setRoleName(java.lang.String roleName)
The friendly name that identifies the role.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Role |
withArn(java.lang.String arn)
The Amazon Resource Name (ARN) specifying the role.
|
Role |
withAssumeRolePolicyDocument(java.lang.String assumeRolePolicyDocument)
The policy that grants an entity permission to assume the role.
|
Role |
withCreateDate(java.util.Date createDate)
The date and time, in ISO 8601
date-time format, when the role was created.
|
Role |
withPath(java.lang.String path)
The path to the role.
|
Role |
withRoleId(java.lang.String roleId)
The stable and unique string identifying the role.
|
Role |
withRoleName(java.lang.String roleName)
The friendly name that identifies the role.
|
private java.lang.String path
The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
private java.lang.String roleName
The friendly name that identifies the role.
private java.lang.String roleId
The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.
private java.lang.String 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.
private java.util.Date createDate
The date and time, in ISO 8601 date-time format, when the role was created.
private java.lang.String assumeRolePolicyDocument
The policy that grants an entity permission to assume the role.
public void setPath(java.lang.String path)
The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
path
- The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.public java.lang.String getPath()
The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
public Role withPath(java.lang.String path)
The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
path
- The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.public void setRoleName(java.lang.String roleName)
The friendly name that identifies the role.
roleName
- The friendly name that identifies the role.public java.lang.String getRoleName()
The friendly name that identifies the role.
public Role withRoleName(java.lang.String roleName)
The friendly name that identifies the role.
roleName
- The friendly name that identifies the role.public void setRoleId(java.lang.String roleId)
The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.
roleId
- The stable and unique string identifying the role. For more
information about IDs, see IAM Identifiers in the Using IAM guide.public java.lang.String getRoleId()
The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.
public Role withRoleId(java.lang.String roleId)
The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the Using IAM guide.
roleId
- The stable and unique string identifying the role. For more
information about IDs, see IAM Identifiers in the Using IAM guide.public void setArn(java.lang.String 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.
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.public java.lang.String 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.
public Role withArn(java.lang.String 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.
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.public void setCreateDate(java.util.Date createDate)
The date and time, in ISO 8601 date-time format, when the role was created.
createDate
- The date and time, in ISO
8601 date-time format, when the role was created.public java.util.Date getCreateDate()
The date and time, in ISO 8601 date-time format, when the role was created.
public Role withCreateDate(java.util.Date createDate)
The date and time, in ISO 8601 date-time format, when the role was created.
createDate
- The date and time, in ISO
8601 date-time format, when the role was created.public void setAssumeRolePolicyDocument(java.lang.String assumeRolePolicyDocument)
The policy that grants an entity permission to assume the role.
assumeRolePolicyDocument
- The policy that grants an entity permission to assume the role.public java.lang.String getAssumeRolePolicyDocument()
The policy that grants an entity permission to assume the role.
public Role withAssumeRolePolicyDocument(java.lang.String assumeRolePolicyDocument)
The policy that grants an entity permission to assume the role.
assumeRolePolicyDocument
- The policy that grants an entity permission to assume the role.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Role clone()
clone
in class java.lang.Object