ScriptsToExecute Class

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

Implements

public final class ScriptsToExecute
implements JsonSerializable<ScriptsToExecute>

Customized setup scripts.

Constructor Summary

Constructor Description
ScriptsToExecute()

Creates an instance of ScriptsToExecute class.

Method Summary

Modifier and Type Method and Description
ScriptReference creationScript()

Get the creationScript property: Script that's run only once during provision of the compute.

static ScriptsToExecute fromJson(JsonReader jsonReader)

Reads an instance of ScriptsToExecute from the JsonReader.

ScriptReference startupScript()

Get the startupScript property: Script that's run every time the machine starts.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ScriptsToExecute withCreationScript(ScriptReference creationScript)

Set the creationScript property: Script that's run only once during provision of the compute.

ScriptsToExecute withStartupScript(ScriptReference startupScript)

Set the startupScript property: Script that's run every time the machine starts.

Methods inherited from java.lang.Object

Constructor Details

ScriptsToExecute

public ScriptsToExecute()

Creates an instance of ScriptsToExecute class.

Method Details

creationScript

public ScriptReference creationScript()

Get the creationScript property: Script that's run only once during provision of the compute.

Returns:

the creationScript value.

fromJson

public static ScriptsToExecute fromJson(JsonReader jsonReader)

Reads an instance of ScriptsToExecute from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

startupScript

public ScriptReference startupScript()

Get the startupScript property: Script that's run every time the machine starts.

Returns:

the startupScript value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCreationScript

public ScriptsToExecute withCreationScript(ScriptReference creationScript)

Set the creationScript property: Script that's run only once during provision of the compute.

Parameters:

creationScript - the creationScript value to set.

Returns:

the ScriptsToExecute object itself.

withStartupScript

public ScriptsToExecute withStartupScript(ScriptReference startupScript)

Set the startupScript property: Script that's run every time the machine starts.

Parameters:

startupScript - the startupScript value to set.

Returns:

the ScriptsToExecute object itself.

Applies to