Class KeyVaultParameterReference
java.lang.Object
com.azure.resourcemanager.resources.models.KeyVaultParameterReference
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KeyVaultParameterReference>
public final class KeyVaultParameterReference
extends Object
implements com.azure.json.JsonSerializable<KeyVaultParameterReference>
Azure Key Vault parameter reference.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of KeyVaultParameterReference class. -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyVaultParameterReferencefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KeyVaultParameterReference from the JsonReader.keyVault()Get the keyVault property: Azure Key Vault reference.Get the secretName property: Azure Key Vault secret name.Get the secretVersion property: Azure Key Vault secret version.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withKeyVault(KeyVaultReference keyVault) Set the keyVault property: Azure Key Vault reference.withSecretName(String secretName) Set the secretName property: Azure Key Vault secret name.withSecretVersion(String secretVersion) Set the secretVersion property: Azure Key Vault secret version.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
-
KeyVaultParameterReference
public KeyVaultParameterReference()Creates an instance of KeyVaultParameterReference class.
-
-
Method Details
-
keyVault
Get the keyVault property: Azure Key Vault reference.- Returns:
- the keyVault value.
-
withKeyVault
Set the keyVault property: Azure Key Vault reference.- Parameters:
keyVault- the keyVault value to set.- Returns:
- the KeyVaultParameterReference object itself.
-
secretName
Get the secretName property: Azure Key Vault secret name.- Returns:
- the secretName value.
-
withSecretName
Set the secretName property: Azure Key Vault secret name.- Parameters:
secretName- the secretName value to set.- Returns:
- the KeyVaultParameterReference object itself.
-
secretVersion
Get the secretVersion property: Azure Key Vault secret version.- Returns:
- the secretVersion value.
-
withSecretVersion
Set the secretVersion property: Azure Key Vault secret version.- Parameters:
secretVersion- the secretVersion value to set.- Returns:
- the KeyVaultParameterReference 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<KeyVaultParameterReference>- Throws:
IOException
-
fromJson
public static KeyVaultParameterReference fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KeyVaultParameterReference from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KeyVaultParameterReference 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 KeyVaultParameterReference.
-