Class EventBridgePutEventsEntry.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.EventBridgePutEventsEntry.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventBridgePutEventsEntry>
- Enclosing interface:
EventBridgePutEventsEntry
@Stability(Stable)
public static final class EventBridgePutEventsEntry.Builder
extends Object
implements software.amazon.jsii.Builder<EventBridgePutEventsEntry>
A builder for
EventBridgePutEventsEntry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofEventBridgePutEventsEntry.getDetail()
detailType
(String detailType) Sets the value ofEventBridgePutEventsEntry.getDetailType()
Sets the value ofEventBridgePutEventsEntry.getEventBus()
Sets the value ofEventBridgePutEventsEntry.getSource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
detail
Sets the value ofEventBridgePutEventsEntry.getDetail()
- Parameters:
detail
- The event body. This parameter is required. Can either be provided as an object or as a JSON-serialized string- Returns:
this
-
detailType
Sets the value ofEventBridgePutEventsEntry.getDetailType()
- Parameters:
detailType
- Used along with the source field to help identify the fields and values expected in the detail field. This parameter is required. For example, events by CloudTrail have detail type "AWS API Call via CloudTrail"- Returns:
this
-
source
Sets the value ofEventBridgePutEventsEntry.getSource()
- Parameters:
source
- The service or application that caused this event to be generated. This parameter is required. Example value:com.example.service
- Returns:
this
-
eventBus
Sets the value ofEventBridgePutEventsEntry.getEventBus()
- Parameters:
eventBus
- The event bus the entry will be sent to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EventBridgePutEventsEntry>
- Returns:
- a new instance of
EventBridgePutEventsEntry
- Throws:
NullPointerException
- if any required attribute was not provided
-