AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyEventSubscriptionRequest.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace RDS
16{
17namespace 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_RDS_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
47 inline const Aws::String& GetSubscriptionName() const{ return m_subscriptionName; }
48 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
49 inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
50 inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
51 inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
53 inline ModifyEventSubscriptionRequest& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;}
54 inline ModifyEventSubscriptionRequest& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
56
58
63 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
64 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
65 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
66 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
67 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
68 inline ModifyEventSubscriptionRequest& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
69 inline ModifyEventSubscriptionRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
70 inline ModifyEventSubscriptionRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
72
74
83 inline const Aws::String& GetSourceType() const{ return m_sourceType; }
84 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
85 inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
86 inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
87 inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
88 inline ModifyEventSubscriptionRequest& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
89 inline ModifyEventSubscriptionRequest& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
90 inline ModifyEventSubscriptionRequest& WithSourceType(const char* value) { SetSourceType(value); return *this;}
92
94
102 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
103 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
104 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
105 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
108 inline ModifyEventSubscriptionRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
109 inline ModifyEventSubscriptionRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
110 inline ModifyEventSubscriptionRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
112
114
117 inline bool GetEnabled() const{ return m_enabled; }
118 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
119 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
120 inline ModifyEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
122 private:
123
124 Aws::String m_subscriptionName;
125 bool m_subscriptionNameHasBeenSet = false;
126
127 Aws::String m_snsTopicArn;
128 bool m_snsTopicArnHasBeenSet = false;
129
130 Aws::String m_sourceType;
131 bool m_sourceTypeHasBeenSet = false;
132
133 Aws::Vector<Aws::String> m_eventCategories;
134 bool m_eventCategoriesHasBeenSet = false;
135
136 bool m_enabled;
137 bool m_enabledHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace RDS
142} // namespace Aws
ModifyEventSubscriptionRequest & WithSourceType(const Aws::String &value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(const char *value)
ModifyEventSubscriptionRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
ModifyEventSubscriptionRequest & AddEventCategories(const char *value)
ModifyEventSubscriptionRequest & WithSourceType(const char *value)
ModifyEventSubscriptionRequest & AddEventCategories(const Aws::String &value)
ModifyEventSubscriptionRequest & WithSubscriptionName(Aws::String &&value)
void SetEventCategories(Aws::Vector< Aws::String > &&value)
ModifyEventSubscriptionRequest & WithEnabled(bool value)
virtual const char * GetServiceRequestName() const override
AWS_RDS_API Aws::String SerializePayload() const override
ModifyEventSubscriptionRequest & AddEventCategories(Aws::String &&value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(const Aws::String &value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(Aws::String &&value)
ModifyEventSubscriptionRequest & WithSourceType(Aws::String &&value)
void SetEventCategories(const Aws::Vector< Aws::String > &value)
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyEventSubscriptionRequest & WithSubscriptionName(const Aws::String &value)
const Aws::Vector< Aws::String > & GetEventCategories() const
ModifyEventSubscriptionRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
ModifyEventSubscriptionRequest & WithSubscriptionName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector