VirtualMachineRunCommandInstanceView Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.VirtualMachineRunCommandInstanceView

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 VirtualMachineRunCommandInstanceView class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endTime()

Get the endTime property: Script end time.

String error()

Get the error property: Script error stream.

String executionMessage()

Get the executionMessage property: Communicate script configuration errors or execution messages.

ExecutionState executionState()

Get the executionState property: Script execution status.

Integer exitCode()

Get the exitCode property: Exit code returned from script execution.

static VirtualMachineRunCommandInstanceView fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineRunCommandInstanceView from the JsonReader.

String output()

Get the output property: Script output stream.

OffsetDateTime startTime()

Get the startTime property: Script start time.

List<InstanceViewStatus> statuses()

Get the statuses property: The resource status information.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualMachineRunCommandInstanceView withEndTime(OffsetDateTime endTime)

Set the endTime property: Script end time.

VirtualMachineRunCommandInstanceView withError(String error)

Set the error property: Script error stream.

VirtualMachineRunCommandInstanceView withExecutionMessage(String executionMessage)

Set the executionMessage property: Communicate script configuration errors or execution messages.

VirtualMachineRunCommandInstanceView withExecutionState(ExecutionState executionState)

Set the executionState property: Script execution status.

VirtualMachineRunCommandInstanceView withExitCode(Integer exitCode)

Set the exitCode property: Exit code returned from script execution.

VirtualMachineRunCommandInstanceView withOutput(String output)

Set the output property: Script output stream.

VirtualMachineRunCommandInstanceView withStartTime(OffsetDateTime startTime)

Set the startTime property: Script start time.

VirtualMachineRunCommandInstanceView 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:

the endTime value.

error

public String error()

Get the error property: Script error stream.

Returns:

the error value.

executionMessage

public String executionMessage()

Get the executionMessage property: Communicate script configuration errors or execution messages.

Returns:

the executionMessage value.

executionState

public ExecutionState executionState()

Get the executionState property: Script execution status.

Returns:

the executionState value.

exitCode

public Integer exitCode()

Get the exitCode property: Exit code returned from script execution.

Returns:

the exitCode value.

fromJson

public static VirtualMachineRunCommandInstanceView fromJson(JsonReader jsonReader)

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.

output

public String output()

Get the output property: Script output stream.

Returns:

the output value.

startTime

public OffsetDateTime startTime()

Get the startTime property: Script start time.

Returns:

the startTime value.

statuses

public List statuses()

Get the statuses property: The resource status information.

Returns:

the statuses value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEndTime

public VirtualMachineRunCommandInstanceView withEndTime(OffsetDateTime endTime)

Set the endTime property: Script end time.

Parameters:

endTime - the endTime value to set.

Returns:

the VirtualMachineRunCommandInstanceView object itself.

withError

public VirtualMachineRunCommandInstanceView withError(String error)

Set the error property: Script error stream.

Parameters:

error - the error value to set.

Returns:

the VirtualMachineRunCommandInstanceView object itself.

withExecutionMessage

public VirtualMachineRunCommandInstanceView withExecutionMessage(String executionMessage)

Set the executionMessage property: Communicate script configuration errors or execution messages.

Parameters:

executionMessage - the executionMessage value to set.

Returns:

the VirtualMachineRunCommandInstanceView object itself.

withExecutionState

public VirtualMachineRunCommandInstanceView withExecutionState(ExecutionState executionState)

Set the executionState property: Script execution status.

Parameters:

executionState - the executionState value to set.

Returns:

the VirtualMachineRunCommandInstanceView object itself.

withExitCode

public VirtualMachineRunCommandInstanceView withExitCode(Integer exitCode)

Set the exitCode property: Exit code returned from script execution.

Parameters:

exitCode - the exitCode value to set.

Returns:

the VirtualMachineRunCommandInstanceView object itself.

withOutput

public VirtualMachineRunCommandInstanceView withOutput(String output)

Set the output property: Script output stream.

Parameters:

output - the output value to set.

Returns:

the VirtualMachineRunCommandInstanceView object itself.

withStartTime

public VirtualMachineRunCommandInstanceView withStartTime(OffsetDateTime startTime)

Set the startTime property: Script start time.

Parameters:

startTime - the startTime value to set.

Returns:

the VirtualMachineRunCommandInstanceView object itself.

withStatuses

public VirtualMachineRunCommandInstanceView withStatuses(List statuses)

Set the statuses property: The resource status information.

Parameters:

statuses - the statuses value to set.

Returns:

the VirtualMachineRunCommandInstanceView object itself.

Applies to