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

com.pulumi.consul.inputs.GetAclTokenSecretIdArgs Maven / Gradle / Ivy

There is a newer version: 3.13.0-alpha.1732771629
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.consul.inputs;

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


public final class GetAclTokenSecretIdArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetAclTokenSecretIdArgs Empty = new GetAclTokenSecretIdArgs();

    /**
     * The accessor ID of the ACL token.
     * 
     */
    @Import(name="accessorId", required=true)
    private Output accessorId;

    /**
     * @return The accessor ID of the ACL token.
     * 
     */
    public Output accessorId() {
        return this.accessorId;
    }

    /**
     * The namespace to lookup the token.
     * 
     */
    @Import(name="namespace")
    private @Nullable Output namespace;

    /**
     * @return The namespace to lookup the token.
     * 
     */
    public Optional> namespace() {
        return Optional.ofNullable(this.namespace);
    }

    /**
     * The partition to lookup the token.
     * 
     */
    @Import(name="partition")
    private @Nullable Output partition;

    /**
     * @return The partition to lookup the token.
     * 
     */
    public Optional> partition() {
        return Optional.ofNullable(this.partition);
    }

    @Import(name="pgpKey")
    private @Nullable Output pgpKey;

    public Optional> pgpKey() {
        return Optional.ofNullable(this.pgpKey);
    }

    private GetAclTokenSecretIdArgs() {}

    private GetAclTokenSecretIdArgs(GetAclTokenSecretIdArgs $) {
        this.accessorId = $.accessorId;
        this.namespace = $.namespace;
        this.partition = $.partition;
        this.pgpKey = $.pgpKey;
    }

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

    public static final class Builder {
        private GetAclTokenSecretIdArgs $;

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

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

        /**
         * @param accessorId The accessor ID of the ACL token.
         * 
         * @return builder
         * 
         */
        public Builder accessorId(Output accessorId) {
            $.accessorId = accessorId;
            return this;
        }

        /**
         * @param accessorId The accessor ID of the ACL token.
         * 
         * @return builder
         * 
         */
        public Builder accessorId(String accessorId) {
            return accessorId(Output.of(accessorId));
        }

        /**
         * @param namespace The namespace to lookup the token.
         * 
         * @return builder
         * 
         */
        public Builder namespace(@Nullable Output namespace) {
            $.namespace = namespace;
            return this;
        }

        /**
         * @param namespace The namespace to lookup the token.
         * 
         * @return builder
         * 
         */
        public Builder namespace(String namespace) {
            return namespace(Output.of(namespace));
        }

        /**
         * @param partition The partition to lookup the token.
         * 
         * @return builder
         * 
         */
        public Builder partition(@Nullable Output partition) {
            $.partition = partition;
            return this;
        }

        /**
         * @param partition The partition to lookup the token.
         * 
         * @return builder
         * 
         */
        public Builder partition(String partition) {
            return partition(Output.of(partition));
        }

        public Builder pgpKey(@Nullable Output pgpKey) {
            $.pgpKey = pgpKey;
            return this;
        }

        public Builder pgpKey(String pgpKey) {
            return pgpKey(Output.of(pgpKey));
        }

        public GetAclTokenSecretIdArgs build() {
            if ($.accessorId == null) {
                throw new MissingRequiredPropertyException("GetAclTokenSecretIdArgs", "accessorId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy