Class CustomerCertificateParameters
java.lang.Object
com.azure.resourcemanager.cdn.models.SecretParameters
com.azure.resourcemanager.cdn.models.CustomerCertificateParameters
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.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.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.
-
Constructor Details
-
CustomerCertificateParameters
public CustomerCertificateParameters()Creates an instance of CustomerCertificateParameters class.
-
-
Method Details
-
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
Get the subjectAlternativeNames property: The list of SANs.- Returns:
- the subjectAlternativeNames value.
-
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.
-