public static final class SqsEventSourceProps.Builder
extends java.lang.Object
SqsEventSourceProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SqsEventSourceProps.Builder |
batchSize(java.lang.Number batchSize)
Sets the value of
SqsEventSourceProps.getBatchSize() |
SqsEventSourceProps |
build()
Builds the configured instance.
|
SqsEventSourceProps.Builder |
enabled(java.lang.Boolean enabled)
Sets the value of
SqsEventSourceProps.getEnabled() |
SqsEventSourceProps.Builder |
maxBatchingWindow(Duration maxBatchingWindow)
Sets the value of
SqsEventSourceProps.getMaxBatchingWindow() |
SqsEventSourceProps.Builder |
reportBatchItemFailures(java.lang.Boolean reportBatchItemFailures)
Sets the value of
SqsEventSourceProps.getReportBatchItemFailures() |
public SqsEventSourceProps.Builder batchSize(java.lang.Number batchSize)
SqsEventSourceProps.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: Minimum value of 1. Maximum value of 10.
If maxBatchingWindow
is configured, this value can go up to 10,000.
this
public SqsEventSourceProps.Builder enabled(java.lang.Boolean enabled)
SqsEventSourceProps.getEnabled()
enabled
- If the SQS event source mapping should be enabled.this
public SqsEventSourceProps.Builder maxBatchingWindow(Duration maxBatchingWindow)
SqsEventSourceProps.getMaxBatchingWindow()
maxBatchingWindow
- The maximum amount of time to gather records before invoking the function.
Valid Range: Minimum value of 0 minutes. Maximum value of 5 minutes.this
public SqsEventSourceProps.Builder reportBatchItemFailures(java.lang.Boolean reportBatchItemFailures)
SqsEventSourceProps.getReportBatchItemFailures()
reportBatchItemFailures
- Allow functions to return partially successful responses for a batch of records.this
public SqsEventSourceProps build()
SqsEventSourceProps
java.lang.NullPointerException
- if any required attribute was not provided