RawReferenceInputDataSource Class

public final class RawReferenceInputDataSource
extends ReferenceInputDataSource

Describes a raw input data source that contains reference data. This data source type is only applicable/usable when using the query testing API. You cannot create a job with this data source type or add an input of this data source type to an existing job.

Constructor Summary

Constructor Description
RawReferenceInputDataSource()

Creates an instance of RawReferenceInputDataSource class.

Method Summary

Modifier and Type Method and Description
static RawReferenceInputDataSource fromJson(JsonReader jsonReader)

Reads an instance of RawReferenceInputDataSource from the JsonReader.

String payload()

Get the payload property: The JSON serialized content of the input data.

String payloadUri()

Get the payloadUri property: The SAS URL to a blob containing the JSON serialized content of the input data.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Indicates the type of input data source containing reference data.

void validate()

Validates the instance.

RawReferenceInputDataSource withPayload(String payload)

Set the payload property: The JSON serialized content of the input data.

RawReferenceInputDataSource withPayloadUri(String payloadUri)

Set the payloadUri property: The SAS URL to a blob containing the JSON serialized content of the input data.

Methods inherited from ReferenceInputDataSource

Methods inherited from java.lang.Object

Constructor Details

RawReferenceInputDataSource

public RawReferenceInputDataSource()

Creates an instance of RawReferenceInputDataSource class.

Method Details

fromJson

public static RawReferenceInputDataSource fromJson(JsonReader jsonReader)

Reads an instance of RawReferenceInputDataSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RawReferenceInputDataSource 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 RawReferenceInputDataSource.

payload

public String payload()

Get the payload property: The JSON serialized content of the input data. Either payload or payloadUri must be set, but not both.

Returns:

the payload value.

payloadUri

public String payloadUri()

Get the payloadUri property: The SAS URL to a blob containing the JSON serialized content of the input data. Either payload or payloadUri must be set, but not both.

Returns:

the payloadUri value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RawReferenceInputDataSource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests.

Overrides:

RawReferenceInputDataSource.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

RawReferenceInputDataSource.validate()

withPayload

public RawReferenceInputDataSource withPayload(String payload)

Set the payload property: The JSON serialized content of the input data. Either payload or payloadUri must be set, but not both.

Parameters:

payload - the payload value to set.

Returns:

the RawReferenceInputDataSource object itself.

withPayloadUri

public RawReferenceInputDataSource withPayloadUri(String payloadUri)

Set the payloadUri property: The SAS URL to a blob containing the JSON serialized content of the input data. Either payload or payloadUri must be set, but not both.

Parameters:

payloadUri - the payloadUri value to set.

Returns:

the RawReferenceInputDataSource object itself.

Applies to