/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Details for an S3 bucket notification configuration. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsS3BucketNotificationConfigurationDetail implements Serializable, Cloneable, StructuredPojo { /** ** The list of events that trigger a notification. *
*/ private java.util.List* The filters that determine which S3 buckets generate notifications. *
*/ private AwsS3BucketNotificationConfigurationFilter filter; /** ** The ARN of the Lambda function, Amazon SQS queue, or Amazon SNS topic that generates the notification. *
*/ private String destination; /** ** 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
*
* The list of events that trigger a notification. *
* * @return The list of events that trigger a notification. */ public java.util.List* The list of events that trigger a notification. *
* * @param events * The list of events that trigger a notification. */ public void setEvents(java.util.Collection* The list of events that trigger a notification. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEvents(java.util.Collection)} or {@link #withEvents(java.util.Collection)} if you want to override the * existing values. *
* * @param events * The list of events that trigger a notification. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsS3BucketNotificationConfigurationDetail withEvents(String... events) { if (this.events == null) { setEvents(new java.util.ArrayList* The list of events that trigger a notification. *
* * @param events * The list of events that trigger a notification. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsS3BucketNotificationConfigurationDetail withEvents(java.util.Collection* The filters that determine which S3 buckets generate notifications. *
* * @param filter * The filters that determine which S3 buckets generate notifications. */ public void setFilter(AwsS3BucketNotificationConfigurationFilter filter) { this.filter = filter; } /** ** The filters that determine which S3 buckets generate notifications. *
* * @return The filters that determine which S3 buckets generate notifications. */ public AwsS3BucketNotificationConfigurationFilter getFilter() { return this.filter; } /** ** The filters that determine which S3 buckets generate notifications. *
* * @param filter * The filters that determine which S3 buckets generate notifications. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsS3BucketNotificationConfigurationDetail withFilter(AwsS3BucketNotificationConfigurationFilter filter) { setFilter(filter); return this; } /** ** The ARN of the Lambda function, Amazon SQS queue, or Amazon SNS topic that generates the notification. *
* * @param destination * The ARN of the Lambda function, Amazon SQS queue, or Amazon SNS topic that generates the notification. */ public void setDestination(String destination) { this.destination = destination; } /** ** The ARN of the Lambda function, Amazon SQS queue, or Amazon SNS topic that generates the notification. *
* * @return The ARN of the Lambda function, Amazon SQS queue, or Amazon SNS topic that generates the notification. */ public String getDestination() { return this.destination; } /** ** The ARN of the Lambda function, Amazon SQS queue, or Amazon SNS topic that generates the notification. *
* * @param destination * The ARN of the Lambda function, Amazon SQS queue, or Amazon SNS topic that generates the notification. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsS3BucketNotificationConfigurationDetail withDestination(String destination) { setDestination(destination); return this; } /** ** 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
*
* 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
*
* 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
*