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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigDataprocMetricConfigMetricArgs;
import java.util.List;
import java.util.Objects;


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

    public static final ClusterClusterConfigDataprocMetricConfigArgs Empty = new ClusterClusterConfigDataprocMetricConfigArgs();

    /**
     * Metrics sources to enable.
     * 
     */
    @Import(name="metrics", required=true)
    private Output<List<ClusterClusterConfigDataprocMetricConfigMetricArgs>> metrics;

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

    private ClusterClusterConfigDataprocMetricConfigArgs() {}

    private ClusterClusterConfigDataprocMetricConfigArgs(ClusterClusterConfigDataprocMetricConfigArgs $) {
        this.metrics = $.metrics;
    }

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

    public static final class Builder {
        private ClusterClusterConfigDataprocMetricConfigArgs $;

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

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

        /**
         * @param metrics Metrics sources to enable.
         * 
         * @return builder
         * 
         */
        public Builder metrics(Output<List<ClusterClusterConfigDataprocMetricConfigMetricArgs>> metrics) {
            $.metrics = metrics;
            return this;
        }

        /**
         * @param metrics Metrics sources to enable.
         * 
         * @return builder
         * 
         */
        public Builder metrics(List<ClusterClusterConfigDataprocMetricConfigMetricArgs> metrics) {
            return metrics(Output.of(metrics));
        }

        /**
         * @param metrics Metrics sources to enable.
         * 
         * @return builder
         * 
         */
        public Builder metrics(ClusterClusterConfigDataprocMetricConfigMetricArgs... metrics) {
            return metrics(List.of(metrics));
        }

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

}
