Class Role
- java.lang.Object
-
- com.amazonaws.services.identitymanagement.model.Role
-
- All Implemented Interfaces:
Serializable
,Cloneable
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:
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Role()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
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 Role 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 Role 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 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.
- 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)
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
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 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
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 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
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 Role 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 policy that grants an entity permission to assume the role.
- Parameters:
assumeRolePolicyDocument
- The policy that grants an entity permission to assume the role.
-
getAssumeRolePolicyDocument
public String 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
public Role withAssumeRolePolicyDocument(String assumeRolePolicyDocument)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-