Class VirtualMachineRunCommandInstanceView
java.lang.Object
com.microsoft.azure.management.compute.VirtualMachineRunCommandInstanceView
The instance view of a virtual machine run command.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.joda.time.DateTime
endTime()
Get script end time.error()
Get script error stream.Get communicate script configuration errors or execution messages.Get script execution status.exitCode()
Get exit code returned from script execution.output()
Get script output stream.org.joda.time.DateTime
Get script start time.statuses()
Get the resource status information.withEndTime
(org.joda.time.DateTime endTime) Set script end time.Set script error stream.withExecutionMessage
(String executionMessage) Set communicate script configuration errors or execution messages.withExecutionState
(ExecutionState executionState) Set script execution status.withExitCode
(Integer exitCode) Set exit code returned from script execution.withOutput
(String output) Set script output stream.withStartTime
(org.joda.time.DateTime startTime) Set script start time.withStatuses
(List<InstanceViewStatus> statuses) Set the resource status information.
-
Constructor Details
-
VirtualMachineRunCommandInstanceView
public VirtualMachineRunCommandInstanceView()
-
-
Method Details
-
executionState
Get script execution status. Possible values include: 'Unknown', 'Pending', 'Running', 'Failed', 'Succeeded', 'TimedOut', 'Canceled'.- Returns:
- the executionState value
-
withExecutionState
Set script execution status. Possible values include: 'Unknown', 'Pending', 'Running', 'Failed', 'Succeeded', 'TimedOut', 'Canceled'.- Parameters:
executionState
- the executionState value to set- Returns:
- the VirtualMachineRunCommandInstanceView object itself.
-
executionMessage
Get communicate script configuration errors or execution messages.- Returns:
- the executionMessage value
-
withExecutionMessage
Set communicate script configuration errors or execution messages.- Parameters:
executionMessage
- the executionMessage value to set- Returns:
- the VirtualMachineRunCommandInstanceView object itself.
-
exitCode
Get exit code returned from script execution.- Returns:
- the exitCode value
-
withExitCode
Set exit code returned from script execution.- Parameters:
exitCode
- the exitCode value to set- Returns:
- the VirtualMachineRunCommandInstanceView object itself.
-
output
Get script output stream.- Returns:
- the output value
-
withOutput
Set script output stream.- Parameters:
output
- the output value to set- Returns:
- the VirtualMachineRunCommandInstanceView object itself.
-
error
Get script error stream.- Returns:
- the error value
-
withError
Set script error stream.- Parameters:
error
- the error value to set- Returns:
- the VirtualMachineRunCommandInstanceView object itself.
-
startTime
public org.joda.time.DateTime startTime()Get script start time.- Returns:
- the startTime value
-
withStartTime
Set script start time.- Parameters:
startTime
- the startTime value to set- Returns:
- the VirtualMachineRunCommandInstanceView object itself.
-
endTime
public org.joda.time.DateTime endTime()Get script end time.- Returns:
- the endTime value
-
withEndTime
Set script end time.- Parameters:
endTime
- the endTime value to set- Returns:
- the VirtualMachineRunCommandInstanceView object itself.
-
statuses
Get the resource status information.- Returns:
- the statuses value
-
withStatuses
Set the resource status information.- Parameters:
statuses
- the statuses value to set- Returns:
- the VirtualMachineRunCommandInstanceView object itself.
-