AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NotificationConfiguration.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/s3/model/EventBridgeConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/s3/model/TopicConfiguration.h>
12#include <aws/s3/model/QueueConfiguration.h>
13#include <aws/s3/model/LambdaFunctionConfiguration.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace S3
26{
27namespace Model
28{
29
38 {
39 public:
43
44 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45
46
48
52 inline const Aws::Vector<TopicConfiguration>& GetTopicConfigurations() const{ return m_topicConfigurations; }
53 inline bool TopicConfigurationsHasBeenSet() const { return m_topicConfigurationsHasBeenSet; }
54 inline void SetTopicConfigurations(const Aws::Vector<TopicConfiguration>& value) { m_topicConfigurationsHasBeenSet = true; m_topicConfigurations = value; }
55 inline void SetTopicConfigurations(Aws::Vector<TopicConfiguration>&& value) { m_topicConfigurationsHasBeenSet = true; m_topicConfigurations = std::move(value); }
58 inline NotificationConfiguration& AddTopicConfigurations(const TopicConfiguration& value) { m_topicConfigurationsHasBeenSet = true; m_topicConfigurations.push_back(value); return *this; }
59 inline NotificationConfiguration& AddTopicConfigurations(TopicConfiguration&& value) { m_topicConfigurationsHasBeenSet = true; m_topicConfigurations.push_back(std::move(value)); return *this; }
61
63
67 inline const Aws::Vector<QueueConfiguration>& GetQueueConfigurations() const{ return m_queueConfigurations; }
68 inline bool QueueConfigurationsHasBeenSet() const { return m_queueConfigurationsHasBeenSet; }
69 inline void SetQueueConfigurations(const Aws::Vector<QueueConfiguration>& value) { m_queueConfigurationsHasBeenSet = true; m_queueConfigurations = value; }
70 inline void SetQueueConfigurations(Aws::Vector<QueueConfiguration>&& value) { m_queueConfigurationsHasBeenSet = true; m_queueConfigurations = std::move(value); }
73 inline NotificationConfiguration& AddQueueConfigurations(const QueueConfiguration& value) { m_queueConfigurationsHasBeenSet = true; m_queueConfigurations.push_back(value); return *this; }
74 inline NotificationConfiguration& AddQueueConfigurations(QueueConfiguration&& value) { m_queueConfigurationsHasBeenSet = true; m_queueConfigurations.push_back(std::move(value)); return *this; }
76
78
82 inline const Aws::Vector<LambdaFunctionConfiguration>& GetLambdaFunctionConfigurations() const{ return m_lambdaFunctionConfigurations; }
83 inline bool LambdaFunctionConfigurationsHasBeenSet() const { return m_lambdaFunctionConfigurationsHasBeenSet; }
84 inline void SetLambdaFunctionConfigurations(const Aws::Vector<LambdaFunctionConfiguration>& value) { m_lambdaFunctionConfigurationsHasBeenSet = true; m_lambdaFunctionConfigurations = value; }
85 inline void SetLambdaFunctionConfigurations(Aws::Vector<LambdaFunctionConfiguration>&& value) { m_lambdaFunctionConfigurationsHasBeenSet = true; m_lambdaFunctionConfigurations = std::move(value); }
88 inline NotificationConfiguration& AddLambdaFunctionConfigurations(const LambdaFunctionConfiguration& value) { m_lambdaFunctionConfigurationsHasBeenSet = true; m_lambdaFunctionConfigurations.push_back(value); return *this; }
89 inline NotificationConfiguration& AddLambdaFunctionConfigurations(LambdaFunctionConfiguration&& value) { m_lambdaFunctionConfigurationsHasBeenSet = true; m_lambdaFunctionConfigurations.push_back(std::move(value)); return *this; }
91
93
96 inline const EventBridgeConfiguration& GetEventBridgeConfiguration() const{ return m_eventBridgeConfiguration; }
97 inline bool EventBridgeConfigurationHasBeenSet() const { return m_eventBridgeConfigurationHasBeenSet; }
98 inline void SetEventBridgeConfiguration(const EventBridgeConfiguration& value) { m_eventBridgeConfigurationHasBeenSet = true; m_eventBridgeConfiguration = value; }
99 inline void SetEventBridgeConfiguration(EventBridgeConfiguration&& value) { m_eventBridgeConfigurationHasBeenSet = true; m_eventBridgeConfiguration = std::move(value); }
103
105
106 inline const Aws::String& GetRequestId() const{ return m_requestId; }
107 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
108 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
109 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
110 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
111 inline NotificationConfiguration& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
112 inline NotificationConfiguration& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
113 inline NotificationConfiguration& WithRequestId(const char* value) { SetRequestId(value); return *this;}
115 private:
116
117 Aws::Vector<TopicConfiguration> m_topicConfigurations;
118 bool m_topicConfigurationsHasBeenSet = false;
119
120 Aws::Vector<QueueConfiguration> m_queueConfigurations;
121 bool m_queueConfigurationsHasBeenSet = false;
122
123 Aws::Vector<LambdaFunctionConfiguration> m_lambdaFunctionConfigurations;
124 bool m_lambdaFunctionConfigurationsHasBeenSet = false;
125
126 EventBridgeConfiguration m_eventBridgeConfiguration;
127 bool m_eventBridgeConfigurationHasBeenSet = false;
128
129 Aws::String m_requestId;
130 bool m_requestIdHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace S3
135} // namespace Aws
const Aws::Vector< LambdaFunctionConfiguration > & GetLambdaFunctionConfigurations() const
void SetEventBridgeConfiguration(const EventBridgeConfiguration &value)
AWS_S3_API NotificationConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
NotificationConfiguration & WithLambdaFunctionConfigurations(const Aws::Vector< LambdaFunctionConfiguration > &value)
NotificationConfiguration & AddTopicConfigurations(const TopicConfiguration &value)
void SetLambdaFunctionConfigurations(const Aws::Vector< LambdaFunctionConfiguration > &value)
void SetQueueConfigurations(Aws::Vector< QueueConfiguration > &&value)
const EventBridgeConfiguration & GetEventBridgeConfiguration() const
NotificationConfiguration & AddQueueConfigurations(QueueConfiguration &&value)
void SetLambdaFunctionConfigurations(Aws::Vector< LambdaFunctionConfiguration > &&value)
const Aws::Vector< QueueConfiguration > & GetQueueConfigurations() const
NotificationConfiguration & WithLambdaFunctionConfigurations(Aws::Vector< LambdaFunctionConfiguration > &&value)
NotificationConfiguration & WithEventBridgeConfiguration(const EventBridgeConfiguration &value)
NotificationConfiguration & WithEventBridgeConfiguration(EventBridgeConfiguration &&value)
NotificationConfiguration & WithQueueConfigurations(const Aws::Vector< QueueConfiguration > &value)
NotificationConfiguration & WithQueueConfigurations(Aws::Vector< QueueConfiguration > &&value)
NotificationConfiguration & AddLambdaFunctionConfigurations(LambdaFunctionConfiguration &&value)
const Aws::Vector< TopicConfiguration > & GetTopicConfigurations() const
NotificationConfiguration & WithRequestId(const Aws::String &value)
NotificationConfiguration & WithRequestId(Aws::String &&value)
NotificationConfiguration & AddLambdaFunctionConfigurations(const LambdaFunctionConfiguration &value)
NotificationConfiguration & WithTopicConfigurations(Aws::Vector< TopicConfiguration > &&value)
void SetTopicConfigurations(Aws::Vector< TopicConfiguration > &&value)
NotificationConfiguration & AddQueueConfigurations(const QueueConfiguration &value)
void SetEventBridgeConfiguration(EventBridgeConfiguration &&value)
NotificationConfiguration & WithTopicConfigurations(const Aws::Vector< TopicConfiguration > &value)
void SetTopicConfigurations(const Aws::Vector< TopicConfiguration > &value)
void SetQueueConfigurations(const Aws::Vector< QueueConfiguration > &value)
NotificationConfiguration & AddTopicConfigurations(TopicConfiguration &&value)
AWS_S3_API NotificationConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
NotificationConfiguration & WithRequestId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector