AWS SDK for C++

AWS SDK for C++ Version 1.11.683

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/neptune/NeptuneRequest.h>
10#include <aws/neptune/Neptune_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Neptune {
16namespace Model {
17
21 public:
22 AWS_NEPTUNE_API ModifyEventSubscriptionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ModifyEventSubscription"; }
29
30 AWS_NEPTUNE_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
41 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
42 template <typename SubscriptionNameT = Aws::String>
43 void SetSubscriptionName(SubscriptionNameT&& value) {
44 m_subscriptionNameHasBeenSet = true;
45 m_subscriptionName = std::forward<SubscriptionNameT>(value);
46 }
47 template <typename SubscriptionNameT = Aws::String>
49 SetSubscriptionName(std::forward<SubscriptionNameT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
61 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
62 template <typename SnsTopicArnT = Aws::String>
63 void SetSnsTopicArn(SnsTopicArnT&& value) {
64 m_snsTopicArnHasBeenSet = true;
65 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
66 }
67 template <typename SnsTopicArnT = Aws::String>
69 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
70 return *this;
71 }
73
75
82 inline const Aws::String& GetSourceType() const { return m_sourceType; }
83 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
84 template <typename SourceTypeT = Aws::String>
85 void SetSourceType(SourceTypeT&& value) {
86 m_sourceTypeHasBeenSet = true;
87 m_sourceType = std::forward<SourceTypeT>(value);
88 }
89 template <typename SourceTypeT = Aws::String>
91 SetSourceType(std::forward<SourceTypeT>(value));
92 return *this;
93 }
95
97
102 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
103 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
104 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
105 void SetEventCategories(EventCategoriesT&& value) {
106 m_eventCategoriesHasBeenSet = true;
107 m_eventCategories = std::forward<EventCategoriesT>(value);
108 }
109 template <typename EventCategoriesT = Aws::Vector<Aws::String>>
111 SetEventCategories(std::forward<EventCategoriesT>(value));
112 return *this;
113 }
114 template <typename EventCategoriesT = Aws::String>
116 m_eventCategoriesHasBeenSet = true;
117 m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value));
118 return *this;
119 }
121
123
126 inline bool GetEnabled() const { return m_enabled; }
127 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
128 inline void SetEnabled(bool value) {
129 m_enabledHasBeenSet = true;
130 m_enabled = value;
131 }
133 SetEnabled(value);
134 return *this;
135 }
137 private:
138 Aws::String m_subscriptionName;
139 bool m_subscriptionNameHasBeenSet = false;
140
141 Aws::String m_snsTopicArn;
142 bool m_snsTopicArnHasBeenSet = false;
143
144 Aws::String m_sourceType;
145 bool m_sourceTypeHasBeenSet = false;
146
147 Aws::Vector<Aws::String> m_eventCategories;
148 bool m_eventCategoriesHasBeenSet = false;
149
150 bool m_enabled{false};
151 bool m_enabledHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace Neptune
156} // namespace Aws
ModifyEventSubscriptionRequest & AddEventCategories(EventCategoriesT &&value)
ModifyEventSubscriptionRequest & WithSourceType(SourceTypeT &&value)
ModifyEventSubscriptionRequest & WithEventCategories(EventCategoriesT &&value)
ModifyEventSubscriptionRequest & WithSubscriptionName(SubscriptionNameT &&value)
const Aws::Vector< Aws::String > & GetEventCategories() const
ModifyEventSubscriptionRequest & WithEnabled(bool value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(SnsTopicArnT &&value)
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_NEPTUNE_API Aws::String SerializePayload() const override
AWS_NEPTUNE_API ModifyEventSubscriptionRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector