Share via


RawInputDatasourceProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.streamanalytics.fluent.models.RawInputDatasourceProperties

Implements

public final class RawInputDatasourceProperties
implements JsonSerializable<RawInputDatasourceProperties>

The properties that are associated with a raw input.

Constructor Summary

Constructor Description
RawInputDatasourceProperties()

Creates an instance of RawInputDatasourceProperties class.

Method Summary

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

Reads an instance of RawInputDatasourceProperties 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)
void validate()

Validates the instance.

RawInputDatasourceProperties withPayload(String payload)

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

RawInputDatasourceProperties 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 java.lang.Object

Constructor Details

RawInputDatasourceProperties

public RawInputDatasourceProperties()

Creates an instance of RawInputDatasourceProperties class.

Method Details

fromJson

public static RawInputDatasourceProperties fromJson(JsonReader jsonReader)

Reads an instance of RawInputDatasourceProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPayload

public RawInputDatasourceProperties 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 RawInputDatasourceProperties object itself.

withPayloadUri

public RawInputDatasourceProperties 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 RawInputDatasourceProperties object itself.

Applies to