AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateEventSubscriptionRequest.h
1
6#pragma once
7#include <aws/neptune/Neptune_EXPORTS.h>
8#include <aws/neptune/NeptuneRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/neptune/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Neptune
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_NEPTUNE_API CreateEventSubscriptionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateEventSubscription"; }
33
34 AWS_NEPTUNE_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
46 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
47 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
48 template<typename SubscriptionNameT = Aws::String>
49 void SetSubscriptionName(SubscriptionNameT&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::forward<SubscriptionNameT>(value); }
50 template<typename SubscriptionNameT = Aws::String>
51 CreateEventSubscriptionRequest& WithSubscriptionName(SubscriptionNameT&& value) { SetSubscriptionName(std::forward<SubscriptionNameT>(value)); return *this;}
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) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
64 template<typename SnsTopicArnT = Aws::String>
65 CreateEventSubscriptionRequest& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
67
69
77 inline const Aws::String& GetSourceType() const { return m_sourceType; }
78 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
79 template<typename SourceTypeT = Aws::String>
80 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::forward<SourceTypeT>(value); }
81 template<typename SourceTypeT = Aws::String>
82 CreateEventSubscriptionRequest& WithSourceType(SourceTypeT&& value) { SetSourceType(std::forward<SourceTypeT>(value)); return *this;}
84
86
91 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
92 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
93 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
94 void SetEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::forward<EventCategoriesT>(value); }
95 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
96 CreateEventSubscriptionRequest& WithEventCategories(EventCategoriesT&& value) { SetEventCategories(std::forward<EventCategoriesT>(value)); return *this;}
97 template<typename EventCategoriesT = Aws::String>
98 CreateEventSubscriptionRequest& AddEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value)); return *this; }
100
102
116 inline const Aws::Vector<Aws::String>& GetSourceIds() const { return m_sourceIds; }
117 inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; }
118 template<typename SourceIdsT = Aws::Vector<Aws::String>>
119 void SetSourceIds(SourceIdsT&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = std::forward<SourceIdsT>(value); }
120 template<typename SourceIdsT = Aws::Vector<Aws::String>>
121 CreateEventSubscriptionRequest& WithSourceIds(SourceIdsT&& value) { SetSourceIds(std::forward<SourceIdsT>(value)); return *this;}
122 template<typename SourceIdsT = Aws::String>
123 CreateEventSubscriptionRequest& AddSourceIds(SourceIdsT&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.emplace_back(std::forward<SourceIdsT>(value)); return *this; }
125
127
131 inline bool GetEnabled() const { return m_enabled; }
132 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
133 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
134 inline CreateEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
136
138
141 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143 template<typename TagsT = Aws::Vector<Tag>>
144 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
145 template<typename TagsT = Aws::Vector<Tag>>
146 CreateEventSubscriptionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
147 template<typename TagsT = Tag>
148 CreateEventSubscriptionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
150 private:
151
152 Aws::String m_subscriptionName;
153 bool m_subscriptionNameHasBeenSet = false;
154
155 Aws::String m_snsTopicArn;
156 bool m_snsTopicArnHasBeenSet = false;
157
158 Aws::String m_sourceType;
159 bool m_sourceTypeHasBeenSet = false;
160
161 Aws::Vector<Aws::String> m_eventCategories;
162 bool m_eventCategoriesHasBeenSet = false;
163
164 Aws::Vector<Aws::String> m_sourceIds;
165 bool m_sourceIdsHasBeenSet = false;
166
167 bool m_enabled{false};
168 bool m_enabledHasBeenSet = false;
169
170 Aws::Vector<Tag> m_tags;
171 bool m_tagsHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace Neptune
176} // namespace Aws
CreateEventSubscriptionRequest & WithSourceType(SourceTypeT &&value)
CreateEventSubscriptionRequest & WithSourceIds(SourceIdsT &&value)
AWS_NEPTUNE_API Aws::String SerializePayload() const override
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetEventCategories() const
AWS_NEPTUNE_API CreateEventSubscriptionRequest()=default
CreateEventSubscriptionRequest & AddSourceIds(SourceIdsT &&value)
CreateEventSubscriptionRequest & WithEnabled(bool value)
CreateEventSubscriptionRequest & AddTags(TagsT &&value)
CreateEventSubscriptionRequest & WithTags(TagsT &&value)
CreateEventSubscriptionRequest & WithSnsTopicArn(SnsTopicArnT &&value)
CreateEventSubscriptionRequest & AddEventCategories(EventCategoriesT &&value)
CreateEventSubscriptionRequest & WithSubscriptionName(SubscriptionNameT &&value)
CreateEventSubscriptionRequest & WithEventCategories(EventCategoriesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector