ScriptActivityScriptBlock Class

  • java.lang.Object
    • com.azure.resourcemanager.datafactory.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> parameters()

Get the parameters property: Array of script parameters.

Object text()

Get the text property: The query text.

JsonWriter toJson(JsonWriter jsonWriter)
Object type()

Get the type property: The type of the query.

void validate()

Validates the instance.

ScriptActivityScriptBlock withParameters(List<ScriptActivityParameter> parameters)

Set the parameters property: Array of script parameters.

ScriptActivityScriptBlock withText(Object text)

Set the text property: The query text.

ScriptActivityScriptBlock withType(Object type)

Set the type property: The type of the query.

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.

parameters

public List<ScriptActivityParameter> parameters()

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

Returns:

the parameters value.

text

public Object text()

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

Returns:

the text value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public Object type()

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.

validate

public void validate()

Validates the instance.

withParameters

public ScriptActivityScriptBlock withParameters(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.

withText

public ScriptActivityScriptBlock withText(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.

withType

public ScriptActivityScriptBlock withType(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.

Applies to