@Generated(value="software.amazon.awssdk:codegen") public final class AwsIamRoleDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsIamRoleDetails.Builder,AwsIamRoleDetails>
Contains information about an IAM role, including all of the role's policies.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsIamRoleDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
assumeRolePolicyDocument()
The trust policy that grants permission to assume the role.
|
List<AwsIamAttachedManagedPolicy> |
attachedManagedPolicies()
The list of the managed policies that are attached to the role.
|
static AwsIamRoleDetails.Builder |
builder() |
String |
createDate()
Indicates when the role was created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAttachedManagedPolicies()
Returns true if the AttachedManagedPolicies property was specified by the sender (it may be empty), or false if
the sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasInstanceProfileList()
Returns true if the InstanceProfileList property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasRolePolicyList()
Returns true if the RolePolicyList property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
List<AwsIamInstanceProfile> |
instanceProfileList()
The list of instance profiles that contain this role.
|
Integer |
maxSessionDuration()
The maximum session duration (in seconds) that you want to set for the specified role.
|
String |
path()
The path to the role.
|
AwsIamPermissionsBoundary |
permissionsBoundary()
Returns the value of the PermissionsBoundary property for this object.
|
String |
roleId()
The stable and unique string identifying the role.
|
String |
roleName()
The friendly name that identifies the role.
|
List<AwsIamRolePolicy> |
rolePolicyList()
The list of inline policies that are embedded in the role.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AwsIamRoleDetails.Builder> |
serializableBuilderClass() |
AwsIamRoleDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String assumeRolePolicyDocument()
The trust policy that grants permission to assume the role.
public final boolean hasAttachedManagedPolicies()
public final List<AwsIamAttachedManagedPolicy> attachedManagedPolicies()
The list of the managed policies that are attached to the role.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAttachedManagedPolicies() to see if a value was sent in this field.
public final 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.
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 final boolean hasInstanceProfileList()
public final List<AwsIamInstanceProfile> instanceProfileList()
The list of instance profiles that contain this role.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasInstanceProfileList() to see if a value was sent in this field.
public final AwsIamPermissionsBoundary permissionsBoundary()
public final String roleId()
The stable and unique string identifying the role.
public final String roleName()
The friendly name that identifies the role.
public final boolean hasRolePolicyList()
public final List<AwsIamRolePolicy> rolePolicyList()
The list of inline policies that are embedded in the role.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRolePolicyList() to see if a value was sent in this field.
public final Integer maxSessionDuration()
The maximum session duration (in seconds) that you want to set for the specified role.
public final String path()
The path to the role.
public AwsIamRoleDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AwsIamRoleDetails.Builder,AwsIamRoleDetails>public static AwsIamRoleDetails.Builder builder()
public static Class<? extends AwsIamRoleDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.