ExportPolicy Class

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

Implements

public final class ExportPolicy
implements JsonSerializable<ExportPolicy>

The export policy for a container registry.

Constructor Summary

Constructor Description
ExportPolicy()

Creates an instance of ExportPolicy class.

Method Summary

Modifier and Type Method and Description
static ExportPolicy fromJson(JsonReader jsonReader)

Reads an instance of ExportPolicy from the JsonReader.

ExportPolicyStatus status()

Get the status property: The value that indicates whether the policy is enabled or not.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ExportPolicy 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:

jsonReader - The JsonReader being read.

Returns:

An instance of ExportPolicy if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ExportPolicy.

status

public ExportPolicyStatus status()

Get the status property: The value that indicates whether the policy is enabled or not.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

status - the status value to set.

Returns:

the ExportPolicy object itself.

Applies to