Interface DestinationConfig.Builder

  • Method Details

    • onSuccess

      DestinationConfig.Builder onSuccess(OnSuccess onSuccess)

      The destination configuration for successful invocations. Not supported in CreateEventSourceMapping or UpdateEventSourceMapping.

      Parameters:
      onSuccess - The destination configuration for successful invocations. Not supported in CreateEventSourceMapping or UpdateEventSourceMapping.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • onSuccess

      default DestinationConfig.Builder onSuccess(Consumer<OnSuccess.Builder> onSuccess)

      The destination configuration for successful invocations. Not supported in CreateEventSourceMapping or UpdateEventSourceMapping.

      This is a convenience method that creates an instance of the OnSuccess.Builder avoiding the need to create one manually via OnSuccess.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to onSuccess(OnSuccess).

      Parameters:
      onSuccess - a consumer that will call methods on OnSuccess.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • onFailure

      DestinationConfig.Builder onFailure(OnFailure onFailure)

      The destination configuration for failed invocations.

      Parameters:
      onFailure - The destination configuration for failed invocations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • onFailure

      default DestinationConfig.Builder onFailure(Consumer<OnFailure.Builder> onFailure)

      The destination configuration for failed invocations.

      This is a convenience method that creates an instance of the OnFailure.Builder avoiding the need to create one manually via OnFailure.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to onFailure(OnFailure).

      Parameters:
      onFailure - a consumer that will call methods on OnFailure.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: