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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScriptReferencefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ScriptReference from the JsonReader.Get the scriptArguments property: Optional command line arguments passed to the script to run.Get the scriptData property: The location of scripts in the mounted volume.Get the scriptSource property: The storage source of the script: workspace.timeout()Get the timeout property: Optional time period passed to timeout command.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withScriptArguments(String scriptArguments) Set the scriptArguments property: Optional command line arguments passed to the script to run.withScriptData(String scriptData) Set the scriptData property: The location of scripts in the mounted volume.withScriptSource(String scriptSource) Set the scriptSource property: The storage source of the script: workspace.withTimeout(String timeout) Set the timeout property: Optional time period passed to timeout command.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
-
ScriptReference
public ScriptReference()Creates an instance of ScriptReference class.
-
-
Method Details
-
scriptSource
Get the scriptSource property: The storage source of the script: workspace.- Returns:
- the scriptSource value.
-
withScriptSource
Set the scriptSource property: The storage source of the script: workspace.- Parameters:
scriptSource- the scriptSource value to set.- Returns:
- the ScriptReference object itself.
-
scriptData
Get the scriptData property: The location of scripts in the mounted volume.- Returns:
- the scriptData value.
-
withScriptData
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
Get the scriptArguments property: Optional command line arguments passed to the script to run.- Returns:
- the scriptArguments value.
-
withScriptArguments
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
Get the timeout property: Optional time period passed to timeout command.- Returns:
- the timeout value.
-
withTimeout
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ScriptReference>- Throws:
IOException
-
fromJson
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.
-