Class ScriptsToExecute
java.lang.Object
com.azure.resourcemanager.machinelearning.models.ScriptsToExecute
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ScriptsToExecute>
public final class ScriptsToExecute
extends Object
implements com.azure.json.JsonSerializable<ScriptsToExecute>
Customized setup scripts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the creationScript property: Script that's run only once during provision of the compute.static ScriptsToExecutefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ScriptsToExecute from the JsonReader.Get the startupScript property: Script that's run every time the machine starts.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCreationScript(ScriptReference creationScript) Set the creationScript property: Script that's run only once during provision of the compute.withStartupScript(ScriptReference startupScript) Set the startupScript property: Script that's run every time the machine starts.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ScriptsToExecute
public ScriptsToExecute()Creates an instance of ScriptsToExecute class.
-
-
Method Details
-
startupScript
Get the startupScript property: Script that's run every time the machine starts.- Returns:
- the startupScript value.
-
withStartupScript
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.
-
creationScript
Get the creationScript property: Script that's run only once during provision of the compute.- Returns:
- the creationScript value.
-
withCreationScript
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ScriptsToExecute>- Throws:
IOException
-
fromJson
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.
-