ScriptActivityScriptBlock Class

  • java.lang.Object
    • com.azure.analytics.synapse.artifacts.models.ScriptActivityScriptBlock

Implements

public final class ScriptActivityScriptBlock
implements JsonSerializable<ScriptActivityScriptBlock>

Script block of scripts.

Constructor Summary

Constructor Description
ScriptActivityScriptBlock()

Creates an instance of ScriptActivityScriptBlock class.

Method Summary

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

Reads an instance of ScriptActivityScriptBlock from the JsonReader.

List<ScriptActivityParameter> getParameters()

Get the parameters property: Array of script parameters.

Object getText()

Get the text property: The query text.

Object getType()

Get the type property: The type of the query.

ScriptActivityScriptBlock setParameters(List<ScriptActivityParameter> parameters)

Set the parameters property: Array of script parameters.

ScriptActivityScriptBlock setText(Object text)

Set the text property: The query text.

ScriptActivityScriptBlock setType(Object type)

Set the type property: The type of the query.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

ScriptActivityScriptBlock

public ScriptActivityScriptBlock()

Creates an instance of ScriptActivityScriptBlock class.

Method Details

fromJson

public static ScriptActivityScriptBlock fromJson(JsonReader jsonReader)

Reads an instance of ScriptActivityScriptBlock from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getParameters

public List<ScriptActivityParameter> getParameters()

Get the parameters property: Array of script parameters. Type: array.

Returns:

the parameters value.

getText

public Object getText()

Get the text property: The query text. Type: string (or Expression with resultType string).

Returns:

the text value.

getType

public Object getType()

Get the type property: The type of the query. Please refer to the ScriptType for valid options. Type: string (or Expression with resultType string).

Returns:

the type value.

setParameters

public ScriptActivityScriptBlock setParameters(List<ScriptActivityParameter> parameters)

Set the parameters property: Array of script parameters. Type: array.

Parameters:

parameters - the parameters value to set.

Returns:

the ScriptActivityScriptBlock object itself.

setText

public ScriptActivityScriptBlock setText(Object text)

Set the text property: The query text. Type: string (or Expression with resultType string).

Parameters:

text - the text value to set.

Returns:

the ScriptActivityScriptBlock object itself.

setType

public ScriptActivityScriptBlock setType(Object type)

Set the type property: The type of the query. Please refer to the ScriptType for valid options. Type: string (or Expression with resultType string).

Parameters:

type - the type value to set.

Returns:

the ScriptActivityScriptBlock object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to