Package com.amazonaws.services.s3.model
Class BucketNotificationConfiguration.TopicConfiguration
- java.lang.Object
-
- com.amazonaws.services.s3.model.NotificationConfiguration
-
- com.amazonaws.services.s3.model.TopicConfiguration
-
- com.amazonaws.services.s3.model.BucketNotificationConfiguration.TopicConfiguration
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BucketNotificationConfiguration
@Deprecated public static class BucketNotificationConfiguration.TopicConfiguration extends TopicConfiguration
Deprecated.UseTopicConfiguration
insteadRepresents the SNS topic to publish event notification to. Notifications are published to the topic only if the specified event is triggered.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TopicConfiguration(String topic, String event)
Deprecated.Creates a newBucketNotificationConfiguration.TopicConfiguration
.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getEvent()
Deprecated.useNotificationConfiguration.getEvents()
instead.String
getTopic()
Deprecated.Gets the topic ARN (Amazon Resource Name) for the topic to publish events to.String
toString()
Deprecated.-
Methods inherited from class com.amazonaws.services.s3.model.TopicConfiguration
getTopicARN, setTopicARN, withTopicARN
-
Methods inherited from class com.amazonaws.services.s3.model.NotificationConfiguration
addEvent, addEvent, addObjectPrefix, getEvents, getFilter, getObjectPrefixes, setEvents, setFilter, setObjectPrefixes, withEvents, withFilter, withObjectPrefixes
-
-
-
-
Constructor Detail
-
TopicConfiguration
public TopicConfiguration(String topic, String event)
Deprecated.Creates a new
BucketNotificationConfiguration.TopicConfiguration
.- Parameters:
topic
- The SNS Topic ARN (Amazon Resource Name) to publish notifications to.event
- The event that must occur to trigger the notification publication.
-
-
Method Detail
-
getTopic
public String getTopic()
Deprecated.Gets the topic ARN (Amazon Resource Name) for the topic to publish events to.
- Returns:
- The topic ARN for the topic to publish events to.
-
getEvent
public String getEvent()
Deprecated.useNotificationConfiguration.getEvents()
instead.Gets the first event that is configured in the list of events.
-
-