Class MachineRunCommandInstanceView
java.lang.Object
com.azure.resourcemanager.hybridcompute.models.MachineRunCommandInstanceView
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MachineRunCommandInstanceView>
public final class MachineRunCommandInstanceView
extends Object
implements com.azure.json.JsonSerializable<MachineRunCommandInstanceView>
The instance view of a machine run command.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MachineRunCommandInstanceView class. -
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 MachineRunCommandInstanceView from the JsonReader.output()Get the output property: Script output stream.Get the startTime property: Script start time.statuses()Get the statuses property: The status information.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEndTime(OffsetDateTime endTime) Set the endTime property: Script end time.Set the error property: Script error stream.withExecutionMessage(String executionMessage) Set the executionMessage property: Communicate script configuration errors or execution messages.withExecutionState(ExecutionState executionState) Set the executionState property: Script execution status.withExitCode(Integer exitCode) Set the exitCode property: Exit code returned from script execution.withOutput(String output) Set the output property: Script output stream.withStartTime(OffsetDateTime startTime) Set the startTime property: Script start time.withStatuses(List<ExtensionsResourceStatus> statuses) Set the statuses property: The status information.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MachineRunCommandInstanceView
public MachineRunCommandInstanceView()Creates an instance of MachineRunCommandInstanceView class.
-
-
Method Details
-
executionState
Get the executionState property: Script execution status.- Returns:
- the executionState value.
-
withExecutionState
Set the executionState property: Script execution status.- Parameters:
executionState- the executionState value to set.- Returns:
- the MachineRunCommandInstanceView object itself.
-
executionMessage
Get the executionMessage property: Communicate script configuration errors or execution messages.- Returns:
- the executionMessage value.
-
withExecutionMessage
Set the executionMessage property: Communicate script configuration errors or execution messages.- Parameters:
executionMessage- the executionMessage value to set.- Returns:
- the MachineRunCommandInstanceView object itself.
-
exitCode
Get the exitCode property: Exit code returned from script execution.- Returns:
- the exitCode value.
-
withExitCode
Set the exitCode property: Exit code returned from script execution.- Parameters:
exitCode- the exitCode value to set.- Returns:
- the MachineRunCommandInstanceView object itself.
-
output
Get the output property: Script output stream.- Returns:
- the output value.
-
withOutput
Set the output property: Script output stream.- Parameters:
output- the output value to set.- Returns:
- the MachineRunCommandInstanceView object itself.
-
error
Get the error property: Script error stream.- Returns:
- the error value.
-
withError
Set the error property: Script error stream.- Parameters:
error- the error value to set.- Returns:
- the MachineRunCommandInstanceView object itself.
-
startTime
Get the startTime property: Script start time.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: Script start time.- Parameters:
startTime- the startTime value to set.- Returns:
- the MachineRunCommandInstanceView object itself.
-
endTime
Get the endTime property: Script end time.- Returns:
- the endTime value.
-
withEndTime
Set the endTime property: Script end time.- Parameters:
endTime- the endTime value to set.- Returns:
- the MachineRunCommandInstanceView object itself.
-
statuses
Get the statuses property: The status information.- Returns:
- the statuses value.
-
withStatuses
Set the statuses property: The status information.- Parameters:
statuses- the statuses value to set.- Returns:
- the MachineRunCommandInstanceView object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MachineRunCommandInstanceView>- Throws:
IOException
-
fromJson
public static MachineRunCommandInstanceView fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MachineRunCommandInstanceView from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MachineRunCommandInstanceView 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 MachineRunCommandInstanceView.
-