public abstract class NotificationConfiguration extends Object
Modifier and Type | Method and Description |
---|---|
void |
addEvent(S3Event event)
Adds the given event to the set of events for this
NotificationConfiguration object. |
void |
addEvent(String event)
Adds the given event to the set of events for this
NotificationConfiguration object. |
void |
addObjectPrefix(String prefix)
Deprecated.
This field is not used by S3. It will be removed in the next major version of the
SDK
|
Set<String> |
getEvents()
Returns the set of events associated with this notification configuration.
|
Filter |
getFilter()
Filter criteria for determining which S3 objects trigger event notifications.
|
List<String> |
getObjectPrefixes()
Deprecated.
This field is not used by S3. It will be removed in the next major version of the
SDK. See
getFilter() for the correct way to filter notifications. |
void |
setEvents(Set<String> events)
Sets the given events in this
NotificationConfiguration object. |
void |
setFilter(Filter filter)
Sets the filter criteria for this
NotificationConfiguration . |
void |
setObjectPrefixes(List<String> objectPrefixes)
Deprecated.
This field is not used by S3. It will be removed in the next major version of the
SDK. See
setFilter(Filter) for the correct way to filter notifications. |
NotificationConfiguration |
withEvents(Set<String> events)
Sets the given events in this
NotificationConfiguration object and returns this
object. |
NotificationConfiguration |
withFilter(Filter filter)
Sets the filter criteria for this
NotificationConfiguration and returns this object
for method chaining. |
NotificationConfiguration |
withObjectPrefixes(String... objectPrefixes)
Deprecated.
This field is not used by S3. It will be removed in the next major version of the
SDK. See
withFilter(Filter) for the correct way to filter notifications. |
public Set<String> getEvents()
public void setEvents(Set<String> events)
NotificationConfiguration
object.events
- the set of events for the notification configuration.@Deprecated public List<String> getObjectPrefixes()
getFilter()
for the correct way to filter notifications.@Deprecated public void setObjectPrefixes(List<String> objectPrefixes)
setFilter(Filter)
for the correct way to filter notifications.public NotificationConfiguration withEvents(Set<String> events)
NotificationConfiguration
object and returns this
object.events
- the set of events for the notification configuration.@Deprecated public NotificationConfiguration withObjectPrefixes(String... objectPrefixes)
withFilter(Filter)
for the correct way to filter notifications.public void addEvent(String event)
NotificationConfiguration
object.event
- the event to add to this notification configurationpublic void addEvent(S3Event event)
NotificationConfiguration
object.event
- the event to add to this notification configuration@Deprecated public void addObjectPrefix(String prefix)
public Filter getFilter()
Filter
object associated with this NotificationConfiguration
public void setFilter(Filter filter)
NotificationConfiguration
.filter
- New Filter
public NotificationConfiguration withFilter(Filter filter)
NotificationConfiguration
and returns this object
for method chaining.filter
- New Filter