Class RunCommandInput
java.lang.Object
com.azure.resourcemanager.compute.models.RunCommandInput
Capture Virtual Machine parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the commandId property: The run command id.Get the parameters property: The run command parameters.script()Get the script property: Optional.voidvalidate()Validates the instance.withCommandId(String commandId) Set the commandId property: The run command id.withParameters(List<RunCommandInputParameter> parameters) Set the parameters property: The run command parameters.withScript(List<String> script) Set the script property: Optional.
-
Constructor Details
-
RunCommandInput
public RunCommandInput()Creates an instance of RunCommandInput class.
-
-
Method Details
-
commandId
Get the commandId property: The run command id.- Returns:
- the commandId value.
-
withCommandId
Set the commandId property: The run command id.- Parameters:
commandId- the commandId value to set.- Returns:
- the RunCommandInput object itself.
-
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:
- the script value.
-
withScript
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:
script- the script value to set.- Returns:
- the RunCommandInput object itself.
-
parameters
Get the parameters property: The run command parameters.- Returns:
- the parameters value.
-
withParameters
Set the parameters property: The run command parameters.- Parameters:
parameters- the parameters value to set.- Returns:
- the RunCommandInput object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-