public class Role extends Object implements Serializable, Cloneable
Contains information about an IAM role.
This data type is used as a response element in the following actions:
CreateRole
GetRole
ListRoles
Constructor and Description |
---|
Role() |
Modifier and Type | Method and Description |
---|---|
Role |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) specifying the role.
|
String |
getAssumeRolePolicyDocument()
The policy that grants an entity permission to assume the role.
|
Date |
getCreateDate()
The date and time, in ISO
8601 date-time format, when the role was created.
|
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.
|
int |
hashCode() |
void |
setArn(String arn)
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 |
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.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Role |
withArn(String arn)
The Amazon Resource Name (ARN) specifying the role.
|
Role |
withAssumeRolePolicyDocument(String assumeRolePolicyDocument)
The policy that grants an entity permission to assume the role.
|
Role |
withCreateDate(Date createDate)
The date and time, in ISO
8601 date-time format, when the role was created.
|
Role |
withPath(String path)
The path to the role.
|
Role |
withRoleId(String roleId)
The stable and unique string identifying the role.
|
Role |
withRoleName(String roleName)
The friendly name that identifies the role.
|
public String getPath()
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
public void setPath(String path)
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
path
- The path to the role. For more information about paths, see IAM
Identifiers in the Using IAM guide.public Role withPath(String path)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
path
- The path to the role. For more information about paths, see IAM
Identifiers in the Using IAM guide.public String getRoleName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
public void setRoleName(String roleName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
roleName
- The friendly name that identifies the role.public Role withRoleName(String roleName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
roleName
- The friendly name that identifies the role.public String getRoleId()
Constraints:
Length: 16 - 32
Pattern: [\w]+
public void setRoleId(String roleId)
Constraints:
Length: 16 - 32
Pattern: [\w]+
roleId
- The stable and unique string identifying the role. For more
information about IDs, see IAM
Identifiers in the Using IAM guide.public Role withRoleId(String roleId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 16 - 32
Pattern: [\w]+
roleId
- The stable and unique string identifying the role. For more
information about IDs, see IAM
Identifiers in the Using IAM guide.public String getArn()
Constraints:
Length: 20 - 2048
public void setArn(String arn)
Constraints:
Length: 20 - 2048
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 Role withArn(String arn)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
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 Date getCreateDate()
public void setCreateDate(Date createDate)
createDate
- The date and time, in ISO
8601 date-time format, when the role was created.public Role withCreateDate(Date createDate)
Returns a reference to this object so that method calls can be chained together.
createDate
- The date and time, in ISO
8601 date-time format, when the role was created.public String getAssumeRolePolicyDocument()
Constraints:
Length: 1 - 131072
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
public void setAssumeRolePolicyDocument(String assumeRolePolicyDocument)
Constraints:
Length: 1 - 131072
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
assumeRolePolicyDocument
- The policy that grants an entity permission to assume the role.public Role withAssumeRolePolicyDocument(String assumeRolePolicyDocument)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 131072
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
assumeRolePolicyDocument
- The policy that grants an entity permission to assume the role.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.