Class KeyVaultProperties
java.lang.Object
com.azure.resourcemanager.netapp.models.KeyVaultProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KeyVaultProperties>
public final class KeyVaultProperties
extends Object
implements com.azure.json.JsonSerializable<KeyVaultProperties>
Properties of key vault.
-
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 KeyVault key.Get the keyVaultId property: UUID v4 used to identify the Azure Key Vault configuration.Get the keyVaultResourceId property: The resource ID of KeyVault.Get the keyVaultUri property: The Uri of KeyVault.status()
Get the status property: Status of the KeyVault connection.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 KeyVault key.withKeyVaultResourceId
(String keyVaultResourceId) Set the keyVaultResourceId property: The resource ID of KeyVault.withKeyVaultUri
(String keyVaultUri) Set the keyVaultUri property: The Uri of KeyVault.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
-
keyVaultId
Get the keyVaultId property: UUID v4 used to identify the Azure Key Vault configuration.- Returns:
- the keyVaultId value.
-
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 KeyVaultProperties 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 KeyVaultProperties object itself.
-
keyVaultResourceId
Get the keyVaultResourceId property: The resource ID of KeyVault.- Returns:
- the keyVaultResourceId value.
-
withKeyVaultResourceId
Set the keyVaultResourceId property: The resource ID of KeyVault.- Parameters:
keyVaultResourceId
- the keyVaultResourceId value to set.- Returns:
- the KeyVaultProperties object itself.
-
status
Get the status property: Status of the KeyVault connection.- Returns:
- the status value.
-
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:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the KeyVaultProperties.
-