Class UpdateOptions.Builder<B extends UpdateOptions.Builder<B>>

java.lang.Object
com.pulumi.automation.UpdateOptions.Builder<B>
Direct Known Subclasses:
DestroyOptions.Builder, PreviewOptions.Builder, RefreshOptions.Builder, UpOptions.Builder
Enclosing class:
UpdateOptions

public abstract static class UpdateOptions.Builder<B extends UpdateOptions.Builder<B>> extends Object
Base builder for all update options.
  • Constructor Details

    • Builder

      protected Builder()
  • Method Details

    • parallel

      public B parallel(Integer parallel)
      Allow resource operations to run in parallel at once. Specify 1 for no parallelism.
      Parameters:
      parallel - the number of resource operations to run in parallel
      Returns:
      the builder
    • message

      public B message(String message)
      Optional message to associate with the operation.
      Parameters:
      message - the message
      Returns:
      the builder
    • excludes

      public B excludes(List<String> excludes)
      A list of resource URNs to exclude during the operation. Wildcards (*, **) are also supported.
      Parameters:
      excludes - the list of excluded resource URNs
      Returns:
      the builder
    • targets

      public B targets(List<String> targets)
      A list of resource URNs to target during the operation. Wildcards (*, **) are also supported.
      Parameters:
      targets - the list of target resource URNs
      Returns:
      the builder
    • policyPacks

      public B policyPacks(List<String> policyPacks)
      A list of paths to policy packs to run during the operation.
      Parameters:
      policyPacks - the list of paths to policy packs
      Returns:
      the builder
    • policyPackConfigs

      public B policyPackConfigs(List<String> policyPackConfigs)
      A list of paths to policy pack JSON configuration files to use during the operation.
      Parameters:
      policyPackConfigs - the list of paths to policy pack JSON configuration files
      Returns:
      the builder
    • onStandardOutput

      public B onStandardOutput(Consumer<String> onStandardOutput)
      Optional callback which is invoked whenever StandardOutput is written into.
      Parameters:
      onStandardOutput - the callback
      Returns:
      the builder
    • onStandardError

      public B onStandardError(Consumer<String> onStandardError)
      Optional callback which is invoked whenever StandardError is written into.
      Parameters:
      onStandardError - the callback
      Returns:
      the builder
    • onEvent

      public B onEvent(Consumer<EngineEvent> onEvent)
      Optional callback which is invoked with the engine events.
      Parameters:
      onEvent - the callback
      Returns:
      the builder
    • color

      public B color(String color)
      Colorize output. Choices are: always, never, raw, auto (default "auto")
      Parameters:
      color - the colorize output setting
      Returns:
      the builder
    • logFlow

      public B logFlow(boolean logFlow)
      Flow log settings to child processes (like plugins)
      Parameters:
      logFlow - the flow log settings
      Returns:
      the builder
    • logVerbosity

      public B logVerbosity(Integer logVerbosity)
      Enable verbose logging (e.g., v=3); anything >3 is very verbose
      Parameters:
      logVerbosity - the log verbosity
      Returns:
      the builder
    • logToStdErr

      public B logToStdErr(boolean logToStdErr)
      Log to stderr instead of to files
      Parameters:
      logToStdErr - the log to stderr setting
      Returns:
      the builder
    • tracing

      public B tracing(String tracing)
      Emit tracing to the specified endpoint. Use the file: scheme to write tracing data to a local file
      Parameters:
      tracing - the tracing endpoint
      Returns:
      the builder
    • debug

      public B debug(boolean debug)
      Print detailed debugging output during resource operations
      Parameters:
      debug - the debug setting
      Returns:
      the builder
    • json

      public B json(boolean json)
      Format standard output as JSON not text.
      Parameters:
      json - the JSON output setting
      Returns:
      the builder