
com.pulumi.aws.cognito.outputs.ManagedUserPoolClientTokenValidityUnits Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.cognito.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ManagedUserPoolClientTokenValidityUnits {
/**
* @return Time unit for the value in `access_token_validity` and defaults to `hours`.
*
*/
private @Nullable String accessToken;
/**
* @return Time unit for the value in `id_token_validity`, and it defaults to `hours`.
*
*/
private @Nullable String idToken;
/**
* @return Time unit for the value in `refresh_token_validity` and defaults to `days`.
*
*/
private @Nullable String refreshToken;
private ManagedUserPoolClientTokenValidityUnits() {}
/**
* @return Time unit for the value in `access_token_validity` and defaults to `hours`.
*
*/
public Optional accessToken() {
return Optional.ofNullable(this.accessToken);
}
/**
* @return Time unit for the value in `id_token_validity`, and it defaults to `hours`.
*
*/
public Optional idToken() {
return Optional.ofNullable(this.idToken);
}
/**
* @return Time unit for the value in `refresh_token_validity` and defaults to `days`.
*
*/
public Optional refreshToken() {
return Optional.ofNullable(this.refreshToken);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ManagedUserPoolClientTokenValidityUnits defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String accessToken;
private @Nullable String idToken;
private @Nullable String refreshToken;
public Builder() {}
public Builder(ManagedUserPoolClientTokenValidityUnits defaults) {
Objects.requireNonNull(defaults);
this.accessToken = defaults.accessToken;
this.idToken = defaults.idToken;
this.refreshToken = defaults.refreshToken;
}
@CustomType.Setter
public Builder accessToken(@Nullable String accessToken) {
this.accessToken = accessToken;
return this;
}
@CustomType.Setter
public Builder idToken(@Nullable String idToken) {
this.idToken = idToken;
return this;
}
@CustomType.Setter
public Builder refreshToken(@Nullable String refreshToken) {
this.refreshToken = refreshToken;
return this;
}
public ManagedUserPoolClientTokenValidityUnits build() {
final var _resultValue = new ManagedUserPoolClientTokenValidityUnits();
_resultValue.accessToken = accessToken;
_resultValue.idToken = idToken;
_resultValue.refreshToken = refreshToken;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy