public class NotificationConfiguration extends Object implements Serializable
Constructor and Description |
---|
NotificationConfiguration(String... events)
Creates a notification configuration with the given set of events.
|
Modifier and Type | Method and Description |
---|---|
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. |
public 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.NotificationConfiguration
.public NotificationConfiguration withObjectPrefixes(String... objectPrefixes)
NotificationConfiguration
object and returns this object.objectPrefixes
- the list of prefixes for the notification configuration.NotificationConfiguration
.public void addEvent(String 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 © 2010–2019. All rights reserved.