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

com.pulumi.azurenative.networkcloud.outputs.ClusterUpdateStrategyResponse 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.outputs;

import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class ClusterUpdateStrategyResponse {
    /**
     * @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.
     * 
     */
    private @Nullable Double maxUnavailable;
    /**
     * @return The mode of operation for runtime protection.
     * 
     */
    private String strategyType;
    /**
     * @return Selection of how the threshold should be evaluated.
     * 
     */
    private String thresholdType;
    /**
     * @return The numeric threshold value.
     * 
     */
    private Double thresholdValue;
    /**
     * @return The time to wait between the increments of update defined by the strategy.
     * 
     */
    private @Nullable Double waitTimeMinutes;

    private ClusterUpdateStrategyResponse() {}
    /**
     * @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);
    }
    /**
     * @return The mode of operation for runtime protection.
     * 
     */
    public String strategyType() {
        return this.strategyType;
    }
    /**
     * @return Selection of how the threshold should be evaluated.
     * 
     */
    public String thresholdType() {
        return this.thresholdType;
    }
    /**
     * @return The numeric threshold value.
     * 
     */
    public Double thresholdValue() {
        return this.thresholdValue;
    }
    /**
     * @return The time to wait between the increments of update defined by the strategy.
     * 
     */
    public Optional waitTimeMinutes() {
        return Optional.ofNullable(this.waitTimeMinutes);
    }

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

    public static Builder builder(ClusterUpdateStrategyResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Double maxUnavailable;
        private String strategyType;
        private String thresholdType;
        private Double thresholdValue;
        private @Nullable Double waitTimeMinutes;
        public Builder() {}
        public Builder(ClusterUpdateStrategyResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.maxUnavailable = defaults.maxUnavailable;
    	      this.strategyType = defaults.strategyType;
    	      this.thresholdType = defaults.thresholdType;
    	      this.thresholdValue = defaults.thresholdValue;
    	      this.waitTimeMinutes = defaults.waitTimeMinutes;
        }

        @CustomType.Setter
        public Builder maxUnavailable(@Nullable Double maxUnavailable) {

            this.maxUnavailable = maxUnavailable;
            return this;
        }
        @CustomType.Setter
        public Builder strategyType(String strategyType) {
            if (strategyType == null) {
              throw new MissingRequiredPropertyException("ClusterUpdateStrategyResponse", "strategyType");
            }
            this.strategyType = strategyType;
            return this;
        }
        @CustomType.Setter
        public Builder thresholdType(String thresholdType) {
            if (thresholdType == null) {
              throw new MissingRequiredPropertyException("ClusterUpdateStrategyResponse", "thresholdType");
            }
            this.thresholdType = thresholdType;
            return this;
        }
        @CustomType.Setter
        public Builder thresholdValue(Double thresholdValue) {
            if (thresholdValue == null) {
              throw new MissingRequiredPropertyException("ClusterUpdateStrategyResponse", "thresholdValue");
            }
            this.thresholdValue = thresholdValue;
            return this;
        }
        @CustomType.Setter
        public Builder waitTimeMinutes(@Nullable Double waitTimeMinutes) {

            this.waitTimeMinutes = waitTimeMinutes;
            return this;
        }
        public ClusterUpdateStrategyResponse build() {
            final var _resultValue = new ClusterUpdateStrategyResponse();
            _resultValue.maxUnavailable = maxUnavailable;
            _resultValue.strategyType = strategyType;
            _resultValue.thresholdType = thresholdType;
            _resultValue.thresholdValue = thresholdValue;
            _resultValue.waitTimeMinutes = waitTimeMinutes;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy