Interface CreateEventBusRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateEventBusRequest.Builder,
,CreateEventBusRequest> EventBridgeRequest.Builder
,SdkBuilder<CreateEventBusRequest.Builder,
,CreateEventBusRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateEventBusRequest
-
Method Summary
Modifier and TypeMethodDescriptioneventSourceName
(String eventSourceName) If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.The name of the new event bus.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.tags
(Collection<Tag> tags) Tags to associate with the event bus.tags
(Consumer<Tag.Builder>... tags) Tags to associate with the event bus.Tags to associate with the event bus.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.eventbridge.model.EventBridgeRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name of the new event bus.
Custom event bus names can't contain the
/
character, but you can use the/
character in partner event bus names. In addition, for partner event buses, the name must exactly match the name of the partner event source that this event bus is matched to.You can't use the name
default
for a custom event bus, as this name is already used for your account's default event bus.- Parameters:
name
- The name of the new event bus.Custom event bus names can't contain the
/
character, but you can use the/
character in partner event bus names. In addition, for partner event buses, the name must exactly match the name of the partner event source that this event bus is matched to.You can't use the name
default
for a custom event bus, as this name is already used for your account's default event bus.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventSourceName
If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.
- Parameters:
eventSourceName
- If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Tags to associate with the event bus.
- Parameters:
tags
- Tags to associate with the event bus.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Tags to associate with the event bus.
- Parameters:
tags
- Tags to associate with the event bus.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Tags to associate with the event bus.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateEventBusRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateEventBusRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-