Class KeyVaultCertificateSourceParameters
java.lang.Object
com.azure.resourcemanager.cdn.models.KeyVaultCertificateSourceParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KeyVaultCertificateSourceParameters>
public final class KeyVaultCertificateSourceParameters
extends Object
implements com.azure.json.JsonSerializable<KeyVaultCertificateSourceParameters>
Describes the parameters for using a user's KeyVault certificate for securing custom domain.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of KeyVaultCertificateSourceParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the deleteRule property: Describes the action that shall be taken when the certificate is removed from Key Vault.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KeyVaultCertificateSourceParameters from the JsonReader.Get the resourceGroupName property: Resource group of the user's Key Vault containing the SSL certificate.Get the secretName property: The name of Key Vault Secret (representing the full certificate PFX) in Key Vault.Get the secretVersion property: The version(GUID) of Key Vault Secret in Key Vault.Get the subscriptionId property: Subscription Id of the user's Key Vault containing the SSL certificate.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) typeName()Get the typeName property: The typeName property.Get the updateRule property: Describes the action that shall be taken when the certificate is updated in Key Vault.voidvalidate()Validates the instance.Get the vaultName property: The name of the user's Key Vault containing the SSL certificate.withDeleteRule(DeleteRule deleteRule) Set the deleteRule property: Describes the action that shall be taken when the certificate is removed from Key Vault.withResourceGroupName(String resourceGroupName) Set the resourceGroupName property: Resource group of the user's Key Vault containing the SSL certificate.withSecretName(String secretName) Set the secretName property: The name of Key Vault Secret (representing the full certificate PFX) in Key Vault.withSecretVersion(String secretVersion) Set the secretVersion property: The version(GUID) of Key Vault Secret in Key Vault.withSubscriptionId(String subscriptionId) Set the subscriptionId property: Subscription Id of the user's Key Vault containing the SSL certificate.withTypeName(String typeName) Set the typeName property: The typeName property.withUpdateRule(UpdateRule updateRule) Set the updateRule property: Describes the action that shall be taken when the certificate is updated in Key Vault.withVaultName(String vaultName) Set the vaultName property: The name of the user's Key Vault containing the SSL certificate.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
KeyVaultCertificateSourceParameters
public KeyVaultCertificateSourceParameters()Creates an instance of KeyVaultCertificateSourceParameters class.
-
-
Method Details
-
typeName
Get the typeName property: The typeName property.- Returns:
- the typeName value.
-
withTypeName
Set the typeName property: The typeName property.- Parameters:
typeName- the typeName value to set.- Returns:
- the KeyVaultCertificateSourceParameters object itself.
-
subscriptionId
Get the subscriptionId property: Subscription Id of the user's Key Vault containing the SSL certificate.- Returns:
- the subscriptionId value.
-
withSubscriptionId
Set the subscriptionId property: Subscription Id of the user's Key Vault containing the SSL certificate.- Parameters:
subscriptionId- the subscriptionId value to set.- Returns:
- the KeyVaultCertificateSourceParameters object itself.
-
resourceGroupName
Get the resourceGroupName property: Resource group of the user's Key Vault containing the SSL certificate.- Returns:
- the resourceGroupName value.
-
withResourceGroupName
Set the resourceGroupName property: Resource group of the user's Key Vault containing the SSL certificate.- Parameters:
resourceGroupName- the resourceGroupName value to set.- Returns:
- the KeyVaultCertificateSourceParameters object itself.
-
vaultName
Get the vaultName property: The name of the user's Key Vault containing the SSL certificate.- Returns:
- the vaultName value.
-
withVaultName
Set the vaultName property: The name of the user's Key Vault containing the SSL certificate.- Parameters:
vaultName- the vaultName value to set.- Returns:
- the KeyVaultCertificateSourceParameters object itself.
-
secretName
Get the secretName property: The name of Key Vault Secret (representing the full certificate PFX) in Key Vault.- Returns:
- the secretName value.
-
withSecretName
Set the secretName property: The name of Key Vault Secret (representing the full certificate PFX) in Key Vault.- Parameters:
secretName- the secretName value to set.- Returns:
- the KeyVaultCertificateSourceParameters object itself.
-
secretVersion
Get the secretVersion property: The version(GUID) of Key Vault Secret in Key Vault.- Returns:
- the secretVersion value.
-
withSecretVersion
Set the secretVersion property: The version(GUID) of Key Vault Secret in Key Vault.- Parameters:
secretVersion- the secretVersion value to set.- Returns:
- the KeyVaultCertificateSourceParameters object itself.
-
updateRule
Get the updateRule property: Describes the action that shall be taken when the certificate is updated in Key Vault.- Returns:
- the updateRule value.
-
withUpdateRule
Set the updateRule property: Describes the action that shall be taken when the certificate is updated in Key Vault.- Parameters:
updateRule- the updateRule value to set.- Returns:
- the KeyVaultCertificateSourceParameters object itself.
-
deleteRule
Get the deleteRule property: Describes the action that shall be taken when the certificate is removed from Key Vault.- Returns:
- the deleteRule value.
-
withDeleteRule
Set the deleteRule property: Describes the action that shall be taken when the certificate is removed from Key Vault.- Parameters:
deleteRule- the deleteRule value to set.- Returns:
- the KeyVaultCertificateSourceParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KeyVaultCertificateSourceParameters>- Throws:
IOException
-
fromJson
public static KeyVaultCertificateSourceParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KeyVaultCertificateSourceParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KeyVaultCertificateSourceParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the KeyVaultCertificateSourceParameters.
-