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 Details

    • KeyVaultParameterReference

      public KeyVaultParameterReference()
      Creates an instance of KeyVaultParameterReference class.
  • Method Details

    • keyVault

      public KeyVaultReference keyVault()
      Get the keyVault property: Azure Key Vault reference.
      Returns:
      the keyVault value.
    • withKeyVault

      public KeyVaultParameterReference withKeyVault(KeyVaultReference keyVault)
      Set the keyVault property: Azure Key Vault reference.
      Parameters:
      keyVault - the keyVault value to set.
      Returns:
      the KeyVaultParameterReference object itself.
    • secretName

      public String secretName()
      Get the secretName property: Azure Key Vault secret name.
      Returns:
      the secretName value.
    • withSecretName

      public KeyVaultParameterReference withSecretName(String secretName)
      Set the secretName property: Azure Key Vault secret name.
      Parameters:
      secretName - the secretName value to set.
      Returns:
      the KeyVaultParameterReference object itself.
    • secretVersion

      public String secretVersion()
      Get the secretVersion property: Azure Key Vault secret version.
      Returns:
      the secretVersion value.
    • withSecretVersion

      public KeyVaultParameterReference withSecretVersion(String secretVersion)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.