java.lang.Object
com.microsoft.azure.management.containerregistry.TrustPolicy

public class TrustPolicy extends Object
An object that represents content trust policy for a container registry.
  • Constructor Details

    • TrustPolicy

      public TrustPolicy()
  • Method Details

    • type

      public TrustPolicyType type()
      Get the type of trust policy. Possible values include: 'Notary'.
      Returns:
      the type value
    • withType

      public TrustPolicy withType(TrustPolicyType type)
      Set the type of trust policy. Possible values include: 'Notary'.
      Parameters:
      type - the type value to set
      Returns:
      the TrustPolicy object itself.
    • status

      public PolicyStatus status()
      Get the value that indicates whether the policy is enabled or not. Possible values include: 'enabled', 'disabled'.
      Returns:
      the status value
    • withStatus

      public TrustPolicy withStatus(PolicyStatus status)
      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.