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
-
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 for the value that you set in theAccessTokenValidity
parameter. The defaultAccessTokenValidity
time unit ishours
.AccessTokenValidity
duration 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 for the value that you set in theIdTokenValidity
parameter. The defaultIdTokenValidity
time unit ishours
.IdTokenValidity
duration 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 for the value that you set in theRefreshTokenValidity
parameter. The defaultRefreshTokenValidity
time unit isdays
.RefreshTokenValidity
duration can range from 60 minutes to 10 years.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUserPoolClient.TokenValidityUnitsProperty>
- Returns:
- a new instance of
CfnUserPoolClient.TokenValidityUnitsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-