Class VaultAccessPolicyProperties

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

public final class VaultAccessPolicyProperties extends Object implements com.azure.json.JsonSerializable<VaultAccessPolicyProperties>
Properties of the vault access policy.
  • Constructor Details

    • VaultAccessPolicyProperties

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

    • accessPolicies

      public List<AccessPolicyEntry> accessPolicies()
      Get the accessPolicies property: An array of 0 to 16 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID.
      Returns:
      the accessPolicies value.
    • withAccessPolicies

      public VaultAccessPolicyProperties withAccessPolicies(List<AccessPolicyEntry> accessPolicies)
      Set the accessPolicies property: An array of 0 to 16 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID.
      Parameters:
      accessPolicies - the accessPolicies value to set.
      Returns:
      the VaultAccessPolicyProperties 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<VaultAccessPolicyProperties>
      Throws:
      IOException
    • fromJson

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