Class ServerTrustCertificateProperties
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.ServerTrustCertificateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServerTrustCertificateProperties>
public final class ServerTrustCertificateProperties
extends Object
implements com.azure.json.JsonSerializable<ServerTrustCertificateProperties>
The properties of a server trust certificate.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ServerTrustCertificateProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the certificateName property: The certificate name.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServerTrustCertificateProperties from the JsonReader.Get the publicBlob property: The certificate public blob.Get the thumbprint property: The certificate thumbprint.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPublicBlob(String publicBlob) Set the publicBlob property: The certificate public blob.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ServerTrustCertificateProperties
public ServerTrustCertificateProperties()Creates an instance of ServerTrustCertificateProperties class.
-
-
Method Details
-
publicBlob
Get the publicBlob property: The certificate public blob.- Returns:
- the publicBlob value.
-
withPublicBlob
Set the publicBlob property: The certificate public blob.- Parameters:
publicBlob- the publicBlob value to set.- Returns:
- the ServerTrustCertificateProperties object itself.
-
thumbprint
Get the thumbprint property: The certificate thumbprint.- Returns:
- the thumbprint value.
-
certificateName
Get the certificateName property: The certificate name.- Returns:
- the certificateName value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ServerTrustCertificateProperties>- Throws:
IOException
-
fromJson
public static ServerTrustCertificateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ServerTrustCertificateProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ServerTrustCertificateProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ServerTrustCertificateProperties.
-