Package com.amazonaws.services.s3.model
Class QueueConfiguration
- java.lang.Object
-
- com.amazonaws.services.s3.model.NotificationConfiguration
-
- com.amazonaws.services.s3.model.QueueConfiguration
-
- All Implemented Interfaces:
Serializable
public class QueueConfiguration extends NotificationConfiguration implements Serializable
Represents the queue configuration for an Amazon S3 bucket.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QueueConfiguration()
QueueConfiguration(String queueARN, String... events)
Creates a new queue configuration with the given queue arn and set of events.QueueConfiguration(String queueARN, EnumSet<S3Event> events)
Creates a new queue configuration with the given queue arn and set of events.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getQueueARN()
Returns the queue arn for this notification configuration.void
setQueueARN(String queueARN)
Sets the queue ARN for this configurationQueueConfiguration
withQueueARN(String queueARN)
Fluent method to set the queue ARN for this configuration-
Methods inherited from class com.amazonaws.services.s3.model.NotificationConfiguration
addEvent, addEvent, addObjectPrefix, getEvents, getFilter, getObjectPrefixes, setEvents, setFilter, setObjectPrefixes, withEvents, withFilter, withObjectPrefixes
-
-
-
-
Constructor Detail
-
QueueConfiguration
public QueueConfiguration()
-
QueueConfiguration
public QueueConfiguration(String queueARN, EnumSet<S3Event> events)
Creates a new queue configuration with the given queue arn and set of events.- Parameters:
queueARN
- the Amazon SQS queue arn to which the notifications are to be sent.events
- the events for which the notifications are to be sent
-
QueueConfiguration
public QueueConfiguration(String queueARN, String... events)
Creates a new queue configuration with the given queue arn and set of events.- Parameters:
queueARN
- the Amazon SQS queue arn to which the notifications are to be sent.events
- the events for which the notifications are to be sent
-
-
Method Detail
-
getQueueARN
public String getQueueARN()
Returns the queue arn for this notification configuration.
-
setQueueARN
public void setQueueARN(String queueARN)
Sets the queue ARN for this configuration- Parameters:
queueARN
- ARN for the SQS queue
-
withQueueARN
public QueueConfiguration withQueueARN(String queueARN)
Fluent method to set the queue ARN for this configuration- Parameters:
queueARN
- ARN for the SQS queue- Returns:
- This object for method chaining
-
-