Class CommandResult

java.lang.Object
com.pulumi.automation.CommandResult

public final class CommandResult extends Object
CommandResult represents the result of a command execution.
  • Constructor Details

    • CommandResult

      public CommandResult(int code, String standardOutput, String standardError)
  • Method Details

    • code

      public int code()
      Gets the exit code of the command.
      Returns:
      the exit code
    • standardOutput

      public String standardOutput()
      Gets the standard output of the command.
      Returns:
      the standard output
    • standardError

      public String standardError()
      Gets the standard error of the command.
      Returns:
      the standard error
    • toString

      public String toString()
      Overrides:
      toString in class Object