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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.gcp.dataproc.outputs.ClusterClusterConfigDataprocMetricConfigMetric;
import java.util.List;
import java.util.Objects;

@CustomType
public final class ClusterClusterConfigDataprocMetricConfig {
    /**
     * @return Metrics sources to enable.
     * 
     */
    private List<ClusterClusterConfigDataprocMetricConfigMetric> metrics;

    private ClusterClusterConfigDataprocMetricConfig() {}
    /**
     * @return Metrics sources to enable.
     * 
     */
    public List<ClusterClusterConfigDataprocMetricConfigMetric> metrics() {
        return this.metrics;
    }

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

    public static Builder builder(ClusterClusterConfigDataprocMetricConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<ClusterClusterConfigDataprocMetricConfigMetric> metrics;
        public Builder() {}
        public Builder(ClusterClusterConfigDataprocMetricConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.metrics = defaults.metrics;
        }

        @CustomType.Setter
        public Builder metrics(List<ClusterClusterConfigDataprocMetricConfigMetric> metrics) {
            this.metrics = Objects.requireNonNull(metrics);
            return this;
        }
        public Builder metrics(ClusterClusterConfigDataprocMetricConfigMetric... metrics) {
            return metrics(List.of(metrics));
        }
        public ClusterClusterConfigDataprocMetricConfig build() {
            final var o = new ClusterClusterConfigDataprocMetricConfig();
            o.metrics = metrics;
            return o;
        }
    }
}
