AWS SDK for C++  1.8.71
AWS SDK for C++
ModifyEventSubscriptionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/rds/RDSRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace RDS
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  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
46  inline const Aws::String& GetSubscriptionName() const{ return m_subscriptionName; }
47 
51  inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
52 
56  inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
57 
61  inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
62 
66  inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
67 
71  inline ModifyEventSubscriptionRequest& WithSubscriptionName(const Aws::String& value) { SetSubscriptionName(value); return *this;}
72 
76  inline ModifyEventSubscriptionRequest& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;}
77 
81  inline ModifyEventSubscriptionRequest& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
82 
83 
89  inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
90 
96  inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
97 
103  inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
104 
110  inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
111 
117  inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
118 
124  inline ModifyEventSubscriptionRequest& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
125 
131  inline ModifyEventSubscriptionRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
132 
138  inline ModifyEventSubscriptionRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
139 
140 
149  inline const Aws::String& GetSourceType() const{ return m_sourceType; }
150 
159  inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
160 
169  inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
170 
179  inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
180 
189  inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
190 
199  inline ModifyEventSubscriptionRequest& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
200 
209  inline ModifyEventSubscriptionRequest& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
210 
219  inline ModifyEventSubscriptionRequest& WithSourceType(const char* value) { SetSourceType(value); return *this;}
220 
221 
230  inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
231 
240  inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
241 
250  inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
251 
260  inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
261 
270  inline ModifyEventSubscriptionRequest& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
271 
280  inline ModifyEventSubscriptionRequest& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(std::move(value)); return *this;}
281 
290  inline ModifyEventSubscriptionRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
291 
300  inline ModifyEventSubscriptionRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
301 
310  inline ModifyEventSubscriptionRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
311 
312 
316  inline bool GetEnabled() const{ return m_enabled; }
317 
321  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
322 
326  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
327 
331  inline ModifyEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
332 
333  private:
334 
335  Aws::String m_subscriptionName;
336  bool m_subscriptionNameHasBeenSet;
337 
338  Aws::String m_snsTopicArn;
339  bool m_snsTopicArnHasBeenSet;
340 
341  Aws::String m_sourceType;
342  bool m_sourceTypeHasBeenSet;
343 
344  Aws::Vector<Aws::String> m_eventCategories;
345  bool m_eventCategoriesHasBeenSet;
346 
347  bool m_enabled;
348  bool m_enabledHasBeenSet;
349  };
350 
351 } // namespace Model
352 } // namespace RDS
353 } // namespace Aws
ModifyEventSubscriptionRequest & WithSnsTopicArn(const Aws::String &value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(Aws::String &&value)
ModifyEventSubscriptionRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
ModifyEventSubscriptionRequest & WithSourceType(const char *value)
ModifyEventSubscriptionRequest & WithEnabled(bool value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
ModifyEventSubscriptionRequest & WithSubscriptionName(const char *value)
virtual const char * GetServiceRequestName() const override
void SetEventCategories(Aws::Vector< Aws::String > &&value)
ModifyEventSubscriptionRequest & AddEventCategories(const char *value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(const char *value)
ModifyEventSubscriptionRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetEventCategories() const
ModifyEventSubscriptionRequest & WithSubscriptionName(Aws::String &&value)
ModifyEventSubscriptionRequest & WithSubscriptionName(const Aws::String &value)
ModifyEventSubscriptionRequest & AddEventCategories(Aws::String &&value)
ModifyEventSubscriptionRequest & WithSourceType(const Aws::String &value)
void SetEventCategories(const Aws::Vector< Aws::String > &value)
ModifyEventSubscriptionRequest & WithSourceType(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ModifyEventSubscriptionRequest & AddEventCategories(const Aws::String &value)