Partilhar via


KeyVaultSecretReference Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.KeyVaultSecretReference

Implements

public final class KeyVaultSecretReference
implements JsonSerializable<KeyVaultSecretReference>

Describes a reference to Key Vault Secret.

Constructor Summary

Constructor Description
KeyVaultSecretReference()

Creates an instance of KeyVaultSecretReference class.

Method Summary

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

Reads an instance of KeyVaultSecretReference from the JsonReader.

String secretUrl()

Get the secretUrl property: The URL referencing a secret in a Key Vault.

SubResource sourceVault()

Get the sourceVault property: The relative URL of the Key Vault containing the secret.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

KeyVaultSecretReference withSecretUrl(String secretUrl)

Set the secretUrl property: The URL referencing a secret in a Key Vault.

KeyVaultSecretReference withSourceVault(SubResource sourceVault)

Set the sourceVault property: The relative URL of the Key Vault containing the secret.

Methods inherited from java.lang.Object

Constructor Details

KeyVaultSecretReference

public KeyVaultSecretReference()

Creates an instance of KeyVaultSecretReference class.

Method Details

fromJson

public static KeyVaultSecretReference fromJson(JsonReader jsonReader)

Reads an instance of KeyVaultSecretReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of KeyVaultSecretReference 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.

secretUrl

public String secretUrl()

Get the secretUrl property: The URL referencing a secret in a Key Vault.

Returns:

the secretUrl value.

sourceVault

public SubResource sourceVault()

Get the sourceVault property: The relative URL of the Key Vault containing the secret.

Returns:

the sourceVault value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSecretUrl

public KeyVaultSecretReference withSecretUrl(String secretUrl)

Set the secretUrl property: The URL referencing a secret in a Key Vault.

Parameters:

secretUrl - the secretUrl value to set.

Returns:

the KeyVaultSecretReference object itself.

withSourceVault

public KeyVaultSecretReference withSourceVault(SubResource sourceVault)

Set the sourceVault property: The relative URL of the Key Vault containing the secret.

Parameters:

sourceVault - the sourceVault value to set.

Returns:

the KeyVaultSecretReference object itself.

Applies to