ScriptExecutionParameter Class

  • java.lang.Object
    • com.azure.resourcemanager.avs.models.ScriptExecutionParameter

Implements

public class ScriptExecutionParameter
implements JsonSerializable<ScriptExecutionParameter>

The arguments passed in to the execution.

Constructor Summary

Constructor Description
ScriptExecutionParameter()

Creates an instance of ScriptExecutionParameter class.

Method Summary

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

Reads an instance of ScriptExecutionParameter from the JsonReader.

String name()

Get the name property: The parameter name.

JsonWriter toJson(JsonWriter jsonWriter)
ScriptExecutionParameterType type()

Get the type property: script execution parameter type.

void validate()

Validates the instance.

ScriptExecutionParameter withName(String name)

Set the name property: The parameter name.

Methods inherited from java.lang.Object

Constructor Details

ScriptExecutionParameter

public ScriptExecutionParameter()

Creates an instance of ScriptExecutionParameter class.

Method Details

fromJson

public static ScriptExecutionParameter fromJson(JsonReader jsonReader)

Reads an instance of ScriptExecutionParameter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ScriptExecutionParameter 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 parameter name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public ScriptExecutionParameterType type()

Get the type property: script execution parameter type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public ScriptExecutionParameter withName(String name)

Set the name property: The parameter name.

Parameters:

name - the name value to set.

Returns:

the ScriptExecutionParameter object itself.

Applies to