Interface PartnerEventsSourceConfiguration.Builder

  • Method Details

    • partnerEventSourceArn

      PartnerEventsSourceConfiguration.Builder partnerEventSourceArn(String partnerEventSourceArn)
      Sets the value of the PartnerEventSourceArn property for this object.
      Parameters:
      partnerEventSourceArn - The new value for the PartnerEventSourceArn property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pattern

      A filter pattern, as a JSON string, that defines which of the partner event source's events are forwarded to the event bus. If no pattern is specified, all events from the partner event source are forwarded.

      Parameters:
      pattern - A filter pattern, as a JSON string, that defines which of the partner event source's events are forwarded to the event bus. If no pattern is specified, all events from the partner event source are forwarded.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • partnerBusKmsKeyIdentifier

      PartnerEventsSourceConfiguration.Builder partnerBusKmsKeyIdentifier(String partnerBusKmsKeyIdentifier)
      Sets the value of the PartnerBusKmsKeyIdentifier property for this object.
      Parameters:
      partnerBusKmsKeyIdentifier - The new value for the PartnerBusKmsKeyIdentifier property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • onFailureConfiguration

      PartnerEventsSourceConfiguration.Builder onFailureConfiguration(OnFailureConfiguration onFailureConfiguration)

      The destination for events that could not be forwarded, covering both the forwarding target and the managed partner event bus.

      Parameters:
      onFailureConfiguration - The destination for events that could not be forwarded, covering both the forwarding target and the managed partner event bus.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • onFailureConfiguration

      default PartnerEventsSourceConfiguration.Builder onFailureConfiguration(Consumer<OnFailureConfiguration.Builder> onFailureConfiguration)

      The destination for events that could not be forwarded, covering both the forwarding target and the managed partner event bus.

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

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

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