Interface CreateEventSourceRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateEventSourceRequest.Builder,,CreateEventSourceRequest> EventBridgeV2Request.Builder,SdkBuilder<CreateEventSourceRequest.Builder,,CreateEventSourceRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateEventSourceRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) Unique, case-sensitive identifier that ensures the idempotency of the request.default CreateEventSourceRequest.Builderconfiguration(Consumer<EventSourceConfiguration.Builder> configuration) Discriminated EventSource configuration.configuration(EventSourceConfiguration configuration) Discriminated EventSource configuration.description(String description) Free-text description.eventBusArn(String eventBusArn) The Amazon Resource Name (ARN) that uniquely identifies an event bus.EventSource name.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Tags attached to a resource, as key-value pairs.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
EventSource name. First character alphanumeric; the rest may add '.', '-', '_'. Names may not begin with the reserved "aws." prefix. The grammar matches the ARN local-name segment in EventSourceArn (event-sourcev2/<type>/<name>/<id>), mirroring EventBusName, so a name the ARN cannot represent cannot be created.
- Parameters:
name- EventSource name. First character alphanumeric; the rest may add '.', '-', '_'. Names may not begin with the reserved "aws." prefix. The grammar matches the ARN local-name segment in EventSourceArn (event-sourcev2/<type>/<name>/<id>), mirroring EventBusName, so a name the ARN cannot represent cannot be created.- 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.
-
configuration
Discriminated EventSource configuration. Exactly one variant must be set.
- Parameters:
configuration- Discriminated EventSource configuration. Exactly one variant must be set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default CreateEventSourceRequest.Builder configuration(Consumer<EventSourceConfiguration.Builder> configuration) Discriminated EventSource configuration. Exactly one variant must be set.
This is a convenience method that creates an instance of theEventSourceConfiguration.Builderavoiding the need to create one manually viaEventSourceConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconfiguration(EventSourceConfiguration).- Parameters:
configuration- a consumer that will call methods onEventSourceConfiguration.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.
-
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
CreateEventSourceRequest.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
CreateEventSourceRequest.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.
-