ScriptStringExecutionParameter Class

public final class ScriptStringExecutionParameter
extends ScriptExecutionParameter

a plain text value execution parameter.

Constructor Summary

Constructor Description
ScriptStringExecutionParameter()

Creates an instance of ScriptStringExecutionParameter class.

Method Summary

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

Reads an instance of ScriptStringExecutionParameter from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
ScriptExecutionParameterType type()

Get the type property: script execution parameter type.

void validate()

Validates the instance.

String value()

Get the value property: The value for the passed parameter.

ScriptStringExecutionParameter withName(String name)

Set the name property: The parameter name.

ScriptStringExecutionParameter withValue(String value)

Set the value property: The value for the passed parameter.

Methods inherited from ScriptExecutionParameter

Methods inherited from java.lang.Object

Constructor Details

ScriptStringExecutionParameter

public ScriptStringExecutionParameter()

Creates an instance of ScriptStringExecutionParameter class.

Method Details

fromJson

public static ScriptStringExecutionParameter fromJson(JsonReader jsonReader)

Reads an instance of ScriptStringExecutionParameter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ScriptStringExecutionParameter.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public ScriptExecutionParameterType type()

Get the type property: script execution parameter type.

Overrides:

ScriptStringExecutionParameter.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

ScriptStringExecutionParameter.validate()

value

public String value()

Get the value property: The value for the passed parameter.

Returns:

the value value.

withName

public ScriptStringExecutionParameter withName(String name)

Set the name property: The parameter name.

Overrides:

ScriptStringExecutionParameter.withName(String name)

Parameters:

name

withValue

public ScriptStringExecutionParameter withValue(String value)

Set the value property: The value for the passed parameter.

Parameters:

value - the value value to set.

Returns:

the ScriptStringExecutionParameter object itself.

Applies to