Package com.pulumi.automation
Class CommandResult
- java.lang.Object
-
- com.pulumi.automation.CommandResult
-
public final class CommandResult extends java.lang.Object
CommandResult
represents the result of a command execution.
-
-
Constructor Summary
Constructors Constructor Description CommandResult(int code, java.lang.String standardOutput, java.lang.String standardError)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
code()
Gets the exit code of the command.java.lang.String
standardError()
Gets the standard error of the command.java.lang.String
standardOutput()
Gets the standard output of the command.java.lang.String
toString()
-
-
-
Method Detail
-
code
public int code()
Gets the exit code of the command.- Returns:
- the exit code
-
standardOutput
public java.lang.String standardOutput()
Gets the standard output of the command.- Returns:
- the standard output
-
standardError
public java.lang.String standardError()
Gets the standard error of the command.- Returns:
- the standard error
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-