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

com.pulumi.aws.eks.inputs.NodeGroupScalingConfigArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.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.aws.eks.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 NodeGroupScalingConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final NodeGroupScalingConfigArgs Empty = new NodeGroupScalingConfigArgs();

    /**
     * Desired number of worker nodes.
     * 
     */
    @Import(name="desiredSize", required=true)
    private Output desiredSize;

    /**
     * @return Desired number of worker nodes.
     * 
     */
    public Output desiredSize() {
        return this.desiredSize;
    }

    /**
     * Maximum number of worker nodes.
     * 
     */
    @Import(name="maxSize", required=true)
    private Output maxSize;

    /**
     * @return Maximum number of worker nodes.
     * 
     */
    public Output maxSize() {
        return this.maxSize;
    }

    /**
     * Minimum number of worker nodes.
     * 
     */
    @Import(name="minSize", required=true)
    private Output minSize;

    /**
     * @return Minimum number of worker nodes.
     * 
     */
    public Output minSize() {
        return this.minSize;
    }

    private NodeGroupScalingConfigArgs() {}

    private NodeGroupScalingConfigArgs(NodeGroupScalingConfigArgs $) {
        this.desiredSize = $.desiredSize;
        this.maxSize = $.maxSize;
        this.minSize = $.minSize;
    }

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

    public static final class Builder {
        private NodeGroupScalingConfigArgs $;

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

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

        /**
         * @param desiredSize Desired number of worker nodes.
         * 
         * @return builder
         * 
         */
        public Builder desiredSize(Output desiredSize) {
            $.desiredSize = desiredSize;
            return this;
        }

        /**
         * @param desiredSize Desired number of worker nodes.
         * 
         * @return builder
         * 
         */
        public Builder desiredSize(Integer desiredSize) {
            return desiredSize(Output.of(desiredSize));
        }

        /**
         * @param maxSize Maximum number of worker nodes.
         * 
         * @return builder
         * 
         */
        public Builder maxSize(Output maxSize) {
            $.maxSize = maxSize;
            return this;
        }

        /**
         * @param maxSize Maximum number of worker nodes.
         * 
         * @return builder
         * 
         */
        public Builder maxSize(Integer maxSize) {
            return maxSize(Output.of(maxSize));
        }

        /**
         * @param minSize Minimum number of worker nodes.
         * 
         * @return builder
         * 
         */
        public Builder minSize(Output minSize) {
            $.minSize = minSize;
            return this;
        }

        /**
         * @param minSize Minimum number of worker nodes.
         * 
         * @return builder
         * 
         */
        public Builder minSize(Integer minSize) {
            return minSize(Output.of(minSize));
        }

        public NodeGroupScalingConfigArgs build() {
            if ($.desiredSize == null) {
                throw new MissingRequiredPropertyException("NodeGroupScalingConfigArgs", "desiredSize");
            }
            if ($.maxSize == null) {
                throw new MissingRequiredPropertyException("NodeGroupScalingConfigArgs", "maxSize");
            }
            if ($.minSize == null) {
                throw new MissingRequiredPropertyException("NodeGroupScalingConfigArgs", "minSize");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy