AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
QueueConfiguration.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3/model/NotificationConfigurationFilter.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:
38 AWS_S3_API QueueConfiguration();
39 AWS_S3_API QueueConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43
44
46
47 inline const Aws::String& GetId() const{ return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline QueueConfiguration& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline QueueConfiguration& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline QueueConfiguration& WithId(const char* value) { SetId(value); return *this;}
56
58
62 inline const Aws::String& GetQueueArn() const{ return m_queueArn; }
63 inline bool QueueArnHasBeenSet() const { return m_queueArnHasBeenSet; }
64 inline void SetQueueArn(const Aws::String& value) { m_queueArnHasBeenSet = true; m_queueArn = value; }
65 inline void SetQueueArn(Aws::String&& value) { m_queueArnHasBeenSet = true; m_queueArn = std::move(value); }
66 inline void SetQueueArn(const char* value) { m_queueArnHasBeenSet = true; m_queueArn.assign(value); }
67 inline QueueConfiguration& WithQueueArn(const Aws::String& value) { SetQueueArn(value); return *this;}
68 inline QueueConfiguration& WithQueueArn(Aws::String&& value) { SetQueueArn(std::move(value)); return *this;}
69 inline QueueConfiguration& WithQueueArn(const char* value) { SetQueueArn(value); return *this;}
71
73
76 inline const Aws::Vector<Event>& GetEvents() const{ return m_events; }
77 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
78 inline void SetEvents(const Aws::Vector<Event>& value) { m_eventsHasBeenSet = true; m_events = value; }
79 inline void SetEvents(Aws::Vector<Event>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
80 inline QueueConfiguration& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
81 inline QueueConfiguration& WithEvents(Aws::Vector<Event>&& value) { SetEvents(std::move(value)); return *this;}
82 inline QueueConfiguration& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
83 inline QueueConfiguration& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
85
87
88 inline const NotificationConfigurationFilter& GetFilter() const{ return m_filter; }
89 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
90 inline void SetFilter(const NotificationConfigurationFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
91 inline void SetFilter(NotificationConfigurationFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
92 inline QueueConfiguration& WithFilter(const NotificationConfigurationFilter& value) { SetFilter(value); return *this;}
93 inline QueueConfiguration& WithFilter(NotificationConfigurationFilter&& value) { SetFilter(std::move(value)); return *this;}
95 private:
96
97 Aws::String m_id;
98 bool m_idHasBeenSet = false;
99
100 Aws::String m_queueArn;
101 bool m_queueArnHasBeenSet = false;
102
103 Aws::Vector<Event> m_events;
104 bool m_eventsHasBeenSet = false;
105
107 bool m_filterHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace S3
112} // namespace Aws
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)
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