Policies Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. Policies
- com.
Implements
public final class Policies
implements JsonSerializable<Policies>
The policies for a container registry.
Constructor Summary
Constructor | Description |
---|---|
Policies() |
Creates an instance of Policies class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Export |
exportPolicy()
Get the export |
static Policies |
fromJson(JsonReader jsonReader)
Reads an instance of Policies from the Json |
Quarantine |
quarantinePolicy()
Get the quarantine |
Retention |
retentionPolicy()
Get the retention |
Json |
toJson(JsonWriter jsonWriter) |
Trust |
trustPolicy()
Get the trust |
void |
validate()
Validates the instance. |
Policies |
withExportPolicy(ExportPolicy exportPolicy)
Set the export |
Policies |
withQuarantinePolicy(QuarantinePolicy quarantinePolicy)
Set the quarantine |
Policies |
withRetentionPolicy(RetentionPolicy retentionPolicy)
Set the retention |
Policies |
withTrustPolicy(TrustPolicy trustPolicy)
Set the trust |
Methods inherited from java.lang.Object
Constructor Details
Policies
public Policies()
Creates an instance of Policies class.
Method Details
exportPolicy
public ExportPolicy exportPolicy()
Get the exportPolicy property: The export policy for a container registry.
Returns:
fromJson
public static Policies fromJson(JsonReader jsonReader)
Reads an instance of Policies from the JsonReader.
Parameters:
Returns:
Throws:
quarantinePolicy
public QuarantinePolicy quarantinePolicy()
Get the quarantinePolicy property: The quarantine policy for a container registry.
Returns:
retentionPolicy
public RetentionPolicy retentionPolicy()
Get the retentionPolicy property: The retention policy for a container registry.
Returns:
toJson
trustPolicy
public TrustPolicy trustPolicy()
Get the trustPolicy property: The content trust policy for a container registry.
Returns:
validate
public void validate()
Validates the instance.
withExportPolicy
public Policies withExportPolicy(ExportPolicy exportPolicy)
Set the exportPolicy property: The export policy for a container registry.
Parameters:
Returns:
withQuarantinePolicy
public Policies withQuarantinePolicy(QuarantinePolicy quarantinePolicy)
Set the quarantinePolicy property: The quarantine policy for a container registry.
Parameters:
Returns:
withRetentionPolicy
public Policies withRetentionPolicy(RetentionPolicy retentionPolicy)
Set the retentionPolicy property: The retention policy for a container registry.
Parameters:
Returns:
withTrustPolicy
public Policies withTrustPolicy(TrustPolicy trustPolicy)
Set the trustPolicy property: The content trust policy for a container registry.
Parameters:
Returns:
Applies to
Azure SDK for Java