DataSource Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.DataSource

Implements

public final class DataSource
implements JsonSerializable<DataSource>

Class representing data source used by the detectors.

Constructor Summary

Constructor Description
DataSource()

Creates an instance of DataSource class.

Method Summary

Modifier and Type Method and Description
List<NameValuePair> dataSourceUri()

Get the dataSourceUri property: Datasource Uri Links.

static DataSource fromJson(JsonReader jsonReader)

Reads an instance of DataSource from the JsonReader.

List<String> instructions()

Get the instructions property: Instructions if any for the data source.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DataSource withDataSourceUri(List<NameValuePair> dataSourceUri)

Set the dataSourceUri property: Datasource Uri Links.

DataSource withInstructions(List<String> instructions)

Set the instructions property: Instructions if any for the data source.

Methods inherited from java.lang.Object

Constructor Details

DataSource

public DataSource()

Creates an instance of DataSource class.

Method Details

dataSourceUri

public List dataSourceUri()

Get the dataSourceUri property: Datasource Uri Links.

Returns:

the dataSourceUri value.

fromJson

public static DataSource fromJson(JsonReader jsonReader)

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.

instructions

public List instructions()

Get the instructions property: Instructions if any for the data source.

Returns:

the instructions value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDataSourceUri

public DataSource withDataSourceUri(List dataSourceUri)

Set the dataSourceUri property: Datasource Uri Links.

Parameters:

dataSourceUri - the dataSourceUri value to set.

Returns:

the DataSource object itself.

withInstructions

public DataSource withInstructions(List instructions)

Set the instructions property: Instructions if any for the data source.

Parameters:

instructions - the instructions value to set.

Returns:

the DataSource object itself.

Applies to