@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsS3BucketNotificationConfigurationDetail extends Object implements Serializable, Cloneable, StructuredPojo
Details for an S3 bucket notification configuration.
Constructor and Description |
---|
AwsS3BucketNotificationConfigurationDetail() |
Modifier and Type | Method and Description |
---|---|
AwsS3BucketNotificationConfigurationDetail |
clone() |
boolean |
equals(Object obj) |
String |
getDestination()
The ARN of the Lambda function, Amazon SQS queue, or Amazon SNS topic that generates the notification.
|
List<String> |
getEvents()
The list of events that trigger a notification.
|
AwsS3BucketNotificationConfigurationFilter |
getFilter()
The filters that determine which S3 buckets generate notifications.
|
String |
getType()
Indicates the type of notification.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDestination(String destination)
The ARN of the Lambda function, Amazon SQS queue, or Amazon SNS topic that generates the notification.
|
void |
setEvents(Collection<String> events)
The list of events that trigger a notification.
|
void |
setFilter(AwsS3BucketNotificationConfigurationFilter filter)
The filters that determine which S3 buckets generate notifications.
|
void |
setType(String type)
Indicates the type of notification.
|
String |
toString()
Returns a string representation of this object.
|
AwsS3BucketNotificationConfigurationDetail |
withDestination(String destination)
The ARN of the Lambda function, Amazon SQS queue, or Amazon SNS topic that generates the notification.
|
AwsS3BucketNotificationConfigurationDetail |
withEvents(Collection<String> events)
The list of events that trigger a notification.
|
AwsS3BucketNotificationConfigurationDetail |
withEvents(String... events)
The list of events that trigger a notification.
|
AwsS3BucketNotificationConfigurationDetail |
withFilter(AwsS3BucketNotificationConfigurationFilter filter)
The filters that determine which S3 buckets generate notifications.
|
AwsS3BucketNotificationConfigurationDetail |
withType(String type)
Indicates the type of notification.
|
public AwsS3BucketNotificationConfigurationDetail()
public List<String> getEvents()
The list of events that trigger a notification.
public void setEvents(Collection<String> events)
The list of events that trigger a notification.
events
- The list of events that trigger a notification.public AwsS3BucketNotificationConfigurationDetail withEvents(String... events)
The list of events that trigger a notification.
NOTE: This method appends the values to the existing list (if any). Use
setEvents(java.util.Collection)
or withEvents(java.util.Collection)
if you want to override the
existing values.
events
- The list of events that trigger a notification.public AwsS3BucketNotificationConfigurationDetail withEvents(Collection<String> events)
The list of events that trigger a notification.
events
- The list of events that trigger a notification.public void setFilter(AwsS3BucketNotificationConfigurationFilter filter)
The filters that determine which S3 buckets generate notifications.
filter
- The filters that determine which S3 buckets generate notifications.public AwsS3BucketNotificationConfigurationFilter getFilter()
The filters that determine which S3 buckets generate notifications.
public AwsS3BucketNotificationConfigurationDetail withFilter(AwsS3BucketNotificationConfigurationFilter filter)
The filters that determine which S3 buckets generate notifications.
filter
- The filters that determine which S3 buckets generate notifications.public void setDestination(String destination)
The ARN of the Lambda function, Amazon SQS queue, or Amazon SNS topic that generates the notification.
destination
- The ARN of the Lambda function, Amazon SQS queue, or Amazon SNS topic that generates the notification.public String getDestination()
The ARN of the Lambda function, Amazon SQS queue, or Amazon SNS topic that generates the notification.
public AwsS3BucketNotificationConfigurationDetail withDestination(String destination)
The ARN of the Lambda function, Amazon SQS queue, or Amazon SNS topic that generates the notification.
destination
- The ARN of the Lambda function, Amazon SQS queue, or Amazon SNS topic that generates the notification.public void setType(String type)
Indicates the type of notification. Notifications can be generated using Lambda functions, Amazon SQS queues, or Amazon SNS topics, with corresponding valid values as follows:
LambdaConfiguration
QueueConfiguration
TopicConfiguration
type
- Indicates the type of notification. Notifications can be generated using Lambda functions, Amazon SQS
queues, or Amazon SNS topics, with corresponding valid values as follows:
LambdaConfiguration
QueueConfiguration
TopicConfiguration
public String getType()
Indicates the type of notification. Notifications can be generated using Lambda functions, Amazon SQS queues, or Amazon SNS topics, with corresponding valid values as follows:
LambdaConfiguration
QueueConfiguration
TopicConfiguration
LambdaConfiguration
QueueConfiguration
TopicConfiguration
public AwsS3BucketNotificationConfigurationDetail withType(String type)
Indicates the type of notification. Notifications can be generated using Lambda functions, Amazon SQS queues, or Amazon SNS topics, with corresponding valid values as follows:
LambdaConfiguration
QueueConfiguration
TopicConfiguration
type
- Indicates the type of notification. Notifications can be generated using Lambda functions, Amazon SQS
queues, or Amazon SNS topics, with corresponding valid values as follows:
LambdaConfiguration
QueueConfiguration
TopicConfiguration
public String toString()
toString
in class Object
Object.toString()
public AwsS3BucketNotificationConfigurationDetail clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.