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/docdb/DocDB_EXPORTS.h>
8#include <aws/docdb/DocDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/docdb/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DocDB
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_DOCDB_API CreateEventSubscriptionRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateEventSubscription"; }
37
38 AWS_DOCDB_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
50 inline const Aws::String& GetSubscriptionName() const { return m_subscriptionName; }
51 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
52 template<typename SubscriptionNameT = Aws::String>
53 void SetSubscriptionName(SubscriptionNameT&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::forward<SubscriptionNameT>(value); }
54 template<typename SubscriptionNameT = Aws::String>
55 CreateEventSubscriptionRequest& WithSubscriptionName(SubscriptionNameT&& value) { SetSubscriptionName(std::forward<SubscriptionNameT>(value)); return *this;}
57
59
64 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
65 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
66 template<typename SnsTopicArnT = Aws::String>
67 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
68 template<typename SnsTopicArnT = Aws::String>
69 CreateEventSubscriptionRequest& WithSnsTopicArn(SnsTopicArnT&& value) { SetSnsTopicArn(std::forward<SnsTopicArnT>(value)); return *this;}
71
73
81 inline const Aws::String& GetSourceType() const { return m_sourceType; }
82 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
83 template<typename SourceTypeT = Aws::String>
84 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::forward<SourceTypeT>(value); }
85 template<typename SourceTypeT = Aws::String>
86 CreateEventSubscriptionRequest& WithSourceType(SourceTypeT&& value) { SetSourceType(std::forward<SourceTypeT>(value)); return *this;}
88
90
94 inline const Aws::Vector<Aws::String>& GetEventCategories() const { return m_eventCategories; }
95 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
96 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
97 void SetEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::forward<EventCategoriesT>(value); }
98 template<typename EventCategoriesT = Aws::Vector<Aws::String>>
99 CreateEventSubscriptionRequest& WithEventCategories(EventCategoriesT&& value) { SetEventCategories(std::forward<EventCategoriesT>(value)); return *this;}
100 template<typename EventCategoriesT = Aws::String>
101 CreateEventSubscriptionRequest& AddEventCategories(EventCategoriesT&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.emplace_back(std::forward<EventCategoriesT>(value)); return *this; }
103
105
119 inline const Aws::Vector<Aws::String>& GetSourceIds() const { return m_sourceIds; }
120 inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; }
121 template<typename SourceIdsT = Aws::Vector<Aws::String>>
122 void SetSourceIds(SourceIdsT&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = std::forward<SourceIdsT>(value); }
123 template<typename SourceIdsT = Aws::Vector<Aws::String>>
124 CreateEventSubscriptionRequest& WithSourceIds(SourceIdsT&& value) { SetSourceIds(std::forward<SourceIdsT>(value)); return *this;}
125 template<typename SourceIdsT = Aws::String>
126 CreateEventSubscriptionRequest& AddSourceIds(SourceIdsT&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.emplace_back(std::forward<SourceIdsT>(value)); return *this; }
128
130
134 inline bool GetEnabled() const { return m_enabled; }
135 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
136 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
137 inline CreateEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
139
141
144 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 template<typename TagsT = Aws::Vector<Tag>>
147 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
148 template<typename TagsT = Aws::Vector<Tag>>
149 CreateEventSubscriptionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
150 template<typename TagsT = Tag>
151 CreateEventSubscriptionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
153 private:
154
155 Aws::String m_subscriptionName;
156 bool m_subscriptionNameHasBeenSet = false;
157
158 Aws::String m_snsTopicArn;
159 bool m_snsTopicArnHasBeenSet = false;
160
161 Aws::String m_sourceType;
162 bool m_sourceTypeHasBeenSet = false;
163
164 Aws::Vector<Aws::String> m_eventCategories;
165 bool m_eventCategoriesHasBeenSet = false;
166
167 Aws::Vector<Aws::String> m_sourceIds;
168 bool m_sourceIdsHasBeenSet = false;
169
170 bool m_enabled{false};
171 bool m_enabledHasBeenSet = false;
172
173 Aws::Vector<Tag> m_tags;
174 bool m_tagsHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace DocDB
179} // namespace Aws
CreateEventSubscriptionRequest & WithSnsTopicArn(SnsTopicArnT &&value)
const Aws::Vector< Aws::String > & GetSourceIds() const
CreateEventSubscriptionRequest & WithSourceIds(SourceIdsT &&value)
AWS_DOCDB_API Aws::String SerializePayload() const override
AWS_DOCDB_API CreateEventSubscriptionRequest()=default
CreateEventSubscriptionRequest & WithSubscriptionName(SubscriptionNameT &&value)
CreateEventSubscriptionRequest & WithEventCategories(EventCategoriesT &&value)
CreateEventSubscriptionRequest & AddSourceIds(SourceIdsT &&value)
CreateEventSubscriptionRequest & WithEnabled(bool value)
CreateEventSubscriptionRequest & WithSourceType(SourceTypeT &&value)
const Aws::Vector< Aws::String > & GetEventCategories() const
CreateEventSubscriptionRequest & AddTags(TagsT &&value)
CreateEventSubscriptionRequest & AddEventCategories(EventCategoriesT &&value)
CreateEventSubscriptionRequest & WithTags(TagsT &&value)
AWS_DOCDB_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector