ExportPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. ExportPolicy
- com.
Implements
public final class ExportPolicy
implements JsonSerializable<ExportPolicy>
The export policy for a container registry.
Constructor Summary
Constructor | Description |
---|---|
ExportPolicy() |
Creates an instance of Export |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Export |
fromJson(JsonReader jsonReader)
Reads an instance of Export |
Export |
status()
Get the status property: The value that indicates whether the policy is enabled or not. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Export |
withStatus(ExportPolicyStatus status)
Set the status property: The value that indicates whether the policy is enabled or not. |
Methods inherited from java.lang.Object
Constructor Details
ExportPolicy
public ExportPolicy()
Creates an instance of ExportPolicy class.
Method Details
fromJson
public static ExportPolicy fromJson(JsonReader jsonReader)
Reads an instance of ExportPolicy from the JsonReader.
Parameters:
Returns:
Throws:
status
public ExportPolicyStatus status()
Get the status property: The value that indicates whether the policy is enabled or not.
Returns:
toJson
validate
public void validate()
Validates the instance.
withStatus
public ExportPolicy withStatus(ExportPolicyStatus status)
Set the status property: The value that indicates whether the policy is enabled or not.
Parameters:
Returns:
Applies to
Azure SDK for Java