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

com.pulumi.azurenative.network.inputs.ApplicationGatewayAutoscaleConfigurationArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.network.inputs;

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


/**
 * Application Gateway autoscale configuration.
 * 
 */
public final class ApplicationGatewayAutoscaleConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApplicationGatewayAutoscaleConfigurationArgs Empty = new ApplicationGatewayAutoscaleConfigurationArgs();

    /**
     * Upper bound on number of Application Gateway capacity.
     * 
     */
    @Import(name="maxCapacity")
    private @Nullable Output maxCapacity;

    /**
     * @return Upper bound on number of Application Gateway capacity.
     * 
     */
    public Optional> maxCapacity() {
        return Optional.ofNullable(this.maxCapacity);
    }

    /**
     * Lower bound on number of Application Gateway capacity.
     * 
     */
    @Import(name="minCapacity", required=true)
    private Output minCapacity;

    /**
     * @return Lower bound on number of Application Gateway capacity.
     * 
     */
    public Output minCapacity() {
        return this.minCapacity;
    }

    private ApplicationGatewayAutoscaleConfigurationArgs() {}

    private ApplicationGatewayAutoscaleConfigurationArgs(ApplicationGatewayAutoscaleConfigurationArgs $) {
        this.maxCapacity = $.maxCapacity;
        this.minCapacity = $.minCapacity;
    }

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

    public static final class Builder {
        private ApplicationGatewayAutoscaleConfigurationArgs $;

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

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

        /**
         * @param maxCapacity Upper bound on number of Application Gateway capacity.
         * 
         * @return builder
         * 
         */
        public Builder maxCapacity(@Nullable Output maxCapacity) {
            $.maxCapacity = maxCapacity;
            return this;
        }

        /**
         * @param maxCapacity Upper bound on number of Application Gateway capacity.
         * 
         * @return builder
         * 
         */
        public Builder maxCapacity(Integer maxCapacity) {
            return maxCapacity(Output.of(maxCapacity));
        }

        /**
         * @param minCapacity Lower bound on number of Application Gateway capacity.
         * 
         * @return builder
         * 
         */
        public Builder minCapacity(Output minCapacity) {
            $.minCapacity = minCapacity;
            return this;
        }

        /**
         * @param minCapacity Lower bound on number of Application Gateway capacity.
         * 
         * @return builder
         * 
         */
        public Builder minCapacity(Integer minCapacity) {
            return minCapacity(Output.of(minCapacity));
        }

        public ApplicationGatewayAutoscaleConfigurationArgs build() {
            if ($.minCapacity == null) {
                throw new MissingRequiredPropertyException("ApplicationGatewayAutoscaleConfigurationArgs", "minCapacity");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy