Class ExportPolicy


  • public final class ExportPolicy
    extends Object
    The export policy for a container registry.
    • Constructor Detail

      • ExportPolicy

        public ExportPolicy()
    • Method Detail

      • status

        public ExportPolicyStatus status()
        Get the status property: The value that indicates whether the policy is enabled or not.
        Returns:
        the status value.
      • withStatus

        public ExportPolicy withStatus​(ExportPolicyStatus 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 ExportPolicy object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.