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

     EventBridgeDestination eventBridgeDestination = EventBridgeDestination.builder()
             .region("{region}")
             .accountId("{accountId}")
             .source("{source}")
             .build()
 
  • Constructor Details

    • EventBridgeDestinationBuilder

      public EventBridgeDestinationBuilder()
  • Method Details

    • region

      public EventBridgeDestinationBuilder region(String region)

      AWS region that receives the events.

      Parameters:
      region - value to be set
      Returns:
      Builder
    • accountId

      public EventBridgeDestinationBuilder accountId(String accountId)

      ID of the AWS account that receives the events.

      Parameters:
      accountId - value to be set
      Returns:
      Builder
    • source

      public EventBridgeDestinationBuilder source(String source)

      URN for the EventBridge destination.

      Parameters:
      source - value to be set
      Returns:
      Builder
    • getRegion

      public String getRegion()

      AWS region that receives the events.

      Returns:
      region
    • getAccountId

      public String getAccountId()

      ID of the AWS account that receives the events.

      Returns:
      accountId
    • getSource

      public String getSource()

      URN for the EventBridge destination.

      Returns:
      source
    • build

      public EventBridgeDestination build()
      builds EventBridgeDestination with checking for non-null required values
      Specified by:
      build in interface Builder<EventBridgeDestination>
      Returns:
      EventBridgeDestination
    • buildUnchecked

      public EventBridgeDestination buildUnchecked()
      builds EventBridgeDestination without checking for non-null required values
      Returns:
      EventBridgeDestination
    • of

      public static EventBridgeDestinationBuilder 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