All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.storage.v1beta1.inputs.TokenRequestPatchArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0-alpha.1730750641
Show newest version
// *** 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.kubernetes.storage.v1beta1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * TokenRequest contains parameters of a service account token.
 * 
 */
public final class TokenRequestPatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final TokenRequestPatchArgs Empty = new TokenRequestPatchArgs();

    /**
     * Audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver.
     * 
     */
    @Import(name="audience")
    private @Nullable Output audience;

    /**
     * @return Audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver.
     * 
     */
    public Optional> audience() {
        return Optional.ofNullable(this.audience);
    }

    /**
     * ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec"
     * 
     */
    @Import(name="expirationSeconds")
    private @Nullable Output expirationSeconds;

    /**
     * @return ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec"
     * 
     */
    public Optional> expirationSeconds() {
        return Optional.ofNullable(this.expirationSeconds);
    }

    private TokenRequestPatchArgs() {}

    private TokenRequestPatchArgs(TokenRequestPatchArgs $) {
        this.audience = $.audience;
        this.expirationSeconds = $.expirationSeconds;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(TokenRequestPatchArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private TokenRequestPatchArgs $;

        public Builder() {
            $ = new TokenRequestPatchArgs();
        }

        public Builder(TokenRequestPatchArgs defaults) {
            $ = new TokenRequestPatchArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param audience Audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver.
         * 
         * @return builder
         * 
         */
        public Builder audience(@Nullable Output audience) {
            $.audience = audience;
            return this;
        }

        /**
         * @param audience Audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver.
         * 
         * @return builder
         * 
         */
        public Builder audience(String audience) {
            return audience(Output.of(audience));
        }

        /**
         * @param expirationSeconds ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec"
         * 
         * @return builder
         * 
         */
        public Builder expirationSeconds(@Nullable Output expirationSeconds) {
            $.expirationSeconds = expirationSeconds;
            return this;
        }

        /**
         * @param expirationSeconds ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec"
         * 
         * @return builder
         * 
         */
        public Builder expirationSeconds(Integer expirationSeconds) {
            return expirationSeconds(Output.of(expirationSeconds));
        }

        public TokenRequestPatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy