Class QuarantinePolicy
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.QuarantinePolicy
-
public final class QuarantinePolicy extends Object
The quarantine policy for a container registry.
-
-
Constructor Summary
Constructors Constructor Description QuarantinePolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyStatusstatus()Get the status property: The value that indicates whether the policy is enabled or not.voidvalidate()Validates the instance.QuarantinePolicywithStatus(PolicyStatus status)Set the status property: The value that indicates whether the policy is enabled or not.
-
-
-
Method Detail
-
status
public PolicyStatus status()
Get the status property: The value that indicates whether the policy is enabled or not.- Returns:
- the status value.
-
withStatus
public QuarantinePolicy withStatus(PolicyStatus status)
Set the status property: The value that indicates whether the policy is enabled or not.- Parameters:
status- the status value to set.- Returns:
- the QuarantinePolicy object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-