AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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/rds/RDSRequest.h>
10#include <aws/rds/RDS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace RDS {
16namespace Model {
17
24 public:
25 AWS_RDS_API ModifyEventSubscriptionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ModifyEventSubscription"; }
32
33 AWS_RDS_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
43 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
44 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
45 template <typename SubscriptionNameT = Aws::String>
46 void SetSubscriptionName(SubscriptionNameT&& value) {
47 m_subscriptionNameHasBeenSet = true;
48 m_subscriptionName = std::forward<SubscriptionNameT>(value);
49 }
50 template <typename SubscriptionNameT = Aws::String>
52 SetSubscriptionName(std::forward<SubscriptionNameT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
64 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
65 template <typename SnsTopicArnT = Aws::String>
66 void SetSnsTopicArn(SnsTopicArnT&& value) {
67 m_snsTopicArnHasBeenSet = true;
68 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
69 }
70 template <typename SnsTopicArnT = Aws::String>
72 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
73 return *this;
74 }
76
78
87 inline const Aws::String& GetSourceType() const { return m_sourceType; }
88 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
89 template <typename SourceTypeT = Aws::String>
90 void SetSourceType(SourceTypeT&& value) {
91 m_sourceTypeHasBeenSet = true;
92 m_sourceType = std::forward<SourceTypeT>(value);
93 }
94 template <typename SourceTypeT = Aws::String>
96 SetSourceType(std::forward<SourceTypeT>(value));
97 return *this;
98 }
100
102
110 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
111 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
112 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
113 void SetEventCategories(EventCategoriesT&& value) {
114 m_eventCategoriesHasBeenSet = true;
115 m_eventCategories = std::forward<EventCategoriesT>(value);
116 }
117 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
119 SetEventCategories(std::forward<EventCategoriesT>(value));
120 return *this;
121 }
122 template <typename EventCategoriesT = Aws::String>
124 m_eventCategoriesHasBeenSet = true;
125 m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value));
126 return *this;
127 }
129
131
134 inline bool GetEnabled() const { return m_enabled; }
135 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
136 inline void SetEnabled(bool value) {
137 m_enabledHasBeenSet = true;
138 m_enabled = value;
139 }
141 SetEnabled(value);
142 return *this;
143 }
145 private:
146 Aws::String m_subscriptionName;
147
148 Aws::String m_snsTopicArn;
149
150 Aws::String m_sourceType;
151
152 Aws::Vector<Aws::String> m_eventCategories;
153
154 bool m_enabled{false};
155 bool m_subscriptionNameHasBeenSet = false;
156 bool m_snsTopicArnHasBeenSet = false;
157 bool m_sourceTypeHasBeenSet = false;
158 bool m_eventCategoriesHasBeenSet = false;
159 bool m_enabledHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace RDS
164} // namespace Aws
ModifyEventSubscriptionRequest & WithEventCategories(EventCategoriesT &&value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(SnsTopicArnT &&value)
ModifyEventSubscriptionRequest & WithSubscriptionName(SubscriptionNameT &&value)
ModifyEventSubscriptionRequest & WithEnabled(bool value)
virtual const char * GetServiceRequestName() const override
AWS_RDS_API Aws::String SerializePayload() const override
ModifyEventSubscriptionRequest & WithSourceType(SourceTypeT &&value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyEventSubscriptionRequest & AddEventCategories(EventCategoriesT &&value)
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