AWS SDK for C++  1.8.71
AWS SDK for C++
ModifyEventSubscriptionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace DatabaseMigrationService
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ModifyEventSubscription"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
44  inline const Aws::String& GetSubscriptionName() const{ return m_subscriptionName; }
45 
49  inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
50 
54  inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
55 
59  inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
60 
64  inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
65 
69  inline ModifyEventSubscriptionRequest& WithSubscriptionName(const Aws::String& value) { SetSubscriptionName(value); return *this;}
70 
74  inline ModifyEventSubscriptionRequest& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;}
75 
79  inline ModifyEventSubscriptionRequest& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
80 
81 
87  inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
88 
94  inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
95 
101  inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
102 
108  inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
109 
115  inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
116 
122  inline ModifyEventSubscriptionRequest& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
123 
129  inline ModifyEventSubscriptionRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
130 
136  inline ModifyEventSubscriptionRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
137 
138 
143  inline const Aws::String& GetSourceType() const{ return m_sourceType; }
144 
149  inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
150 
155  inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
156 
161  inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
162 
167  inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
168 
173  inline ModifyEventSubscriptionRequest& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
174 
179  inline ModifyEventSubscriptionRequest& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
180 
185  inline ModifyEventSubscriptionRequest& WithSourceType(const char* value) { SetSourceType(value); return *this;}
186 
187 
193  inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
194 
200  inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
201 
207  inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
208 
214  inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
215 
221  inline ModifyEventSubscriptionRequest& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
222 
228  inline ModifyEventSubscriptionRequest& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(std::move(value)); return *this;}
229 
235  inline ModifyEventSubscriptionRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
236 
242  inline ModifyEventSubscriptionRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
243 
249  inline ModifyEventSubscriptionRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
250 
251 
255  inline bool GetEnabled() const{ return m_enabled; }
256 
260  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
261 
265  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
266 
270  inline ModifyEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
271 
272  private:
273 
274  Aws::String m_subscriptionName;
275  bool m_subscriptionNameHasBeenSet;
276 
277  Aws::String m_snsTopicArn;
278  bool m_snsTopicArnHasBeenSet;
279 
280  Aws::String m_sourceType;
281  bool m_sourceTypeHasBeenSet;
282 
283  Aws::Vector<Aws::String> m_eventCategories;
284  bool m_eventCategoriesHasBeenSet;
285 
286  bool m_enabled;
287  bool m_enabledHasBeenSet;
288  };
289 
290 } // namespace Model
291 } // namespace DatabaseMigrationService
292 } // namespace Aws
ModifyEventSubscriptionRequest & WithSnsTopicArn(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ModifyEventSubscriptionRequest & WithSnsTopicArn(const Aws::String &value)
ModifyEventSubscriptionRequest & AddEventCategories(const Aws::String &value)
ModifyEventSubscriptionRequest & AddEventCategories(Aws::String &&value)
ModifyEventSubscriptionRequest & WithSourceType(const Aws::String &value)
ModifyEventSubscriptionRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
ModifyEventSubscriptionRequest & WithSourceType(Aws::String &&value)
#define AWS_DATABASEMIGRATIONSERVICE_API
ModifyEventSubscriptionRequest & WithSubscriptionName(Aws::String &&value)
ModifyEventSubscriptionRequest & WithSubscriptionName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ModifyEventSubscriptionRequest & WithSubscriptionName(const Aws::String &value)
ModifyEventSubscriptionRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)