/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A container for specifying the configuration for publication of messages to
* an Amazon Simple Notification Service (Amazon SNS) topic when Amazon S3 detects
* specified events.See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 * publishes a message when it detects events of the specified type.
*/ inline const Aws::String& GetTopicArn() const{ return m_topicArn; } /** *The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 * publishes a message when it detects events of the specified type.
*/ inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 * publishes a message when it detects events of the specified type.
*/ inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; } /** *The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 * publishes a message when it detects events of the specified type.
*/ inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 * publishes a message when it detects events of the specified type.
*/ inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); } /** *The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 * publishes a message when it detects events of the specified type.
*/ inline TopicConfiguration& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 * publishes a message when it detects events of the specified type.
*/ inline TopicConfiguration& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 * publishes a message when it detects events of the specified type.
*/ inline TopicConfiguration& WithTopicArn(const char* value) { SetTopicArn(value); return *this;} /** *The Amazon S3 bucket event about which to send notifications. For more * information, see Supported * Event Types in the Amazon S3 User Guide.
*/ inline const Aws::VectorThe Amazon S3 bucket event about which to send notifications. For more * information, see Supported * Event Types in the Amazon S3 User Guide.
*/ inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; } /** *The Amazon S3 bucket event about which to send notifications. For more * information, see Supported * Event Types in the Amazon S3 User Guide.
*/ inline void SetEvents(const Aws::VectorThe Amazon S3 bucket event about which to send notifications. For more * information, see Supported * Event Types in the Amazon S3 User Guide.
*/ inline void SetEvents(Aws::VectorThe Amazon S3 bucket event about which to send notifications. For more * information, see Supported * Event Types in the Amazon S3 User Guide.
*/ inline TopicConfiguration& WithEvents(const Aws::VectorThe Amazon S3 bucket event about which to send notifications. For more * information, see Supported * Event Types in the Amazon S3 User Guide.
*/ inline TopicConfiguration& WithEvents(Aws::VectorThe Amazon S3 bucket event about which to send notifications. For more * information, see Supported * Event Types in the Amazon S3 User Guide.
*/ inline TopicConfiguration& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; } /** *The Amazon S3 bucket event about which to send notifications. For more * information, see Supported * Event Types in the Amazon S3 User Guide.
*/ inline TopicConfiguration& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; } inline const NotificationConfigurationFilter& GetFilter() const{ return m_filter; } inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; } inline void SetFilter(const NotificationConfigurationFilter& value) { m_filterHasBeenSet = true; m_filter = value; } inline void SetFilter(NotificationConfigurationFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); } inline TopicConfiguration& WithFilter(const NotificationConfigurationFilter& value) { SetFilter(value); return *this;} inline TopicConfiguration& WithFilter(NotificationConfigurationFilter&& value) { SetFilter(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet; Aws::String m_topicArn; bool m_topicArnHasBeenSet; Aws::Vector