Class KeyVaultPrivateEndpoint

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

public final class KeyVaultPrivateEndpoint extends Object implements com.azure.json.JsonSerializable<KeyVaultPrivateEndpoint>
keyVaultPrivateEndpoint 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.
  • Constructor Details

    • KeyVaultPrivateEndpoint

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

    • virtualNetworkId

      public String virtualNetworkId()
      Get the virtualNetworkId property: Identifier for the virtual network id.
      Returns:
      the virtualNetworkId value.
    • withVirtualNetworkId

      public KeyVaultPrivateEndpoint withVirtualNetworkId(String virtualNetworkId)
      Set the virtualNetworkId property: Identifier for the virtual network id.
      Parameters:
      virtualNetworkId - the virtualNetworkId value to set.
      Returns:
      the KeyVaultPrivateEndpoint object itself.
    • privateEndpointId

      public String privateEndpointId()
      Get the privateEndpointId property: Identifier of the private endpoint to reach the Azure Key Vault.
      Returns:
      the privateEndpointId value.
    • withPrivateEndpointId

      public KeyVaultPrivateEndpoint withPrivateEndpointId(String privateEndpointId)
      Set the privateEndpointId property: Identifier of the private endpoint to reach the Azure Key Vault.
      Parameters:
      privateEndpointId - the privateEndpointId value to set.
      Returns:
      the KeyVaultPrivateEndpoint 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<KeyVaultPrivateEndpoint>
      Throws:
      IOException
    • fromJson

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