Package com.pulumi.automation
Class CommandResult
- java.lang.Object
-
- com.pulumi.automation.CommandResult
-
public final class CommandResult extends java.lang.ObjectCommandResultrepresents 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 intcode()Gets the exit code of the command.java.lang.StringstandardError()Gets the standard error of the command.java.lang.StringstandardOutput()Gets the standard output of the command.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-