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 Details

    • ScriptsToExecute

      public ScriptsToExecute()
      Creates an instance of ScriptsToExecute class.
  • Method Details

    • startupScript

      public ScriptReference startupScript()
      Get the startupScript property: Script that's run every time the machine starts.
      Returns:
      the startupScript value.
    • 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.
    • creationScript

      public ScriptReference creationScript()
      Get the creationScript property: Script that's run only once during provision of the compute.
      Returns:
      the creationScript value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ScriptsToExecute>
      Throws:
      IOException
    • fromJson

      public static ScriptsToExecute fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.