Class Permissions

java.lang.Object
com.azure.resourcemanager.keyvault.models.Permissions
All Implemented Interfaces:
com.azure.json.JsonSerializable<Permissions>

public final class Permissions extends Object implements com.azure.json.JsonSerializable<Permissions>
Permissions the identity has for keys, secrets, certificates and storage.
  • Constructor Details

    • Permissions

      public Permissions()
      Creates an instance of Permissions class.
  • Method Details

    • keys

      public List<KeyPermissions> keys()
      Get the keys property: Permissions to keys.
      Returns:
      the keys value.
    • withKeys

      public Permissions withKeys(List<KeyPermissions> keys)
      Set the keys property: Permissions to keys.
      Parameters:
      keys - the keys value to set.
      Returns:
      the Permissions object itself.
    • secrets

      public List<SecretPermissions> secrets()
      Get the secrets property: Permissions to secrets.
      Returns:
      the secrets value.
    • withSecrets

      public Permissions withSecrets(List<SecretPermissions> secrets)
      Set the secrets property: Permissions to secrets.
      Parameters:
      secrets - the secrets value to set.
      Returns:
      the Permissions object itself.
    • certificates

      public List<CertificatePermissions> certificates()
      Get the certificates property: Permissions to certificates.
      Returns:
      the certificates value.
    • withCertificates

      public Permissions withCertificates(List<CertificatePermissions> certificates)
      Set the certificates property: Permissions to certificates.
      Parameters:
      certificates - the certificates value to set.
      Returns:
      the Permissions object itself.
    • storage

      public List<StoragePermissions> storage()
      Get the storage property: Permissions to storage accounts.
      Returns:
      the storage value.
    • withStorage

      public Permissions withStorage(List<StoragePermissions> storage)
      Set the storage property: Permissions to storage accounts.
      Parameters:
      storage - the storage value to set.
      Returns:
      the Permissions object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<Permissions>
      Throws:
      IOException
    • fromJson

      public static Permissions fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of Permissions from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of Permissions if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the Permissions.