Class TrustPolicy
java.lang.Object
com.azure.resourcemanager.containerregistry.models.TrustPolicy
The content trust policy for a container registry.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatus()Get the status property: The value that indicates whether the policy is enabled or not.type()Get the type property: The type of trust policy.voidvalidate()Validates the instance.withStatus(PolicyStatus status) Set the status property: The value that indicates whether the policy is enabled or not.withType(TrustPolicyType type) Set the type property: The type of trust policy.
-
Constructor Details
-
TrustPolicy
public TrustPolicy()Creates an instance of TrustPolicy class.
-
-
Method Details
-
type
Get the type property: The type of trust policy.- Returns:
- the type value.
-
withType
Set the type property: The type of trust policy.- Parameters:
type- the type value to set.- Returns:
- the TrustPolicy object itself.
-
status
Get the status property: The value that indicates whether the policy is enabled or not.- Returns:
- the status value.
-
withStatus
Set the status property: The value that indicates whether the policy is enabled or not.- Parameters:
status- the status value to set.- Returns:
- the TrustPolicy object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-