Class TokenValidityUnitsType
- java.lang.Object
-
- software.amazon.awssdk.services.cognitoidentityprovider.model.TokenValidityUnitsType
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TokenValidityUnitsType.Builder,TokenValidityUnitsType>
@Generated("software.amazon.awssdk:codegen") public final class TokenValidityUnitsType extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TokenValidityUnitsType.Builder,TokenValidityUnitsType>
The time units that, with
IdTokenValidity,AccessTokenValidity, andRefreshTokenValidity, set and display the duration of ID, access, and refresh tokens for an app client. You can assign a separate token validity unit to each type of token.This data type is a request parameter of CreateUserPoolClient and UpdateUserPoolClient, and a response parameter of DescribeUserPoolClient.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTokenValidityUnitsType.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeUnitsTypeaccessToken()A time unit for the value that you set in theAccessTokenValidityparameter.StringaccessTokenAsString()A time unit for the value that you set in theAccessTokenValidityparameter.static TokenValidityUnitsType.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()TimeUnitsTypeidToken()A time unit for the value that you set in theIdTokenValidityparameter.StringidTokenAsString()A time unit for the value that you set in theIdTokenValidityparameter.TimeUnitsTyperefreshToken()A time unit for the value that you set in theRefreshTokenValidityparameter.StringrefreshTokenAsString()A time unit for the value that you set in theRefreshTokenValidityparameter.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends TokenValidityUnitsType.Builder>serializableBuilderClass()TokenValidityUnitsType.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
-
accessToken
public final TimeUnitsType accessToken()
A time unit for the value that you set in the
AccessTokenValidityparameter. The defaultAccessTokenValiditytime unit ishours.AccessTokenValidityduration can range from five minutes to one day.If the service returns an enum value that is not available in the current SDK version,
accessTokenwill returnTimeUnitsType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaccessTokenAsString().- Returns:
- A time unit for the value that you set in the
AccessTokenValidityparameter. The defaultAccessTokenValiditytime unit ishours.AccessTokenValidityduration can range from five minutes to one day. - See Also:
TimeUnitsType
-
accessTokenAsString
public final String accessTokenAsString()
A time unit for the value that you set in the
AccessTokenValidityparameter. The defaultAccessTokenValiditytime unit ishours.AccessTokenValidityduration can range from five minutes to one day.If the service returns an enum value that is not available in the current SDK version,
accessTokenwill returnTimeUnitsType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaccessTokenAsString().- Returns:
- A time unit for the value that you set in the
AccessTokenValidityparameter. The defaultAccessTokenValiditytime unit ishours.AccessTokenValidityduration can range from five minutes to one day. - See Also:
TimeUnitsType
-
idToken
public final TimeUnitsType idToken()
A time unit for the value that you set in the
IdTokenValidityparameter. The defaultIdTokenValiditytime unit ishours.IdTokenValidityduration can range from five minutes to one day.If the service returns an enum value that is not available in the current SDK version,
idTokenwill returnTimeUnitsType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromidTokenAsString().- Returns:
- A time unit for the value that you set in the
IdTokenValidityparameter. The defaultIdTokenValiditytime unit ishours.IdTokenValidityduration can range from five minutes to one day. - See Also:
TimeUnitsType
-
idTokenAsString
public final String idTokenAsString()
A time unit for the value that you set in the
IdTokenValidityparameter. The defaultIdTokenValiditytime unit ishours.IdTokenValidityduration can range from five minutes to one day.If the service returns an enum value that is not available in the current SDK version,
idTokenwill returnTimeUnitsType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromidTokenAsString().- Returns:
- A time unit for the value that you set in the
IdTokenValidityparameter. The defaultIdTokenValiditytime unit ishours.IdTokenValidityduration can range from five minutes to one day. - See Also:
TimeUnitsType
-
refreshToken
public final TimeUnitsType refreshToken()
A time unit for the value that you set in the
RefreshTokenValidityparameter. The defaultRefreshTokenValiditytime unit isdays.RefreshTokenValidityduration can range from 60 minutes to 10 years.If the service returns an enum value that is not available in the current SDK version,
refreshTokenwill returnTimeUnitsType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrefreshTokenAsString().- Returns:
- A time unit for the value that you set in the
RefreshTokenValidityparameter. The defaultRefreshTokenValiditytime unit isdays.RefreshTokenValidityduration can range from 60 minutes to 10 years. - See Also:
TimeUnitsType
-
refreshTokenAsString
public final String refreshTokenAsString()
A time unit for the value that you set in the
RefreshTokenValidityparameter. The defaultRefreshTokenValiditytime unit isdays.RefreshTokenValidityduration can range from 60 minutes to 10 years.If the service returns an enum value that is not available in the current SDK version,
refreshTokenwill returnTimeUnitsType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrefreshTokenAsString().- Returns:
- A time unit for the value that you set in the
RefreshTokenValidityparameter. The defaultRefreshTokenValiditytime unit isdays.RefreshTokenValidityduration can range from 60 minutes to 10 years. - See Also:
TimeUnitsType
-
toBuilder
public TokenValidityUnitsType.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TokenValidityUnitsType.Builder,TokenValidityUnitsType>
-
builder
public static TokenValidityUnitsType.Builder builder()
-
serializableBuilderClass
public static Class<? extends TokenValidityUnitsType.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
-
-