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

com.pulumi.azurenative.insights.inputs.ScaleCapacityArgs 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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


/**
 * The number of instances that can be used during this profile.
 * 
 */
public final class ScaleCapacityArgs extends com.pulumi.resources.ResourceArgs {

    public static final ScaleCapacityArgs Empty = new ScaleCapacityArgs();

    /**
     * the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default.
     * 
     */
    @Import(name="default", required=true)
    private Output default_;

    /**
     * @return the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default.
     * 
     */
    public Output default_() {
        return this.default_;
    }

    /**
     * the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription.
     * 
     */
    @Import(name="maximum", required=true)
    private Output maximum;

    /**
     * @return the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription.
     * 
     */
    public Output maximum() {
        return this.maximum;
    }

    /**
     * the minimum number of instances for the resource.
     * 
     */
    @Import(name="minimum", required=true)
    private Output minimum;

    /**
     * @return the minimum number of instances for the resource.
     * 
     */
    public Output minimum() {
        return this.minimum;
    }

    private ScaleCapacityArgs() {}

    private ScaleCapacityArgs(ScaleCapacityArgs $) {
        this.default_ = $.default_;
        this.maximum = $.maximum;
        this.minimum = $.minimum;
    }

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

    public static final class Builder {
        private ScaleCapacityArgs $;

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

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

        /**
         * @param default_ the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default.
         * 
         * @return builder
         * 
         */
        public Builder default_(Output default_) {
            $.default_ = default_;
            return this;
        }

        /**
         * @param default_ the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default.
         * 
         * @return builder
         * 
         */
        public Builder default_(String default_) {
            return default_(Output.of(default_));
        }

        /**
         * @param maximum the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription.
         * 
         * @return builder
         * 
         */
        public Builder maximum(Output maximum) {
            $.maximum = maximum;
            return this;
        }

        /**
         * @param maximum the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription.
         * 
         * @return builder
         * 
         */
        public Builder maximum(String maximum) {
            return maximum(Output.of(maximum));
        }

        /**
         * @param minimum the minimum number of instances for the resource.
         * 
         * @return builder
         * 
         */
        public Builder minimum(Output minimum) {
            $.minimum = minimum;
            return this;
        }

        /**
         * @param minimum the minimum number of instances for the resource.
         * 
         * @return builder
         * 
         */
        public Builder minimum(String minimum) {
            return minimum(Output.of(minimum));
        }

        public ScaleCapacityArgs build() {
            if ($.default_ == null) {
                throw new MissingRequiredPropertyException("ScaleCapacityArgs", "default_");
            }
            if ($.maximum == null) {
                throw new MissingRequiredPropertyException("ScaleCapacityArgs", "maximum");
            }
            if ($.minimum == null) {
                throw new MissingRequiredPropertyException("ScaleCapacityArgs", "minimum");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy