Class NotificationConfiguration
java.lang.Object
com.amazonaws.services.s3.model.NotificationConfiguration
- Direct Known Subclasses:
CloudFunctionConfiguration, LambdaConfiguration, QueueConfiguration, TopicConfiguration
An abstract class for all the notification configurations associated with an Amazon S3 bucket.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a NotificationConfiguration with empty events and prefixes.protectedNotificationConfiguration(String... events) Creates a notification configuration with the given set of events.protectedNotificationConfiguration(EnumSet<S3Event> events) Creates a notification configuration with the given set of events. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the given event to the set of events for thisNotificationConfigurationobject.voidAdds the given event to the set of events for thisNotificationConfigurationobject.voidaddObjectPrefix(String prefix) Deprecated.This field is not used by S3.Returns the set of events associated with this notification configuration.Filter criteria for determining which S3 objects trigger event notifications.Deprecated.This field is not used by S3.voidSets the given events in thisNotificationConfigurationobject.voidSets the filter criteria for thisNotificationConfiguration.voidsetObjectPrefixes(List<String> objectPrefixes) Deprecated.This field is not used by S3.withEvents(Set<String> events) Sets the given events in thisNotificationConfigurationobject and returns this object.withFilter(Filter filter) Sets the filter criteria for thisNotificationConfigurationand returns this object for method chaining.withObjectPrefixes(String... objectPrefixes) Deprecated.This field is not used by S3.
-
Constructor Details
-
NotificationConfiguration
protected NotificationConfiguration()Creates a NotificationConfiguration with empty events and prefixes. -
NotificationConfiguration
-
NotificationConfiguration
Creates a notification configuration with the given set of events.- Parameters:
events- the list of events for the notification configuration.
-
-
Method Details
-
getEvents
-
setEvents
Sets the given events in thisNotificationConfigurationobject.- Parameters:
events- the set of events for the notification configuration.
-
getObjectPrefixes
Deprecated.This field is not used by S3. It will be removed in the next major version of the SDK. SeegetFilter()for the correct way to filter notifications. -
setObjectPrefixes
Deprecated.This field is not used by S3. It will be removed in the next major version of the SDK. SeesetFilter(Filter)for the correct way to filter notifications. -
withEvents
Sets the given events in thisNotificationConfigurationobject and returns this object.- Parameters:
events- the set of events for the notification configuration.
-
withObjectPrefixes
Deprecated.This field is not used by S3. It will be removed in the next major version of the SDK. SeewithFilter(Filter)for the correct way to filter notifications. -
addEvent
Adds the given event to the set of events for thisNotificationConfigurationobject.- Parameters:
event- the event to add to this notification configuration
-
addEvent
Adds the given event to the set of events for thisNotificationConfigurationobject.- Parameters:
event- the event to add to this notification configuration
-
addObjectPrefix
Deprecated.This field is not used by S3. It will be removed in the next major version of the SDK -
getFilter
Filter criteria for determining which S3 objects trigger event notifications.- Returns:
Filterobject associated with thisNotificationConfiguration
-
setFilter
Sets the filter criteria for thisNotificationConfiguration.- Parameters:
filter- NewFilter
-
withFilter
Sets the filter criteria for thisNotificationConfigurationand returns this object for method chaining.- Parameters:
filter- NewFilter- Returns:
- This object for method chaining
-