Class CustomerCertificateParameters
java.lang.Object
com.azure.resourcemanager.cdn.models.SecretParameters
com.azure.resourcemanager.cdn.models.CustomerCertificateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SecretParameters>
Customer Certificate used for https.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CustomerCertificateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the certificateAuthority property: Certificate issuing authority.Get the expirationDate property: Certificate expiration date.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CustomerCertificateParameters from the JsonReader.Get the secretSource property: Resource reference to the Azure Key Vault certificate.Get the secretVersion property: Version of the secret to be used.subject()Get the subject property: Subject name in the certificate.Get the subjectAlternativeNames property: The list of SANs.Get the thumbprint property: Certificate thumbprint.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the secret resource.Get the useLatestVersion property: Whether to use the latest version for the certificate.voidvalidate()Validates the instance.withSecretSource(ResourceReference secretSource) Set the secretSource property: Resource reference to the Azure Key Vault certificate.withSecretVersion(String secretVersion) Set the secretVersion property: Version of the secret to be used.withSubjectAlternativeNames(List<String> subjectAlternativeNames) Set the subjectAlternativeNames property: The list of SANs.withUseLatestVersion(Boolean useLatestVersion) Set the useLatestVersion property: Whether to use the latest version for the 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
-
CustomerCertificateParameters
public CustomerCertificateParameters()Creates an instance of CustomerCertificateParameters class.
-
-
Method Details
-
type
Get the type property: The type of the secret resource.- Overrides:
typein classSecretParameters- Returns:
- the type value.
-
secretSource
Get the secretSource property: Resource reference to the Azure Key Vault certificate. Expected to be in format of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{certificateName}.- Returns:
- the secretSource value.
-
withSecretSource
Set the secretSource property: Resource reference to the Azure Key Vault certificate. Expected to be in format of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets/{certificateName}.- Parameters:
secretSource- the secretSource value to set.- Returns:
- the CustomerCertificateParameters object itself.
-
secretVersion
Get the secretVersion property: Version of the secret to be used.- Returns:
- the secretVersion value.
-
withSecretVersion
Set the secretVersion property: Version of the secret to be used.- Parameters:
secretVersion- the secretVersion value to set.- Returns:
- the CustomerCertificateParameters object itself.
-
useLatestVersion
Get the useLatestVersion property: Whether to use the latest version for the certificate.- Returns:
- the useLatestVersion value.
-
withUseLatestVersion
Set the useLatestVersion property: Whether to use the latest version for the certificate.- Parameters:
useLatestVersion- the useLatestVersion value to set.- Returns:
- the CustomerCertificateParameters object itself.
-
subject
Get the subject property: Subject name in the certificate.- Returns:
- the subject value.
-
expirationDate
Get the expirationDate property: Certificate expiration date.- Returns:
- the expirationDate value.
-
certificateAuthority
Get the certificateAuthority property: Certificate issuing authority.- Returns:
- the certificateAuthority value.
-
subjectAlternativeNames
-
withSubjectAlternativeNames
public CustomerCertificateParameters withSubjectAlternativeNames(List<String> subjectAlternativeNames) Set the subjectAlternativeNames property: The list of SANs.- Parameters:
subjectAlternativeNames- the subjectAlternativeNames value to set.- Returns:
- the CustomerCertificateParameters object itself.
-
thumbprint
Get the thumbprint property: Certificate thumbprint.- Returns:
- the thumbprint value.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classSecretParameters- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SecretParameters>- Overrides:
toJsonin classSecretParameters- Throws:
IOException
-
fromJson
public static CustomerCertificateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CustomerCertificateParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CustomerCertificateParameters 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 CustomerCertificateParameters.
-