SecretArchiveReference Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.models.SecretArchiveReference

Implements

public final class SecretArchiveReference
implements JsonSerializable<SecretArchiveReference>

SecretArchiveReference represents the reference to a secret in a key vault.

Constructor Summary

Constructor Description
SecretArchiveReference()

Creates an instance of SecretArchiveReference class.

Method Summary

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

Reads an instance of SecretArchiveReference from the JsonReader.

String keyVaultId()

Get the keyVaultId property: The resource ID of the key vault containing the secret.

String keyVaultUri()

Get the keyVaultUri property: The URI of the key containing the secret.

String secretName()

Get the secretName property: The name of the secret in the key vault.

String secretVersion()

Get the secretVersion property: The version of the secret in the key vault.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

SecretArchiveReference

public SecretArchiveReference()

Creates an instance of SecretArchiveReference class.

Method Details

fromJson

public static SecretArchiveReference fromJson(JsonReader jsonReader)

Reads an instance of SecretArchiveReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SecretArchiveReference if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the SecretArchiveReference.

keyVaultId

public String keyVaultId()

Get the keyVaultId property: The resource ID of the key vault containing the secret.

Returns:

the keyVaultId value.

keyVaultUri

public String keyVaultUri()

Get the keyVaultUri property: The URI of the key containing the secret.

Returns:

the keyVaultUri value.

secretName

public String secretName()

Get the secretName property: The name of the secret in the key vault.

Returns:

the secretName value.

secretVersion

public String secretVersion()

Get the secretVersion property: The version of the secret in the key vault.

Returns:

the secretVersion value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to