Class Policies
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.Policies
-
public final class Policies extends Object
The policies for a container registry.
-
-
Constructor Summary
Constructors Constructor Description Policies()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExportPolicyexportPolicy()Get the exportPolicy property: The export policy for a container registry.QuarantinePolicyquarantinePolicy()Get the quarantinePolicy property: The quarantine policy for a container registry.RetentionPolicyretentionPolicy()Get the retentionPolicy property: The retention policy for a container registry.TrustPolicytrustPolicy()Get the trustPolicy property: The content trust policy for a container registry.voidvalidate()Validates the instance.PolicieswithExportPolicy(ExportPolicy exportPolicy)Set the exportPolicy property: The export policy for a container registry.PolicieswithQuarantinePolicy(QuarantinePolicy quarantinePolicy)Set the quarantinePolicy property: The quarantine policy for a container registry.PolicieswithRetentionPolicy(RetentionPolicy retentionPolicy)Set the retentionPolicy property: The retention policy for a container registry.PolicieswithTrustPolicy(TrustPolicy trustPolicy)Set the trustPolicy property: The content trust policy for a container registry.
-
-
-
Method Detail
-
quarantinePolicy
public QuarantinePolicy quarantinePolicy()
Get the quarantinePolicy property: The quarantine policy for a container registry.- Returns:
- the quarantinePolicy value.
-
withQuarantinePolicy
public Policies withQuarantinePolicy(QuarantinePolicy quarantinePolicy)
Set the quarantinePolicy property: The quarantine policy for a container registry.- Parameters:
quarantinePolicy- the quarantinePolicy value to set.- Returns:
- the Policies object itself.
-
trustPolicy
public TrustPolicy trustPolicy()
Get the trustPolicy property: The content trust policy for a container registry.- Returns:
- the trustPolicy value.
-
withTrustPolicy
public Policies withTrustPolicy(TrustPolicy trustPolicy)
Set the trustPolicy property: The content trust policy for a container registry.- Parameters:
trustPolicy- the trustPolicy value to set.- Returns:
- the Policies object itself.
-
retentionPolicy
public RetentionPolicy retentionPolicy()
Get the retentionPolicy property: The retention policy for a container registry.- Returns:
- the retentionPolicy value.
-
withRetentionPolicy
public Policies withRetentionPolicy(RetentionPolicy retentionPolicy)
Set the retentionPolicy property: The retention policy for a container registry.- Parameters:
retentionPolicy- the retentionPolicy value to set.- Returns:
- the Policies object itself.
-
exportPolicy
public ExportPolicy exportPolicy()
Get the exportPolicy property: The export policy for a container registry.- Returns:
- the exportPolicy value.
-
withExportPolicy
public Policies withExportPolicy(ExportPolicy exportPolicy)
Set the exportPolicy property: The export policy for a container registry.- Parameters:
exportPolicy- the exportPolicy value to set.- Returns:
- the Policies object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-