Partager via


SecretKeyVaultProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.appcontainers.models.SecretKeyVaultProperties

Implements

public final class SecretKeyVaultProperties
implements JsonSerializable<SecretKeyVaultProperties>

Properties for a secret stored in a Key Vault.

Constructor Summary

Constructor Description
SecretKeyVaultProperties()

Creates an instance of SecretKeyVaultProperties class.

Method Summary

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

Reads an instance of SecretKeyVaultProperties from the JsonReader.

String identity()

Get the identity property: Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.

String keyVaultUrl()

Get the keyVaultUrl property: URL pointing to the Azure Key Vault secret.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SecretKeyVaultProperties withIdentity(String identity)

Set the identity property: Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.

SecretKeyVaultProperties withKeyVaultUrl(String keyVaultUrl)

Set the keyVaultUrl property: URL pointing to the Azure Key Vault secret.

Methods inherited from java.lang.Object

Constructor Details

SecretKeyVaultProperties

public SecretKeyVaultProperties()

Creates an instance of SecretKeyVaultProperties class.

Method Details

fromJson

public static SecretKeyVaultProperties fromJson(JsonReader jsonReader)

Reads an instance of SecretKeyVaultProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

identity

public String identity()

Get the identity property: Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.

Returns:

the identity value.

keyVaultUrl

public String keyVaultUrl()

Get the keyVaultUrl property: URL pointing to the Azure Key Vault secret.

Returns:

the keyVaultUrl value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIdentity

public SecretKeyVaultProperties withIdentity(String identity)

Set the identity property: Resource ID of a managed identity to authenticate with Azure Key Vault, or System to use a system-assigned identity.

Parameters:

identity - the identity value to set.

Returns:

the SecretKeyVaultProperties object itself.

withKeyVaultUrl

public SecretKeyVaultProperties withKeyVaultUrl(String keyVaultUrl)

Set the keyVaultUrl property: URL pointing to the Azure Key Vault secret.

Parameters:

keyVaultUrl - the keyVaultUrl value to set.

Returns:

the SecretKeyVaultProperties object itself.

Applies to