Class CustomerCertificateParameters
- java.lang.Object
-
- com.azure.resourcemanager.cdn.models.SecretParameters
-
- com.azure.resourcemanager.cdn.models.CustomerCertificateParameters
-
public final class CustomerCertificateParameters extends SecretParameters
Customer Certificate used for https.
-
-
Constructor Summary
Constructors Constructor Description CustomerCertificateParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcertificateAuthority()Get the certificateAuthority property: Certificate issuing authority.StringexpirationDate()Get the expirationDate property: Certificate expiration date.ResourceReferencesecretSource()Get the secretSource property: Resource reference to the Azure Key Vault certificate.StringsecretVersion()Get the secretVersion property: Version of the secret to be used.Stringsubject()Get the subject property: Subject name in the certificate.List<String>subjectAlternativeNames()Get the subjectAlternativeNames property: The list of SANs.Stringthumbprint()Get the thumbprint property: Certificate thumbprint.BooleanuseLatestVersion()Get the useLatestVersion property: Whether to use the latest version for the certificate.voidvalidate()Validates the instance.CustomerCertificateParameterswithSecretSource(ResourceReference secretSource)Set the secretSource property: Resource reference to the Azure Key Vault certificate.CustomerCertificateParameterswithSecretVersion(String secretVersion)Set the secretVersion property: Version of the secret to be used.CustomerCertificateParameterswithSubjectAlternativeNames(List<String> subjectAlternativeNames)Set the subjectAlternativeNames property: The list of SANs.CustomerCertificateParameterswithUseLatestVersion(Boolean useLatestVersion)Set the useLatestVersion property: Whether to use the latest version for the certificate.
-
-
-
Method Detail
-
secretSource
public ResourceReference 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
public CustomerCertificateParameters withSecretSource(ResourceReference secretSource)
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
public String secretVersion()
Get the secretVersion property: Version of the secret to be used.- Returns:
- the secretVersion value.
-
withSecretVersion
public CustomerCertificateParameters withSecretVersion(String secretVersion)
Set the secretVersion property: Version of the secret to be used.- Parameters:
secretVersion- the secretVersion value to set.- Returns:
- the CustomerCertificateParameters object itself.
-
useLatestVersion
public Boolean useLatestVersion()
Get the useLatestVersion property: Whether to use the latest version for the certificate.- Returns:
- the useLatestVersion value.
-
withUseLatestVersion
public CustomerCertificateParameters withUseLatestVersion(Boolean useLatestVersion)
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
public String subject()
Get the subject property: Subject name in the certificate.- Returns:
- the subject value.
-
expirationDate
public String expirationDate()
Get the expirationDate property: Certificate expiration date.- Returns:
- the expirationDate value.
-
certificateAuthority
public String certificateAuthority()
Get the certificateAuthority property: Certificate issuing authority.- Returns:
- the certificateAuthority value.
-
subjectAlternativeNames
public List<String> 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
public String 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.
-
-