QuarantinePolicy Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. QuarantinePolicy
- com.
Implements
public final class QuarantinePolicy
implements JsonSerializable<QuarantinePolicy>
The quarantine policy for a container registry.
Constructor Summary
Constructor | Description |
---|---|
QuarantinePolicy() |
Creates an instance of Quarantine |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Quarantine |
fromJson(JsonReader jsonReader)
Reads an instance of Quarantine |
Policy |
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. |
Quarantine |
withStatus(PolicyStatus status)
Set the status property: The value that indicates whether the policy is enabled or not. |
Methods inherited from java.lang.Object
Constructor Details
QuarantinePolicy
public QuarantinePolicy()
Creates an instance of QuarantinePolicy class.
Method Details
fromJson
public static QuarantinePolicy fromJson(JsonReader jsonReader)
Reads an instance of QuarantinePolicy from the JsonReader.
Parameters:
Returns:
Throws:
status
public PolicyStatus 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 QuarantinePolicy withStatus(PolicyStatus status)
Set the status property: The value that indicates whether the policy is enabled or not.
Parameters:
Returns:
Applies to
Azure SDK for Java