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

com.pulumi.azurenative.insights.inputs.DimensionArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.azurenative.insights.enums.DimensionOperator;
import com.pulumi.core.Either;
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;


/**
 * Dimension splitting and filtering definition
 * 
 */
public final class DimensionArgs extends com.pulumi.resources.ResourceArgs {

    public static final DimensionArgs Empty = new DimensionArgs();

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

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

    /**
     * Operator for dimension values
     * 
     */
    @Import(name="operator", required=true)
    private Output> operator;

    /**
     * @return Operator for dimension values
     * 
     */
    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 DimensionArgs() {}

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

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

    public static final class Builder {
        private DimensionArgs $;

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

        public Builder(DimensionArgs defaults) {
            $ = new DimensionArgs(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 Operator for dimension values
         * 
         * @return builder
         * 
         */
        public Builder operator(Output> operator) {
            $.operator = operator;
            return this;
        }

        /**
         * @param operator Operator for dimension values
         * 
         * @return builder
         * 
         */
        public Builder operator(Either operator) {
            return operator(Output.of(operator));
        }

        /**
         * @param operator Operator for dimension values
         * 
         * @return builder
         * 
         */
        public Builder operator(String operator) {
            return operator(Either.ofLeft(operator));
        }

        /**
         * @param operator Operator for dimension values
         * 
         * @return builder
         * 
         */
        public Builder operator(DimensionOperator operator) {
            return operator(Either.ofRight(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 DimensionArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("DimensionArgs", "name");
            }
            if ($.operator == null) {
                throw new MissingRequiredPropertyException("DimensionArgs", "operator");
            }
            if ($.values == null) {
                throw new MissingRequiredPropertyException("DimensionArgs", "values");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy