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

com.pulumi.aws.msk.outputs.ClusterClientAuthentication Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.msk.outputs;

import com.pulumi.aws.msk.outputs.ClusterClientAuthenticationSasl;
import com.pulumi.aws.msk.outputs.ClusterClientAuthenticationTls;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ClusterClientAuthentication {
    /**
     * @return Configuration block for specifying SASL client authentication. See below.
     * 
     */
    private @Nullable ClusterClientAuthenticationSasl sasl;
    /**
     * @return Configuration block for specifying TLS client authentication. See below.
     * 
     */
    private @Nullable ClusterClientAuthenticationTls tls;
    /**
     * @return Enables unauthenticated access.
     * 
     */
    private @Nullable Boolean unauthenticated;

    private ClusterClientAuthentication() {}
    /**
     * @return Configuration block for specifying SASL client authentication. See below.
     * 
     */
    public Optional sasl() {
        return Optional.ofNullable(this.sasl);
    }
    /**
     * @return Configuration block for specifying TLS client authentication. See below.
     * 
     */
    public Optional tls() {
        return Optional.ofNullable(this.tls);
    }
    /**
     * @return Enables unauthenticated access.
     * 
     */
    public Optional unauthenticated() {
        return Optional.ofNullable(this.unauthenticated);
    }

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

    public static Builder builder(ClusterClientAuthentication defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable ClusterClientAuthenticationSasl sasl;
        private @Nullable ClusterClientAuthenticationTls tls;
        private @Nullable Boolean unauthenticated;
        public Builder() {}
        public Builder(ClusterClientAuthentication defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.sasl = defaults.sasl;
    	      this.tls = defaults.tls;
    	      this.unauthenticated = defaults.unauthenticated;
        }

        @CustomType.Setter
        public Builder sasl(@Nullable ClusterClientAuthenticationSasl sasl) {

            this.sasl = sasl;
            return this;
        }
        @CustomType.Setter
        public Builder tls(@Nullable ClusterClientAuthenticationTls tls) {

            this.tls = tls;
            return this;
        }
        @CustomType.Setter
        public Builder unauthenticated(@Nullable Boolean unauthenticated) {

            this.unauthenticated = unauthenticated;
            return this;
        }
        public ClusterClientAuthentication build() {
            final var _resultValue = new ClusterClientAuthentication();
            _resultValue.sasl = sasl;
            _resultValue.tls = tls;
            _resultValue.unauthenticated = unauthenticated;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy