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)
Adds the given prefix to the list of prefix for this
NotificationConfiguration object. |
Set<String> |
getEvents()
Returns the set of events associated with this notification
configuration.
|
List<String> |
getObjectPrefixes()
Retuns the list of Amazon S3 object prefixes for this notification
configuration.
|
void |
setEvents(Set<String> events)
Sets the given events in this
NotificationConfiguration object. |
void |
setObjectPrefixes(List<String> objectPrefixes)
Sets the given prefixes in this
NotificationConfiguration object. |
NotificationConfiguration |
withEvents(Set<String> events)
Sets the given events in this
NotificationConfiguration object
and returns this object. |
NotificationConfiguration |
withObjectPrefixes(String... objectPrefixes)
Sets the given prefixes in this
NotificationConfiguration object
and returns this object. |
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.public List<String> getObjectPrefixes()
public void setObjectPrefixes(List<String> objectPrefixes)
NotificationConfiguration
object.objectPrefixes
- the list of prefixes for the notification configuration.public NotificationConfiguration withEvents(Set<String> events)
NotificationConfiguration
object
and returns this object.events
- the set of events for the notification configuration.public NotificationConfiguration withObjectPrefixes(String... objectPrefixes)
NotificationConfiguration
object
and returns this object.objectPrefixes
- the list of prefixes for the notification configuration.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 configurationpublic void addObjectPrefix(String prefix)
NotificationConfiguration
object.prefix
- the prefix to add to this notification configurationCopyright © 2015. All rights reserved.