AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TopicConfigurationDeprecated.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/s3/S3_EXPORTS.h>
10#include <aws/s3/model/Event.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3 {
21namespace Model {
22
33 public:
34 AWS_S3_API TopicConfigurationDeprecated() = default;
37
38 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
41
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<Event>& GetEvents() const { return m_events; }
61 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
62 template <typename EventsT = Aws::Vector<Event>>
63 void SetEvents(EventsT&& value) {
64 m_eventsHasBeenSet = true;
65 m_events = std::forward<EventsT>(value);
66 }
67 template <typename EventsT = Aws::Vector<Event>>
69 SetEvents(std::forward<EventsT>(value));
70 return *this;
71 }
73 m_eventsHasBeenSet = true;
74 m_events.push_back(value);
75 return *this;
76 }
78
80
84 inline const Aws::String& GetTopic() const { return m_topic; }
85 inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
86 template <typename TopicT = Aws::String>
87 void SetTopic(TopicT&& value) {
88 m_topicHasBeenSet = true;
89 m_topic = std::forward<TopicT>(value);
90 }
91 template <typename TopicT = Aws::String>
93 SetTopic(std::forward<TopicT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_id;
99
100 Aws::Vector<Event> m_events;
101
102 Aws::String m_topic;
103 bool m_idHasBeenSet = false;
104 bool m_eventsHasBeenSet = false;
105 bool m_topicHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace S3
110} // namespace Aws
AWS_S3_API TopicConfigurationDeprecated(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
TopicConfigurationDeprecated & AddEvents(Event value)
AWS_S3_API TopicConfigurationDeprecated & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TopicConfigurationDeprecated & WithEvents(EventsT &&value)
TopicConfigurationDeprecated & WithTopic(TopicT &&value)
TopicConfigurationDeprecated & WithId(IdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector