/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace S3 { namespace Model { /** *

A container for specifying the notification configuration of the bucket. If * this element is empty, notifications are turned off for the * bucket.

See Also:

AWS * API Reference

*/ class AWS_S3_API NotificationConfiguration { public: NotificationConfiguration(); NotificationConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode); NotificationConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

The topic to which notifications are sent and the events for which * notifications are generated.

*/ inline const Aws::Vector& GetTopicConfigurations() const{ return m_topicConfigurations; } /** *

The topic to which notifications are sent and the events for which * notifications are generated.

*/ inline bool TopicConfigurationsHasBeenSet() const { return m_topicConfigurationsHasBeenSet; } /** *

The topic to which notifications are sent and the events for which * notifications are generated.

*/ inline void SetTopicConfigurations(const Aws::Vector& value) { m_topicConfigurationsHasBeenSet = true; m_topicConfigurations = value; } /** *

The topic to which notifications are sent and the events for which * notifications are generated.

*/ inline void SetTopicConfigurations(Aws::Vector&& value) { m_topicConfigurationsHasBeenSet = true; m_topicConfigurations = std::move(value); } /** *

The topic to which notifications are sent and the events for which * notifications are generated.

*/ inline NotificationConfiguration& WithTopicConfigurations(const Aws::Vector& value) { SetTopicConfigurations(value); return *this;} /** *

The topic to which notifications are sent and the events for which * notifications are generated.

*/ inline NotificationConfiguration& WithTopicConfigurations(Aws::Vector&& value) { SetTopicConfigurations(std::move(value)); return *this;} /** *

The topic to which notifications are sent and the events for which * notifications are generated.

*/ inline NotificationConfiguration& AddTopicConfigurations(const TopicConfiguration& value) { m_topicConfigurationsHasBeenSet = true; m_topicConfigurations.push_back(value); return *this; } /** *

The topic to which notifications are sent and the events for which * notifications are generated.

*/ inline NotificationConfiguration& AddTopicConfigurations(TopicConfiguration&& value) { m_topicConfigurationsHasBeenSet = true; m_topicConfigurations.push_back(std::move(value)); return *this; } /** *

The Amazon Simple Queue Service queues to publish messages to and the events * for which to publish messages.

*/ inline const Aws::Vector& GetQueueConfigurations() const{ return m_queueConfigurations; } /** *

The Amazon Simple Queue Service queues to publish messages to and the events * for which to publish messages.

*/ inline bool QueueConfigurationsHasBeenSet() const { return m_queueConfigurationsHasBeenSet; } /** *

The Amazon Simple Queue Service queues to publish messages to and the events * for which to publish messages.

*/ inline void SetQueueConfigurations(const Aws::Vector& value) { m_queueConfigurationsHasBeenSet = true; m_queueConfigurations = value; } /** *

The Amazon Simple Queue Service queues to publish messages to and the events * for which to publish messages.

*/ inline void SetQueueConfigurations(Aws::Vector&& value) { m_queueConfigurationsHasBeenSet = true; m_queueConfigurations = std::move(value); } /** *

The Amazon Simple Queue Service queues to publish messages to and the events * for which to publish messages.

*/ inline NotificationConfiguration& WithQueueConfigurations(const Aws::Vector& value) { SetQueueConfigurations(value); return *this;} /** *

The Amazon Simple Queue Service queues to publish messages to and the events * for which to publish messages.

*/ inline NotificationConfiguration& WithQueueConfigurations(Aws::Vector&& value) { SetQueueConfigurations(std::move(value)); return *this;} /** *

The Amazon Simple Queue Service queues to publish messages to and the events * for which to publish messages.

*/ inline NotificationConfiguration& AddQueueConfigurations(const QueueConfiguration& value) { m_queueConfigurationsHasBeenSet = true; m_queueConfigurations.push_back(value); return *this; } /** *

The Amazon Simple Queue Service queues to publish messages to and the events * for which to publish messages.

*/ inline NotificationConfiguration& AddQueueConfigurations(QueueConfiguration&& value) { m_queueConfigurationsHasBeenSet = true; m_queueConfigurations.push_back(std::move(value)); return *this; } /** *

Describes the Lambda functions to invoke and the events for which to invoke * them.

*/ inline const Aws::Vector& GetLambdaFunctionConfigurations() const{ return m_lambdaFunctionConfigurations; } /** *

Describes the Lambda functions to invoke and the events for which to invoke * them.

*/ inline bool LambdaFunctionConfigurationsHasBeenSet() const { return m_lambdaFunctionConfigurationsHasBeenSet; } /** *

Describes the Lambda functions to invoke and the events for which to invoke * them.

*/ inline void SetLambdaFunctionConfigurations(const Aws::Vector& value) { m_lambdaFunctionConfigurationsHasBeenSet = true; m_lambdaFunctionConfigurations = value; } /** *

Describes the Lambda functions to invoke and the events for which to invoke * them.

*/ inline void SetLambdaFunctionConfigurations(Aws::Vector&& value) { m_lambdaFunctionConfigurationsHasBeenSet = true; m_lambdaFunctionConfigurations = std::move(value); } /** *

Describes the Lambda functions to invoke and the events for which to invoke * them.

*/ inline NotificationConfiguration& WithLambdaFunctionConfigurations(const Aws::Vector& value) { SetLambdaFunctionConfigurations(value); return *this;} /** *

Describes the Lambda functions to invoke and the events for which to invoke * them.

*/ inline NotificationConfiguration& WithLambdaFunctionConfigurations(Aws::Vector&& value) { SetLambdaFunctionConfigurations(std::move(value)); return *this;} /** *

Describes the Lambda functions to invoke and the events for which to invoke * them.

*/ inline NotificationConfiguration& AddLambdaFunctionConfigurations(const LambdaFunctionConfiguration& value) { m_lambdaFunctionConfigurationsHasBeenSet = true; m_lambdaFunctionConfigurations.push_back(value); return *this; } /** *

Describes the Lambda functions to invoke and the events for which to invoke * them.

*/ inline NotificationConfiguration& AddLambdaFunctionConfigurations(LambdaFunctionConfiguration&& value) { m_lambdaFunctionConfigurationsHasBeenSet = true; m_lambdaFunctionConfigurations.push_back(std::move(value)); return *this; } private: Aws::Vector m_topicConfigurations; bool m_topicConfigurationsHasBeenSet; Aws::Vector m_queueConfigurations; bool m_queueConfigurationsHasBeenSet; Aws::Vector m_lambdaFunctionConfigurations; bool m_lambdaFunctionConfigurationsHasBeenSet; }; } // namespace Model } // namespace S3 } // namespace Aws