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

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


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

    public static final ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgs Empty = new ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgs();

    @Import(name="enableMetrics", required=true)
    private Output<Boolean> enableMetrics;

    public Output<Boolean> enableMetrics() {
        return this.enableMetrics;
    }

    /**
     * Mode used to make Relay available.
     * 
     */
    @Import(name="relayMode")
    private @Nullable Output<String> relayMode;

    /**
     * @return Mode used to make Relay available.
     * 
     */
    public Optional<Output<String>> relayMode() {
        return Optional.ofNullable(this.relayMode);
    }

    private ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgs() {}

    private ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgs(ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgs $) {
        this.enableMetrics = $.enableMetrics;
        this.relayMode = $.relayMode;
    }

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

    public static final class Builder {
        private ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgs $;

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

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

        public Builder enableMetrics(Output<Boolean> enableMetrics) {
            $.enableMetrics = enableMetrics;
            return this;
        }

        public Builder enableMetrics(Boolean enableMetrics) {
            return enableMetrics(Output.of(enableMetrics));
        }

        /**
         * @param relayMode Mode used to make Relay available.
         * 
         * @return builder
         * 
         */
        public Builder relayMode(@Nullable Output<String> relayMode) {
            $.relayMode = relayMode;
            return this;
        }

        /**
         * @param relayMode Mode used to make Relay available.
         * 
         * @return builder
         * 
         */
        public Builder relayMode(String relayMode) {
            return relayMode(Output.of(relayMode));
        }

        public ClusterMonitoringConfigAdvancedDatapathObservabilityConfigArgs build() {
            $.enableMetrics = Objects.requireNonNull($.enableMetrics, "expected parameter 'enableMetrics' to be non-null");
            return $;
        }
    }

}
