Partager via


CertificateKeyVaultProperties Class

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

Implements

public final class CertificateKeyVaultProperties
implements JsonSerializable<CertificateKeyVaultProperties>

Properties for a certificate stored in a Key Vault.

Constructor Summary

Constructor Description
CertificateKeyVaultProperties()

Creates an instance of CertificateKeyVaultProperties class.

Method Summary

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

Reads an instance of CertificateKeyVaultProperties 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 that holds the certificate.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CertificateKeyVaultProperties 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.

CertificateKeyVaultProperties withKeyVaultUrl(String keyVaultUrl)

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

Methods inherited from java.lang.Object

Constructor Details

CertificateKeyVaultProperties

public CertificateKeyVaultProperties()

Creates an instance of CertificateKeyVaultProperties class.

Method Details

fromJson

public static CertificateKeyVaultProperties fromJson(JsonReader jsonReader)

Reads an instance of CertificateKeyVaultProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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 that holds the certificate.

Returns:

the keyVaultUrl value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIdentity

public CertificateKeyVaultProperties 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 CertificateKeyVaultProperties object itself.

withKeyVaultUrl

public CertificateKeyVaultProperties withKeyVaultUrl(String keyVaultUrl)

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

Parameters:

keyVaultUrl - the keyVaultUrl value to set.

Returns:

the CertificateKeyVaultProperties object itself.

Applies to