AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
49 inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
50 inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
52 inline CreateEventSubscriptionRequest& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;}
53 inline CreateEventSubscriptionRequest& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
55
57
62 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
63 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
64 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
65 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
66 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
67 inline CreateEventSubscriptionRequest& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
68 inline CreateEventSubscriptionRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
69 inline CreateEventSubscriptionRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
71
73
81 inline const Aws::String& GetSourceType() const{ return m_sourceType; }
82 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
83 inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
84 inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
85 inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
86 inline CreateEventSubscriptionRequest& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
87 inline CreateEventSubscriptionRequest& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
88 inline CreateEventSubscriptionRequest& WithSourceType(const char* value) { SetSourceType(value); return *this;}
90
92
97 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
98 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
99 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
100 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
103 inline CreateEventSubscriptionRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
104 inline CreateEventSubscriptionRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
105 inline CreateEventSubscriptionRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
107
109
123 inline const Aws::Vector<Aws::String>& GetSourceIds() const{ return m_sourceIds; }
124 inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; }
125 inline void SetSourceIds(const Aws::Vector<Aws::String>& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = value; }
126 inline void SetSourceIds(Aws::Vector<Aws::String>&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = std::move(value); }
128 inline CreateEventSubscriptionRequest& WithSourceIds(Aws::Vector<Aws::String>&& value) { SetSourceIds(std::move(value)); return *this;}
129 inline CreateEventSubscriptionRequest& AddSourceIds(const Aws::String& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(value); return *this; }
130 inline CreateEventSubscriptionRequest& AddSourceIds(Aws::String&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(std::move(value)); return *this; }
131 inline CreateEventSubscriptionRequest& AddSourceIds(const char* value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(value); return *this; }
133
135
139 inline bool GetEnabled() const{ return m_enabled; }
140 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
141 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
142 inline CreateEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
144
146
149 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
150 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
151 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
152 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
153 inline CreateEventSubscriptionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
154 inline CreateEventSubscriptionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
155 inline CreateEventSubscriptionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
156 inline CreateEventSubscriptionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
158 private:
159
160 Aws::String m_subscriptionName;
161 bool m_subscriptionNameHasBeenSet = false;
162
163 Aws::String m_snsTopicArn;
164 bool m_snsTopicArnHasBeenSet = false;
165
166 Aws::String m_sourceType;
167 bool m_sourceTypeHasBeenSet = false;
168
169 Aws::Vector<Aws::String> m_eventCategories;
170 bool m_eventCategoriesHasBeenSet = false;
171
172 Aws::Vector<Aws::String> m_sourceIds;
173 bool m_sourceIdsHasBeenSet = false;
174
175 bool m_enabled;
176 bool m_enabledHasBeenSet = false;
177
178 Aws::Vector<Tag> m_tags;
179 bool m_tagsHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace Neptune
184} // namespace Aws
CreateEventSubscriptionRequest & WithSourceType(Aws::String &&value)
CreateEventSubscriptionRequest & AddSourceIds(const char *value)
CreateEventSubscriptionRequest & AddSourceIds(const Aws::String &value)
AWS_NEPTUNE_API Aws::String SerializePayload() const override
CreateEventSubscriptionRequest & AddEventCategories(const Aws::String &value)
AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateEventSubscriptionRequest & WithTags(Aws::Vector< Tag > &&value)
CreateEventSubscriptionRequest & WithSubscriptionName(Aws::String &&value)
CreateEventSubscriptionRequest & WithSnsTopicArn(const char *value)
const Aws::Vector< Aws::String > & GetEventCategories() const
CreateEventSubscriptionRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
CreateEventSubscriptionRequest & WithSubscriptionName(const Aws::String &value)
CreateEventSubscriptionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateEventSubscriptionRequest & AddEventCategories(const char *value)
CreateEventSubscriptionRequest & WithSourceType(const char *value)
void SetSourceIds(const Aws::Vector< Aws::String > &value)
CreateEventSubscriptionRequest & WithSnsTopicArn(const Aws::String &value)
void SetEventCategories(const Aws::Vector< Aws::String > &value)
CreateEventSubscriptionRequest & WithSourceIds(Aws::Vector< Aws::String > &&value)
CreateEventSubscriptionRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
CreateEventSubscriptionRequest & AddEventCategories(Aws::String &&value)
CreateEventSubscriptionRequest & WithEnabled(bool value)
CreateEventSubscriptionRequest & WithSourceType(const Aws::String &value)
CreateEventSubscriptionRequest & WithSubscriptionName(const char *value)
CreateEventSubscriptionRequest & AddTags(const Tag &value)
CreateEventSubscriptionRequest & WithSourceIds(const Aws::Vector< Aws::String > &value)
CreateEventSubscriptionRequest & WithSnsTopicArn(Aws::String &&value)
CreateEventSubscriptionRequest & AddTags(Tag &&value)
CreateEventSubscriptionRequest & AddSourceIds(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector