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}")
             .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
    • 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
    • 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