@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsIamRoleDetails extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about an IAM role, including all of the role's policies.
Constructor and Description |
---|
AwsIamRoleDetails() |
Modifier and Type | Method and Description |
---|---|
AwsIamRoleDetails |
clone() |
boolean |
equals(Object obj) |
String |
getAssumeRolePolicyDocument()
The trust policy that grants permission to assume the role.
|
String |
getCreateDate()
The date and time, in ISO 8601 date-time format, when the role was created.
|
Integer |
getMaxSessionDuration()
The maximum session duration (in seconds) that you want to set for the specified role.
|
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAssumeRolePolicyDocument(String assumeRolePolicyDocument)
The trust policy that grants permission to assume the role.
|
void |
setCreateDate(String createDate)
The date and time, in ISO 8601 date-time format, when the role was created.
|
void |
setMaxSessionDuration(Integer maxSessionDuration)
The maximum session duration (in seconds) that you want to set for the specified role.
|
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.
|
AwsIamRoleDetails |
withAssumeRolePolicyDocument(String assumeRolePolicyDocument)
The trust policy that grants permission to assume the role.
|
AwsIamRoleDetails |
withCreateDate(String createDate)
The date and time, in ISO 8601 date-time format, when the role was created.
|
AwsIamRoleDetails |
withMaxSessionDuration(Integer maxSessionDuration)
The maximum session duration (in seconds) that you want to set for the specified role.
|
AwsIamRoleDetails |
withPath(String path)
The path to the role.
|
AwsIamRoleDetails |
withRoleId(String roleId)
The stable and unique string identifying the role.
|
AwsIamRoleDetails |
withRoleName(String roleName)
The friendly name that identifies the role.
|
public void setAssumeRolePolicyDocument(String assumeRolePolicyDocument)
The trust policy that grants permission to assume the role.
assumeRolePolicyDocument
- The trust policy that grants permission to assume the role.public String getAssumeRolePolicyDocument()
The trust policy that grants permission to assume the role.
public AwsIamRoleDetails withAssumeRolePolicyDocument(String assumeRolePolicyDocument)
The trust policy that grants permission to assume the role.
assumeRolePolicyDocument
- The trust policy that grants permission to assume the role.public void setCreateDate(String 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 String getCreateDate()
The date and time, in ISO 8601 date-time format, when the role was created.
public AwsIamRoleDetails withCreateDate(String 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 setRoleId(String roleId)
The stable and unique string identifying the role.
roleId
- The stable and unique string identifying the role.public String getRoleId()
The stable and unique string identifying the role.
public AwsIamRoleDetails withRoleId(String roleId)
The stable and unique string identifying the role.
roleId
- The stable and unique string identifying the role.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 AwsIamRoleDetails withRoleName(String roleName)
The friendly name that identifies the role.
roleName
- The friendly name that identifies the role.public void setMaxSessionDuration(Integer maxSessionDuration)
The maximum session duration (in seconds) that you want to set for the specified role.
maxSessionDuration
- The maximum session duration (in seconds) that you want to set for the specified role.public Integer getMaxSessionDuration()
The maximum session duration (in seconds) that you want to set for the specified role.
public AwsIamRoleDetails withMaxSessionDuration(Integer maxSessionDuration)
The maximum session duration (in seconds) that you want to set for the specified role.
maxSessionDuration
- The maximum session duration (in seconds) that you want to set for the specified role.public void setPath(String path)
The path to the role.
path
- The path to the role.public String getPath()
The path to the role.
public AwsIamRoleDetails withPath(String path)
The path to the role.
path
- The path to the role.public String toString()
toString
in class Object
Object.toString()
public AwsIamRoleDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.