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

com.pulumi.azurenative.insights.inputs.MetricDimensionArgs 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.insights.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;


/**
 * Specifies a metric dimension.
 * 
 */
public final class MetricDimensionArgs extends com.pulumi.resources.ResourceArgs {

    public static final MetricDimensionArgs Empty = new MetricDimensionArgs();

    /**
     * Name of the dimension.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Name of the dimension.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * the dimension operator. Only 'Include' and 'Exclude' are supported
     * 
     */
    @Import(name="operator", required=true)
    private Output operator;

    /**
     * @return the dimension operator. Only 'Include' and 'Exclude' are supported
     * 
     */
    public Output operator() {
        return this.operator;
    }

    /**
     * list of dimension values.
     * 
     */
    @Import(name="values", required=true)
    private Output> values;

    /**
     * @return list of dimension values.
     * 
     */
    public Output> values() {
        return this.values;
    }

    private MetricDimensionArgs() {}

    private MetricDimensionArgs(MetricDimensionArgs $) {
        this.name = $.name;
        this.operator = $.operator;
        this.values = $.values;
    }

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

    public static final class Builder {
        private MetricDimensionArgs $;

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

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

        /**
         * @param name Name of the dimension.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the dimension.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param operator the dimension operator. Only 'Include' and 'Exclude' are supported
         * 
         * @return builder
         * 
         */
        public Builder operator(Output operator) {
            $.operator = operator;
            return this;
        }

        /**
         * @param operator the dimension operator. Only 'Include' and 'Exclude' are supported
         * 
         * @return builder
         * 
         */
        public Builder operator(String operator) {
            return operator(Output.of(operator));
        }

        /**
         * @param values list of dimension values.
         * 
         * @return builder
         * 
         */
        public Builder values(Output> values) {
            $.values = values;
            return this;
        }

        /**
         * @param values list of dimension values.
         * 
         * @return builder
         * 
         */
        public Builder values(List values) {
            return values(Output.of(values));
        }

        /**
         * @param values list of dimension values.
         * 
         * @return builder
         * 
         */
        public Builder values(String... values) {
            return values(List.of(values));
        }

        public MetricDimensionArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("MetricDimensionArgs", "name");
            }
            if ($.operator == null) {
                throw new MissingRequiredPropertyException("MetricDimensionArgs", "operator");
            }
            if ($.values == null) {
                throw new MissingRequiredPropertyException("MetricDimensionArgs", "values");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy