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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeKeyVault
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ChangeKeyVault from the JsonReader.keyName()
Get the keyName property: The name of the key that should be used for encryption.Get the keyVaultPrivateEndpoints property: Pairs of virtual network ID and private endpoint ID.Get the keyVaultResourceId property: Azure resource ID of the key vault/managed HSM that should be used for encryption.Get the keyVaultUri property: The URI of the key vault/managed HSM that should be used for encryption.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withKeyName
(String keyName) Set the keyName property: The name of the key that should be used for encryption.withKeyVaultPrivateEndpoints
(List<KeyVaultPrivateEndpoint> keyVaultPrivateEndpoints) Set the keyVaultPrivateEndpoints property: Pairs of virtual network ID and private endpoint ID.withKeyVaultResourceId
(String keyVaultResourceId) Set the keyVaultResourceId property: Azure resource ID of the key vault/managed HSM that should be used for encryption.withKeyVaultUri
(String keyVaultUri) Set the keyVaultUri property: The URI of the key vault/managed HSM that should be used for encryption.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
-
ChangeKeyVault
public ChangeKeyVault()Creates an instance of ChangeKeyVault class.
-
-
Method Details
-
keyVaultUri
Get the keyVaultUri property: The URI of the key vault/managed HSM that should be used for encryption.- Returns:
- the keyVaultUri value.
-
withKeyVaultUri
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
Get the keyName property: The name of the key that should be used for encryption.- Returns:
- the keyName value.
-
withKeyName
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
Get the keyVaultResourceId property: Azure resource ID of the key vault/managed HSM that should be used for encryption.- Returns:
- the keyVaultResourceId value.
-
withKeyVaultResourceId
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
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ChangeKeyVault>
- Throws:
IOException
-
fromJson
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.
-