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

com.pulumi.azurenative.insights.outputs.DimensionResponse 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.outputs;

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

@CustomType
public final class DimensionResponse {
    /**
     * @return Name of the dimension
     * 
     */
    private String name;
    /**
     * @return Operator for dimension values
     * 
     */
    private String operator;
    /**
     * @return List of dimension values
     * 
     */
    private List values;

    private DimensionResponse() {}
    /**
     * @return Name of the dimension
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Operator for dimension values
     * 
     */
    public String operator() {
        return this.operator;
    }
    /**
     * @return List of dimension values
     * 
     */
    public List values() {
        return this.values;
    }

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

    public static Builder builder(DimensionResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String name;
        private String operator;
        private List values;
        public Builder() {}
        public Builder(DimensionResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.name = defaults.name;
    	      this.operator = defaults.operator;
    	      this.values = defaults.values;
        }

        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("DimensionResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder operator(String operator) {
            if (operator == null) {
              throw new MissingRequiredPropertyException("DimensionResponse", "operator");
            }
            this.operator = operator;
            return this;
        }
        @CustomType.Setter
        public Builder values(List values) {
            if (values == null) {
              throw new MissingRequiredPropertyException("DimensionResponse", "values");
            }
            this.values = values;
            return this;
        }
        public Builder values(String... values) {
            return values(List.of(values));
        }
        public DimensionResponse build() {
            final var _resultValue = new DimensionResponse();
            _resultValue.name = name;
            _resultValue.operator = operator;
            _resultValue.values = values;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy