// *** 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 com.pulumi.gcp.container.outputs.AttachedClusterMonitoringConfigManagedPrometheusConfig;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AttachedClusterMonitoringConfig {
    /**
     * @return Enable Google Cloud Managed Service for Prometheus in the cluster.
     * Structure is documented below.
     * 
     */
    private @Nullable AttachedClusterMonitoringConfigManagedPrometheusConfig managedPrometheusConfig;

    private AttachedClusterMonitoringConfig() {}
    /**
     * @return Enable Google Cloud Managed Service for Prometheus in the cluster.
     * Structure is documented below.
     * 
     */
    public Optional<AttachedClusterMonitoringConfigManagedPrometheusConfig> managedPrometheusConfig() {
        return Optional.ofNullable(this.managedPrometheusConfig);
    }

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

    public static Builder builder(AttachedClusterMonitoringConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable AttachedClusterMonitoringConfigManagedPrometheusConfig managedPrometheusConfig;
        public Builder() {}
        public Builder(AttachedClusterMonitoringConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.managedPrometheusConfig = defaults.managedPrometheusConfig;
        }

        @CustomType.Setter
        public Builder managedPrometheusConfig(@Nullable AttachedClusterMonitoringConfigManagedPrometheusConfig managedPrometheusConfig) {
            this.managedPrometheusConfig = managedPrometheusConfig;
            return this;
        }
        public AttachedClusterMonitoringConfig build() {
            final var o = new AttachedClusterMonitoringConfig();
            o.managedPrometheusConfig = managedPrometheusConfig;
            return o;
        }
    }
}
