AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
QueueConfiguration.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 QueueConfiguration& WithId(const Aws::String& value) { SetId(value); return *this;}
62
63
64 inline QueueConfiguration& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
65
66
67 inline QueueConfiguration& WithId(const char* value) { SetId(value); return *this;}
68
69
74 inline const Aws::String& GetQueueArn() const{ return m_queueArn; }
75
80 inline bool QueueArnHasBeenSet() const { return m_queueArnHasBeenSet; }
81
86 inline void SetQueueArn(const Aws::String& value) { m_queueArnHasBeenSet = true; m_queueArn = value; }
87
92 inline void SetQueueArn(Aws::String&& value) { m_queueArnHasBeenSet = true; m_queueArn = std::move(value); }
93
98 inline void SetQueueArn(const char* value) { m_queueArnHasBeenSet = true; m_queueArn.assign(value); }
99
104 inline QueueConfiguration& WithQueueArn(const Aws::String& value) { SetQueueArn(value); return *this;}
105
110 inline QueueConfiguration& WithQueueArn(Aws::String&& value) { SetQueueArn(std::move(value)); return *this;}
111
116 inline QueueConfiguration& WithQueueArn(const char* value) { SetQueueArn(value); return *this;}
117
118
122 inline const Aws::Vector<Event>& GetEvents() const{ return m_events; }
123
127 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
128
132 inline void SetEvents(const Aws::Vector<Event>& value) { m_eventsHasBeenSet = true; m_events = value; }
133
137 inline void SetEvents(Aws::Vector<Event>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
138
142 inline QueueConfiguration& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
143
147 inline QueueConfiguration& WithEvents(Aws::Vector<Event>&& value) { SetEvents(std::move(value)); return *this;}
148
152 inline QueueConfiguration& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
153
157 inline QueueConfiguration& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
158
159
160
161 inline const NotificationConfigurationFilter& GetFilter() const{ return m_filter; }
162
163
164 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
165
166
167 inline void SetFilter(const NotificationConfigurationFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
168
169
170 inline void SetFilter(NotificationConfigurationFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
171
172
173 inline QueueConfiguration& WithFilter(const NotificationConfigurationFilter& value) { SetFilter(value); return *this;}
174
175
176 inline QueueConfiguration& WithFilter(NotificationConfigurationFilter&& value) { SetFilter(std::move(value)); return *this;}
177
178 private:
179
180 Aws::String m_id;
181 bool m_idHasBeenSet = false;
182
183 Aws::String m_queueArn;
184 bool m_queueArnHasBeenSet = false;
185
186 Aws::Vector<Event> m_events;
187 bool m_eventsHasBeenSet = false;
188
190 bool m_filterHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace S3
195} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
const Aws::Vector< Event > & GetEvents() const
QueueConfiguration & WithId(const Aws::String &value)
QueueConfiguration & WithFilter(const NotificationConfigurationFilter &value)
QueueConfiguration & WithQueueArn(Aws::String &&value)
void SetEvents(Aws::Vector< Event > &&value)
void SetQueueArn(const char *value)
void SetId(Aws::String &&value)
QueueConfiguration & WithFilter(NotificationConfigurationFilter &&value)
void SetId(const Aws::String &value)
QueueConfiguration & WithId(const char *value)
QueueConfiguration & WithQueueArn(const char *value)
QueueConfiguration & AddEvents(const Event &value)
void SetQueueArn(Aws::String &&value)
void SetEvents(const Aws::Vector< Event > &value)
AWS_S3_API QueueConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetQueueArn(const Aws::String &value)
void SetFilter(const NotificationConfigurationFilter &value)
void SetFilter(NotificationConfigurationFilter &&value)
const Aws::String & GetQueueArn() const
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const NotificationConfigurationFilter & GetFilter() const
const Aws::String & GetId() const
QueueConfiguration & WithQueueArn(const Aws::String &value)
QueueConfiguration & WithEvents(const Aws::Vector< Event > &value)
QueueConfiguration & WithEvents(Aws::Vector< Event > &&value)
QueueConfiguration & AddEvents(Event &&value)
QueueConfiguration & WithId(Aws::String &&value)
AWS_S3_API QueueConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector