Class QuarantinePolicy


  • public final class QuarantinePolicy
    extends Object
    The quarantine policy for a container registry.
    • Constructor Detail

      • QuarantinePolicy

        public QuarantinePolicy()
    • 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.