Class TrustPolicy
java.lang.Object
com.microsoft.azure.management.containerregistry.TrustPolicy
An object that represents content trust policy for a container registry.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatus()
Get the value that indicates whether the policy is enabled or not.type()
Get the type of trust policy.withStatus
(PolicyStatus status) Set the value that indicates whether the policy is enabled or not.withType
(TrustPolicyType type) Set the type of trust policy.
-
Constructor Details
-
TrustPolicy
public TrustPolicy()
-
-
Method Details
-
type
Get the type of trust policy. Possible values include: 'Notary'.- Returns:
- the type value
-
withType
Set the type of trust policy. Possible values include: 'Notary'.- Parameters:
type
- the type value to set- Returns:
- the TrustPolicy object itself.
-
status
Get the value that indicates whether the policy is enabled or not. Possible values include: 'enabled', 'disabled'.- Returns:
- the status value
-
withStatus
Set the value that indicates whether the policy is enabled or not. Possible values include: 'enabled', 'disabled'.- Parameters:
status
- the status value to set- Returns:
- the TrustPolicy object itself.
-