Class ChangeKeyVault

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

public final class ChangeKeyVault extends Object implements com.azure.json.JsonSerializable<ChangeKeyVault>
Change key vault request.
  • Constructor Details

    • ChangeKeyVault

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

    • keyVaultUri

      public String keyVaultUri()
      Get the keyVaultUri property: The URI of the key vault/managed HSM that should be used for encryption.
      Returns:
      the keyVaultUri value.
    • withKeyVaultUri

      public ChangeKeyVault withKeyVaultUri(String keyVaultUri)
      Set the keyVaultUri property: The URI of the key vault/managed HSM that should be used for encryption.
      Parameters:
      keyVaultUri - the keyVaultUri value to set.
      Returns:
      the ChangeKeyVault object itself.
    • keyName

      public String keyName()
      Get the keyName property: The name of the key that should be used for encryption.
      Returns:
      the keyName value.
    • withKeyName

      public ChangeKeyVault withKeyName(String keyName)
      Set the keyName property: The name of the key that should be used for encryption.
      Parameters:
      keyName - the keyName value to set.
      Returns:
      the ChangeKeyVault object itself.
    • keyVaultResourceId

      public String keyVaultResourceId()
      Get the keyVaultResourceId property: Azure resource ID of the key vault/managed HSM that should be used for encryption.
      Returns:
      the keyVaultResourceId value.
    • withKeyVaultResourceId

      public ChangeKeyVault withKeyVaultResourceId(String keyVaultResourceId)
      Set the keyVaultResourceId property: Azure resource ID of the key vault/managed HSM that should be used for encryption.
      Parameters:
      keyVaultResourceId - the keyVaultResourceId value to set.
      Returns:
      the ChangeKeyVault object itself.
    • keyVaultPrivateEndpoints

      public List<KeyVaultPrivateEndpoint> keyVaultPrivateEndpoints()
      Get the keyVaultPrivateEndpoints property: Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint.
      Returns:
      the keyVaultPrivateEndpoints value.
    • withKeyVaultPrivateEndpoints

      public ChangeKeyVault withKeyVaultPrivateEndpoints(List<KeyVaultPrivateEndpoint> keyVaultPrivateEndpoints)
      Set the keyVaultPrivateEndpoints property: Pairs of virtual network ID and private endpoint ID. Every virtual network that has volumes encrypted with customer-managed keys needs its own key vault private endpoint.
      Parameters:
      keyVaultPrivateEndpoints - the keyVaultPrivateEndpoints value to set.
      Returns:
      the ChangeKeyVault 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<ChangeKeyVault>
      Throws:
      IOException
    • fromJson

      public static ChangeKeyVault fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ChangeKeyVault from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ChangeKeyVault 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 ChangeKeyVault.