Class ExportPolicy
java.lang.Object
com.azure.resourcemanager.containerregistry.models.ExportPolicy
The export policy for a container registry.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatus()Get the status property: The value that indicates whether the policy is enabled or not.voidvalidate()Validates the instance.withStatus(ExportPolicyStatus status) Set the status property: The value that indicates whether the policy is enabled or not.
-
Constructor Details
-
ExportPolicy
public ExportPolicy()Creates an instance of ExportPolicy class.
-
-
Method Details
-
status
Get the status property: The value that indicates whether the policy is enabled or not.- Returns:
- the status value.
-
withStatus
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.
-