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

com.pulumi.linode.inputs.LkeNodePoolAutoscalerArgs Maven / Gradle / Ivy

There is a newer version: 4.31.0-alpha.1732773076
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.linode.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;


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

    public static final LkeNodePoolAutoscalerArgs Empty = new LkeNodePoolAutoscalerArgs();

    /**
     * The maximum number of nodes to autoscale to.
     * 
     */
    @Import(name="max", required=true)
    private Output max;

    /**
     * @return The maximum number of nodes to autoscale to.
     * 
     */
    public Output max() {
        return this.max;
    }

    /**
     * The minimum number of nodes to autoscale to.
     * 
     */
    @Import(name="min", required=true)
    private Output min;

    /**
     * @return The minimum number of nodes to autoscale to.
     * 
     */
    public Output min() {
        return this.min;
    }

    private LkeNodePoolAutoscalerArgs() {}

    private LkeNodePoolAutoscalerArgs(LkeNodePoolAutoscalerArgs $) {
        this.max = $.max;
        this.min = $.min;
    }

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

    public static final class Builder {
        private LkeNodePoolAutoscalerArgs $;

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

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

        /**
         * @param max The maximum number of nodes to autoscale to.
         * 
         * @return builder
         * 
         */
        public Builder max(Output max) {
            $.max = max;
            return this;
        }

        /**
         * @param max The maximum number of nodes to autoscale to.
         * 
         * @return builder
         * 
         */
        public Builder max(Integer max) {
            return max(Output.of(max));
        }

        /**
         * @param min The minimum number of nodes to autoscale to.
         * 
         * @return builder
         * 
         */
        public Builder min(Output min) {
            $.min = min;
            return this;
        }

        /**
         * @param min The minimum number of nodes to autoscale to.
         * 
         * @return builder
         * 
         */
        public Builder min(Integer min) {
            return min(Output.of(min));
        }

        public LkeNodePoolAutoscalerArgs build() {
            if ($.max == null) {
                throw new MissingRequiredPropertyException("LkeNodePoolAutoscalerArgs", "max");
            }
            if ($.min == null) {
                throw new MissingRequiredPropertyException("LkeNodePoolAutoscalerArgs", "min");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy