Class ManagedDiskEncryptionKeyVaultProperties
java.lang.Object
com.azure.resourcemanager.databricks.models.ManagedDiskEncryptionKeyVaultProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedDiskEncryptionKeyVaultProperties>
public final class ManagedDiskEncryptionKeyVaultProperties
extends Object
implements com.azure.json.JsonSerializable<ManagedDiskEncryptionKeyVaultProperties>
Key Vault input properties for encryption.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedDiskEncryptionKeyVaultProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedDiskEncryptionKeyVaultProperties from the JsonReader.keyName()Get the keyName property: The name of KeyVault key.Get the keyVaultUri property: The URI of KeyVault.Get the keyVersion property: The version of KeyVault key.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withKeyName(String keyName) Set the keyName property: The name of KeyVault key.withKeyVaultUri(String keyVaultUri) Set the keyVaultUri property: The URI of KeyVault.withKeyVersion(String keyVersion) Set the keyVersion property: The version of KeyVault key.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagedDiskEncryptionKeyVaultProperties
public ManagedDiskEncryptionKeyVaultProperties()Creates an instance of ManagedDiskEncryptionKeyVaultProperties class.
-
-
Method Details
-
keyVaultUri
Get the keyVaultUri property: The URI of KeyVault.- Returns:
- the keyVaultUri value.
-
withKeyVaultUri
Set the keyVaultUri property: The URI of KeyVault.- Parameters:
keyVaultUri- the keyVaultUri value to set.- Returns:
- the ManagedDiskEncryptionKeyVaultProperties object itself.
-
keyName
Get the keyName property: The name of KeyVault key.- Returns:
- the keyName value.
-
withKeyName
Set the keyName property: The name of KeyVault key.- Parameters:
keyName- the keyName value to set.- Returns:
- the ManagedDiskEncryptionKeyVaultProperties object itself.
-
keyVersion
Get the keyVersion property: The version of KeyVault key.- Returns:
- the keyVersion value.
-
withKeyVersion
Set the keyVersion property: The version of KeyVault key.- Parameters:
keyVersion- the keyVersion value to set.- Returns:
- the ManagedDiskEncryptionKeyVaultProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedDiskEncryptionKeyVaultProperties>- Throws:
IOException
-
fromJson
public static ManagedDiskEncryptionKeyVaultProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedDiskEncryptionKeyVaultProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedDiskEncryptionKeyVaultProperties 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 ManagedDiskEncryptionKeyVaultProperties.
-