Class VirtualMachineRunCommandInstanceView

java.lang.Object
com.microsoft.azure.management.compute.VirtualMachineRunCommandInstanceView

public class VirtualMachineRunCommandInstanceView extends Object
The instance view of a virtual machine run command.
  • Constructor Details

    • VirtualMachineRunCommandInstanceView

      public VirtualMachineRunCommandInstanceView()
  • Method Details

    • executionState

      public ExecutionState executionState()
      Get script execution status. Possible values include: 'Unknown', 'Pending', 'Running', 'Failed', 'Succeeded', 'TimedOut', 'Canceled'.
      Returns:
      the executionState value
    • withExecutionState

      public VirtualMachineRunCommandInstanceView withExecutionState(ExecutionState executionState)
      Set script execution status. Possible values include: 'Unknown', 'Pending', 'Running', 'Failed', 'Succeeded', 'TimedOut', 'Canceled'.
      Parameters:
      executionState - the executionState value to set
      Returns:
      the VirtualMachineRunCommandInstanceView object itself.
    • executionMessage

      public String executionMessage()
      Get communicate script configuration errors or execution messages.
      Returns:
      the executionMessage value
    • withExecutionMessage

      public VirtualMachineRunCommandInstanceView withExecutionMessage(String executionMessage)
      Set communicate script configuration errors or execution messages.
      Parameters:
      executionMessage - the executionMessage value to set
      Returns:
      the VirtualMachineRunCommandInstanceView object itself.
    • exitCode

      public Integer exitCode()
      Get exit code returned from script execution.
      Returns:
      the exitCode value
    • withExitCode

      public VirtualMachineRunCommandInstanceView withExitCode(Integer exitCode)
      Set exit code returned from script execution.
      Parameters:
      exitCode - the exitCode value to set
      Returns:
      the VirtualMachineRunCommandInstanceView object itself.
    • output

      public String output()
      Get script output stream.
      Returns:
      the output value
    • withOutput

      public VirtualMachineRunCommandInstanceView withOutput(String output)
      Set script output stream.
      Parameters:
      output - the output value to set
      Returns:
      the VirtualMachineRunCommandInstanceView object itself.
    • error

      public String error()
      Get script error stream.
      Returns:
      the error value
    • withError

      public VirtualMachineRunCommandInstanceView withError(String error)
      Set script error stream.
      Parameters:
      error - the error value to set
      Returns:
      the VirtualMachineRunCommandInstanceView object itself.
    • startTime

      public org.joda.time.DateTime startTime()
      Get script start time.
      Returns:
      the startTime value
    • withStartTime

      public VirtualMachineRunCommandInstanceView withStartTime(org.joda.time.DateTime startTime)
      Set script start time.
      Parameters:
      startTime - the startTime value to set
      Returns:
      the VirtualMachineRunCommandInstanceView object itself.
    • endTime

      public org.joda.time.DateTime endTime()
      Get script end time.
      Returns:
      the endTime value
    • withEndTime

      public VirtualMachineRunCommandInstanceView withEndTime(org.joda.time.DateTime endTime)
      Set script end time.
      Parameters:
      endTime - the endTime value to set
      Returns:
      the VirtualMachineRunCommandInstanceView object itself.
    • statuses

      public List<InstanceViewStatus> statuses()
      Get the resource status information.
      Returns:
      the statuses value
    • withStatuses

      Set the resource status information.
      Parameters:
      statuses - the statuses value to set
      Returns:
      the VirtualMachineRunCommandInstanceView object itself.