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 Details

    • ServerTrustCertificateProperties

      public ServerTrustCertificateProperties()
      Creates an instance of ServerTrustCertificateProperties class.
  • Method Details

    • publicBlob

      public String publicBlob()
      Get the publicBlob property: The certificate public blob.
      Returns:
      the publicBlob value.
    • withPublicBlob

      public ServerTrustCertificateProperties withPublicBlob(String publicBlob)
      Set the publicBlob property: The certificate public blob.
      Parameters:
      publicBlob - the publicBlob value to set.
      Returns:
      the ServerTrustCertificateProperties object itself.
    • thumbprint

      public String thumbprint()
      Get the thumbprint property: The certificate thumbprint.
      Returns:
      the thumbprint value.
    • certificateName

      public String 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.