Class CertificateKeyVaultProperties
java.lang.Object
com.azure.resourcemanager.appcontainers.models.CertificateKeyVaultProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CertificateKeyVaultProperties>
public final class CertificateKeyVaultProperties
extends Object
implements com.azure.json.JsonSerializable<CertificateKeyVaultProperties>
Properties for a certificate stored in a Key Vault.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CertificateKeyVaultProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CertificateKeyVaultProperties from the JsonReader.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.Get the keyVaultUrl property: URL pointing to the Azure Key Vault secret that holds the certificate.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.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.withKeyVaultUrl
(String keyVaultUrl) Set the keyVaultUrl property: URL pointing to the Azure Key Vault secret that holds the certificate.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CertificateKeyVaultProperties
public CertificateKeyVaultProperties()Creates an instance of CertificateKeyVaultProperties class.
-
-
Method Details
-
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.
-
withIdentity
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.
-
keyVaultUrl
Get the keyVaultUrl property: URL pointing to the Azure Key Vault secret that holds the certificate.- Returns:
- the keyVaultUrl value.
-
withKeyVaultUrl
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<CertificateKeyVaultProperties>
- Throws:
IOException
-
fromJson
public static CertificateKeyVaultProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-