Class DataSource
java.lang.Object
com.azure.resourcemanager.appservice.models.DataSource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DataSource>
Class representing data source used by the detectors.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the dataSourceUri property: Datasource Uri Links.static DataSource
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DataSource from the JsonReader.Get the instructions property: Instructions if any for the data source.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withDataSourceUri
(List<NameValuePair> dataSourceUri) Set the dataSourceUri property: Datasource Uri Links.withInstructions
(List<String> instructions) Set the instructions property: Instructions if any for the data source.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DataSource
public DataSource()Creates an instance of DataSource class.
-
-
Method Details
-
instructions
Get the instructions property: Instructions if any for the data source.- Returns:
- the instructions value.
-
withInstructions
Set the instructions property: Instructions if any for the data source.- Parameters:
instructions
- the instructions value to set.- Returns:
- the DataSource object itself.
-
dataSourceUri
Get the dataSourceUri property: Datasource Uri Links.- Returns:
- the dataSourceUri value.
-
withDataSourceUri
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DataSource>
- Throws:
IOException
-
fromJson
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.
-