Class RemediationPropertiesFailureThreshold
- java.lang.Object
-
- com.azure.resourcemanager.policyinsights.models.RemediationPropertiesFailureThreshold
-
public final class RemediationPropertiesFailureThreshold extends Object
The remediation failure threshold settings.
-
-
Constructor Summary
Constructors Constructor Description RemediationPropertiesFailureThreshold()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Float
percentage()
Get the percentage property: A number between 0.0 to 1.0 representing the percentage failure threshold.void
validate()
Validates the instance.RemediationPropertiesFailureThreshold
withPercentage(Float percentage)
Set the percentage property: A number between 0.0 to 1.0 representing the percentage failure threshold.
-
-
-
Method Detail
-
percentage
public Float percentage()
Get the percentage property: 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.- Returns:
- the percentage value.
-
withPercentage
public RemediationPropertiesFailureThreshold withPercentage(Float percentage)
Set the percentage property: 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.- Parameters:
percentage
- the percentage value to set.- Returns:
- the RemediationPropertiesFailureThreshold object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-