Interface UpdateSubscriberRequest.Builder

  • Method Details

    • subscriberArn

      UpdateSubscriberRequest.Builder subscriberArn(String subscriberArn)

      The Amazon Resource Name (ARN) that uniquely identifies a subscriber.

      Parameters:
      subscriberArn - The Amazon Resource Name (ARN) that uniquely identifies a subscriber.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      UpdateSubscriberRequest.Builder description(String description)

      Free-text description. Used by every resource type that has one: event buses, subscribers, and event sources.

      Parameters:
      description - Free-text description. Used by every resource type that has one: event buses, subscribers, and event sources.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      Customer-controlled run state of a subscriber, set on create or update. Distinct from the bus lifecycle vocabulary, where ACTIVE means "provisioned and healthy". Delivery requires State RUNNING on a subscriber that is not revoked.

      Parameters:
      state - Customer-controlled run state of a subscriber, set on create or update. Distinct from the bus lifecycle vocabulary, where ACTIVE means "provisioned and healthy". Delivery requires State RUNNING on a subscriber that is not revoked.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      Customer-controlled run state of a subscriber, set on create or update. Distinct from the bus lifecycle vocabulary, where ACTIVE means "provisioned and healthy". Delivery requires State RUNNING on a subscriber that is not revoked.

      Parameters:
      state - Customer-controlled run state of a subscriber, set on create or update. Distinct from the bus lifecycle vocabulary, where ACTIVE means "provisioned and healthy". Delivery requires State RUNNING on a subscriber that is not revoked.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resumePosition

      UpdateSubscriberRequest.Builder resumePosition(String resumePosition)

      Position from which delivery resumes when a subscriber is unpaused. Honored only on an UpdateSubscriber call that transitions State from STOPPED to RUNNING (unpause); ignored on any other call and not accepted on Create. Defaults to LAST_PROCESSED when omitted.

      Parameters:
      resumePosition - Position from which delivery resumes when a subscriber is unpaused. Honored only on an UpdateSubscriber call that transitions State from STOPPED to RUNNING (unpause); ignored on any other call and not accepted on Create. Defaults to LAST_PROCESSED when omitted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resumePosition

      UpdateSubscriberRequest.Builder resumePosition(ResumePosition resumePosition)

      Position from which delivery resumes when a subscriber is unpaused. Honored only on an UpdateSubscriber call that transitions State from STOPPED to RUNNING (unpause); ignored on any other call and not accepted on Create. Defaults to LAST_PROCESSED when omitted.

      Parameters:
      resumePosition - Position from which delivery resumes when a subscriber is unpaused. Honored only on an UpdateSubscriber call that transitions State from STOPPED to RUNNING (unpause); ignored on any other call and not accepted on Create. Defaults to LAST_PROCESSED when omitted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • invokeConfiguration

      UpdateSubscriberRequest.Builder invokeConfiguration(UpdateInvokeConfiguration invokeConfiguration)

      Update-able configuration for how the subscriber invokes its target.

      Parameters:
      invokeConfiguration - Update-able configuration for how the subscriber invokes its target.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • invokeConfiguration

      default UpdateSubscriberRequest.Builder invokeConfiguration(Consumer<UpdateInvokeConfiguration.Builder> invokeConfiguration)

      Update-able configuration for how the subscriber invokes its target.

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

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

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

      UpdateSubscriberRequest.Builder filterConfiguration(FilterConfiguration filterConfiguration)

      Configuration for filtering events delivered to a subscriber. On CreateSubscriber, Filters is required and must contain at least one Filter with a non-empty Pattern. On UpdateSubscriber, an empty FilterConfiguration:{} clears the existing filter. Any non-empty shape (including {Language:X} without Filters) must contain a valid Filters list — same contract as CreateSubscriber. A non-empty Filters list overwrites; an omitted FilterConfiguration preserves existing state. All Filters are implicitly ANDed — an event must match every Filter to be delivered.

      Parameters:
      filterConfiguration - Configuration for filtering events delivered to a subscriber. On CreateSubscriber, Filters is required and must contain at least one Filter with a non-empty Pattern. On UpdateSubscriber, an empty FilterConfiguration:{} clears the existing filter. Any non-empty shape (including {Language:X} without Filters) must contain a valid Filters list — same contract as CreateSubscriber. A non-empty Filters list overwrites; an omitted FilterConfiguration preserves existing state. All Filters are implicitly ANDed — an event must match every Filter to be delivered.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filterConfiguration

      default UpdateSubscriberRequest.Builder filterConfiguration(Consumer<FilterConfiguration.Builder> filterConfiguration)

      Configuration for filtering events delivered to a subscriber. On CreateSubscriber, Filters is required and must contain at least one Filter with a non-empty Pattern. On UpdateSubscriber, an empty FilterConfiguration:{} clears the existing filter. Any non-empty shape (including {Language:X} without Filters) must contain a valid Filters list — same contract as CreateSubscriber. A non-empty Filters list overwrites; an omitted FilterConfiguration preserves existing state. All Filters are implicitly ANDed — an event must match every Filter to be delivered.

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

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

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

      UpdateSubscriberRequest.Builder batchConfiguration(BatchConfiguration batchConfiguration)

      Batching configuration for a subscriber.

      Parameters:
      batchConfiguration - Batching configuration for a subscriber.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • batchConfiguration

      default UpdateSubscriberRequest.Builder batchConfiguration(Consumer<BatchConfiguration.Builder> batchConfiguration)

      Batching configuration for a subscriber.

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

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

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

      UpdateSubscriberRequest.Builder transformer(Transformer transformer)

      Transformer configuration for a subscriber.

      Parameters:
      transformer - Transformer configuration for a subscriber.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • transformer

      default UpdateSubscriberRequest.Builder transformer(Consumer<Transformer.Builder> transformer)

      Transformer configuration for a subscriber.

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

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

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

      UpdateSubscriberRequest.Builder retryPolicy(RetryPolicy retryPolicy)

      Retry policy for a subscriber.

      Parameters:
      retryPolicy - Retry policy for a subscriber.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • retryPolicy

      default UpdateSubscriberRequest.Builder retryPolicy(Consumer<RetryPolicy.Builder> retryPolicy)

      Retry policy for a subscriber.

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

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

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

      UpdateSubscriberRequest.Builder onFailureConfiguration(OnFailureConfiguration onFailureConfiguration)

      On-failure configuration: where a failed delivery is sent. Shared by the subscriber and the EventSource.

      Parameters:
      onFailureConfiguration - On-failure configuration: where a failed delivery is sent. Shared by the subscriber and the EventSource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • onFailureConfiguration

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

      On-failure configuration: where a failed delivery is sent. Shared by the subscriber and the EventSource.

      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:
    • logConfiguration

      UpdateSubscriberRequest.Builder logConfiguration(LogConfiguration logConfiguration)

      Log configuration for a subscriber.

      Parameters:
      logConfiguration - Log configuration for a subscriber.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logConfiguration

      default UpdateSubscriberRequest.Builder logConfiguration(Consumer<LogConfiguration.Builder> logConfiguration)

      Log configuration for a subscriber.

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

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

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

      UpdateSubscriberRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.