Class AwsIamRoleDetails
- java.lang.Object
-
- software.amazon.awssdk.services.securityhub.model.AwsIamRoleDetails
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AwsIamRoleDetails.Builder,AwsIamRoleDetails>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAwsIamRoleDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringassumeRolePolicyDocument()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.Builderbuilder()StringcreateDate()Indicates when the role was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasAttachedManagedPolicies()For responses, this returns true if the service returned a value for the AttachedManagedPolicies property.inthashCode()booleanhasInstanceProfileList()For responses, this returns true if the service returned a value for the InstanceProfileList property.booleanhasRolePolicyList()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.IntegermaxSessionDuration()The maximum session duration (in seconds) that you want to set for the specified role.Stringpath()The path to the role.AwsIamPermissionsBoundarypermissionsBoundary()Returns the value of the PermissionsBoundary property for this object.StringroleId()The stable and unique string identifying the role.StringroleName()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.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
assumeRolePolicyDocument
public final String assumeRolePolicyDocument()
The trust policy that grants permission to assume the role.
- Returns:
- The trust policy that grants permission to assume the role.
-
hasAttachedManagedPolicies
public final boolean hasAttachedManagedPolicies()
For responses, this returns true if the service returned a value for the AttachedManagedPolicies property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
attachedManagedPolicies
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.- Returns:
- The list of the managed policies that are attached to the role.
-
createDate
public final String createDate()
Indicates when the role was created.
This field accepts only the specified formats. Timestamps can end with
Zor("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:-
YYYY-MM-DDTHH:MM:SSZ(for example,2019-01-31T23:00:00Z) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ(for example,2019-01-31T23:00:00.123456789Z) -
YYYY-MM-DDTHH:MM:SS+HH:MM(for example,2024-01-04T15:25:10+17:59) -
YYYY-MM-DDTHH:MM:SS-HHMM(for example,2024-01-04T15:25:10-1759) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM(for example,2024-01-04T15:25:10.123456789+17:59)
- Returns:
- Indicates when the role was created.
This field accepts only the specified formats. Timestamps can end with
Zor("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:-
YYYY-MM-DDTHH:MM:SSZ(for example,2019-01-31T23:00:00Z) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ(for example,2019-01-31T23:00:00.123456789Z) -
YYYY-MM-DDTHH:MM:SS+HH:MM(for example,2024-01-04T15:25:10+17:59) -
YYYY-MM-DDTHH:MM:SS-HHMM(for example,2024-01-04T15:25:10-1759) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM(for example,2024-01-04T15:25:10.123456789+17:59)
-
-
-
hasInstanceProfileList
public final boolean hasInstanceProfileList()
For responses, this returns true if the service returned a value for the InstanceProfileList property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
instanceProfileList
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.- Returns:
- The list of instance profiles that contain this role.
-
permissionsBoundary
public final AwsIamPermissionsBoundary permissionsBoundary()
Returns the value of the PermissionsBoundary property for this object.- Returns:
- The value of the PermissionsBoundary property for this object.
-
roleId
public final String roleId()
The stable and unique string identifying the role.
- Returns:
- The stable and unique string identifying the role.
-
roleName
public final String roleName()
The friendly name that identifies the role.
- Returns:
- The friendly name that identifies the role.
-
hasRolePolicyList
public final boolean hasRolePolicyList()
For responses, this returns true if the service returned a value for the RolePolicyList property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
rolePolicyList
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.- Returns:
- The list of inline policies that are embedded in the role.
-
maxSessionDuration
public final Integer maxSessionDuration()
The maximum session duration (in seconds) that you want to set for the specified role.
- Returns:
- The maximum session duration (in seconds) that you want to set for the specified role.
-
path
public final String path()
The path to the role.
- Returns:
- The path to the role.
-
toBuilder
public AwsIamRoleDetails.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AwsIamRoleDetails.Builder,AwsIamRoleDetails>
-
builder
public static AwsIamRoleDetails.Builder builder()
-
serializableBuilderClass
public static Class<? extends AwsIamRoleDetails.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-