public static final class BaseStreamEventSourceProps.Builder
extends java.lang.Object
BaseStreamEventSourceProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BaseStreamEventSourceProps.Builder |
batchSize(java.lang.Number batchSize)
Sets the value of
BaseStreamEventSourceProps.getBatchSize() |
BaseStreamEventSourceProps |
build()
Builds the configured instance.
|
BaseStreamEventSourceProps.Builder |
enabled(java.lang.Boolean enabled)
Sets the value of
BaseStreamEventSourceProps.getEnabled() |
BaseStreamEventSourceProps.Builder |
maxBatchingWindow(Duration maxBatchingWindow)
Sets the value of
BaseStreamEventSourceProps.getMaxBatchingWindow() |
BaseStreamEventSourceProps.Builder |
startingPosition(StartingPosition startingPosition)
Sets the value of
BaseStreamEventSourceProps.getStartingPosition() |
public BaseStreamEventSourceProps.Builder startingPosition(StartingPosition startingPosition)
BaseStreamEventSourceProps.getStartingPosition()
startingPosition
- Where to begin consuming the stream. This parameter is required.this
public BaseStreamEventSourceProps.Builder batchSize(java.lang.Number batchSize)
BaseStreamEventSourceProps.getBatchSize()
batchSize
- The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function.
Your function receives an
event with all the retrieved records.
Valid Range:
this
public BaseStreamEventSourceProps.Builder enabled(java.lang.Boolean enabled)
BaseStreamEventSourceProps.getEnabled()
enabled
- If the stream event source mapping should be enabled.this
public BaseStreamEventSourceProps.Builder maxBatchingWindow(Duration maxBatchingWindow)
BaseStreamEventSourceProps.getMaxBatchingWindow()
maxBatchingWindow
- The maximum amount of time to gather records before invoking the function.
Maximum of Duration.minutes(5)this
public BaseStreamEventSourceProps build()
BaseStreamEventSourceProps
java.lang.NullPointerException
- if any required attribute was not provided