RunCommandInput Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. RunCommandInput
- com.
Implements
public final class RunCommandInput
implements JsonSerializable<RunCommandInput>
Capture Virtual Machine parameters.
Constructor Summary
| Constructor | Description |
|---|---|
| RunCommandInput() |
Creates an instance of Run |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
commandId()
Get the command |
|
static
Run |
fromJson(JsonReader jsonReader)
Reads an instance of Run |
|
List<Run |
parameters()
Get the parameters property: The run command parameters. |
| List<String> |
script()
Get the script property: Optional. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Run |
withCommandId(String commandId)
Set the command |
|
Run |
withParameters(List<RunCommandInputParameter> parameters)
Set the parameters property: The run command parameters. |
|
Run |
withScript(List<String> script)
Set the script property: Optional. |
Methods inherited from java.lang.Object
Constructor Details
RunCommandInput
public RunCommandInput()
Creates an instance of RunCommandInput class.
Method Details
commandId
public String commandId()
Get the commandId property: Specifies a commandId of predefined built-in script. Command IDs available for Linux are listed at https://aka.ms/RunCommandManagedLinux\#available-commands, Windows at https://aka.ms/RunCommandManagedWindows\#available-commands.
Returns:
fromJson
public static RunCommandInput fromJson(JsonReader jsonReader)
Reads an instance of RunCommandInput from the JsonReader.
Parameters:
Returns:
Throws:
parameters
public List<RunCommandInputParameter> parameters()
Get the parameters property: The run command parameters.
Returns:
script
public List<String> script()
Get the script property: Optional. The script to be executed. When this value is given, the given script will override the default script of the command.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCommandId
public RunCommandInput withCommandId(String commandId)
Set the commandId property: Specifies a commandId of predefined built-in script. Command IDs available for Linux are listed at https://aka.ms/RunCommandManagedLinux\#available-commands, Windows at https://aka.ms/RunCommandManagedWindows\#available-commands.
Parameters:
Returns:
withParameters
public RunCommandInput withParameters(List<RunCommandInputParameter> parameters)
Set the parameters property: The run command parameters.
Parameters:
Returns:
withScript
public RunCommandInput withScript(List<String> script)
Set the script property: Optional. The script to be executed. When this value is given, the given script will override the default script of the command.
Parameters:
Returns: