Interface CreateSubscriberRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateSubscriberRequest.Builder,,CreateSubscriberRequest> EventBridgeV2Request.Builder,SdkBuilder<CreateSubscriberRequest.Builder,,CreateSubscriberRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateSubscriberRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateSubscriberRequest.BuilderbatchConfiguration(Consumer<BatchConfiguration.Builder> batchConfiguration) Batching configuration for a subscriber.batchConfiguration(BatchConfiguration batchConfiguration) Batching configuration for a subscriber.clientToken(String clientToken) Unique, case-sensitive identifier that ensures the idempotency of the request.description(String description) Free-text description.eventBusArn(String eventBusArn) The Amazon Resource Name (ARN) that uniquely identifies an event bus.default CreateSubscriberRequest.BuilderfilterConfiguration(Consumer<FilterConfiguration.Builder> filterConfiguration) Configuration for filtering events delivered to a subscriber.filterConfiguration(FilterConfiguration filterConfiguration) Configuration for filtering events delivered to a subscriber.default CreateSubscriberRequest.BuilderinvokeConfiguration(Consumer<InvokeConfiguration.Builder> invokeConfiguration) Configuration for how the subscriber invokes its target.invokeConfiguration(InvokeConfiguration invokeConfiguration) Configuration for how the subscriber invokes its target.default CreateSubscriberRequest.BuilderlogConfiguration(Consumer<LogConfiguration.Builder> logConfiguration) Log configuration for a subscriber.logConfiguration(LogConfiguration logConfiguration) Log configuration for a subscriber.Name of a subscriber.default CreateSubscriberRequest.BuilderonFailureConfiguration(Consumer<OnFailureConfiguration.Builder> onFailureConfiguration) On-failure configuration: where a failed delivery is sent.onFailureConfiguration(OnFailureConfiguration onFailureConfiguration) On-failure configuration: where a failed delivery is sent.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreateSubscriberRequest.BuilderpointInTimeConfiguration(Consumer<PointInTimeConfiguration.Builder> pointInTimeConfiguration) Point-in-time configuration for a subscriber.pointInTimeConfiguration(PointInTimeConfiguration pointInTimeConfiguration) Point-in-time configuration for a subscriber.default CreateSubscriberRequest.BuilderretryPolicy(Consumer<RetryPolicy.Builder> retryPolicy) Retry policy for a subscriber.retryPolicy(RetryPolicy retryPolicy) Retry policy for a subscriber.startingPosition(String startingPosition) Starting position for a subscriber.startingPosition(StartingPosition startingPosition) Starting position for a subscriber.Customer-controlled run state of a subscriber, set on create or update.state(SubscriberState state) Customer-controlled run state of a subscriber, set on create or update.Tags attached to a resource, as key-value pairs.default CreateSubscriberRequest.Buildertransformer(Consumer<Transformer.Builder> transformer) Transformer configuration for a subscriber.transformer(Transformer transformer) Transformer configuration for a subscriber.Delivery ordering mode of a subscriber: FIFO delivers events in order within an event group; UNORDERED delivers without an ordering guarantee.type(OrderingType type) Delivery ordering mode of a subscriber: FIFO delivers events in order within an event group; UNORDERED delivers without an ordering guarantee.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.eventbridgev2.model.EventBridgeV2Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
Name of a subscriber. The first character must be alphanumeric; the remaining characters may also include '.', '-', and '_'.
- Parameters:
name- Name of a subscriber. The first character must be alphanumeric; the remaining characters may also include '.', '-', and '_'.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventBusArn
The Amazon Resource Name (ARN) that uniquely identifies an event bus.
- Parameters:
eventBusArn- The Amazon Resource Name (ARN) that uniquely identifies an event bus.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
invokeConfiguration
Configuration for how the subscriber invokes its target.
- Parameters:
invokeConfiguration- 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 CreateSubscriberRequest.Builder invokeConfiguration(Consumer<InvokeConfiguration.Builder> invokeConfiguration) Configuration for how the subscriber invokes its target.
This is a convenience method that creates an instance of theInvokeConfiguration.Builderavoiding the need to create one manually viaInvokeConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinvokeConfiguration(InvokeConfiguration).- Parameters:
invokeConfiguration- a consumer that will call methods onInvokeConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-
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 emptyFilterConfiguration:{}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 CreateSubscriberRequest.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
This is a convenience method that creates an instance of theFilterConfiguration:{}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.FilterConfiguration.Builderavoiding the need to create one manually viaFilterConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilterConfiguration(FilterConfiguration).- Parameters:
filterConfiguration- a consumer that will call methods onFilterConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
Delivery ordering mode of a subscriber: FIFO delivers events in order within an event group; UNORDERED delivers without an ordering guarantee.
- Parameters:
type- Delivery ordering mode of a subscriber: FIFO delivers events in order within an event group; UNORDERED delivers without an ordering guarantee.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
Delivery ordering mode of a subscriber: FIFO delivers events in order within an event group; UNORDERED delivers without an ordering guarantee.
- Parameters:
type- Delivery ordering mode of a subscriber: FIFO delivers events in order within an event group; UNORDERED delivers without an ordering guarantee.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
startingPosition
Starting position for a subscriber.
- Parameters:
startingPosition- Starting position for a subscriber.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
startingPosition
Starting position for a subscriber.
- Parameters:
startingPosition- Starting position for a subscriber.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
pointInTimeConfiguration
CreateSubscriberRequest.Builder pointInTimeConfiguration(PointInTimeConfiguration pointInTimeConfiguration) Point-in-time configuration for a subscriber. Only applicable when StartingPosition is POINT_IN_TIME.
- Parameters:
pointInTimeConfiguration- Point-in-time configuration for a subscriber. Only applicable when StartingPosition is POINT_IN_TIME.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pointInTimeConfiguration
default CreateSubscriberRequest.Builder pointInTimeConfiguration(Consumer<PointInTimeConfiguration.Builder> pointInTimeConfiguration) Point-in-time configuration for a subscriber. Only applicable when StartingPosition is POINT_IN_TIME.
This is a convenience method that creates an instance of thePointInTimeConfiguration.Builderavoiding the need to create one manually viaPointInTimeConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topointInTimeConfiguration(PointInTimeConfiguration).- Parameters:
pointInTimeConfiguration- a consumer that will call methods onPointInTimeConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 CreateSubscriberRequest.Builder batchConfiguration(Consumer<BatchConfiguration.Builder> batchConfiguration) Batching configuration for a subscriber.
This is a convenience method that creates an instance of theBatchConfiguration.Builderavoiding the need to create one manually viaBatchConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobatchConfiguration(BatchConfiguration).- Parameters:
batchConfiguration- a consumer that will call methods onBatchConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
Transformer configuration for a subscriber.
This is a convenience method that creates an instance of theTransformer.Builderavoiding the need to create one manually viaTransformer.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totransformer(Transformer).- Parameters:
transformer- a consumer that will call methods onTransformer.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
Retry policy for a subscriber.
This is a convenience method that creates an instance of theRetryPolicy.Builderavoiding the need to create one manually viaRetryPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretryPolicy(RetryPolicy).- Parameters:
retryPolicy- a consumer that will call methods onRetryPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
onFailureConfiguration
CreateSubscriberRequest.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 CreateSubscriberRequest.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 theOnFailureConfiguration.Builderavoiding the need to create one manually viaOnFailureConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toonFailureConfiguration(OnFailureConfiguration).- Parameters:
onFailureConfiguration- a consumer that will call methods onOnFailureConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 CreateSubscriberRequest.Builder logConfiguration(Consumer<LogConfiguration.Builder> logConfiguration) Log configuration for a subscriber.
This is a convenience method that creates an instance of theLogConfiguration.Builderavoiding the need to create one manually viaLogConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tologConfiguration(LogConfiguration).- Parameters:
logConfiguration- a consumer that will call methods onLogConfiguration.Builder- 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:
-
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:
-
tags
Tags attached to a resource, as key-value pairs.
- Parameters:
tags- Tags attached to a resource, as key-value pairs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
Unique, case-sensitive identifier that ensures the idempotency of the request. The SDK generates one automatically when the field is omitted.
- Parameters:
clientToken- Unique, case-sensitive identifier that ensures the idempotency of the request. The SDK generates one automatically when the field is omitted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateSubscriberRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateSubscriberRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-