@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Role extends Object implements Serializable, Cloneable
Contains information about an IAM role. This structure is returned as a response element in several APIs that interact with roles.
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 |
getDescription()
A description of the role that you provide.
|
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 |
setDescription(String description)
A description of the role that you provide.
|
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 |
withDescription(String description)
A description of the role that you provide.
|
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 void setPath(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 String getPath()
The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
public Role withPath(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(String roleName)
The friendly name that identifies the role.
roleName
- The friendly name that identifies the role.public String getRoleName()
The friendly name that identifies the role.
public Role withRoleName(String roleName)
The friendly name that identifies the role.
roleName
- The friendly name that identifies the role.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.
roleId
- The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in the
Using IAM guide.public 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(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(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 IAM User Guide 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 IAM User Guide guide.public 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 IAM User Guide guide.
public Role withArn(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 IAM User Guide 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 IAM User Guide guide.public void setCreateDate(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 Date getCreateDate()
The date and time, in ISO 8601 date-time format, when the role was created.
public Role withCreateDate(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(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 String getAssumeRolePolicyDocument()
The policy that grants an entity permission to assume the role.
public Role withAssumeRolePolicyDocument(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 void setDescription(String description)
A description of the role that you provide.
description
- A description of the role that you provide.public String getDescription()
A description of the role that you provide.
public Role withDescription(String description)
A description of the role that you provide.
description
- A description of the role that you provide.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.