@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()
For responses, this returns true if the service returned a value for the AttachedManagedPolicies property.
|
int |
hashCode() |
boolean |
hasInstanceProfileList()
For responses, this returns true if the service returned a value for the InstanceProfileList property.
|
boolean |
hasRolePolicyList()
For responses, this returns true if the service returned a value for the RolePolicyList property.
|
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()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAttachedManagedPolicies() method.
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, and date and time should be
separated by T. 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, and date and time should be separated by T. For
example, 2020-03-22T13:22:13.933Z.
public final boolean hasInstanceProfileList()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasInstanceProfileList() method.
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()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasRolePolicyList() method.
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 © 2023. All rights reserved.