Class Session
- java.lang.Object
-
- software.amazon.awssdk.services.guardduty.model.Session
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Session.Builder,Session>
@Generated("software.amazon.awssdk:codegen") public final class Session extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Session.Builder,Session>
Contains information about the authenticated session.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSession.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Session.Builderbuilder()InstantcreatedTime()The timestamp for when the session was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringissuer()Identifier of the session issuer.MfaStatusmfaStatus()Indicates whether or not multi-factor authencation (MFA) was used during authentication.StringmfaStatusAsString()Indicates whether or not multi-factor authencation (MFA) was used during authentication.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Session.Builder>serializableBuilderClass()Session.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringuid()The unique identifier of 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
-
uid
public final String uid()
The unique identifier of the session.
- Returns:
- The unique identifier of the session.
-
mfaStatus
public final MfaStatus mfaStatus()
Indicates whether or not multi-factor authencation (MFA) was used during authentication.
In Amazon Web Services CloudTrail, you can find this value as
userIdentity.sessionContext.attributes.mfaAuthenticated.If the service returns an enum value that is not available in the current SDK version,
mfaStatuswill returnMfaStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommfaStatusAsString().- Returns:
- Indicates whether or not multi-factor authencation (MFA) was used during authentication.
In Amazon Web Services CloudTrail, you can find this value as
userIdentity.sessionContext.attributes.mfaAuthenticated. - See Also:
MfaStatus
-
mfaStatusAsString
public final String mfaStatusAsString()
Indicates whether or not multi-factor authencation (MFA) was used during authentication.
In Amazon Web Services CloudTrail, you can find this value as
userIdentity.sessionContext.attributes.mfaAuthenticated.If the service returns an enum value that is not available in the current SDK version,
mfaStatuswill returnMfaStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommfaStatusAsString().- Returns:
- Indicates whether or not multi-factor authencation (MFA) was used during authentication.
In Amazon Web Services CloudTrail, you can find this value as
userIdentity.sessionContext.attributes.mfaAuthenticated. - See Also:
MfaStatus
-
createdTime
public final Instant createdTime()
The timestamp for when the session was created.
In Amazon Web Services CloudTrail, you can find this value as
userIdentity.sessionContext.attributes.creationDate.- Returns:
- The timestamp for when the session was created.
In Amazon Web Services CloudTrail, you can find this value as
userIdentity.sessionContext.attributes.creationDate.
-
issuer
public final String issuer()
Identifier of the session issuer.
In Amazon Web Services CloudTrail, you can find this value as
userIdentity.sessionContext.sessionIssuer.arn.- Returns:
- Identifier of the session issuer.
In Amazon Web Services CloudTrail, you can find this value as
userIdentity.sessionContext.sessionIssuer.arn.
-
toBuilder
public Session.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Session.Builder,Session>
-
builder
public static Session.Builder builder()
-
serializableBuilderClass
public static Class<? extends Session.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
-
-