Package com.amazonaws.services.s3.model
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
ConstructorsModifierConstructorDescriptionprotected
Creates a NotificationConfiguration with empty events and prefixes.protected
NotificationConfiguration
(String... events) Creates a notification configuration with the given set of events.protected
NotificationConfiguration
(EnumSet<S3Event> events) Creates a notification configuration with the given set of events. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the given event to the set of events for thisNotificationConfiguration
object.void
Adds the given event to the set of events for thisNotificationConfiguration
object.void
addObjectPrefix
(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.void
Sets the given events in thisNotificationConfiguration
object.void
Sets the filter criteria for thisNotificationConfiguration
.void
setObjectPrefixes
(List<String> objectPrefixes) Deprecated.This field is not used by S3.withEvents
(Set<String> events) Sets the given events in thisNotificationConfiguration
object and returns this object.withFilter
(Filter filter) Sets the filter criteria for thisNotificationConfiguration
and 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
Creates a notification configuration with the given set of events.- Parameters:
events
- the list of events for the notification configuration.
-
NotificationConfiguration
Creates a notification configuration with the given set of events.- Parameters:
events
- the list of events for the notification configuration.
-
-
Method Details
-
getEvents
Returns the set of events associated with this notification configuration. -
setEvents
Sets the given events in thisNotificationConfiguration
object.- 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 thisNotificationConfiguration
object 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 thisNotificationConfiguration
object.- Parameters:
event
- the event to add to this notification configuration
-
addEvent
Adds the given event to the set of events for thisNotificationConfiguration
object.- 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:
Filter
object associated with thisNotificationConfiguration
-
setFilter
Sets the filter criteria for thisNotificationConfiguration
.- Parameters:
filter
- NewFilter
-
withFilter
Sets the filter criteria for thisNotificationConfiguration
and returns this object for method chaining.- Parameters:
filter
- NewFilter
- Returns:
- This object for method chaining
-