Compartilhar via


KeyVaultParameterReference Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.KeyVaultParameterReference

Implements

public final class KeyVaultParameterReference
implements JsonSerializable<KeyVaultParameterReference>

Azure Key Vault parameter reference.

Constructor Summary

Constructor Description
KeyVaultParameterReference()

Creates an instance of KeyVaultParameterReference class.

Method Summary

Modifier and Type Method and Description
static KeyVaultParameterReference fromJson(JsonReader jsonReader)

Reads an instance of KeyVaultParameterReference from the JsonReader.

KeyVaultReference keyVault()

Get the keyVault property: Azure Key Vault reference.

String secretName()

Get the secretName property: Azure Key Vault secret name.

String secretVersion()

Get the secretVersion property: Azure Key Vault secret version.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

KeyVaultParameterReference withKeyVault(KeyVaultReference keyVault)

Set the keyVault property: Azure Key Vault reference.

KeyVaultParameterReference withSecretName(String secretName)

Set the secretName property: Azure Key Vault secret name.

KeyVaultParameterReference withSecretVersion(String secretVersion)

Set the secretVersion property: Azure Key Vault secret version.

Methods inherited from java.lang.Object

Constructor Details

KeyVaultParameterReference

public KeyVaultParameterReference()

Creates an instance of KeyVaultParameterReference class.

Method Details

fromJson

public static KeyVaultParameterReference fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

keyVault

public KeyVaultReference keyVault()

Get the keyVault property: Azure Key Vault reference.

Returns:

the keyVault value.

secretName

public String secretName()

Get the secretName property: Azure Key Vault secret name.

Returns:

the secretName value.

secretVersion

public String secretVersion()

Get the secretVersion property: Azure Key Vault secret version.

Returns:

the secretVersion value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

Applies to