AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TopicConfigurationDeprecated.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/Event.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace S3
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_S3_API TopicConfigurationDeprecated() = default;
42
43 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44
45
47
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 TopicConfigurationDeprecated& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
64 template<typename EventsT = Aws::Vector<Event>>
65 TopicConfigurationDeprecated& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
66 inline TopicConfigurationDeprecated& AddEvents(Event value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
68
70
74 inline const Aws::String& GetTopic() const { return m_topic; }
75 inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
76 template<typename TopicT = Aws::String>
77 void SetTopic(TopicT&& value) { m_topicHasBeenSet = true; m_topic = std::forward<TopicT>(value); }
78 template<typename TopicT = Aws::String>
79 TopicConfigurationDeprecated& WithTopic(TopicT&& value) { SetTopic(std::forward<TopicT>(value)); return *this;}
81 private:
82
83 Aws::String m_id;
84 bool m_idHasBeenSet = false;
85
86 Aws::Vector<Event> m_events;
87 bool m_eventsHasBeenSet = false;
88
89 Aws::String m_topic;
90 bool m_topicHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace S3
95} // 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