Class EventBridgeDestinationBuilder
java.lang.Object
com.commercetools.api.models.subscription.EventBridgeDestinationBuilder
- All Implemented Interfaces:
Builder<EventBridgeDestination>
public class EventBridgeDestinationBuilder
extends Object
implements Builder<EventBridgeDestination>
EventBridgeDestinationBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
EventBridgeDestination eventBridgeDestination = EventBridgeDestination.builder()
.region("{region}")
.accountId("{accountId}")
.source("{source}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionID of the AWS account that receives the events.build()builds EventBridgeDestination with checking for non-null required valuesbuilds EventBridgeDestination without checking for non-null required valuesID of the AWS account that receives the events.AWS region that receives the events.URN for the EventBridge destination.of()factory method for an instance of EventBridgeDestinationBuilderof(EventBridgeDestination template) create builder for EventBridgeDestination instanceAWS region that receives the events.URN for the EventBridge destination.
-
Constructor Details
-
EventBridgeDestinationBuilder
public EventBridgeDestinationBuilder()
-
-
Method Details
-
region
AWS region that receives the events.
- Parameters:
region- value to be set- Returns:
- Builder
-
accountId
ID of the AWS account that receives the events.
- Parameters:
accountId- value to be set- Returns:
- Builder
-
source
URN for the EventBridge destination.
- Parameters:
source- value to be set- Returns:
- Builder
-
getRegion
AWS region that receives the events.
- Returns:
- region
-
getAccountId
ID of the AWS account that receives the events.
- Returns:
- accountId
-
getSource
URN for the EventBridge destination.
- Returns:
- source
-
build
builds EventBridgeDestination with checking for non-null required values- Specified by:
buildin interfaceBuilder<EventBridgeDestination>- Returns:
- EventBridgeDestination
-
buildUnchecked
builds EventBridgeDestination without checking for non-null required values- Returns:
- EventBridgeDestination
-
of
factory method for an instance of EventBridgeDestinationBuilder- Returns:
- builder
-
of
create builder for EventBridgeDestination instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-