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

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

There is a newer version: 3.13.0-alpha.1727221178
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 GetAclAuthMethodArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetAclAuthMethodArgs Empty = new GetAclAuthMethodArgs();

    /**
     * The name of the ACL Auth Method.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the ACL Auth Method.
     * 
     */
    public Output name() {
        return this.name;
    }

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

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

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

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

    private GetAclAuthMethodArgs() {}

    private GetAclAuthMethodArgs(GetAclAuthMethodArgs $) {
        this.name = $.name;
        this.namespace = $.namespace;
        this.partition = $.partition;
    }

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

    public static final class Builder {
        private GetAclAuthMethodArgs $;

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

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

        /**
         * @param name The name of the ACL Auth Method.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the ACL Auth Method.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

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

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy