ScriptReference Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.ScriptReference

Implements

public final class ScriptReference
implements JsonSerializable<ScriptReference>

Script reference.

Constructor Summary

Constructor Description
ScriptReference()

Creates an instance of ScriptReference class.

Method Summary

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

Reads an instance of ScriptReference from the JsonReader.

String scriptArguments()

Get the scriptArguments property: Optional command line arguments passed to the script to run.

String scriptData()

Get the scriptData property: The location of scripts in the mounted volume.

String scriptSource()

Get the scriptSource property: The storage source of the script: workspace.

String timeout()

Get the timeout property: Optional time period passed to timeout command.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ScriptReference withScriptArguments(String scriptArguments)

Set the scriptArguments property: Optional command line arguments passed to the script to run.

ScriptReference withScriptData(String scriptData)

Set the scriptData property: The location of scripts in the mounted volume.

ScriptReference withScriptSource(String scriptSource)

Set the scriptSource property: The storage source of the script: workspace.

ScriptReference withTimeout(String timeout)

Set the timeout property: Optional time period passed to timeout command.

Methods inherited from java.lang.Object

Constructor Details

ScriptReference

public ScriptReference()

Creates an instance of ScriptReference class.

Method Details

fromJson

public static ScriptReference fromJson(JsonReader jsonReader)

Reads an instance of ScriptReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

scriptArguments

public String scriptArguments()

Get the scriptArguments property: Optional command line arguments passed to the script to run.

Returns:

the scriptArguments value.

scriptData

public String scriptData()

Get the scriptData property: The location of scripts in the mounted volume.

Returns:

the scriptData value.

scriptSource

public String scriptSource()

Get the scriptSource property: The storage source of the script: workspace.

Returns:

the scriptSource value.

timeout

public String timeout()

Get the timeout property: Optional time period passed to timeout command.

Returns:

the timeout value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withScriptArguments

public ScriptReference withScriptArguments(String scriptArguments)

Set the scriptArguments property: Optional command line arguments passed to the script to run.

Parameters:

scriptArguments - the scriptArguments value to set.

Returns:

the ScriptReference object itself.

withScriptData

public ScriptReference withScriptData(String scriptData)

Set the scriptData property: The location of scripts in the mounted volume.

Parameters:

scriptData - the scriptData value to set.

Returns:

the ScriptReference object itself.

withScriptSource

public ScriptReference withScriptSource(String scriptSource)

Set the scriptSource property: The storage source of the script: workspace.

Parameters:

scriptSource - the scriptSource value to set.

Returns:

the ScriptReference object itself.

withTimeout

public ScriptReference withTimeout(String timeout)

Set the timeout property: Optional time period passed to timeout command.

Parameters:

timeout - the timeout value to set.

Returns:

the ScriptReference object itself.

Applies to