
com.pulumi.azurenative.policyinsights.outputs.RemediationPropertiesResponseFailureThreshold 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.policyinsights.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Double;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RemediationPropertiesResponseFailureThreshold {
/**
* @return A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
*
*/
private @Nullable Double percentage;
private RemediationPropertiesResponseFailureThreshold() {}
/**
* @return A number between 0.0 to 1.0 representing the percentage failure threshold. The remediation will fail if the percentage of failed remediation operations (i.e. failed deployments) exceeds this threshold.
*
*/
public Optional percentage() {
return Optional.ofNullable(this.percentage);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RemediationPropertiesResponseFailureThreshold defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Double percentage;
public Builder() {}
public Builder(RemediationPropertiesResponseFailureThreshold defaults) {
Objects.requireNonNull(defaults);
this.percentage = defaults.percentage;
}
@CustomType.Setter
public Builder percentage(@Nullable Double percentage) {
this.percentage = percentage;
return this;
}
public RemediationPropertiesResponseFailureThreshold build() {
final var _resultValue = new RemediationPropertiesResponseFailureThreshold();
_resultValue.percentage = percentage;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy