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 Details

    • QuarantinePolicy

      public QuarantinePolicy()
      Creates an instance of QuarantinePolicy class.
  • Method Details

    • 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.