Class KeyVaultProperties
java.lang.Object
com.azure.resourcemanager.automation.models.KeyVaultProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KeyVaultProperties>
public final class KeyVaultProperties
extends Object
implements com.azure.json.JsonSerializable<KeyVaultProperties>
Settings concerning key vault encryption for a configuration store.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyVaultProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of KeyVaultProperties from the JsonReader.keyName()
Get the keyName property: The name of key used to encrypt data.Get the keyvaultUri property: The URI of the key vault key used to encrypt data.Get the keyVersion property: The key version of the key used to encrypt data.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 key used to encrypt data.withKeyvaultUri
(String keyvaultUri) Set the keyvaultUri property: The URI of the key vault key used to encrypt data.withKeyVersion
(String keyVersion) Set the keyVersion property: The key version of the key used to encrypt data.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
-
KeyVaultProperties
public KeyVaultProperties()Creates an instance of KeyVaultProperties class.
-
-
Method Details
-
keyvaultUri
Get the keyvaultUri property: The URI of the key vault key used to encrypt data.- Returns:
- the keyvaultUri value.
-
withKeyvaultUri
Set the keyvaultUri property: The URI of the key vault key used to encrypt data.- Parameters:
keyvaultUri
- the keyvaultUri value to set.- Returns:
- the KeyVaultProperties object itself.
-
keyName
Get the keyName property: The name of key used to encrypt data.- Returns:
- the keyName value.
-
withKeyName
Set the keyName property: The name of key used to encrypt data.- Parameters:
keyName
- the keyName value to set.- Returns:
- the KeyVaultProperties object itself.
-
keyVersion
Get the keyVersion property: The key version of the key used to encrypt data.- Returns:
- the keyVersion value.
-
withKeyVersion
Set the keyVersion property: The key version of the key used to encrypt data.- Parameters:
keyVersion
- the keyVersion value to set.- Returns:
- the KeyVaultProperties 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<KeyVaultProperties>
- Throws:
IOException
-
fromJson
Reads an instance of KeyVaultProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of KeyVaultProperties 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 KeyVaultProperties.
-