Class QueryProperties

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

public final class QueryProperties extends Object implements com.azure.json.JsonSerializable<QueryProperties>
Properties of a database query.
  • Constructor Details

    • QueryProperties

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

    • queryText

      public String queryText()
      Get the queryText property: Query text.
      Returns:
      the queryText value.
    • withQueryText

      public QueryProperties withQueryText(String queryText)
      Set the queryText property: Query text.
      Parameters:
      queryText - the queryText value to set.
      Returns:
      the QueryProperties 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<QueryProperties>
      Throws:
      IOException
    • fromJson

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