AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
TopicConfiguration.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
11#include <aws/s3/model/Event.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace S3
24{
25namespace Model
26{
27
36 {
37 public:
41
43
44
45
46 inline const Aws::String& GetId() const{ return m_id; }
47
48
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50
51
52 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
53
54
55 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
56
57
58 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
59
60
61 inline TopicConfiguration& WithId(const Aws::String& value) { SetId(value); return *this;}
62
63
64 inline TopicConfiguration& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
65
66
67 inline TopicConfiguration& WithId(const char* value) { SetId(value); return *this;}
68
69
74 inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
75
80 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
81
86 inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
87
92 inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
93
98 inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
99
104 inline TopicConfiguration& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
105
110 inline TopicConfiguration& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
111
116 inline TopicConfiguration& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
117
118
125 inline const Aws::Vector<Event>& GetEvents() const{ return m_events; }
126
133 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
134
141 inline void SetEvents(const Aws::Vector<Event>& value) { m_eventsHasBeenSet = true; m_events = value; }
142
149 inline void SetEvents(Aws::Vector<Event>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
150
157 inline TopicConfiguration& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
158
165 inline TopicConfiguration& WithEvents(Aws::Vector<Event>&& value) { SetEvents(std::move(value)); return *this;}
166
173 inline TopicConfiguration& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
174
181 inline TopicConfiguration& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
182
183
184
185 inline const NotificationConfigurationFilter& GetFilter() const{ return m_filter; }
186
187
188 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
189
190
191 inline void SetFilter(const NotificationConfigurationFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
192
193
194 inline void SetFilter(NotificationConfigurationFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
195
196
197 inline TopicConfiguration& WithFilter(const NotificationConfigurationFilter& value) { SetFilter(value); return *this;}
198
199
200 inline TopicConfiguration& WithFilter(NotificationConfigurationFilter&& value) { SetFilter(std::move(value)); return *this;}
201
202 private:
203
204 Aws::String m_id;
205 bool m_idHasBeenSet = false;
206
207 Aws::String m_topicArn;
208 bool m_topicArnHasBeenSet = false;
209
210 Aws::Vector<Event> m_events;
211 bool m_eventsHasBeenSet = false;
212
214 bool m_filterHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace S3
219} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
void SetEvents(const Aws::Vector< Event > &value)
TopicConfiguration & WithTopicArn(const Aws::String &value)
TopicConfiguration & WithTopicArn(const char *value)
const Aws::String & GetId() const
TopicConfiguration & AddEvents(const Event &value)
void SetId(Aws::String &&value)
TopicConfiguration & WithEvents(Aws::Vector< Event > &&value)
AWS_S3_API TopicConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TopicConfiguration & WithId(const Aws::String &value)
void SetFilter(const NotificationConfigurationFilter &value)
TopicConfiguration & WithFilter(const NotificationConfigurationFilter &value)
TopicConfiguration & WithId(Aws::String &&value)
void SetTopicArn(const Aws::String &value)
void SetFilter(NotificationConfigurationFilter &&value)
void SetEvents(Aws::Vector< Event > &&value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3_API TopicConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTopicArn(Aws::String &&value)
void SetTopicArn(const char *value)
TopicConfiguration & WithEvents(const Aws::Vector< Event > &value)
TopicConfiguration & AddEvents(Event &&value)
void SetId(const Aws::String &value)
TopicConfiguration & WithTopicArn(Aws::String &&value)
TopicConfiguration & WithFilter(NotificationConfigurationFilter &&value)
const Aws::Vector< Event > & GetEvents() const
const Aws::String & GetTopicArn() const
TopicConfiguration & WithId(const char *value)
const NotificationConfigurationFilter & GetFilter() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector