Class DestroyOptions.Builder

Enclosing class:
DestroyOptions

public static final class DestroyOptions.Builder extends UpdateOptions.Builder<DestroyOptions.Builder>
Builder for DestroyOptions.
  • Method Details

    • excludeDependents

      public DestroyOptions.Builder excludeDependents(boolean excludeDependents)
      Allows exclusion of dependent targets discovered but not specified UpdateOptions.Builder.excludes(java.util.List<java.lang.String>).
      Parameters:
      excludeDependents - true if dependent targets should be excluded
      Returns:
      the builder
    • targetDependents

      public DestroyOptions.Builder targetDependents(boolean targetDependents)
      Allows updating of dependent targets discovered but not specified UpdateOptions.Builder.targets(java.util.List<java.lang.String>).
      Parameters:
      targetDependents - true if dependent targets should be updated
      Returns:
      the builder
    • showSecrets

      public DestroyOptions.Builder showSecrets(boolean showSecrets)
      Sets whether to show config secrets when they appear.
      Parameters:
      showSecrets - the show secrets flag
      Returns:
      the builder
    • continueOnError

      public DestroyOptions.Builder continueOnError(boolean continueOnError)
      Sets whether to continue performing the destroy operation despite the occurrence of errors.
      Parameters:
      continueOnError - the continue on error flag
      Returns:
      the builder
    • previewOnly

      public DestroyOptions.Builder previewOnly(boolean previewOnly)
      Sets whether to continue performing the destroy operation despite the occurrence of errors.
      Parameters:
      previewOnly - the preview only flag
      Returns:
      the builder
    • build

      public DestroyOptions build()
      Builds the DestroyOptions.
      Returns:
      the destroy options