Class SessionIssuer
- java.lang.Object
-
- software.amazon.awssdk.services.macie2.model.SessionIssuer
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SessionIssuer.Builder,SessionIssuer>
@Generated("software.amazon.awssdk:codegen") public final class SessionIssuer extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SessionIssuer.Builder,SessionIssuer>
Provides information about the source and type of temporary security credentials that were issued to an entity.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSessionIssuer.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 source account, Identity and Access Management (IAM) user, or role that was used to get the credentials.static SessionIssuer.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.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SessionIssuer.Builder>serializableBuilderClass()SessionIssuer.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringtype()The source of the temporary security credentials, such as Root, IAMUser, or Role.StringuserName()The name or alias of the user or role that issued the session.-
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
-
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 source account, Identity and Access Management (IAM) user, or role that was used to get the credentials.
- Returns:
- The Amazon Resource Name (ARN) of the source account, Identity and Access Management (IAM) user, or role 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.
-
type
public final String type()
The source of the temporary security credentials, such as Root, IAMUser, or Role.
- Returns:
- The source of the temporary security credentials, such as Root, IAMUser, or Role.
-
userName
public final String userName()
The name or alias of the user or role that issued the session. This value is null if the credentials were obtained from a root account that doesn't have an alias.
- Returns:
- The name or alias of the user or role that issued the session. This value is null if the credentials were obtained from a root account that doesn't have an alias.
-
toBuilder
public SessionIssuer.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SessionIssuer.Builder,SessionIssuer>
-
builder
public static SessionIssuer.Builder builder()
-
serializableBuilderClass
public static Class<? extends SessionIssuer.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-