public static final class EventInvokeConfigProps.Builder
extends java.lang.Object
EventInvokeConfigProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
EventInvokeConfigProps |
build()
Builds the configured instance.
|
EventInvokeConfigProps.Builder |
function(IFunction function)
Sets the value of
EventInvokeConfigProps.getFunction() |
EventInvokeConfigProps.Builder |
maxEventAge(Duration maxEventAge)
Sets the value of
EventInvokeConfigOptions.getMaxEventAge() |
EventInvokeConfigProps.Builder |
onFailure(IDestination onFailure)
Sets the value of
EventInvokeConfigOptions.getOnFailure() |
EventInvokeConfigProps.Builder |
onSuccess(IDestination onSuccess)
Sets the value of
EventInvokeConfigOptions.getOnSuccess() |
EventInvokeConfigProps.Builder |
qualifier(java.lang.String qualifier)
Sets the value of
EventInvokeConfigProps.getQualifier() |
EventInvokeConfigProps.Builder |
retryAttempts(java.lang.Number retryAttempts)
Sets the value of
EventInvokeConfigOptions.getRetryAttempts() |
public EventInvokeConfigProps.Builder function(IFunction function)
EventInvokeConfigProps.getFunction()
function
- The Lambda function. This parameter is required.this
public EventInvokeConfigProps.Builder qualifier(java.lang.String qualifier)
EventInvokeConfigProps.getQualifier()
qualifier
- The qualifier.this
public EventInvokeConfigProps.Builder maxEventAge(Duration maxEventAge)
EventInvokeConfigOptions.getMaxEventAge()
maxEventAge
- The maximum age of a request that Lambda sends to a function for processing.
Minimum: 60 seconds
Maximum: 6 hoursthis
public EventInvokeConfigProps.Builder onFailure(IDestination onFailure)
EventInvokeConfigOptions.getOnFailure()
onFailure
- The destination for failed invocations.this
public EventInvokeConfigProps.Builder onSuccess(IDestination onSuccess)
EventInvokeConfigOptions.getOnSuccess()
onSuccess
- The destination for successful invocations.this
public EventInvokeConfigProps.Builder retryAttempts(java.lang.Number retryAttempts)
EventInvokeConfigOptions.getRetryAttempts()
retryAttempts
- The maximum number of times to retry when the function returns an error.
Minimum: 0
Maximum: 2this
public EventInvokeConfigProps build()
EventInvokeConfigProps
java.lang.NullPointerException
- if any required attribute was not provided