AWS SDK for C++  1.9.129
AWS SDK for C++
ModifyEventSubscriptionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Neptune
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::String& GetSubscriptionName() const{ return m_subscriptionName; }
44 
48  inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
49 
53  inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
54 
58  inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
59 
63  inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
64 
68  inline ModifyEventSubscriptionRequest& WithSubscriptionName(const Aws::String& value) { SetSubscriptionName(value); return *this;}
69 
73  inline ModifyEventSubscriptionRequest& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;}
74 
78  inline ModifyEventSubscriptionRequest& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
79 
80 
86  inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
87 
93  inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
94 
100  inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
101 
107  inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
108 
114  inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
115 
121  inline ModifyEventSubscriptionRequest& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
122 
128  inline ModifyEventSubscriptionRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
129 
135  inline ModifyEventSubscriptionRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
136 
137 
145  inline const Aws::String& GetSourceType() const{ return m_sourceType; }
146 
154  inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
155 
163  inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
164 
172  inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
173 
181  inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
182 
190  inline ModifyEventSubscriptionRequest& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
191 
199  inline ModifyEventSubscriptionRequest& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
200 
208  inline ModifyEventSubscriptionRequest& WithSourceType(const char* value) { SetSourceType(value); return *this;}
209 
210 
216  inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
217 
223  inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
224 
230  inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
231 
237  inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
238 
244  inline ModifyEventSubscriptionRequest& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
245 
251  inline ModifyEventSubscriptionRequest& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(std::move(value)); return *this;}
252 
258  inline ModifyEventSubscriptionRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
259 
265  inline ModifyEventSubscriptionRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
266 
272  inline ModifyEventSubscriptionRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
273 
274 
278  inline bool GetEnabled() const{ return m_enabled; }
279 
283  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
284 
288  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
289 
293  inline ModifyEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
294 
295  private:
296 
297  Aws::String m_subscriptionName;
298  bool m_subscriptionNameHasBeenSet;
299 
300  Aws::String m_snsTopicArn;
301  bool m_snsTopicArnHasBeenSet;
302 
303  Aws::String m_sourceType;
304  bool m_sourceTypeHasBeenSet;
305 
306  Aws::Vector<Aws::String> m_eventCategories;
307  bool m_eventCategoriesHasBeenSet;
308 
309  bool m_enabled;
310  bool m_enabledHasBeenSet;
311  };
312 
313 } // namespace Model
314 } // namespace Neptune
315 } // namespace Aws
Aws::Neptune::Model::ModifyEventSubscriptionRequest::SnsTopicArnHasBeenSet
bool SnsTopicArnHasBeenSet() const
Definition: ModifyEventSubscriptionRequest.h:93
Aws::Neptune::Model::ModifyEventSubscriptionRequest::WithSourceType
ModifyEventSubscriptionRequest & WithSourceType(const char *value)
Definition: ModifyEventSubscriptionRequest.h:208
Aws::Neptune::Model::ModifyEventSubscriptionRequest::SetSnsTopicArn
void SetSnsTopicArn(Aws::String &&value)
Definition: ModifyEventSubscriptionRequest.h:107
Aws::Neptune::Model::ModifyEventSubscriptionRequest::SetEventCategories
void SetEventCategories(Aws::Vector< Aws::String > &&value)
Definition: ModifyEventSubscriptionRequest.h:237
Aws::Http::URI
Definition: URI.h:32
Neptune_EXPORTS.h
Aws::Neptune::Model::ModifyEventSubscriptionRequest::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: ModifyEventSubscriptionRequest.h:283
Aws::Neptune::Model::ModifyEventSubscriptionRequest::GetSourceType
const Aws::String & GetSourceType() const
Definition: ModifyEventSubscriptionRequest.h:145
Aws::Neptune::Model::ModifyEventSubscriptionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Neptune::Model::ModifyEventSubscriptionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyEventSubscriptionRequest.h:31
Aws::Neptune::Model::ModifyEventSubscriptionRequest::GetEnabled
bool GetEnabled() const
Definition: ModifyEventSubscriptionRequest.h:278
Aws::Neptune::Model::ModifyEventSubscriptionRequest::EventCategoriesHasBeenSet
bool EventCategoriesHasBeenSet() const
Definition: ModifyEventSubscriptionRequest.h:223
Aws::Neptune::Model::ModifyEventSubscriptionRequest::SetSourceType
void SetSourceType(const char *value)
Definition: ModifyEventSubscriptionRequest.h:181
AWS_NEPTUNE_API
#define AWS_NEPTUNE_API
Definition: Neptune_EXPORTS.h:28
Aws::Neptune::Model::ModifyEventSubscriptionRequest::SetEnabled
void SetEnabled(bool value)
Definition: ModifyEventSubscriptionRequest.h:288
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Neptune::Model::ModifyEventSubscriptionRequest::SetSnsTopicArn
void SetSnsTopicArn(const Aws::String &value)
Definition: ModifyEventSubscriptionRequest.h:100
Aws::Neptune::Model::ModifyEventSubscriptionRequest::SerializePayload
Aws::String SerializePayload() const override
AWSVector.h
Aws::Neptune::Model::ModifyEventSubscriptionRequest::SubscriptionNameHasBeenSet
bool SubscriptionNameHasBeenSet() const
Definition: ModifyEventSubscriptionRequest.h:48
Aws::Neptune::NeptuneRequest
Definition: NeptuneRequest.h:17
Aws::Neptune::Model::ModifyEventSubscriptionRequest::SetSourceType
void SetSourceType(const Aws::String &value)
Definition: ModifyEventSubscriptionRequest.h:163
Aws::Neptune::Model::ModifyEventSubscriptionRequest::SourceTypeHasBeenSet
bool SourceTypeHasBeenSet() const
Definition: ModifyEventSubscriptionRequest.h:154
Aws::Neptune::Model::ModifyEventSubscriptionRequest::WithSubscriptionName
ModifyEventSubscriptionRequest & WithSubscriptionName(Aws::String &&value)
Definition: ModifyEventSubscriptionRequest.h:73
Aws::Neptune::Model::ModifyEventSubscriptionRequest::WithEventCategories
ModifyEventSubscriptionRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
Definition: ModifyEventSubscriptionRequest.h:251
Aws::Neptune::Model::ModifyEventSubscriptionRequest::GetEventCategories
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition: ModifyEventSubscriptionRequest.h:216
Aws::Neptune::Model::ModifyEventSubscriptionRequest::WithSnsTopicArn
ModifyEventSubscriptionRequest & WithSnsTopicArn(Aws::String &&value)
Definition: ModifyEventSubscriptionRequest.h:128
Aws::Neptune::Model::ModifyEventSubscriptionRequest::WithEnabled
ModifyEventSubscriptionRequest & WithEnabled(bool value)
Definition: ModifyEventSubscriptionRequest.h:293
Aws::Neptune::Model::ModifyEventSubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(const char *value)
Definition: ModifyEventSubscriptionRequest.h:63
Aws::Neptune::Model::ModifyEventSubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(const Aws::String &value)
Definition: ModifyEventSubscriptionRequest.h:53
Aws::Neptune::Model::ModifyEventSubscriptionRequest::AddEventCategories
ModifyEventSubscriptionRequest & AddEventCategories(const char *value)
Definition: ModifyEventSubscriptionRequest.h:272
Aws::Neptune::Model::ModifyEventSubscriptionRequest::WithSnsTopicArn
ModifyEventSubscriptionRequest & WithSnsTopicArn(const Aws::String &value)
Definition: ModifyEventSubscriptionRequest.h:121
Aws::Neptune::Model::ModifyEventSubscriptionRequest::WithSubscriptionName
ModifyEventSubscriptionRequest & WithSubscriptionName(const Aws::String &value)
Definition: ModifyEventSubscriptionRequest.h:68
Aws::Neptune::Model::ModifyEventSubscriptionRequest::ModifyEventSubscriptionRequest
ModifyEventSubscriptionRequest()
Aws::Neptune::Model::ModifyEventSubscriptionRequest::GetSnsTopicArn
const Aws::String & GetSnsTopicArn() const
Definition: ModifyEventSubscriptionRequest.h:86
Aws::Neptune::Model::ModifyEventSubscriptionRequest::SetSourceType
void SetSourceType(Aws::String &&value)
Definition: ModifyEventSubscriptionRequest.h:172
Aws::Neptune::Model::ModifyEventSubscriptionRequest::GetSubscriptionName
const Aws::String & GetSubscriptionName() const
Definition: ModifyEventSubscriptionRequest.h:43
Aws::Neptune::Model::ModifyEventSubscriptionRequest::SetSnsTopicArn
void SetSnsTopicArn(const char *value)
Definition: ModifyEventSubscriptionRequest.h:114
Aws::Neptune::Model::ModifyEventSubscriptionRequest
Definition: ModifyEventSubscriptionRequest.h:23
AWSString.h
Aws::Neptune::Model::ModifyEventSubscriptionRequest::AddEventCategories
ModifyEventSubscriptionRequest & AddEventCategories(const Aws::String &value)
Definition: ModifyEventSubscriptionRequest.h:258
Aws::Neptune::Model::ModifyEventSubscriptionRequest::WithEventCategories
ModifyEventSubscriptionRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
Definition: ModifyEventSubscriptionRequest.h:244
Aws::Neptune::Model::ModifyEventSubscriptionRequest::WithSourceType
ModifyEventSubscriptionRequest & WithSourceType(const Aws::String &value)
Definition: ModifyEventSubscriptionRequest.h:190
Aws::Neptune::Model::ModifyEventSubscriptionRequest::WithSnsTopicArn
ModifyEventSubscriptionRequest & WithSnsTopicArn(const char *value)
Definition: ModifyEventSubscriptionRequest.h:135
NeptuneRequest.h
Aws::Neptune::Model::ModifyEventSubscriptionRequest::WithSourceType
ModifyEventSubscriptionRequest & WithSourceType(Aws::String &&value)
Definition: ModifyEventSubscriptionRequest.h:199
Aws
Definition: AccessManagementClient.h:15
Aws::Neptune::Model::ModifyEventSubscriptionRequest::WithSubscriptionName
ModifyEventSubscriptionRequest & WithSubscriptionName(const char *value)
Definition: ModifyEventSubscriptionRequest.h:78
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Neptune::Model::ModifyEventSubscriptionRequest::AddEventCategories
ModifyEventSubscriptionRequest & AddEventCategories(Aws::String &&value)
Definition: ModifyEventSubscriptionRequest.h:265
Aws::Neptune::Model::ModifyEventSubscriptionRequest::SetEventCategories
void SetEventCategories(const Aws::Vector< Aws::String > &value)
Definition: ModifyEventSubscriptionRequest.h:230
Aws::Neptune::Model::ModifyEventSubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(Aws::String &&value)
Definition: ModifyEventSubscriptionRequest.h:58