Class ExportPolicy
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.ExportPolicy
-
public final class ExportPolicy extends Object
The export policy for a container registry.
-
-
Constructor Summary
Constructors Constructor Description ExportPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExportPolicyStatusstatus()Get the status property: The value that indicates whether the policy is enabled or not.voidvalidate()Validates the instance.ExportPolicywithStatus(ExportPolicyStatus status)Set the status property: The value that indicates whether the policy is enabled or not.
-
-
-
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.
-
-