RawStreamInputDataSource Class
- java.
lang. Object - com.
azure. resourcemanager. streamanalytics. models. StreamInputDataSource - com.
azure. resourcemanager. streamanalytics. models. RawStreamInputDataSource
- com.
- com.
public final class RawStreamInputDataSource
extends StreamInputDataSource
Describes a raw input data source that contains stream 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 |
|---|---|
| RawStreamInputDataSource() |
Creates an instance of Raw |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Raw |
fromJson(JsonReader jsonReader)
Reads an instance of Raw |
| String |
payload()
Get the payload property: The JSON serialized content of the input data. |
| String |
payloadUri()
Get the payload |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: Indicates the type of input data source containing stream data. |
| void |
validate()
Validates the instance. |
|
Raw |
withPayload(String payload)
Set the payload property: The JSON serialized content of the input data. |
|
Raw |
withPayloadUri(String payloadUri)
Set the payload |
Methods inherited from StreamInputDataSource
Methods inherited from java.lang.Object
Constructor Details
RawStreamInputDataSource
public RawStreamInputDataSource()
Creates an instance of RawStreamInputDataSource class.
Method Details
fromJson
public static RawStreamInputDataSource fromJson(JsonReader jsonReader)
Reads an instance of RawStreamInputDataSource from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RawStreamInputDataSource.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests.
Overrides:
RawStreamInputDataSource.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
RawStreamInputDataSource.validate()withPayload
public RawStreamInputDataSource 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:
Returns:
withPayloadUri
public RawStreamInputDataSource 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:
Returns: