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 data type TokenValidityUnits specifies the time units you use when you set the duration of ID, access, and refresh tokens.
- 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 ofseconds,minutes,hours, ordaysfor the value that you set in theAccessTokenValidityparameter.StringaccessTokenAsString()A time unit ofseconds,minutes,hours, ordaysfor 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 ofseconds,minutes,hours, ordaysfor the value that you set in theIdTokenValidityparameter.StringidTokenAsString()A time unit ofseconds,minutes,hours, ordaysfor the value that you set in theIdTokenValidityparameter.TimeUnitsTyperefreshToken()A time unit ofseconds,minutes,hours, ordaysfor the value that you set in theRefreshTokenValidityparameter.StringrefreshTokenAsString()A time unit ofseconds,minutes,hours, ordaysfor the value that you set in theRefreshTokenValidityparameter.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 of
seconds,minutes,hours, ordaysfor the value that you set in theAccessTokenValidityparameter. The defaultAccessTokenValiditytime unit is hours.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 of
seconds,minutes,hours, ordaysfor the value that you set in theAccessTokenValidityparameter. The defaultAccessTokenValiditytime unit is hours.AccessTokenValidityduration can range from five minutes to one day. - See Also:
TimeUnitsType
-
accessTokenAsString
public final String accessTokenAsString()
A time unit of
seconds,minutes,hours, ordaysfor the value that you set in theAccessTokenValidityparameter. The defaultAccessTokenValiditytime unit is hours.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 of
seconds,minutes,hours, ordaysfor the value that you set in theAccessTokenValidityparameter. The defaultAccessTokenValiditytime unit is hours.AccessTokenValidityduration can range from five minutes to one day. - See Also:
TimeUnitsType
-
idToken
public final TimeUnitsType idToken()
A time unit of
seconds,minutes,hours, ordaysfor the value that you set in theIdTokenValidityparameter. The defaultIdTokenValiditytime unit is hours.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 of
seconds,minutes,hours, ordaysfor the value that you set in theIdTokenValidityparameter. The defaultIdTokenValiditytime unit is hours.IdTokenValidityduration can range from five minutes to one day. - See Also:
TimeUnitsType
-
idTokenAsString
public final String idTokenAsString()
A time unit of
seconds,minutes,hours, ordaysfor the value that you set in theIdTokenValidityparameter. The defaultIdTokenValiditytime unit is hours.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 of
seconds,minutes,hours, ordaysfor the value that you set in theIdTokenValidityparameter. The defaultIdTokenValiditytime unit is hours.IdTokenValidityduration can range from five minutes to one day. - See Also:
TimeUnitsType
-
refreshToken
public final TimeUnitsType refreshToken()
A time unit of
seconds,minutes,hours, ordaysfor the value that you set in theRefreshTokenValidityparameter. The defaultRefreshTokenValiditytime unit is days.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 of
seconds,minutes,hours, ordaysfor the value that you set in theRefreshTokenValidityparameter. The defaultRefreshTokenValiditytime unit is days.RefreshTokenValidityduration can range from 60 minutes to 10 years. - See Also:
TimeUnitsType
-
refreshTokenAsString
public final String refreshTokenAsString()
A time unit of
seconds,minutes,hours, ordaysfor the value that you set in theRefreshTokenValidityparameter. The defaultRefreshTokenValiditytime unit is days.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 of
seconds,minutes,hours, ordaysfor the value that you set in theRefreshTokenValidityparameter. The defaultRefreshTokenValiditytime unit is days.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.
-
-