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/dms/DatabaseMigrationServiceRequest.h>
10#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DatabaseMigrationService {
16namespace Model {
17
24 public:
25 AWS_DATABASEMIGRATIONSERVICE_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_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
34
35 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
42 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
43 template <typename SubscriptionNameT = Aws::String>
44 void SetSubscriptionName(SubscriptionNameT&& value) {
45 m_subscriptionNameHasBeenSet = true;
46 m_subscriptionName = std::forward<SubscriptionNameT>(value);
47 }
48 template <typename SubscriptionNameT = Aws::String>
50 SetSubscriptionName(std::forward<SubscriptionNameT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
62 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
63 template <typename SnsTopicArnT = Aws::String>
64 void SetSnsTopicArn(SnsTopicArnT&& value) {
65 m_snsTopicArnHasBeenSet = true;
66 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
67 }
68 template <typename SnsTopicArnT = Aws::String>
70 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetSourceType() const { return m_sourceType; }
81 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
82 template <typename SourceTypeT = Aws::String>
83 void SetSourceType(SourceTypeT&& value) {
84 m_sourceTypeHasBeenSet = true;
85 m_sourceType = std::forward<SourceTypeT>(value);
86 }
87 template <typename SourceTypeT = Aws::String>
89 SetSourceType(std::forward<SourceTypeT>(value));
90 return *this;
91 }
93
95
100 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
101 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
102 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
103 void SetEventCategories(EventCategoriesT&& value) {
104 m_eventCategoriesHasBeenSet = true;
105 m_eventCategories = std::forward<EventCategoriesT>(value);
106 }
107 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
109 SetEventCategories(std::forward<EventCategoriesT>(value));
110 return *this;
111 }
112 template <typename EventCategoriesT = Aws::String>
114 m_eventCategoriesHasBeenSet = true;
115 m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value));
116 return *this;
117 }
119
121
124 inline bool GetEnabled() const { return m_enabled; }
125 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
126 inline void SetEnabled(bool value) {
127 m_enabledHasBeenSet = true;
128 m_enabled = value;
129 }
131 SetEnabled(value);
132 return *this;
133 }
135 private:
136 Aws::String m_subscriptionName;
137
138 Aws::String m_snsTopicArn;
139
140 Aws::String m_sourceType;
141
142 Aws::Vector<Aws::String> m_eventCategories;
143
144 bool m_enabled{false};
145 bool m_subscriptionNameHasBeenSet = false;
146 bool m_snsTopicArnHasBeenSet = false;
147 bool m_sourceTypeHasBeenSet = false;
148 bool m_eventCategoriesHasBeenSet = false;
149 bool m_enabledHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace DatabaseMigrationService
154} // namespace Aws
ModifyEventSubscriptionRequest & WithSubscriptionName(SubscriptionNameT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ModifyEventSubscriptionRequest & WithSnsTopicArn(SnsTopicArnT &&value)
ModifyEventSubscriptionRequest & WithEventCategories(EventCategoriesT &&value)
AWS_DATABASEMIGRATIONSERVICE_API ModifyEventSubscriptionRequest()=default
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
ModifyEventSubscriptionRequest & AddEventCategories(EventCategoriesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector