Package com.pulumi.automation
Class CommandRunOptions.Builder
java.lang.Object
com.pulumi.automation.CommandRunOptions.Builder
- Enclosing class:
- CommandRunOptions
Builder for
CommandRunOptions.-
Method Summary
Modifier and TypeMethodDescriptionadditionalEnv(Map<String, String> additionalEnv) Sets the additional environment variables for the command.build()Builds theCommandRunOptions.onEngineEvent(Consumer<EngineEvent> onEngineEvent) Sets a consumer that will be called with each engine event from the command.onStandardError(Consumer<String> onStandardError) Sets a consumer that will be called with each line of standard error from the command.onStandardOutput(Consumer<String> onStandardOutput) Sets a consumer that will be called with each line of standard output from the command.standardInput(String standardInput) Sets the standard input for the command.workingDir(Path workingDir) Sets the working directory for the command.
-
Method Details
-
workingDir
Sets the working directory for the command.- Parameters:
workingDir- the working directory- Returns:
- the builder
-
additionalEnv
Sets the additional environment variables for the command.- Parameters:
additionalEnv- the additional environment variables- Returns:
- the builder
-
standardInput
Sets the standard input for the command.- Parameters:
standardInput- the standard input- Returns:
- the builder
-
onStandardOutput
Sets a consumer that will be called with each line of standard output from the command.- Parameters:
onStandardOutput- the consumer for standard output- Returns:
- the builder
-
onStandardError
Sets a consumer that will be called with each line of standard error from the command.- Parameters:
onStandardError- the consumer for standard error- Returns:
- the builder
-
onEngineEvent
Sets a consumer that will be called with each engine event from the command.- Parameters:
onEngineEvent- the consumer for engine events- Returns:
- the builder
-
build
Builds theCommandRunOptions.- Returns:
- the options
-