ScriptActivityParameter Class

  • java.lang.Object
    • com.azure.resourcemanager.datafactory.models.ScriptActivityParameter

Implements

public final class ScriptActivityParameter
implements JsonSerializable<ScriptActivityParameter>

Parameters of a script block.

Constructor Summary

Constructor Description
ScriptActivityParameter()

Creates an instance of ScriptActivityParameter class.

Method Summary

Modifier and Type Method and Description
ScriptActivityParameterDirection direction()

Get the direction property: The direction of the parameter.

static ScriptActivityParameter fromJson(JsonReader jsonReader)

Reads an instance of ScriptActivityParameter from the JsonReader.

Object name()

Get the name property: The name of the parameter.

Integer size()

Get the size property: The size of the output direction parameter.

JsonWriter toJson(JsonWriter jsonWriter)
ScriptActivityParameterType type()

Get the type property: The type of the parameter.

void validate()

Validates the instance.

Object value()

Get the value property: The value of the parameter.

ScriptActivityParameter withDirection(ScriptActivityParameterDirection direction)

Set the direction property: The direction of the parameter.

ScriptActivityParameter withName(Object name)

Set the name property: The name of the parameter.

ScriptActivityParameter withSize(Integer size)

Set the size property: The size of the output direction parameter.

ScriptActivityParameter withType(ScriptActivityParameterType type)

Set the type property: The type of the parameter.

ScriptActivityParameter withValue(Object value)

Set the value property: The value of the parameter.

Methods inherited from java.lang.Object

Constructor Details

ScriptActivityParameter

public ScriptActivityParameter()

Creates an instance of ScriptActivityParameter class.

Method Details

direction

public ScriptActivityParameterDirection direction()

Get the direction property: The direction of the parameter.

Returns:

the direction value.

fromJson

public static ScriptActivityParameter fromJson(JsonReader jsonReader)

Reads an instance of ScriptActivityParameter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public Object name()

Get the name property: The name of the parameter. Type: string (or Expression with resultType string).

Returns:

the name value.

size

public Integer size()

Get the size property: The size of the output direction parameter.

Returns:

the size value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public ScriptActivityParameterType type()

Get the type property: The type of the parameter.

Returns:

the type value.

validate

public void validate()

Validates the instance.

value

public Object value()

Get the value property: The value of the parameter. Type: string (or Expression with resultType string).

Returns:

the value value.

withDirection

public ScriptActivityParameter withDirection(ScriptActivityParameterDirection direction)

Set the direction property: The direction of the parameter.

Parameters:

direction - the direction value to set.

Returns:

the ScriptActivityParameter object itself.

withName

public ScriptActivityParameter withName(Object name)

Set the name property: The name of the parameter. Type: string (or Expression with resultType string).

Parameters:

name - the name value to set.

Returns:

the ScriptActivityParameter object itself.

withSize

public ScriptActivityParameter withSize(Integer size)

Set the size property: The size of the output direction parameter.

Parameters:

size - the size value to set.

Returns:

the ScriptActivityParameter object itself.

withType

public ScriptActivityParameter withType(ScriptActivityParameterType type)

Set the type property: The type of the parameter.

Parameters:

type - the type value to set.

Returns:

the ScriptActivityParameter object itself.

withValue

public ScriptActivityParameter withValue(Object value)

Set the value property: The value of the parameter. Type: string (or Expression with resultType string).

Parameters:

value - the value value to set.

Returns:

the ScriptActivityParameter object itself.

Applies to