Class VirtualMachineRunCommandScriptSource
java.lang.Object
com.microsoft.azure.management.compute.VirtualMachineRunCommandScriptSource
Describes the script sources for run command.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet specifies a commandId of predefined built-in script.script()
Get specifies the script content to be executed on the VM.Get specifies the script download location.withCommandId
(String commandId) Set specifies a commandId of predefined built-in script.withScript
(String script) Set specifies the script content to be executed on the VM.withScriptUri
(String scriptUri) Set specifies the script download location.
-
Constructor Details
-
VirtualMachineRunCommandScriptSource
public VirtualMachineRunCommandScriptSource()
-
-
Method Details
-
script
Get specifies the script content to be executed on the VM.- Returns:
- the script value
-
withScript
Set specifies the script content to be executed on the VM.- Parameters:
script
- the script value to set- Returns:
- the VirtualMachineRunCommandScriptSource object itself.
-
scriptUri
Get specifies the script download location.- Returns:
- the scriptUri value
-
withScriptUri
Set specifies the script download location.- Parameters:
scriptUri
- the scriptUri value to set- Returns:
- the VirtualMachineRunCommandScriptSource object itself.
-
commandId
Get specifies a commandId of predefined built-in script.- Returns:
- the commandId value
-
withCommandId
Set specifies a commandId of predefined built-in script.- Parameters:
commandId
- the commandId value to set- Returns:
- the VirtualMachineRunCommandScriptSource object itself.
-