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

com.pulumi.azurenative.standbypool.inputs.StandbyContainerGroupPoolElasticityProfileArgs Maven / Gradle / Ivy

The 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.standbypool.inputs;

import com.pulumi.azurenative.standbypool.enums.RefillPolicy;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Specifies the elasticity profile of the standby container group pools.
 * 
 */
public final class StandbyContainerGroupPoolElasticityProfileArgs extends com.pulumi.resources.ResourceArgs {

    public static final StandbyContainerGroupPoolElasticityProfileArgs Empty = new StandbyContainerGroupPoolElasticityProfileArgs();

    /**
     * Specifies maximum number of standby container groups in the standby pool.
     * 
     */
    @Import(name="maxReadyCapacity", required=true)
    private Output maxReadyCapacity;

    /**
     * @return Specifies maximum number of standby container groups in the standby pool.
     * 
     */
    public Output maxReadyCapacity() {
        return this.maxReadyCapacity;
    }

    /**
     * Specifies refill policy of the pool.
     * 
     */
    @Import(name="refillPolicy")
    private @Nullable Output> refillPolicy;

    /**
     * @return Specifies refill policy of the pool.
     * 
     */
    public Optional>> refillPolicy() {
        return Optional.ofNullable(this.refillPolicy);
    }

    private StandbyContainerGroupPoolElasticityProfileArgs() {}

    private StandbyContainerGroupPoolElasticityProfileArgs(StandbyContainerGroupPoolElasticityProfileArgs $) {
        this.maxReadyCapacity = $.maxReadyCapacity;
        this.refillPolicy = $.refillPolicy;
    }

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

    public static final class Builder {
        private StandbyContainerGroupPoolElasticityProfileArgs $;

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

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

        /**
         * @param maxReadyCapacity Specifies maximum number of standby container groups in the standby pool.
         * 
         * @return builder
         * 
         */
        public Builder maxReadyCapacity(Output maxReadyCapacity) {
            $.maxReadyCapacity = maxReadyCapacity;
            return this;
        }

        /**
         * @param maxReadyCapacity Specifies maximum number of standby container groups in the standby pool.
         * 
         * @return builder
         * 
         */
        public Builder maxReadyCapacity(Double maxReadyCapacity) {
            return maxReadyCapacity(Output.of(maxReadyCapacity));
        }

        /**
         * @param refillPolicy Specifies refill policy of the pool.
         * 
         * @return builder
         * 
         */
        public Builder refillPolicy(@Nullable Output> refillPolicy) {
            $.refillPolicy = refillPolicy;
            return this;
        }

        /**
         * @param refillPolicy Specifies refill policy of the pool.
         * 
         * @return builder
         * 
         */
        public Builder refillPolicy(Either refillPolicy) {
            return refillPolicy(Output.of(refillPolicy));
        }

        /**
         * @param refillPolicy Specifies refill policy of the pool.
         * 
         * @return builder
         * 
         */
        public Builder refillPolicy(String refillPolicy) {
            return refillPolicy(Either.ofLeft(refillPolicy));
        }

        /**
         * @param refillPolicy Specifies refill policy of the pool.
         * 
         * @return builder
         * 
         */
        public Builder refillPolicy(RefillPolicy refillPolicy) {
            return refillPolicy(Either.ofRight(refillPolicy));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy