public abstract class NotificationConfiguration extends Object
Modifier | Constructor and Description |
---|---|
protected |
NotificationConfiguration()
Creates a NotificationConfiguration with empty events and prefixes.
|
protected |
NotificationConfiguration(EnumSet<S3Event> events)
Creates a notification configuration with the given set of events.
|
protected |
NotificationConfiguration(String... events)
Creates a notification configuration with the given set of events.
|
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
NotificationConfiguration.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
NotificationConfiguration.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
NotificationConfiguration.withFilter(Filter) for the correct way to filter notifications. |
protected NotificationConfiguration()
protected NotificationConfiguration(EnumSet<S3Event> events)
events
- the list of events for the notification configuration.protected NotificationConfiguration(String... events)
events
- the list of events for the notification configuration.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()
NotificationConfiguration.getFilter()
for the correct way to filter notifications.@Deprecated public void setObjectPrefixes(List<String> objectPrefixes)
NotificationConfiguration.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)
NotificationConfiguration.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
Copyright © 2024. All rights reserved.