Class VirtualMachineRunCommandInstanceView
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.VirtualMachineRunCommandInstanceView
-
public final class VirtualMachineRunCommandInstanceView extends Object
The instance view of a virtual machine run command.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineRunCommandInstanceView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTimeendTime()Get the endTime property: Script end time.Stringerror()Get the error property: Script error stream.StringexecutionMessage()Get the executionMessage property: Communicate script configuration errors or execution messages.ExecutionStateexecutionState()Get the executionState property: Script execution status.IntegerexitCode()Get the exitCode property: Exit code returned from script execution.Stringoutput()Get the output property: Script output stream.OffsetDateTimestartTime()Get the startTime property: Script start time.List<InstanceViewStatus>statuses()Get the statuses property: The resource status information.voidvalidate()Validates the instance.VirtualMachineRunCommandInstanceViewwithEndTime(OffsetDateTime endTime)Set the endTime property: Script end time.VirtualMachineRunCommandInstanceViewwithError(String error)Set the error property: Script error stream.VirtualMachineRunCommandInstanceViewwithExecutionMessage(String executionMessage)Set the executionMessage property: Communicate script configuration errors or execution messages.VirtualMachineRunCommandInstanceViewwithExecutionState(ExecutionState executionState)Set the executionState property: Script execution status.VirtualMachineRunCommandInstanceViewwithExitCode(Integer exitCode)Set the exitCode property: Exit code returned from script execution.VirtualMachineRunCommandInstanceViewwithOutput(String output)Set the output property: Script output stream.VirtualMachineRunCommandInstanceViewwithStartTime(OffsetDateTime startTime)Set the startTime property: Script start time.VirtualMachineRunCommandInstanceViewwithStatuses(List<InstanceViewStatus> statuses)Set the statuses property: The resource status information.
-
-
-
Method Detail
-
executionState
public ExecutionState executionState()
Get the executionState property: Script execution status.- Returns:
- the executionState value.
-
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.
-
executionMessage
public String executionMessage()
Get the executionMessage property: Communicate script configuration errors or execution messages.- Returns:
- the executionMessage value.
-
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.
-
exitCode
public Integer exitCode()
Get the exitCode property: Exit code returned from script execution.- Returns:
- the exitCode value.
-
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.
-
output
public String output()
Get the output property: Script output stream.- Returns:
- the output value.
-
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.
-
error
public String error()
Get the error property: Script error stream.- Returns:
- the error value.
-
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.
-
startTime
public OffsetDateTime startTime()
Get the startTime property: Script start time.- Returns:
- the startTime value.
-
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.
-
endTime
public OffsetDateTime endTime()
Get the endTime property: Script end time.- Returns:
- the endTime value.
-
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.
-
statuses
public List<InstanceViewStatus> statuses()
Get the statuses property: The resource status information.- Returns:
- the statuses value.
-
withStatuses
public VirtualMachineRunCommandInstanceView withStatuses(List<InstanceViewStatus> statuses)
Set the statuses property: The resource status information.- Parameters:
statuses- the statuses value to set.- Returns:
- the VirtualMachineRunCommandInstanceView object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-