All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.googlenative.dataproc.v1.outputs.DataprocMetricConfigResponse Maven / Gradle / Ivy

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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.googlenative.dataproc.v1.outputs.MetricResponse;
import java.util.List;
import java.util.Objects;

@CustomType
public final class DataprocMetricConfigResponse {
    /**
     * @return Metrics sources to enable.
     * 
     */
    private List metrics;

    private DataprocMetricConfigResponse() {}
    /**
     * @return Metrics sources to enable.
     * 
     */
    public List metrics() {
        return this.metrics;
    }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy