// *** 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.msk.inputs;

import com.pulumi.aws.msk.inputs.ClusterClientAuthenticationSaslArgs;
import com.pulumi.aws.msk.inputs.ClusterClientAuthenticationTlsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ClusterClientAuthenticationArgs extends com.pulumi.resources.ResourceArgs {

    public static final ClusterClientAuthenticationArgs Empty = new ClusterClientAuthenticationArgs();

    /**
     * Configuration block for specifying SASL client authentication. See below.
     * 
     */
    @Import(name="sasl")
    private @Nullable Output<ClusterClientAuthenticationSaslArgs> sasl;

    /**
     * @return Configuration block for specifying SASL client authentication. See below.
     * 
     */
    public Optional<Output<ClusterClientAuthenticationSaslArgs>> sasl() {
        return Optional.ofNullable(this.sasl);
    }

    /**
     * Configuration block for specifying TLS client authentication. See below.
     * 
     */
    @Import(name="tls")
    private @Nullable Output<ClusterClientAuthenticationTlsArgs> tls;

    /**
     * @return Configuration block for specifying TLS client authentication. See below.
     * 
     */
    public Optional<Output<ClusterClientAuthenticationTlsArgs>> tls() {
        return Optional.ofNullable(this.tls);
    }

    /**
     * Enables unauthenticated access.
     * 
     */
    @Import(name="unauthenticated")
    private @Nullable Output<Boolean> unauthenticated;

    /**
     * @return Enables unauthenticated access.
     * 
     */
    public Optional<Output<Boolean>> unauthenticated() {
        return Optional.ofNullable(this.unauthenticated);
    }

    private ClusterClientAuthenticationArgs() {}

    private ClusterClientAuthenticationArgs(ClusterClientAuthenticationArgs $) {
        this.sasl = $.sasl;
        this.tls = $.tls;
        this.unauthenticated = $.unauthenticated;
    }

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

    public static final class Builder {
        private ClusterClientAuthenticationArgs $;

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

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

        /**
         * @param sasl Configuration block for specifying SASL client authentication. See below.
         * 
         * @return builder
         * 
         */
        public Builder sasl(@Nullable Output<ClusterClientAuthenticationSaslArgs> sasl) {
            $.sasl = sasl;
            return this;
        }

        /**
         * @param sasl Configuration block for specifying SASL client authentication. See below.
         * 
         * @return builder
         * 
         */
        public Builder sasl(ClusterClientAuthenticationSaslArgs sasl) {
            return sasl(Output.of(sasl));
        }

        /**
         * @param tls Configuration block for specifying TLS client authentication. See below.
         * 
         * @return builder
         * 
         */
        public Builder tls(@Nullable Output<ClusterClientAuthenticationTlsArgs> tls) {
            $.tls = tls;
            return this;
        }

        /**
         * @param tls Configuration block for specifying TLS client authentication. See below.
         * 
         * @return builder
         * 
         */
        public Builder tls(ClusterClientAuthenticationTlsArgs tls) {
            return tls(Output.of(tls));
        }

        /**
         * @param unauthenticated Enables unauthenticated access.
         * 
         * @return builder
         * 
         */
        public Builder unauthenticated(@Nullable Output<Boolean> unauthenticated) {
            $.unauthenticated = unauthenticated;
            return this;
        }

        /**
         * @param unauthenticated Enables unauthenticated access.
         * 
         * @return builder
         * 
         */
        public Builder unauthenticated(Boolean unauthenticated) {
            return unauthenticated(Output.of(unauthenticated));
        }

        public ClusterClientAuthenticationArgs build() {
            return $;
        }
    }

}
