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

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

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


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

    public static final MetricDimensionArgs Empty = new MetricDimensionArgs();

    /**
     * The dimension value.
     * 
     */
    @Import(name="sourceName", required=true)
    private Output sourceName;

    /**
     * @return The dimension value.
     * 
     */
    public Output sourceName() {
        return this.sourceName;
    }

    /**
     * The dimension type.
     * 
     */
    @Import(name="sourceType", required=true)
    private Output sourceType;

    /**
     * @return The dimension type.
     * 
     */
    public Output sourceType() {
        return this.sourceType;
    }

    private MetricDimensionArgs() {}

    private MetricDimensionArgs(MetricDimensionArgs $) {
        this.sourceName = $.sourceName;
        this.sourceType = $.sourceType;
    }

    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 sourceName The dimension value.
         * 
         * @return builder
         * 
         */
        public Builder sourceName(Output sourceName) {
            $.sourceName = sourceName;
            return this;
        }

        /**
         * @param sourceName The dimension value.
         * 
         * @return builder
         * 
         */
        public Builder sourceName(String sourceName) {
            return sourceName(Output.of(sourceName));
        }

        /**
         * @param sourceType The dimension type.
         * 
         * @return builder
         * 
         */
        public Builder sourceType(Output sourceType) {
            $.sourceType = sourceType;
            return this;
        }

        /**
         * @param sourceType The dimension type.
         * 
         * @return builder
         * 
         */
        public Builder sourceType(String sourceType) {
            return sourceType(Output.of(sourceType));
        }

        public MetricDimensionArgs build() {
            if ($.sourceName == null) {
                throw new MissingRequiredPropertyException("MetricDimensionArgs", "sourceName");
            }
            if ($.sourceType == null) {
                throw new MissingRequiredPropertyException("MetricDimensionArgs", "sourceType");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy