|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.services.s3.model.BucketNotificationConfiguration
public class BucketNotificationConfiguration
Represents bucket notification configuration used to control receiving notifications for specific events for Amazon S3 buckets.
The notification configuration of a bucket provides near realtime notifications of events the user is interested in, using SNS as the delivery service. Notification is turned on by enabling configuration on a bucket, specifying the events and the SNS topic. This configuration can only be turned on by the bucket owner. If a notification configuration already exists for the specified bucket, the new notification configuration will replace the existing notification configuration. To remove the notification configuration pass in an empty request. Currently, buckets may only have a single event and topic configuration.
AmazonS3.getBucketNotificationConfiguration(String),
AmazonS3.setBucketNotificationConfiguration(String,BucketNotificationConfiguration)| Nested Class Summary | |
|---|---|
static class |
BucketNotificationConfiguration.TopicConfiguration
Represents the SNS Topic to publish event notification to. |
| Constructor Summary | |
|---|---|
BucketNotificationConfiguration()
Creates a new bucket notification configuration, which by default is empty. |
|
BucketNotificationConfiguration(Collection<BucketNotificationConfiguration.TopicConfiguration> topicConfigurations)
Creates a new bucket notification configuration with the specified TopicConfigurations. |
|
| Method Summary | |
|---|---|
List<BucketNotificationConfiguration.TopicConfiguration> |
getTopicConfigurations()
|
void |
setTopicConfigurations(Collection<BucketNotificationConfiguration.TopicConfiguration> topicConfigurations)
Sets the TopicConfigurations for this object. |
String |
toString()
|
BucketNotificationConfiguration |
withTopicConfigurations(BucketNotificationConfiguration.TopicConfiguration... topicConfigurations)
Sets the TopicConfigurations for this object, and returns this object so that additional method calls may be chained together. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BucketNotificationConfiguration()
Passing this new object directly to
AmazonS3.setBucketNotificationConfiguration(String,BucketNotificationConfiguration)
will do remove any existing bucket notification configuration.
public BucketNotificationConfiguration(Collection<BucketNotificationConfiguration.TopicConfiguration> topicConfigurations)
Passing this new object directly to
AmazonS3.setBucketNotificationConfiguration(String,BucketNotificationConfiguration)
will set the bucket's notification configuration.
| Method Detail |
|---|
public BucketNotificationConfiguration withTopicConfigurations(BucketNotificationConfiguration.TopicConfiguration... topicConfigurations)
This method will clear out any previously set TopicConfigurations set for this object.
topicConfigurations - A set of topic configurations.
public void setTopicConfigurations(Collection<BucketNotificationConfiguration.TopicConfiguration> topicConfigurations)
This method will clear out any previously set TopicConfigurations set for this object.
topicConfigurations - A collection of topic configurations.public List<BucketNotificationConfiguration.TopicConfiguration> getTopicConfigurations()
public String toString()
toString in class Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||