Class Certificate
- java.lang.Object
-
- com.azure.resourcemanager.cdn.models.Certificate
-
- Direct Known Subclasses:
CustomerCertificate,ManagedCertificate
public class Certificate extends Object
Certificate used for https.
-
-
Constructor Summary
Constructors Constructor Description Certificate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringexpirationDate()Get the expirationDate property: Certificate expiration date.Stringsubject()Get the subject property: Subject name in the certificate.Stringthumbprint()Get the thumbprint property: Certificate thumbprint.voidvalidate()Validates the instance.CertificatewithExpirationDate(String expirationDate)Set the expirationDate property: Certificate expiration date.CertificatewithSubject(String subject)Set the subject property: Subject name in the certificate.CertificatewithThumbprint(String thumbprint)Set the thumbprint property: Certificate thumbprint.
-
-
-
Method Detail
-
subject
public String subject()
Get the subject property: Subject name in the certificate.- Returns:
- the subject value.
-
withSubject
public Certificate withSubject(String subject)
Set the subject property: Subject name in the certificate.- Parameters:
subject- the subject value to set.- Returns:
- the Certificate object itself.
-
expirationDate
public String expirationDate()
Get the expirationDate property: Certificate expiration date.- Returns:
- the expirationDate value.
-
withExpirationDate
public Certificate withExpirationDate(String expirationDate)
Set the expirationDate property: Certificate expiration date.- Parameters:
expirationDate- the expirationDate value to set.- Returns:
- the Certificate object itself.
-
thumbprint
public String thumbprint()
Get the thumbprint property: Certificate thumbprint.- Returns:
- the thumbprint value.
-
withThumbprint
public Certificate withThumbprint(String thumbprint)
Set the thumbprint property: Certificate thumbprint.- Parameters:
thumbprint- the thumbprint value to set.- Returns:
- the Certificate object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-