Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.compute;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
Capture Virtual Machine parameters.
/**
* Capture Virtual Machine parameters.
*/
public class RunCommandInput {
The run command id.
/**
* The run command id.
*/
@JsonProperty(value = "commandId", required = true)
private String commandId;
Optional. The script to be executed. When this value is given, the
given script will override the default script of the command.
/**
* Optional. The script to be executed. When this value is given, the
* given script will override the default script of the command.
*/
@JsonProperty(value = "script")
private List<String> script;
The run command parameters.
/**
* The run command parameters.
*/
@JsonProperty(value = "parameters")
private List<RunCommandInputParameter> parameters;
Get the run command id.
Returns: the commandId value
/**
* Get the run command id.
*
* @return the commandId value
*/
public String commandId() {
return this.commandId;
}
Set the run command id.
Params: - commandId – the commandId value to set
Returns: the RunCommandInput object itself.
/**
* Set the run command id.
*
* @param commandId the commandId value to set
* @return the RunCommandInput object itself.
*/
public RunCommandInput withCommandId(String commandId) {
this.commandId = commandId;
return this;
}
Get 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
/**
* Get optional. The script to be executed. When this value is given, the given script will override the default script of the command.
*
* @return the script value
*/
public List<String> script() {
return this.script;
}
Set optional. The script to be executed. When this value is given, the given script will override the default script of the command.
Params: - script – the script value to set
Returns: the RunCommandInput object itself.
/**
* Set optional. The script to be executed. When this value is given, the given script will override the default script of the command.
*
* @param script the script value to set
* @return the RunCommandInput object itself.
*/
public RunCommandInput withScript(List<String> script) {
this.script = script;
return this;
}
Get the run command parameters.
Returns: the parameters value
/**
* Get the run command parameters.
*
* @return the parameters value
*/
public List<RunCommandInputParameter> parameters() {
return this.parameters;
}
Set the run command parameters.
Params: - parameters – the parameters value to set
Returns: the RunCommandInput object itself.
/**
* Set the run command parameters.
*
* @param parameters the parameters value to set
* @return the RunCommandInput object itself.
*/
public RunCommandInput withParameters(List<RunCommandInputParameter> parameters) {
this.parameters = parameters;
return this;
}
}