Class VirtualMachineRunCommandScriptSource
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.VirtualMachineRunCommandScriptSource
-
public final class VirtualMachineRunCommandScriptSource extends Object
Describes the script sources for run command.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineRunCommandScriptSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcommandId()Get the commandId property: Specifies a commandId of predefined built-in script.Stringscript()Get the script property: Specifies the script content to be executed on the VM.StringscriptUri()Get the scriptUri property: Specifies the script download location.voidvalidate()Validates the instance.VirtualMachineRunCommandScriptSourcewithCommandId(String commandId)Set the commandId property: Specifies a commandId of predefined built-in script.VirtualMachineRunCommandScriptSourcewithScript(String script)Set the script property: Specifies the script content to be executed on the VM.VirtualMachineRunCommandScriptSourcewithScriptUri(String scriptUri)Set the scriptUri property: Specifies the script download location.
-
-
-
Method Detail
-
script
public String script()
Get the script property: Specifies the script content to be executed on the VM.- Returns:
- the script value.
-
withScript
public VirtualMachineRunCommandScriptSource withScript(String script)
Set the script property: Specifies the script content to be executed on the VM.- Parameters:
script- the script value to set.- Returns:
- the VirtualMachineRunCommandScriptSource object itself.
-
scriptUri
public String scriptUri()
Get the scriptUri property: Specifies the script download location.- Returns:
- the scriptUri value.
-
withScriptUri
public VirtualMachineRunCommandScriptSource withScriptUri(String scriptUri)
Set the scriptUri property: Specifies the script download location.- Parameters:
scriptUri- the scriptUri value to set.- Returns:
- the VirtualMachineRunCommandScriptSource object itself.
-
commandId
public String commandId()
Get the commandId property: Specifies a commandId of predefined built-in script.- Returns:
- the commandId value.
-
withCommandId
public VirtualMachineRunCommandScriptSource withCommandId(String commandId)
Set the commandId property: Specifies a commandId of predefined built-in script.- Parameters:
commandId- the commandId value to set.- Returns:
- the VirtualMachineRunCommandScriptSource object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-