VirtualMachineRunCommandInstanceView Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. VirtualMachineRunCommandInstanceView
- com.
Implements
public final class VirtualMachineRunCommandInstanceView
implements JsonSerializable<VirtualMachineRunCommandInstanceView>
The instance view of a virtual machine run command.
Constructor Summary
Constructor | Description |
---|---|
VirtualMachineRunCommandInstanceView() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
endTime()
Get the end |
String |
error()
Get the error property: Script error stream. |
String |
executionMessage()
Get the execution |
Execution |
executionState()
Get the execution |
Integer |
exitCode()
Get the exit |
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
String |
output()
Get the output property: Script output stream. |
Offset |
startTime()
Get the start |
List<Instance |
statuses()
Get the statuses property: The resource status information. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Virtual |
withEndTime(OffsetDateTime endTime)
Set the end |
Virtual |
withError(String error)
Set the error property: Script error stream. |
Virtual |
withExecutionMessage(String executionMessage)
Set the execution |
Virtual |
withExecutionState(ExecutionState executionState)
Set the execution |
Virtual |
withExitCode(Integer exitCode)
Set the exit |
Virtual |
withOutput(String output)
Set the output property: Script output stream. |
Virtual |
withStartTime(OffsetDateTime startTime)
Set the start |
Virtual |
withStatuses(List<InstanceViewStatus> statuses)
Set the statuses property: The resource status information. |
Methods inherited from java.lang.Object
Constructor Details
VirtualMachineRunCommandInstanceView
public VirtualMachineRunCommandInstanceView()
Creates an instance of VirtualMachineRunCommandInstanceView class.
Method Details
endTime
public OffsetDateTime endTime()
Get the endTime property: Script end time.
Returns:
error
public String error()
Get the error property: Script error stream.
Returns:
executionMessage
public String executionMessage()
Get the executionMessage property: Communicate script configuration errors or execution messages.
Returns:
executionState
public ExecutionState executionState()
Get the executionState property: Script execution status.
Returns:
exitCode
public Integer exitCode()
Get the exitCode property: Exit code returned from script execution.
Returns:
fromJson
public static VirtualMachineRunCommandInstanceView fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachineRunCommandInstanceView from the JsonReader.
Parameters:
Returns:
Throws:
output
public String output()
Get the output property: Script output stream.
Returns:
startTime
public OffsetDateTime startTime()
Get the startTime property: Script start time.
Returns:
statuses
public List
Get the statuses property: The resource status information.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEndTime
public VirtualMachineRunCommandInstanceView withEndTime(OffsetDateTime endTime)
Set the endTime property: Script end time.
Parameters:
Returns:
withError
public VirtualMachineRunCommandInstanceView withError(String error)
Set the error property: Script error stream.
Parameters:
Returns:
withExecutionMessage
public VirtualMachineRunCommandInstanceView withExecutionMessage(String executionMessage)
Set the executionMessage property: Communicate script configuration errors or execution messages.
Parameters:
Returns:
withExecutionState
public VirtualMachineRunCommandInstanceView withExecutionState(ExecutionState executionState)
Set the executionState property: Script execution status.
Parameters:
Returns:
withExitCode
public VirtualMachineRunCommandInstanceView withExitCode(Integer exitCode)
Set the exitCode property: Exit code returned from script execution.
Parameters:
Returns:
withOutput
public VirtualMachineRunCommandInstanceView withOutput(String output)
Set the output property: Script output stream.
Parameters:
Returns:
withStartTime
public VirtualMachineRunCommandInstanceView withStartTime(OffsetDateTime startTime)
Set the startTime property: Script start time.
Parameters:
Returns:
withStatuses
public VirtualMachineRunCommandInstanceView withStatuses(List
Set the statuses property: The resource status information.
Parameters:
Returns: