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

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

// *** 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 java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final NodeGroupUpdateConfigArgs Empty = new NodeGroupUpdateConfigArgs();

    /**
     * Desired max number of unavailable worker nodes during node group update.
     * 
     */
    @Import(name="maxUnavailable")
    private @Nullable Output maxUnavailable;

    /**
     * @return Desired max number of unavailable worker nodes during node group update.
     * 
     */
    public Optional> maxUnavailable() {
        return Optional.ofNullable(this.maxUnavailable);
    }

    /**
     * Desired max percentage of unavailable worker nodes during node group update.
     * 
     */
    @Import(name="maxUnavailablePercentage")
    private @Nullable Output maxUnavailablePercentage;

    /**
     * @return Desired max percentage of unavailable worker nodes during node group update.
     * 
     */
    public Optional> maxUnavailablePercentage() {
        return Optional.ofNullable(this.maxUnavailablePercentage);
    }

    private NodeGroupUpdateConfigArgs() {}

    private NodeGroupUpdateConfigArgs(NodeGroupUpdateConfigArgs $) {
        this.maxUnavailable = $.maxUnavailable;
        this.maxUnavailablePercentage = $.maxUnavailablePercentage;
    }

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

    public static final class Builder {
        private NodeGroupUpdateConfigArgs $;

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

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

        /**
         * @param maxUnavailable Desired max number of unavailable worker nodes during node group update.
         * 
         * @return builder
         * 
         */
        public Builder maxUnavailable(@Nullable Output maxUnavailable) {
            $.maxUnavailable = maxUnavailable;
            return this;
        }

        /**
         * @param maxUnavailable Desired max number of unavailable worker nodes during node group update.
         * 
         * @return builder
         * 
         */
        public Builder maxUnavailable(Integer maxUnavailable) {
            return maxUnavailable(Output.of(maxUnavailable));
        }

        /**
         * @param maxUnavailablePercentage Desired max percentage of unavailable worker nodes during node group update.
         * 
         * @return builder
         * 
         */
        public Builder maxUnavailablePercentage(@Nullable Output maxUnavailablePercentage) {
            $.maxUnavailablePercentage = maxUnavailablePercentage;
            return this;
        }

        /**
         * @param maxUnavailablePercentage Desired max percentage of unavailable worker nodes during node group update.
         * 
         * @return builder
         * 
         */
        public Builder maxUnavailablePercentage(Integer maxUnavailablePercentage) {
            return maxUnavailablePercentage(Output.of(maxUnavailablePercentage));
        }

        public NodeGroupUpdateConfigArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy