Class CfnUserPoolClient.TokenValidityUnitsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPoolClient.TokenValidityUnitsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPoolClient.TokenValidityUnitsProperty>
- Enclosing interface:
- CfnUserPoolClient.TokenValidityUnitsProperty
@Stability(Stable)
public static final class CfnUserPoolClient.TokenValidityUnitsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPoolClient.TokenValidityUnitsProperty>
A builder for
CfnUserPoolClient.TokenValidityUnitsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessToken(String accessToken) Sets the value ofCfnUserPoolClient.TokenValidityUnitsProperty.getAccessToken()build()Builds the configured instance.Sets the value ofCfnUserPoolClient.TokenValidityUnitsProperty.getIdToken()refreshToken(String refreshToken) Sets the value ofCfnUserPoolClient.TokenValidityUnitsProperty.getRefreshToken()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessToken
@Stability(Stable) public CfnUserPoolClient.TokenValidityUnitsProperty.Builder accessToken(String accessToken) Sets the value ofCfnUserPoolClient.TokenValidityUnitsProperty.getAccessToken()- Parameters:
accessToken- A time unit ofseconds,minutes,hours, ordaysfor the value that you set in theAccessTokenValidityparameter. The defaultAccessTokenValiditytime unit is hours.AccessTokenValidityduration can range from five minutes to one day.- Returns:
this
-
idToken
@Stability(Stable) public CfnUserPoolClient.TokenValidityUnitsProperty.Builder idToken(String idToken) Sets the value ofCfnUserPoolClient.TokenValidityUnitsProperty.getIdToken()- Parameters:
idToken- A time unit ofseconds,minutes,hours, ordaysfor the value that you set in theIdTokenValidityparameter. The defaultIdTokenValiditytime unit is hours.IdTokenValidityduration can range from five minutes to one day.- Returns:
this
-
refreshToken
@Stability(Stable) public CfnUserPoolClient.TokenValidityUnitsProperty.Builder refreshToken(String refreshToken) Sets the value ofCfnUserPoolClient.TokenValidityUnitsProperty.getRefreshToken()- Parameters:
refreshToken- A time unit ofseconds,minutes,hours, ordaysfor the value that you set in theRefreshTokenValidityparameter. The defaultRefreshTokenValiditytime unit is days.RefreshTokenValidityduration can range from 60 minutes to 10 years.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUserPoolClient.TokenValidityUnitsProperty>- Returns:
- a new instance of
CfnUserPoolClient.TokenValidityUnitsProperty - Throws:
NullPointerException- if any required attribute was not provided
-