java.lang.Object
com.azure.resourcemanager.appservice.models.DataSource
All Implemented Interfaces:
com.azure.json.JsonSerializable<DataSource>

public final class DataSource extends Object implements com.azure.json.JsonSerializable<DataSource>
Class representing data source used by the detectors.
  • Constructor Details

    • DataSource

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

    • instructions

      public List<String> instructions()
      Get the instructions property: Instructions if any for the data source.
      Returns:
      the instructions value.
    • withInstructions

      public DataSource withInstructions(List<String> instructions)
      Set the instructions property: Instructions if any for the data source.
      Parameters:
      instructions - the instructions value to set.
      Returns:
      the DataSource object itself.
    • dataSourceUri

      public List<NameValuePair> dataSourceUri()
      Get the dataSourceUri property: Datasource Uri Links.
      Returns:
      the dataSourceUri value.
    • withDataSourceUri

      public DataSource withDataSourceUri(List<NameValuePair> dataSourceUri)
      Set the dataSourceUri property: Datasource Uri Links.
      Parameters:
      dataSourceUri - the dataSourceUri value to set.
      Returns:
      the DataSource 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<DataSource>
      Throws:
      IOException
    • fromJson

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