
com.pulumi.azurenative.servicefabric.inputs.RollingUpgradeMonitoringPolicyArgs 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.servicefabric.inputs;
import com.pulumi.azurenative.servicefabric.enums.FailureAction;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* The policy used for monitoring the application upgrade
*
*/
public final class RollingUpgradeMonitoringPolicyArgs extends com.pulumi.resources.ResourceArgs {
public static final RollingUpgradeMonitoringPolicyArgs Empty = new RollingUpgradeMonitoringPolicyArgs();
/**
* The compensating action to perform when a Monitored upgrade encounters monitoring policy or health policy violations. Invalid indicates the failure action is invalid. Rollback specifies that the upgrade will start rolling back automatically. Manual indicates that the upgrade will switch to UnmonitoredManual upgrade mode.
*
*/
@Import(name="failureAction", required=true)
private Output> failureAction;
/**
* @return The compensating action to perform when a Monitored upgrade encounters monitoring policy or health policy violations. Invalid indicates the failure action is invalid. Rollback specifies that the upgrade will start rolling back automatically. Manual indicates that the upgrade will switch to UnmonitoredManual upgrade mode.
*
*/
public Output> failureAction() {
return this.failureAction;
}
/**
* The amount of time to retry health evaluation when the application or cluster is unhealthy before FailureAction is executed. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff".
*
*/
@Import(name="healthCheckRetryTimeout", required=true)
private Output healthCheckRetryTimeout;
/**
* @return The amount of time to retry health evaluation when the application or cluster is unhealthy before FailureAction is executed. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff".
*
*/
public Output healthCheckRetryTimeout() {
return this.healthCheckRetryTimeout;
}
/**
* The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff".
*
*/
@Import(name="healthCheckStableDuration", required=true)
private Output healthCheckStableDuration;
/**
* @return The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff".
*
*/
public Output healthCheckStableDuration() {
return this.healthCheckStableDuration;
}
/**
* The amount of time to wait after completing an upgrade domain before applying health policies. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff".
*
*/
@Import(name="healthCheckWaitDuration", required=true)
private Output healthCheckWaitDuration;
/**
* @return The amount of time to wait after completing an upgrade domain before applying health policies. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff".
*
*/
public Output healthCheckWaitDuration() {
return this.healthCheckWaitDuration;
}
/**
* The amount of time each upgrade domain has to complete before FailureAction is executed. Cannot be larger than 12 hours. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff".
*
*/
@Import(name="upgradeDomainTimeout", required=true)
private Output upgradeDomainTimeout;
/**
* @return The amount of time each upgrade domain has to complete before FailureAction is executed. Cannot be larger than 12 hours. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff".
*
*/
public Output upgradeDomainTimeout() {
return this.upgradeDomainTimeout;
}
/**
* The amount of time the overall upgrade has to complete before FailureAction is executed. Cannot be larger than 12 hours. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff".
*
*/
@Import(name="upgradeTimeout", required=true)
private Output upgradeTimeout;
/**
* @return The amount of time the overall upgrade has to complete before FailureAction is executed. Cannot be larger than 12 hours. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff".
*
*/
public Output upgradeTimeout() {
return this.upgradeTimeout;
}
private RollingUpgradeMonitoringPolicyArgs() {}
private RollingUpgradeMonitoringPolicyArgs(RollingUpgradeMonitoringPolicyArgs $) {
this.failureAction = $.failureAction;
this.healthCheckRetryTimeout = $.healthCheckRetryTimeout;
this.healthCheckStableDuration = $.healthCheckStableDuration;
this.healthCheckWaitDuration = $.healthCheckWaitDuration;
this.upgradeDomainTimeout = $.upgradeDomainTimeout;
this.upgradeTimeout = $.upgradeTimeout;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RollingUpgradeMonitoringPolicyArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private RollingUpgradeMonitoringPolicyArgs $;
public Builder() {
$ = new RollingUpgradeMonitoringPolicyArgs();
}
public Builder(RollingUpgradeMonitoringPolicyArgs defaults) {
$ = new RollingUpgradeMonitoringPolicyArgs(Objects.requireNonNull(defaults));
}
/**
* @param failureAction The compensating action to perform when a Monitored upgrade encounters monitoring policy or health policy violations. Invalid indicates the failure action is invalid. Rollback specifies that the upgrade will start rolling back automatically. Manual indicates that the upgrade will switch to UnmonitoredManual upgrade mode.
*
* @return builder
*
*/
public Builder failureAction(Output> failureAction) {
$.failureAction = failureAction;
return this;
}
/**
* @param failureAction The compensating action to perform when a Monitored upgrade encounters monitoring policy or health policy violations. Invalid indicates the failure action is invalid. Rollback specifies that the upgrade will start rolling back automatically. Manual indicates that the upgrade will switch to UnmonitoredManual upgrade mode.
*
* @return builder
*
*/
public Builder failureAction(Either failureAction) {
return failureAction(Output.of(failureAction));
}
/**
* @param failureAction The compensating action to perform when a Monitored upgrade encounters monitoring policy or health policy violations. Invalid indicates the failure action is invalid. Rollback specifies that the upgrade will start rolling back automatically. Manual indicates that the upgrade will switch to UnmonitoredManual upgrade mode.
*
* @return builder
*
*/
public Builder failureAction(String failureAction) {
return failureAction(Either.ofLeft(failureAction));
}
/**
* @param failureAction The compensating action to perform when a Monitored upgrade encounters monitoring policy or health policy violations. Invalid indicates the failure action is invalid. Rollback specifies that the upgrade will start rolling back automatically. Manual indicates that the upgrade will switch to UnmonitoredManual upgrade mode.
*
* @return builder
*
*/
public Builder failureAction(FailureAction failureAction) {
return failureAction(Either.ofRight(failureAction));
}
/**
* @param healthCheckRetryTimeout The amount of time to retry health evaluation when the application or cluster is unhealthy before FailureAction is executed. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff".
*
* @return builder
*
*/
public Builder healthCheckRetryTimeout(Output healthCheckRetryTimeout) {
$.healthCheckRetryTimeout = healthCheckRetryTimeout;
return this;
}
/**
* @param healthCheckRetryTimeout The amount of time to retry health evaluation when the application or cluster is unhealthy before FailureAction is executed. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff".
*
* @return builder
*
*/
public Builder healthCheckRetryTimeout(String healthCheckRetryTimeout) {
return healthCheckRetryTimeout(Output.of(healthCheckRetryTimeout));
}
/**
* @param healthCheckStableDuration The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff".
*
* @return builder
*
*/
public Builder healthCheckStableDuration(Output healthCheckStableDuration) {
$.healthCheckStableDuration = healthCheckStableDuration;
return this;
}
/**
* @param healthCheckStableDuration The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff".
*
* @return builder
*
*/
public Builder healthCheckStableDuration(String healthCheckStableDuration) {
return healthCheckStableDuration(Output.of(healthCheckStableDuration));
}
/**
* @param healthCheckWaitDuration The amount of time to wait after completing an upgrade domain before applying health policies. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff".
*
* @return builder
*
*/
public Builder healthCheckWaitDuration(Output healthCheckWaitDuration) {
$.healthCheckWaitDuration = healthCheckWaitDuration;
return this;
}
/**
* @param healthCheckWaitDuration The amount of time to wait after completing an upgrade domain before applying health policies. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff".
*
* @return builder
*
*/
public Builder healthCheckWaitDuration(String healthCheckWaitDuration) {
return healthCheckWaitDuration(Output.of(healthCheckWaitDuration));
}
/**
* @param upgradeDomainTimeout The amount of time each upgrade domain has to complete before FailureAction is executed. Cannot be larger than 12 hours. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff".
*
* @return builder
*
*/
public Builder upgradeDomainTimeout(Output upgradeDomainTimeout) {
$.upgradeDomainTimeout = upgradeDomainTimeout;
return this;
}
/**
* @param upgradeDomainTimeout The amount of time each upgrade domain has to complete before FailureAction is executed. Cannot be larger than 12 hours. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff".
*
* @return builder
*
*/
public Builder upgradeDomainTimeout(String upgradeDomainTimeout) {
return upgradeDomainTimeout(Output.of(upgradeDomainTimeout));
}
/**
* @param upgradeTimeout The amount of time the overall upgrade has to complete before FailureAction is executed. Cannot be larger than 12 hours. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff".
*
* @return builder
*
*/
public Builder upgradeTimeout(Output upgradeTimeout) {
$.upgradeTimeout = upgradeTimeout;
return this;
}
/**
* @param upgradeTimeout The amount of time the overall upgrade has to complete before FailureAction is executed. Cannot be larger than 12 hours. It is interpreted as a string representing an ISO 8601 duration with following format "hh:mm:ss.fff".
*
* @return builder
*
*/
public Builder upgradeTimeout(String upgradeTimeout) {
return upgradeTimeout(Output.of(upgradeTimeout));
}
public RollingUpgradeMonitoringPolicyArgs build() {
if ($.failureAction == null) {
throw new MissingRequiredPropertyException("RollingUpgradeMonitoringPolicyArgs", "failureAction");
}
if ($.healthCheckRetryTimeout == null) {
throw new MissingRequiredPropertyException("RollingUpgradeMonitoringPolicyArgs", "healthCheckRetryTimeout");
}
if ($.healthCheckStableDuration == null) {
throw new MissingRequiredPropertyException("RollingUpgradeMonitoringPolicyArgs", "healthCheckStableDuration");
}
if ($.healthCheckWaitDuration == null) {
throw new MissingRequiredPropertyException("RollingUpgradeMonitoringPolicyArgs", "healthCheckWaitDuration");
}
if ($.upgradeDomainTimeout == null) {
throw new MissingRequiredPropertyException("RollingUpgradeMonitoringPolicyArgs", "upgradeDomainTimeout");
}
if ($.upgradeTimeout == null) {
throw new MissingRequiredPropertyException("RollingUpgradeMonitoringPolicyArgs", "upgradeTimeout");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy