Class ScriptReference

java.lang.Object
com.azure.resourcemanager.machinelearning.models.ScriptReference
All Implemented Interfaces:
com.azure.json.JsonSerializable<ScriptReference>

public final class ScriptReference extends Object implements com.azure.json.JsonSerializable<ScriptReference>
Script reference.
  • Constructor Details

    • ScriptReference

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

    • scriptSource

      public String scriptSource()
      Get the scriptSource property: The storage source of the script: workspace.
      Returns:
      the scriptSource value.
    • 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.
    • scriptData

      public String scriptData()
      Get the scriptData property: The location of scripts in the mounted volume.
      Returns:
      the scriptData value.
    • 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.
    • scriptArguments

      public String scriptArguments()
      Get the scriptArguments property: Optional command line arguments passed to the script to run.
      Returns:
      the scriptArguments value.
    • 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.
    • timeout

      public String timeout()
      Get the timeout property: Optional time period passed to timeout command.
      Returns:
      the timeout value.
    • 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.
    • 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<ScriptReference>
      Throws:
      IOException
    • fromJson

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