public static final class S3EventSourceProps.Builder
extends java.lang.Object
S3EventSourceProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
S3EventSourceProps |
build()
Builds the configured instance.
|
S3EventSourceProps.Builder |
events(java.util.List<? extends EventType> events)
Sets the value of
S3EventSourceProps.getEvents() |
S3EventSourceProps.Builder |
filters(java.util.List<? extends NotificationKeyFilter> filters)
Sets the value of
S3EventSourceProps.getFilters() |
public S3EventSourceProps.Builder events(java.util.List<? extends EventType> events)
S3EventSourceProps.getEvents()
events
- The s3 event types that will trigger the notification. This parameter is required.this
public S3EventSourceProps.Builder filters(java.util.List<? extends NotificationKeyFilter> filters)
S3EventSourceProps.getFilters()
filters
- S3 object key filter rules to determine which objects trigger this event.
Each filter must include a prefix
and/or suffix
that will be matched
against the s3 object key. Refer to the S3 Developer Guide for details
about allowed filter rules.this
public S3EventSourceProps build()
S3EventSourceProps
java.lang.NullPointerException
- if any required attribute was not provided