java.lang.Object
com.azure.resourcemanager.containerregistry.models.ExportPolicy

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

    • ExportPolicy

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

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