// *** 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.gcp.container.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ClusterAddonsConfigIstioConfig {
    /**
     * @return The authentication type between services in Istio. Available options include `AUTH_MUTUAL_TLS`.
     * 
     */
    private @Nullable String auth;
    /**
     * @return The status of the Istio addon, which makes it easy to set up Istio for services in a
     * cluster. It is disabled by default. Set `disabled = false` to enable.
     * 
     */
    private Boolean disabled;

    private ClusterAddonsConfigIstioConfig() {}
    /**
     * @return The authentication type between services in Istio. Available options include `AUTH_MUTUAL_TLS`.
     * 
     */
    public Optional<String> auth() {
        return Optional.ofNullable(this.auth);
    }
    /**
     * @return The status of the Istio addon, which makes it easy to set up Istio for services in a
     * cluster. It is disabled by default. Set `disabled = false` to enable.
     * 
     */
    public Boolean disabled() {
        return this.disabled;
    }

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

    public static Builder builder(ClusterAddonsConfigIstioConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String auth;
        private Boolean disabled;
        public Builder() {}
        public Builder(ClusterAddonsConfigIstioConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.auth = defaults.auth;
    	      this.disabled = defaults.disabled;
        }

        @CustomType.Setter
        public Builder auth(@Nullable String auth) {
            this.auth = auth;
            return this;
        }
        @CustomType.Setter
        public Builder disabled(Boolean disabled) {
            this.disabled = Objects.requireNonNull(disabled);
            return this;
        }
        public ClusterAddonsConfigIstioConfig build() {
            final var o = new ClusterAddonsConfigIstioConfig();
            o.auth = auth;
            o.disabled = disabled;
            return o;
        }
    }
}
