Class VirtualMachineRunCommandInstanceView
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineRunCommandInstanceView
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineRunCommandInstanceView>
public final class VirtualMachineRunCommandInstanceView
extends Object
implements com.azure.json.JsonSerializable<VirtualMachineRunCommandInstanceView>
The instance view of a virtual machine run command.
-
Method Summary
Modifier and TypeMethodDescriptionendTime()Get the endTime property: Script end time.error()Get the error property: Script error stream.Get the executionMessage property: Communicate script configuration errors or execution messages.Get the executionState property: Script execution status.exitCode()Get the exitCode property: Exit code returned from script execution.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineRunCommandInstanceView from the JsonReader.output()Get the output property: Script output stream.Get the startTime property: Script start time.statuses()Get the statuses property: The resource status information.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
executionState
Get the executionState property: Script execution status.- Returns:
- the executionState value.
-
executionMessage
Get the executionMessage property: Communicate script configuration errors or execution messages.- Returns:
- the executionMessage value.
-
exitCode
Get the exitCode property: Exit code returned from script execution.- Returns:
- the exitCode value.
-
output
-
error
-
startTime
Get the startTime property: Script start time.- Returns:
- the startTime value.
-
endTime
Get the endTime property: Script end time.- Returns:
- the endTime value.
-
statuses
Get the statuses property: The resource status information.- Returns:
- the statuses value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VirtualMachineRunCommandInstanceView>- Throws:
IOException
-
fromJson
public static VirtualMachineRunCommandInstanceView fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachineRunCommandInstanceView from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachineRunCommandInstanceView if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the VirtualMachineRunCommandInstanceView.
-