AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ModifyEventSubscriptionRequest.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/docdb/DocDBRequest.h>
10#include <aws/docdb/DocDB_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DocDB {
16namespace Model {
17
25 public:
26 AWS_DOCDB_API ModifyEventSubscriptionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ModifyEventSubscription"; }
33
34 AWS_DOCDB_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
44 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
45 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
46 template <typename SubscriptionNameT = Aws::String>
47 void SetSubscriptionName(SubscriptionNameT&& value) {
48 m_subscriptionNameHasBeenSet = true;
49 m_subscriptionName = std::forward<SubscriptionNameT>(value);
50 }
51 template <typename SubscriptionNameT = Aws::String>
53 SetSubscriptionName(std::forward<SubscriptionNameT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
65 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
66 template <typename SnsTopicArnT = Aws::String>
67 void SetSnsTopicArn(SnsTopicArnT&& value) {
68 m_snsTopicArnHasBeenSet = true;
69 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
70 }
71 template <typename SnsTopicArnT = Aws::String>
73 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
74 return *this;
75 }
77
79
86 inline const Aws::String& GetSourceType() const { return m_sourceType; }
87 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
88 template <typename SourceTypeT = Aws::String>
89 void SetSourceType(SourceTypeT&& value) {
90 m_sourceTypeHasBeenSet = true;
91 m_sourceType = std::forward<SourceTypeT>(value);
92 }
93 template <typename SourceTypeT = Aws::String>
95 SetSourceType(std::forward<SourceTypeT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
106 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
107 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
108 void SetEventCategories(EventCategoriesT&& value) {
109 m_eventCategoriesHasBeenSet = true;
110 m_eventCategories = std::forward<EventCategoriesT>(value);
111 }
112 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
114 SetEventCategories(std::forward<EventCategoriesT>(value));
115 return *this;
116 }
117 template <typename EventCategoriesT = Aws::String>
119 m_eventCategoriesHasBeenSet = true;
120 m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value));
121 return *this;
122 }
124
126
129 inline bool GetEnabled() const { return m_enabled; }
130 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
131 inline void SetEnabled(bool value) {
132 m_enabledHasBeenSet = true;
133 m_enabled = value;
134 }
136 SetEnabled(value);
137 return *this;
138 }
140 private:
141 Aws::String m_subscriptionName;
142
143 Aws::String m_snsTopicArn;
144
145 Aws::String m_sourceType;
146
147 Aws::Vector<Aws::String> m_eventCategories;
148
149 bool m_enabled{false};
150 bool m_subscriptionNameHasBeenSet = false;
151 bool m_snsTopicArnHasBeenSet = false;
152 bool m_sourceTypeHasBeenSet = false;
153 bool m_eventCategoriesHasBeenSet = false;
154 bool m_enabledHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace DocDB
159} // namespace Aws
AWS_DOCDB_API ModifyEventSubscriptionRequest()=default
ModifyEventSubscriptionRequest & AddEventCategories(EventCategoriesT &&value)
ModifyEventSubscriptionRequest & WithSourceType(SourceTypeT &&value)
ModifyEventSubscriptionRequest & WithEventCategories(EventCategoriesT &&value)
ModifyEventSubscriptionRequest & WithSubscriptionName(SubscriptionNameT &&value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(SnsTopicArnT &&value)
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyEventSubscriptionRequest & WithEnabled(bool value)
AWS_DOCDB_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetEventCategories() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector