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.StringcertificateUrl()Get the certificateUrl property: Complete Url to the certificate.List<String>subjectAlternativeNames()Get the subjectAlternativeNames property: The list of SANs.BooleanuseLatestVersion()Get the useLatestVersion property: Whether to use the latest version for the certificate.voidvalidate()Validates the instance.Stringversion()Get the version property: Certificate version.CustomerCertificatewithCertificateAuthority(String certificateAuthority)Set the certificateAuthority property: Certificate issuing authority.CustomerCertificatewithCertificateUrl(String certificateUrl)Set the certificateUrl property: Complete Url to the certificate.CustomerCertificatewithExpirationDate(String expirationDate)Set the expirationDate property: Certificate expiration date.CustomerCertificatewithSubject(String subject)Set the subject property: Subject name in the certificate.CustomerCertificatewithSubjectAlternativeNames(List<String> subjectAlternativeNames)Set the subjectAlternativeNames property: The list of SANs.CustomerCertificatewithThumbprint(String thumbprint)Set the thumbprint property: Certificate thumbprint.CustomerCertificatewithUseLatestVersion(Boolean useLatestVersion)Set the useLatestVersion property: Whether to use the latest version for the certificate.CustomerCertificatewithVersion(String version)Set the version property: Certificate version.-
Methods inherited from class com.azure.resourcemanager.cdn.models.Certificate
expirationDate, subject, thumbprint
-
-
-
-
Method Detail
-
version
public String version()
Get the version property: Certificate version.- Returns:
- the version value.
-
withVersion
public CustomerCertificate withVersion(String version)
Set the version property: Certificate version.- Parameters:
version- the version value to set.- Returns:
- the CustomerCertificate object itself.
-
certificateAuthority
public String certificateAuthority()
Get the certificateAuthority property: Certificate issuing authority.- Returns:
- the certificateAuthority value.
-
withCertificateAuthority
public CustomerCertificate withCertificateAuthority(String certificateAuthority)
Set the certificateAuthority property: Certificate issuing authority.- Parameters:
certificateAuthority- the certificateAuthority value to set.- Returns:
- the CustomerCertificate object itself.
-
certificateUrl
public String certificateUrl()
Get the certificateUrl property: Complete Url to the certificate.- Returns:
- the certificateUrl value.
-
withCertificateUrl
public CustomerCertificate withCertificateUrl(String certificateUrl)
Set the certificateUrl property: Complete Url to the certificate.- Parameters:
certificateUrl- the certificateUrl value to set.- Returns:
- the CustomerCertificate 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 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.
-
withSubject
public CustomerCertificate withSubject(String subject)
Set the subject property: Subject name in the certificate.- Overrides:
withSubjectin classCertificate- Parameters:
subject- the subject value to set.- Returns:
- the Certificate object itself.
-
withExpirationDate
public CustomerCertificate withExpirationDate(String expirationDate)
Set the expirationDate property: Certificate expiration date.- Overrides:
withExpirationDatein classCertificate- Parameters:
expirationDate- the expirationDate value to set.- Returns:
- the Certificate object itself.
-
withThumbprint
public CustomerCertificate withThumbprint(String thumbprint)
Set the thumbprint property: Certificate thumbprint.- Overrides:
withThumbprintin classCertificate- Parameters:
thumbprint- the thumbprint 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.
-
-