@Generated(value="software.amazon.awssdk:codegen") public final class TokenValidityUnitsType extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TokenValidityUnitsType.Builder,TokenValidityUnitsType>
The data type TokenValidityUnits specifies the time units you use when you set the duration of ID, access, and refresh tokens.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TokenValidityUnitsType.Builder |
| Modifier and Type | Method and Description |
|---|---|
TimeUnitsType |
accessToken()
A time unit of
seconds, minutes, hours, or days for the value
that you set in the AccessTokenValidity parameter. |
String |
accessTokenAsString()
A time unit of
seconds, minutes, hours, or days for the value
that you set in the AccessTokenValidity parameter. |
static TokenValidityUnitsType.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
TimeUnitsType |
idToken()
A time unit of
seconds, minutes, hours, or days for the value
that you set in the IdTokenValidity parameter. |
String |
idTokenAsString()
A time unit of
seconds, minutes, hours, or days for the value
that you set in the IdTokenValidity parameter. |
TimeUnitsType |
refreshToken()
A time unit of
seconds, minutes, hours, or days for the value
that you set in the RefreshTokenValidity parameter. |
String |
refreshTokenAsString()
A time unit of
seconds, minutes, hours, or days for the value
that you set in the RefreshTokenValidity parameter. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends TokenValidityUnitsType.Builder> |
serializableBuilderClass() |
TokenValidityUnitsType.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final TimeUnitsType accessToken()
A time unit of seconds, minutes, hours, or days for the value
that you set in the AccessTokenValidity parameter. The default AccessTokenValidity time
unit is hours.
If the service returns an enum value that is not available in the current SDK version, accessToken will
return TimeUnitsType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
accessTokenAsString().
seconds, minutes, hours, or days for
the value that you set in the AccessTokenValidity parameter. The default
AccessTokenValidity time unit is hours.TimeUnitsTypepublic final String accessTokenAsString()
A time unit of seconds, minutes, hours, or days for the value
that you set in the AccessTokenValidity parameter. The default AccessTokenValidity time
unit is hours.
If the service returns an enum value that is not available in the current SDK version, accessToken will
return TimeUnitsType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
accessTokenAsString().
seconds, minutes, hours, or days for
the value that you set in the AccessTokenValidity parameter. The default
AccessTokenValidity time unit is hours.TimeUnitsTypepublic final TimeUnitsType idToken()
A time unit of seconds, minutes, hours, or days for the value
that you set in the IdTokenValidity parameter. The default IdTokenValidity time unit is
hours.
If the service returns an enum value that is not available in the current SDK version, idToken will
return TimeUnitsType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
idTokenAsString().
seconds, minutes, hours, or days for
the value that you set in the IdTokenValidity parameter. The default
IdTokenValidity time unit is hours.TimeUnitsTypepublic final String idTokenAsString()
A time unit of seconds, minutes, hours, or days for the value
that you set in the IdTokenValidity parameter. The default IdTokenValidity time unit is
hours.
If the service returns an enum value that is not available in the current SDK version, idToken will
return TimeUnitsType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
idTokenAsString().
seconds, minutes, hours, or days for
the value that you set in the IdTokenValidity parameter. The default
IdTokenValidity time unit is hours.TimeUnitsTypepublic final TimeUnitsType refreshToken()
A time unit of seconds, minutes, hours, or days for the value
that you set in the RefreshTokenValidity parameter. The default RefreshTokenValidity
time unit is days.
If the service returns an enum value that is not available in the current SDK version, refreshToken will
return TimeUnitsType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
refreshTokenAsString().
seconds, minutes, hours, or days for
the value that you set in the RefreshTokenValidity parameter. The default
RefreshTokenValidity time unit is days.TimeUnitsTypepublic final String refreshTokenAsString()
A time unit of seconds, minutes, hours, or days for the value
that you set in the RefreshTokenValidity parameter. The default RefreshTokenValidity
time unit is days.
If the service returns an enum value that is not available in the current SDK version, refreshToken will
return TimeUnitsType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
refreshTokenAsString().
seconds, minutes, hours, or days for
the value that you set in the RefreshTokenValidity parameter. The default
RefreshTokenValidity time unit is days.TimeUnitsTypepublic TokenValidityUnitsType.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TokenValidityUnitsType.Builder,TokenValidityUnitsType>public static TokenValidityUnitsType.Builder builder()
public static Class<? extends TokenValidityUnitsType.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.