Class EndpointCertificateProperties

java.lang.Object
com.azure.resourcemanager.sql.fluent.models.EndpointCertificateProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<EndpointCertificateProperties>

public final class EndpointCertificateProperties extends Object implements com.azure.json.JsonSerializable<EndpointCertificateProperties>
The properties of an endpoint certificate.
  • Constructor Details

    • EndpointCertificateProperties

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

    • publicBlob

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

      public EndpointCertificateProperties withPublicBlob(String publicBlob)
      Set the publicBlob property: The certificate public blob.
      Parameters:
      publicBlob - the publicBlob value to set.
      Returns:
      the EndpointCertificateProperties object itself.
    • 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<EndpointCertificateProperties>
      Throws:
      IOException
    • fromJson

      public static EndpointCertificateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of EndpointCertificateProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of EndpointCertificateProperties 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 EndpointCertificateProperties.