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

com.pulumi.azurenative.databoxedge.inputs.MetricCounterSetArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** 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.azurenative.databoxedge.inputs;

import com.pulumi.azurenative.databoxedge.inputs.MetricCounterArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;


/**
 * The metric counter set
 * 
 */
public final class MetricCounterSetArgs extends com.pulumi.resources.ResourceArgs {

    public static final MetricCounterSetArgs Empty = new MetricCounterSetArgs();

    /**
     * The counters that should be collected in this set.
     * 
     */
    @Import(name="counters", required=true)
    private Output> counters;

    /**
     * @return The counters that should be collected in this set.
     * 
     */
    public Output> counters() {
        return this.counters;
    }

    private MetricCounterSetArgs() {}

    private MetricCounterSetArgs(MetricCounterSetArgs $) {
        this.counters = $.counters;
    }

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

    public static final class Builder {
        private MetricCounterSetArgs $;

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

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

        /**
         * @param counters The counters that should be collected in this set.
         * 
         * @return builder
         * 
         */
        public Builder counters(Output> counters) {
            $.counters = counters;
            return this;
        }

        /**
         * @param counters The counters that should be collected in this set.
         * 
         * @return builder
         * 
         */
        public Builder counters(List counters) {
            return counters(Output.of(counters));
        }

        /**
         * @param counters The counters that should be collected in this set.
         * 
         * @return builder
         * 
         */
        public Builder counters(MetricCounterArgs... counters) {
            return counters(List.of(counters));
        }

        public MetricCounterSetArgs build() {
            if ($.counters == null) {
                throw new MissingRequiredPropertyException("MetricCounterSetArgs", "counters");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy