QueryInput Class

  • java.lang.Object
    • com.azure.resourcemanager.streamanalytics.models.QueryInput

Implements

public final class QueryInput
implements JsonSerializable<QueryInput>

An input for the query compilation.

Constructor Summary

Constructor Description
QueryInput()

Creates an instance of QueryInput class.

Method Summary

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

Reads an instance of QueryInput from the JsonReader.

String name()

Get the name property: The name of the input.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the input, can be Stream or Reference.

void validate()

Validates the instance.

QueryInput withName(String name)

Set the name property: The name of the input.

QueryInput withType(String type)

Set the type property: The type of the input, can be Stream or Reference.

Methods inherited from java.lang.Object

Constructor Details

QueryInput

public QueryInput()

Creates an instance of QueryInput class.

Method Details

fromJson

public static QueryInput fromJson(JsonReader jsonReader)

Reads an instance of QueryInput from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of QueryInput if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

name

public String name()

Get the name property: The name of the input.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the input, can be Stream or Reference.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public QueryInput withName(String name)

Set the name property: The name of the input.

Parameters:

name - the name value to set.

Returns:

the QueryInput object itself.

withType

public QueryInput withType(String type)

Set the type property: The type of the input, can be Stream or Reference.

Parameters:

type - the type value to set.

Returns:

the QueryInput object itself.

Applies to