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

com.pulumi.alicloud.ess.inputs.ScalingRuleAlarmDimensionArgs Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.ess.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ScalingRuleAlarmDimensionArgs extends com.pulumi.resources.ResourceArgs {

    public static final ScalingRuleAlarmDimensionArgs Empty = new ScalingRuleAlarmDimensionArgs();

    /**
     * The dimension key of the metric.
     * 
     */
    @Import(name="dimensionKey")
    private @Nullable Output dimensionKey;

    /**
     * @return The dimension key of the metric.
     * 
     */
    public Optional> dimensionKey() {
        return Optional.ofNullable(this.dimensionKey);
    }

    /**
     * The dimension value of the metric.
     * 
     */
    @Import(name="dimensionValue")
    private @Nullable Output dimensionValue;

    /**
     * @return The dimension value of the metric.
     * 
     */
    public Optional> dimensionValue() {
        return Optional.ofNullable(this.dimensionValue);
    }

    private ScalingRuleAlarmDimensionArgs() {}

    private ScalingRuleAlarmDimensionArgs(ScalingRuleAlarmDimensionArgs $) {
        this.dimensionKey = $.dimensionKey;
        this.dimensionValue = $.dimensionValue;
    }

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

    public static final class Builder {
        private ScalingRuleAlarmDimensionArgs $;

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

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

        /**
         * @param dimensionKey The dimension key of the metric.
         * 
         * @return builder
         * 
         */
        public Builder dimensionKey(@Nullable Output dimensionKey) {
            $.dimensionKey = dimensionKey;
            return this;
        }

        /**
         * @param dimensionKey The dimension key of the metric.
         * 
         * @return builder
         * 
         */
        public Builder dimensionKey(String dimensionKey) {
            return dimensionKey(Output.of(dimensionKey));
        }

        /**
         * @param dimensionValue The dimension value of the metric.
         * 
         * @return builder
         * 
         */
        public Builder dimensionValue(@Nullable Output dimensionValue) {
            $.dimensionValue = dimensionValue;
            return this;
        }

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

        public ScalingRuleAlarmDimensionArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy