Class RemediationPropertiesFailureThreshold
java.lang.Object
com.azure.resourcemanager.policyinsights.models.RemediationPropertiesFailureThreshold
The remediation failure threshold settings.
-
Constructor Summary
ConstructorDescriptionCreates an instance of RemediationPropertiesFailureThreshold class. -
Method Summary
Modifier and TypeMethodDescriptionGet the percentage property: A number between 0.0 to 1.0 representing the percentage failure threshold.void
validate()
Validates the instance.withPercentage
(Float percentage) Set the percentage property: A number between 0.0 to 1.0 representing the percentage failure threshold.
-
Constructor Details
-
RemediationPropertiesFailureThreshold
public RemediationPropertiesFailureThreshold()Creates an instance of RemediationPropertiesFailureThreshold class.
-
-
Method Details
-
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
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.
-