KeyVaultAndSecretReference Class

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

Implements

public final class KeyVaultAndSecretReference
implements JsonSerializable<KeyVaultAndSecretReference>

Key Vault Secret Url and vault id of the encryption key.

Constructor Summary

Constructor Description
KeyVaultAndSecretReference()

Creates an instance of KeyVaultAndSecretReference class.

Method Summary

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

Reads an instance of KeyVaultAndSecretReference from the JsonReader.

String secretUrl()

Get the secretUrl property: Url pointing to a key or secret in KeyVault.

SourceVault sourceVault()

Get the sourceVault property: Resource id of the KeyVault containing the key or secret.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

KeyVaultAndSecretReference withSecretUrl(String secretUrl)

Set the secretUrl property: Url pointing to a key or secret in KeyVault.

KeyVaultAndSecretReference withSourceVault(SourceVault sourceVault)

Set the sourceVault property: Resource id of the KeyVault containing the key or secret.

Methods inherited from java.lang.Object

Constructor Details

KeyVaultAndSecretReference

public KeyVaultAndSecretReference()

Creates an instance of KeyVaultAndSecretReference class.

Method Details

fromJson

public static KeyVaultAndSecretReference fromJson(JsonReader jsonReader)

Reads an instance of KeyVaultAndSecretReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of KeyVaultAndSecretReference 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: Url pointing to a key or secret in KeyVault.

Returns:

the secretUrl value.

sourceVault

public SourceVault sourceVault()

Get the sourceVault property: Resource id of the KeyVault containing the key or secret.

Returns:

the sourceVault value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSecretUrl

public KeyVaultAndSecretReference withSecretUrl(String secretUrl)

Set the secretUrl property: Url pointing to a key or secret in KeyVault.

Parameters:

secretUrl - the secretUrl value to set.

Returns:

the KeyVaultAndSecretReference object itself.

withSourceVault

public KeyVaultAndSecretReference withSourceVault(SourceVault sourceVault)

Set the sourceVault property: Resource id of the KeyVault containing the key or secret.

Parameters:

sourceVault - the sourceVault value to set.

Returns:

the KeyVaultAndSecretReference object itself.

Applies to