@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.
|
List<AwsIamAttachedManagedPolicy> |
getAttachedManagedPolicies()
The list of the managed policies that are attached to the role.
|
String |
getCreateDate()
Indicates when the role was created.
|
List<AwsIamInstanceProfile> |
getInstanceProfileList()
The list of instance profiles that contain this role.
|
Integer |
getMaxSessionDuration()
The maximum session duration (in seconds) that you want to set for the specified role.
|
String |
getPath()
The path to the role.
|
AwsIamPermissionsBoundary |
getPermissionsBoundary() |
String |
getRoleId()
The stable and unique string identifying the role.
|
String |
getRoleName()
The friendly name that identifies the role.
|
List<AwsIamRolePolicy> |
getRolePolicyList()
The list of inline policies that are embedded in 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 |
setAttachedManagedPolicies(Collection<AwsIamAttachedManagedPolicy> attachedManagedPolicies)
The list of the managed policies that are attached to the role.
|
void |
setCreateDate(String createDate)
Indicates when the role was created.
|
void |
setInstanceProfileList(Collection<AwsIamInstanceProfile> instanceProfileList)
The list of instance profiles that contain this role.
|
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 |
setPermissionsBoundary(AwsIamPermissionsBoundary permissionsBoundary) |
void |
setRoleId(String roleId)
The stable and unique string identifying the role.
|
void |
setRoleName(String roleName)
The friendly name that identifies the role.
|
void |
setRolePolicyList(Collection<AwsIamRolePolicy> rolePolicyList)
The list of inline policies that are embedded in 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 |
withAttachedManagedPolicies(AwsIamAttachedManagedPolicy... attachedManagedPolicies)
The list of the managed policies that are attached to the role.
|
AwsIamRoleDetails |
withAttachedManagedPolicies(Collection<AwsIamAttachedManagedPolicy> attachedManagedPolicies)
The list of the managed policies that are attached to the role.
|
AwsIamRoleDetails |
withCreateDate(String createDate)
Indicates when the role was created.
|
AwsIamRoleDetails |
withInstanceProfileList(AwsIamInstanceProfile... instanceProfileList)
The list of instance profiles that contain this role.
|
AwsIamRoleDetails |
withInstanceProfileList(Collection<AwsIamInstanceProfile> instanceProfileList)
The list of instance profiles that contain this role.
|
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 |
withPermissionsBoundary(AwsIamPermissionsBoundary permissionsBoundary) |
AwsIamRoleDetails |
withRoleId(String roleId)
The stable and unique string identifying the role.
|
AwsIamRoleDetails |
withRoleName(String roleName)
The friendly name that identifies the role.
|
AwsIamRoleDetails |
withRolePolicyList(AwsIamRolePolicy... rolePolicyList)
The list of inline policies that are embedded in the role.
|
AwsIamRoleDetails |
withRolePolicyList(Collection<AwsIamRolePolicy> rolePolicyList)
The list of inline policies that are embedded in 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 List<AwsIamAttachedManagedPolicy> getAttachedManagedPolicies()
The list of the managed policies that are attached to the role.
public void setAttachedManagedPolicies(Collection<AwsIamAttachedManagedPolicy> attachedManagedPolicies)
The list of the managed policies that are attached to the role.
attachedManagedPolicies
- The list of the managed policies that are attached to the role.public AwsIamRoleDetails withAttachedManagedPolicies(AwsIamAttachedManagedPolicy... attachedManagedPolicies)
The list of the managed policies that are attached to the role.
NOTE: This method appends the values to the existing list (if any). Use
setAttachedManagedPolicies(java.util.Collection)
or
withAttachedManagedPolicies(java.util.Collection)
if you want to override the existing values.
attachedManagedPolicies
- The list of the managed policies that are attached to the role.public AwsIamRoleDetails withAttachedManagedPolicies(Collection<AwsIamAttachedManagedPolicy> attachedManagedPolicies)
The list of the managed policies that are attached to the role.
attachedManagedPolicies
- The list of the managed policies that are attached to the role.public void setCreateDate(String createDate)
Indicates when the role was created.
Uses the date-time
format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
2020-03-22T13:22:13.933Z
.
createDate
- Indicates when the role was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
public String getCreateDate()
Indicates when the role was created.
Uses the date-time
format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
2020-03-22T13:22:13.933Z
.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
public AwsIamRoleDetails withCreateDate(String createDate)
Indicates when the role was created.
Uses the date-time
format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
2020-03-22T13:22:13.933Z
.
createDate
- Indicates when the role was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
public List<AwsIamInstanceProfile> getInstanceProfileList()
The list of instance profiles that contain this role.
public void setInstanceProfileList(Collection<AwsIamInstanceProfile> instanceProfileList)
The list of instance profiles that contain this role.
instanceProfileList
- The list of instance profiles that contain this role.public AwsIamRoleDetails withInstanceProfileList(AwsIamInstanceProfile... instanceProfileList)
The list of instance profiles that contain this role.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceProfileList(java.util.Collection)
or withInstanceProfileList(java.util.Collection)
if you want to override the existing values.
instanceProfileList
- The list of instance profiles that contain this role.public AwsIamRoleDetails withInstanceProfileList(Collection<AwsIamInstanceProfile> instanceProfileList)
The list of instance profiles that contain this role.
instanceProfileList
- The list of instance profiles that contain this role.public void setPermissionsBoundary(AwsIamPermissionsBoundary permissionsBoundary)
permissionsBoundary
- public AwsIamPermissionsBoundary getPermissionsBoundary()
public AwsIamRoleDetails withPermissionsBoundary(AwsIamPermissionsBoundary permissionsBoundary)
permissionsBoundary
- 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 List<AwsIamRolePolicy> getRolePolicyList()
The list of inline policies that are embedded in the role.
public void setRolePolicyList(Collection<AwsIamRolePolicy> rolePolicyList)
The list of inline policies that are embedded in the role.
rolePolicyList
- The list of inline policies that are embedded in the role.public AwsIamRoleDetails withRolePolicyList(AwsIamRolePolicy... rolePolicyList)
The list of inline policies that are embedded in the role.
NOTE: This method appends the values to the existing list (if any). Use
setRolePolicyList(java.util.Collection)
or withRolePolicyList(java.util.Collection)
if you want
to override the existing values.
rolePolicyList
- The list of inline policies that are embedded in the role.public AwsIamRoleDetails withRolePolicyList(Collection<AwsIamRolePolicy> rolePolicyList)
The list of inline policies that are embedded in the role.
rolePolicyList
- The list of inline policies that are embedded in 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.