Class RefreshOptions.Builder

Enclosing class:
RefreshOptions

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

    • expectNoChanges

      public RefreshOptions.Builder expectNoChanges(boolean expectNoChanges)
      Return an error if any changes are proposed by this preview.
      Parameters:
      expectNoChanges - true if the preview should fail if any changes are proposed
      Returns:
      the builder
    • previewOnly

      public RefreshOptions.Builder previewOnly(boolean previewOnly)
      Only show a preview of the refresh, but don't perform the refresh itself.
      Parameters:
      previewOnly - true if the refresh should be preview-only
      Returns:
      the builder
    • showSecrets

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

      public RefreshOptions.Builder skipPendingCreates(boolean skipPendingCreates)
      Ignores any pending create operations
      Parameters:
      skipPendingCreates - whether to skip pending creates
      Returns:
      the builder
    • clearPendingCreates

      public RefreshOptions.Builder clearPendingCreates(boolean clearPendingCreates)
      Removes any pending create operations from the stack
      Parameters:
      clearPendingCreates - whether to clear pending creates
      Returns:
      the builder
    • importPendingCreates

      public RefreshOptions.Builder importPendingCreates(List<PendingCreateValue> importPendingCreates)
      Sets the values to import into the stack
      Parameters:
      importPendingCreates - the list of pending create values
      Returns:
      the builder
    • build

      public RefreshOptions build()
      Builds the RefreshOptions.
      Returns:
      the refresh options