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

com.pulumi.azurenative.web.inputs.SkuCapacityArgs 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.web.inputs;

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


/**
 * Description of the App Service plan scale options.
 * 
 */
public final class SkuCapacityArgs extends com.pulumi.resources.ResourceArgs {

    public static final SkuCapacityArgs Empty = new SkuCapacityArgs();

    /**
     * Default number of workers for this App Service plan SKU.
     * 
     */
    @Import(name="default")
    private @Nullable Output default_;

    /**
     * @return Default number of workers for this App Service plan SKU.
     * 
     */
    public Optional> default_() {
        return Optional.ofNullable(this.default_);
    }

    /**
     * Maximum number of Elastic workers for this App Service plan SKU.
     * 
     */
    @Import(name="elasticMaximum")
    private @Nullable Output elasticMaximum;

    /**
     * @return Maximum number of Elastic workers for this App Service plan SKU.
     * 
     */
    public Optional> elasticMaximum() {
        return Optional.ofNullable(this.elasticMaximum);
    }

    /**
     * Maximum number of workers for this App Service plan SKU.
     * 
     */
    @Import(name="maximum")
    private @Nullable Output maximum;

    /**
     * @return Maximum number of workers for this App Service plan SKU.
     * 
     */
    public Optional> maximum() {
        return Optional.ofNullable(this.maximum);
    }

    /**
     * Minimum number of workers for this App Service plan SKU.
     * 
     */
    @Import(name="minimum")
    private @Nullable Output minimum;

    /**
     * @return Minimum number of workers for this App Service plan SKU.
     * 
     */
    public Optional> minimum() {
        return Optional.ofNullable(this.minimum);
    }

    /**
     * Available scale configurations for an App Service plan.
     * 
     */
    @Import(name="scaleType")
    private @Nullable Output scaleType;

    /**
     * @return Available scale configurations for an App Service plan.
     * 
     */
    public Optional> scaleType() {
        return Optional.ofNullable(this.scaleType);
    }

    private SkuCapacityArgs() {}

    private SkuCapacityArgs(SkuCapacityArgs $) {
        this.default_ = $.default_;
        this.elasticMaximum = $.elasticMaximum;
        this.maximum = $.maximum;
        this.minimum = $.minimum;
        this.scaleType = $.scaleType;
    }

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

    public static final class Builder {
        private SkuCapacityArgs $;

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

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

        /**
         * @param default_ Default number of workers for this App Service plan SKU.
         * 
         * @return builder
         * 
         */
        public Builder default_(@Nullable Output default_) {
            $.default_ = default_;
            return this;
        }

        /**
         * @param default_ Default number of workers for this App Service plan SKU.
         * 
         * @return builder
         * 
         */
        public Builder default_(Integer default_) {
            return default_(Output.of(default_));
        }

        /**
         * @param elasticMaximum Maximum number of Elastic workers for this App Service plan SKU.
         * 
         * @return builder
         * 
         */
        public Builder elasticMaximum(@Nullable Output elasticMaximum) {
            $.elasticMaximum = elasticMaximum;
            return this;
        }

        /**
         * @param elasticMaximum Maximum number of Elastic workers for this App Service plan SKU.
         * 
         * @return builder
         * 
         */
        public Builder elasticMaximum(Integer elasticMaximum) {
            return elasticMaximum(Output.of(elasticMaximum));
        }

        /**
         * @param maximum Maximum number of workers for this App Service plan SKU.
         * 
         * @return builder
         * 
         */
        public Builder maximum(@Nullable Output maximum) {
            $.maximum = maximum;
            return this;
        }

        /**
         * @param maximum Maximum number of workers for this App Service plan SKU.
         * 
         * @return builder
         * 
         */
        public Builder maximum(Integer maximum) {
            return maximum(Output.of(maximum));
        }

        /**
         * @param minimum Minimum number of workers for this App Service plan SKU.
         * 
         * @return builder
         * 
         */
        public Builder minimum(@Nullable Output minimum) {
            $.minimum = minimum;
            return this;
        }

        /**
         * @param minimum Minimum number of workers for this App Service plan SKU.
         * 
         * @return builder
         * 
         */
        public Builder minimum(Integer minimum) {
            return minimum(Output.of(minimum));
        }

        /**
         * @param scaleType Available scale configurations for an App Service plan.
         * 
         * @return builder
         * 
         */
        public Builder scaleType(@Nullable Output scaleType) {
            $.scaleType = scaleType;
            return this;
        }

        /**
         * @param scaleType Available scale configurations for an App Service plan.
         * 
         * @return builder
         * 
         */
        public Builder scaleType(String scaleType) {
            return scaleType(Output.of(scaleType));
        }

        public SkuCapacityArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy