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

com.pulumi.azurenative.networkcloud.inputs.ClusterUpdateStrategyArgs 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.azurenative.networkcloud.inputs;

import com.pulumi.azurenative.networkcloud.enums.ClusterUpdateStrategyType;
import com.pulumi.azurenative.networkcloud.enums.ValidationThresholdType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
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;


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

    public static final ClusterUpdateStrategyArgs Empty = new ClusterUpdateStrategyArgs();

    /**
     * The maximum number of worker nodes that can be offline within the increment of update, e.g., rack-by-rack.
     * Limited by the maximum number of machines in the increment. Defaults to the whole increment size.
     * 
     */
    @Import(name="maxUnavailable")
    private @Nullable Output maxUnavailable;

    /**
     * @return The maximum number of worker nodes that can be offline within the increment of update, e.g., rack-by-rack.
     * Limited by the maximum number of machines in the increment. Defaults to the whole increment size.
     * 
     */
    public Optional> maxUnavailable() {
        return Optional.ofNullable(this.maxUnavailable);
    }

    /**
     * The mode of operation for runtime protection.
     * 
     */
    @Import(name="strategyType", required=true)
    private Output> strategyType;

    /**
     * @return The mode of operation for runtime protection.
     * 
     */
    public Output> strategyType() {
        return this.strategyType;
    }

    /**
     * Selection of how the threshold should be evaluated.
     * 
     */
    @Import(name="thresholdType", required=true)
    private Output> thresholdType;

    /**
     * @return Selection of how the threshold should be evaluated.
     * 
     */
    public Output> thresholdType() {
        return this.thresholdType;
    }

    /**
     * The numeric threshold value.
     * 
     */
    @Import(name="thresholdValue", required=true)
    private Output thresholdValue;

    /**
     * @return The numeric threshold value.
     * 
     */
    public Output thresholdValue() {
        return this.thresholdValue;
    }

    /**
     * The time to wait between the increments of update defined by the strategy.
     * 
     */
    @Import(name="waitTimeMinutes")
    private @Nullable Output waitTimeMinutes;

    /**
     * @return The time to wait between the increments of update defined by the strategy.
     * 
     */
    public Optional> waitTimeMinutes() {
        return Optional.ofNullable(this.waitTimeMinutes);
    }

    private ClusterUpdateStrategyArgs() {}

    private ClusterUpdateStrategyArgs(ClusterUpdateStrategyArgs $) {
        this.maxUnavailable = $.maxUnavailable;
        this.strategyType = $.strategyType;
        this.thresholdType = $.thresholdType;
        this.thresholdValue = $.thresholdValue;
        this.waitTimeMinutes = $.waitTimeMinutes;
    }

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

    public static final class Builder {
        private ClusterUpdateStrategyArgs $;

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

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

        /**
         * @param maxUnavailable The maximum number of worker nodes that can be offline within the increment of update, e.g., rack-by-rack.
         * Limited by the maximum number of machines in the increment. Defaults to the whole increment size.
         * 
         * @return builder
         * 
         */
        public Builder maxUnavailable(@Nullable Output maxUnavailable) {
            $.maxUnavailable = maxUnavailable;
            return this;
        }

        /**
         * @param maxUnavailable The maximum number of worker nodes that can be offline within the increment of update, e.g., rack-by-rack.
         * Limited by the maximum number of machines in the increment. Defaults to the whole increment size.
         * 
         * @return builder
         * 
         */
        public Builder maxUnavailable(Double maxUnavailable) {
            return maxUnavailable(Output.of(maxUnavailable));
        }

        /**
         * @param strategyType The mode of operation for runtime protection.
         * 
         * @return builder
         * 
         */
        public Builder strategyType(Output> strategyType) {
            $.strategyType = strategyType;
            return this;
        }

        /**
         * @param strategyType The mode of operation for runtime protection.
         * 
         * @return builder
         * 
         */
        public Builder strategyType(Either strategyType) {
            return strategyType(Output.of(strategyType));
        }

        /**
         * @param strategyType The mode of operation for runtime protection.
         * 
         * @return builder
         * 
         */
        public Builder strategyType(String strategyType) {
            return strategyType(Either.ofLeft(strategyType));
        }

        /**
         * @param strategyType The mode of operation for runtime protection.
         * 
         * @return builder
         * 
         */
        public Builder strategyType(ClusterUpdateStrategyType strategyType) {
            return strategyType(Either.ofRight(strategyType));
        }

        /**
         * @param thresholdType Selection of how the threshold should be evaluated.
         * 
         * @return builder
         * 
         */
        public Builder thresholdType(Output> thresholdType) {
            $.thresholdType = thresholdType;
            return this;
        }

        /**
         * @param thresholdType Selection of how the threshold should be evaluated.
         * 
         * @return builder
         * 
         */
        public Builder thresholdType(Either thresholdType) {
            return thresholdType(Output.of(thresholdType));
        }

        /**
         * @param thresholdType Selection of how the threshold should be evaluated.
         * 
         * @return builder
         * 
         */
        public Builder thresholdType(String thresholdType) {
            return thresholdType(Either.ofLeft(thresholdType));
        }

        /**
         * @param thresholdType Selection of how the threshold should be evaluated.
         * 
         * @return builder
         * 
         */
        public Builder thresholdType(ValidationThresholdType thresholdType) {
            return thresholdType(Either.ofRight(thresholdType));
        }

        /**
         * @param thresholdValue The numeric threshold value.
         * 
         * @return builder
         * 
         */
        public Builder thresholdValue(Output thresholdValue) {
            $.thresholdValue = thresholdValue;
            return this;
        }

        /**
         * @param thresholdValue The numeric threshold value.
         * 
         * @return builder
         * 
         */
        public Builder thresholdValue(Double thresholdValue) {
            return thresholdValue(Output.of(thresholdValue));
        }

        /**
         * @param waitTimeMinutes The time to wait between the increments of update defined by the strategy.
         * 
         * @return builder
         * 
         */
        public Builder waitTimeMinutes(@Nullable Output waitTimeMinutes) {
            $.waitTimeMinutes = waitTimeMinutes;
            return this;
        }

        /**
         * @param waitTimeMinutes The time to wait between the increments of update defined by the strategy.
         * 
         * @return builder
         * 
         */
        public Builder waitTimeMinutes(Double waitTimeMinutes) {
            return waitTimeMinutes(Output.of(waitTimeMinutes));
        }

        public ClusterUpdateStrategyArgs build() {
            if ($.strategyType == null) {
                throw new MissingRequiredPropertyException("ClusterUpdateStrategyArgs", "strategyType");
            }
            if ($.thresholdType == null) {
                throw new MissingRequiredPropertyException("ClusterUpdateStrategyArgs", "thresholdType");
            }
            if ($.thresholdValue == null) {
                throw new MissingRequiredPropertyException("ClusterUpdateStrategyArgs", "thresholdValue");
            }
            $.waitTimeMinutes = Codegen.doubleProp("waitTimeMinutes").output().arg($.waitTimeMinutes).def(1.5e+01).getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy