Class AssumedRole
- java.lang.Object
-
- software.amazon.awssdk.services.macie2.model.AssumedRole
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AssumedRole.Builder,AssumedRole>
@Generated("software.amazon.awssdk:codegen") public final class AssumedRole extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AssumedRole.Builder,AssumedRole>
Provides information about an identity that performed an action on an affected resource by using temporary security credentials. The credentials were obtained using the AssumeRole operation of the Security Token Service (STS) API.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAssumedRole.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccessKeyId()The Amazon Web Services access key ID that identifies the credentials.StringaccountId()The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.Stringarn()The Amazon Resource Name (ARN) of the entity that was used to get the credentials.static AssumedRole.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringprincipalId()The unique identifier for the entity that was used to get the credentials.List<SdkField<?>>sdkFields()static Class<? extends AssumedRole.Builder>serializableBuilderClass()SessionContextsessionContext()The details of the session that was created for the credentials, including the entity that issued the session.AssumedRole.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
-
accessKeyId
public final String accessKeyId()
The Amazon Web Services access key ID that identifies the credentials.
- Returns:
- The Amazon Web Services access key ID that identifies the credentials.
-
accountId
public final String accountId()
The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.
- Returns:
- The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.
-
arn
public final String arn()
The Amazon Resource Name (ARN) of the entity that was used to get the credentials.
- Returns:
- The Amazon Resource Name (ARN) of the entity that was used to get the credentials.
-
principalId
public final String principalId()
The unique identifier for the entity that was used to get the credentials.
- Returns:
- The unique identifier for the entity that was used to get the credentials.
-
sessionContext
public final SessionContext sessionContext()
The details of the session that was created for the credentials, including the entity that issued the session.
- Returns:
- The details of the session that was created for the credentials, including the entity that issued the session.
-
toBuilder
public AssumedRole.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AssumedRole.Builder,AssumedRole>
-
builder
public static AssumedRole.Builder builder()
-
serializableBuilderClass
public static Class<? extends AssumedRole.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.
-
-