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 Summary
ConstructorsConstructorDescriptionCreates an instance of KeyVaultPrivateEndpoint class. -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyVaultPrivateEndpoint
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of KeyVaultPrivateEndpoint from the JsonReader.Get the privateEndpointId property: Identifier of the private endpoint to reach the Azure Key Vault.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Get the virtualNetworkId property: Identifier for the virtual network id.withPrivateEndpointId
(String privateEndpointId) Set the privateEndpointId property: Identifier of the private endpoint to reach the Azure Key Vault.withVirtualNetworkId
(String virtualNetworkId) Set the virtualNetworkId property: Identifier for the virtual network id.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
KeyVaultPrivateEndpoint
public KeyVaultPrivateEndpoint()Creates an instance of KeyVaultPrivateEndpoint class.
-
-
Method Details
-
virtualNetworkId
Get the virtualNetworkId property: Identifier for the virtual network id.- Returns:
- the virtualNetworkId value.
-
withVirtualNetworkId
Set the virtualNetworkId property: Identifier for the virtual network id.- Parameters:
virtualNetworkId
- the virtualNetworkId value to set.- Returns:
- the KeyVaultPrivateEndpoint object itself.
-
privateEndpointId
Get the privateEndpointId property: Identifier of the private endpoint to reach the Azure Key Vault.- Returns:
- the privateEndpointId value.
-
withPrivateEndpointId
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
- Specified by:
toJson
in interfacecom.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.
-