com.pulumi.aws.cognito.outputs.GetUserPoolClientTokenValidityUnit 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 com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetUserPoolClientTokenValidityUnit {
/**
* @return (Optional) Time unit in for the value in `access_token_validity`, defaults to `hours`.
*
*/
private String accessToken;
/**
* @return (Optional) Time unit in for the value in `id_token_validity`, defaults to `hours`.
*
*/
private String idToken;
/**
* @return (Optional) Time unit in for the value in `refresh_token_validity`, defaults to `days`.
*
*/
private String refreshToken;
private GetUserPoolClientTokenValidityUnit() {}
/**
* @return (Optional) Time unit in for the value in `access_token_validity`, defaults to `hours`.
*
*/
public String accessToken() {
return this.accessToken;
}
/**
* @return (Optional) Time unit in for the value in `id_token_validity`, defaults to `hours`.
*
*/
public String idToken() {
return this.idToken;
}
/**
* @return (Optional) Time unit in for the value in `refresh_token_validity`, defaults to `days`.
*
*/
public String refreshToken() {
return this.refreshToken;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetUserPoolClientTokenValidityUnit defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String accessToken;
private String idToken;
private String refreshToken;
public Builder() {}
public Builder(GetUserPoolClientTokenValidityUnit defaults) {
Objects.requireNonNull(defaults);
this.accessToken = defaults.accessToken;
this.idToken = defaults.idToken;
this.refreshToken = defaults.refreshToken;
}
@CustomType.Setter
public Builder accessToken(String accessToken) {
if (accessToken == null) {
throw new MissingRequiredPropertyException("GetUserPoolClientTokenValidityUnit", "accessToken");
}
this.accessToken = accessToken;
return this;
}
@CustomType.Setter
public Builder idToken(String idToken) {
if (idToken == null) {
throw new MissingRequiredPropertyException("GetUserPoolClientTokenValidityUnit", "idToken");
}
this.idToken = idToken;
return this;
}
@CustomType.Setter
public Builder refreshToken(String refreshToken) {
if (refreshToken == null) {
throw new MissingRequiredPropertyException("GetUserPoolClientTokenValidityUnit", "refreshToken");
}
this.refreshToken = refreshToken;
return this;
}
public GetUserPoolClientTokenValidityUnit build() {
final var _resultValue = new GetUserPoolClientTokenValidityUnit();
_resultValue.accessToken = accessToken;
_resultValue.idToken = idToken;
_resultValue.refreshToken = refreshToken;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy