AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 QueueConfiguration& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
54
56
60 inline const Aws::String& GetQueueArn() const { return m_queueArn; }
61 inline bool QueueArnHasBeenSet() const { return m_queueArnHasBeenSet; }
62 template<typename QueueArnT = Aws::String>
63 void SetQueueArn(QueueArnT&& value) { m_queueArnHasBeenSet = true; m_queueArn = std::forward<QueueArnT>(value); }
64 template<typename QueueArnT = Aws::String>
65 QueueConfiguration& WithQueueArn(QueueArnT&& value) { SetQueueArn(std::forward<QueueArnT>(value)); return *this;}
67
69
72 inline const Aws::Vector<Event>& GetEvents() const { return m_events; }
73 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
74 template<typename EventsT = Aws::Vector<Event>>
75 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
76 template<typename EventsT = Aws::Vector<Event>>
77 QueueConfiguration& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
78 inline QueueConfiguration& AddEvents(Event value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
80
82
83 inline const NotificationConfigurationFilter& GetFilter() const { return m_filter; }
84 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
85 template<typename FilterT = NotificationConfigurationFilter>
86 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
87 template<typename FilterT = NotificationConfigurationFilter>
88 QueueConfiguration& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
90 private:
91
92 Aws::String m_id;
93 bool m_idHasBeenSet = false;
94
95 Aws::String m_queueArn;
96 bool m_queueArnHasBeenSet = false;
97
98 Aws::Vector<Event> m_events;
99 bool m_eventsHasBeenSet = false;
100
102 bool m_filterHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace S3
107} // namespace Aws
const Aws::Vector< Event > & GetEvents() const
QueueConfiguration & AddEvents(Event value)
QueueConfiguration & WithQueueArn(QueueArnT &&value)
AWS_S3_API QueueConfiguration()=default
QueueConfiguration & WithId(IdT &&value)
AWS_S3_API QueueConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetQueueArn() const
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
QueueConfiguration & WithFilter(FilterT &&value)
const NotificationConfigurationFilter & GetFilter() const
const Aws::String & GetId() const
QueueConfiguration & WithEvents(EventsT &&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