Class CertificateBodyDescription
- java.lang.Object
-
- com.azure.resourcemanager.deviceprovisioningservices.models.CertificateBodyDescription
-
public final class CertificateBodyDescription extends Object
The JSON-serialized X509 Certificate.
-
-
Constructor Summary
Constructors Constructor Description CertificateBodyDescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
certificate()
Get the certificate property: Base-64 representation of the X509 leaf certificate .cer file or just .pem file content.Boolean
isVerified()
Get the isVerified property: True indicates that the certificate will be created in verified state and proof of possession will not be required.void
validate()
Validates the instance.CertificateBodyDescription
withCertificate(String certificate)
Set the certificate property: Base-64 representation of the X509 leaf certificate .cer file or just .pem file content.CertificateBodyDescription
withIsVerified(Boolean isVerified)
Set the isVerified property: True indicates that the certificate will be created in verified state and proof of possession will not be required.
-
-
-
Method Detail
-
certificate
public String certificate()
Get the certificate property: Base-64 representation of the X509 leaf certificate .cer file or just .pem file content.- Returns:
- the certificate value.
-
withCertificate
public CertificateBodyDescription withCertificate(String certificate)
Set the certificate property: Base-64 representation of the X509 leaf certificate .cer file or just .pem file content.- Parameters:
certificate
- the certificate value to set.- Returns:
- the CertificateBodyDescription object itself.
-
isVerified
public Boolean isVerified()
Get the isVerified property: True indicates that the certificate will be created in verified state and proof of possession will not be required.- Returns:
- the isVerified value.
-
withIsVerified
public CertificateBodyDescription withIsVerified(Boolean isVerified)
Set the isVerified property: True indicates that the certificate will be created in verified state and proof of possession will not be required.- Parameters:
isVerified
- the isVerified value to set.- Returns:
- the CertificateBodyDescription object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-