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

com.pulumi.azure.servicefabric.outputs.ClusterUpgradePolicyDeltaHealthPolicy Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.servicefabric.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ClusterUpgradePolicyDeltaHealthPolicy {
    /**
     * @return Specifies the maximum tolerated percentage of delta unhealthy applications that can have aggregated health states of error. If the current unhealthy applications do not respect the percentage relative to the state at the beginning of the upgrade, the cluster is unhealthy. Defaults to `0`.
     * 
     */
    private @Nullable Integer maxDeltaUnhealthyApplicationsPercent;
    /**
     * @return Specifies the maximum tolerated percentage of delta unhealthy nodes that can have aggregated health states of error. If the current unhealthy nodes do not respect the percentage relative to the state at the beginning of the upgrade, the cluster is unhealthy. Defaults to `0`.
     * 
     */
    private @Nullable Integer maxDeltaUnhealthyNodesPercent;
    /**
     * @return Specifies the maximum tolerated percentage of upgrade domain delta unhealthy nodes that can have aggregated health state of error. If there is any upgrade domain where the current unhealthy nodes do not respect the percentage relative to the state at the beginning of the upgrade, the cluster is unhealthy. Defaults to `0`.
     * 
     */
    private @Nullable Integer maxUpgradeDomainDeltaUnhealthyNodesPercent;

    private ClusterUpgradePolicyDeltaHealthPolicy() {}
    /**
     * @return Specifies the maximum tolerated percentage of delta unhealthy applications that can have aggregated health states of error. If the current unhealthy applications do not respect the percentage relative to the state at the beginning of the upgrade, the cluster is unhealthy. Defaults to `0`.
     * 
     */
    public Optional maxDeltaUnhealthyApplicationsPercent() {
        return Optional.ofNullable(this.maxDeltaUnhealthyApplicationsPercent);
    }
    /**
     * @return Specifies the maximum tolerated percentage of delta unhealthy nodes that can have aggregated health states of error. If the current unhealthy nodes do not respect the percentage relative to the state at the beginning of the upgrade, the cluster is unhealthy. Defaults to `0`.
     * 
     */
    public Optional maxDeltaUnhealthyNodesPercent() {
        return Optional.ofNullable(this.maxDeltaUnhealthyNodesPercent);
    }
    /**
     * @return Specifies the maximum tolerated percentage of upgrade domain delta unhealthy nodes that can have aggregated health state of error. If there is any upgrade domain where the current unhealthy nodes do not respect the percentage relative to the state at the beginning of the upgrade, the cluster is unhealthy. Defaults to `0`.
     * 
     */
    public Optional maxUpgradeDomainDeltaUnhealthyNodesPercent() {
        return Optional.ofNullable(this.maxUpgradeDomainDeltaUnhealthyNodesPercent);
    }

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

    public static Builder builder(ClusterUpgradePolicyDeltaHealthPolicy defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer maxDeltaUnhealthyApplicationsPercent;
        private @Nullable Integer maxDeltaUnhealthyNodesPercent;
        private @Nullable Integer maxUpgradeDomainDeltaUnhealthyNodesPercent;
        public Builder() {}
        public Builder(ClusterUpgradePolicyDeltaHealthPolicy defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.maxDeltaUnhealthyApplicationsPercent = defaults.maxDeltaUnhealthyApplicationsPercent;
    	      this.maxDeltaUnhealthyNodesPercent = defaults.maxDeltaUnhealthyNodesPercent;
    	      this.maxUpgradeDomainDeltaUnhealthyNodesPercent = defaults.maxUpgradeDomainDeltaUnhealthyNodesPercent;
        }

        @CustomType.Setter
        public Builder maxDeltaUnhealthyApplicationsPercent(@Nullable Integer maxDeltaUnhealthyApplicationsPercent) {

            this.maxDeltaUnhealthyApplicationsPercent = maxDeltaUnhealthyApplicationsPercent;
            return this;
        }
        @CustomType.Setter
        public Builder maxDeltaUnhealthyNodesPercent(@Nullable Integer maxDeltaUnhealthyNodesPercent) {

            this.maxDeltaUnhealthyNodesPercent = maxDeltaUnhealthyNodesPercent;
            return this;
        }
        @CustomType.Setter
        public Builder maxUpgradeDomainDeltaUnhealthyNodesPercent(@Nullable Integer maxUpgradeDomainDeltaUnhealthyNodesPercent) {

            this.maxUpgradeDomainDeltaUnhealthyNodesPercent = maxUpgradeDomainDeltaUnhealthyNodesPercent;
            return this;
        }
        public ClusterUpgradePolicyDeltaHealthPolicy build() {
            final var _resultValue = new ClusterUpgradePolicyDeltaHealthPolicy();
            _resultValue.maxDeltaUnhealthyApplicationsPercent = maxDeltaUnhealthyApplicationsPercent;
            _resultValue.maxDeltaUnhealthyNodesPercent = maxDeltaUnhealthyNodesPercent;
            _resultValue.maxUpgradeDomainDeltaUnhealthyNodesPercent = maxUpgradeDomainDeltaUnhealthyNodesPercent;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy