Class CustomerCertificate
- java.lang.Object
-
- com.azure.resourcemanager.cdn.models.Certificate
-
- com.azure.resourcemanager.cdn.models.CustomerCertificate
-
public final class CustomerCertificate extends Certificate
Customer Certificate used for https.
-
-
Constructor Summary
Constructors Constructor Description CustomerCertificate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcertificateAuthority()Get the certificateAuthority property: Certificate issuing authority.ResourceReferencesecretSource()Get the secretSource property: Resource reference to the Azure Key Vault certificate.StringsecretVersion()Get the secretVersion property: Certificate version.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.CustomerCertificatewithSecretSource(ResourceReference secretSource)Set the secretSource property: Resource reference to the Azure Key Vault certificate.CustomerCertificatewithSecretVersion(String secretVersion)Set the secretVersion property: Certificate version.CustomerCertificatewithSubjectAlternativeNames(List<String> subjectAlternativeNames)Set the subjectAlternativeNames property: The list of SANs.CustomerCertificatewithType(SecretType type)Set the type property: The type of the secret resource.CustomerCertificatewithUseLatestVersion(Boolean useLatestVersion)Set the useLatestVersion property: Whether to use the latest version for the certificate.-
Methods inherited from class com.azure.resourcemanager.cdn.models.Certificate
expirationDate, subject, type
-
-
-
-
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 CustomerCertificate 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 CustomerCertificate object itself.
-
secretVersion
public String secretVersion()
Get the secretVersion property: Certificate version.- Returns:
- the secretVersion value.
-
withSecretVersion
public CustomerCertificate withSecretVersion(String secretVersion)
Set the secretVersion property: Certificate version.- Parameters:
secretVersion- the secretVersion value to set.- Returns:
- the CustomerCertificate object itself.
-
certificateAuthority
public String certificateAuthority()
Get the certificateAuthority property: Certificate issuing authority.- Returns:
- the certificateAuthority value.
-
useLatestVersion
public Boolean useLatestVersion()
Get the useLatestVersion property: Whether to use the latest version for the certificate.- Returns:
- the useLatestVersion value.
-
withUseLatestVersion
public CustomerCertificate 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 CustomerCertificate object itself.
-
subjectAlternativeNames
public List<String> subjectAlternativeNames()
Get the subjectAlternativeNames property: The list of SANs.- Returns:
- the subjectAlternativeNames value.
-
withSubjectAlternativeNames
public CustomerCertificate withSubjectAlternativeNames(List<String> subjectAlternativeNames)
Set the subjectAlternativeNames property: The list of SANs.- Parameters:
subjectAlternativeNames- the subjectAlternativeNames value to set.- Returns:
- the CustomerCertificate object itself.
-
thumbprint
public String thumbprint()
Get the thumbprint property: Certificate thumbprint.- Returns:
- the thumbprint value.
-
withType
public CustomerCertificate withType(SecretType type)
Set the type property: The type of the secret resource.- Overrides:
withTypein classCertificate- Parameters:
type- the type value to set.- Returns:
- the Certificate object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classCertificate- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-