AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ModifyEventSubscriptionRequest.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace Redshift
16{
17namespace Model
18{
19
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ModifyEventSubscription"; }
35
37
38 protected:
39 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
46 inline const Aws::String& GetSubscriptionName() const{ return m_subscriptionName; }
47
51 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
52
56 inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
57
61 inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
62
66 inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
67
72
76 inline ModifyEventSubscriptionRequest& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;}
77
81 inline ModifyEventSubscriptionRequest& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
82
83
88 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
89
94 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
95
100 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
101
106 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
107
112 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
113
118 inline ModifyEventSubscriptionRequest& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
119
124 inline ModifyEventSubscriptionRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
125
130 inline ModifyEventSubscriptionRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
131
132
142 inline const Aws::String& GetSourceType() const{ return m_sourceType; }
143
153 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
154
164 inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
165
175 inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
176
186 inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
187
197 inline ModifyEventSubscriptionRequest& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
198
208 inline ModifyEventSubscriptionRequest& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
209
219 inline ModifyEventSubscriptionRequest& WithSourceType(const char* value) { SetSourceType(value); return *this;}
220
221
230 inline const Aws::Vector<Aws::String>& GetSourceIds() const{ return m_sourceIds; }
231
240 inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; }
241
250 inline void SetSourceIds(const Aws::Vector<Aws::String>& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = value; }
251
260 inline void SetSourceIds(Aws::Vector<Aws::String>&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = std::move(value); }
261
271
280 inline ModifyEventSubscriptionRequest& WithSourceIds(Aws::Vector<Aws::String>&& value) { SetSourceIds(std::move(value)); return *this;}
281
290 inline ModifyEventSubscriptionRequest& AddSourceIds(const Aws::String& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(value); return *this; }
291
300 inline ModifyEventSubscriptionRequest& AddSourceIds(Aws::String&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(std::move(value)); return *this; }
301
310 inline ModifyEventSubscriptionRequest& AddSourceIds(const char* value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(value); return *this; }
311
312
318 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
319
325 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
326
332 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
333
339 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
340
347
354
360 inline ModifyEventSubscriptionRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
361
367 inline ModifyEventSubscriptionRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
368
374 inline ModifyEventSubscriptionRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
375
376
381 inline const Aws::String& GetSeverity() const{ return m_severity; }
382
387 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
388
393 inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
394
399 inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
400
405 inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
406
411 inline ModifyEventSubscriptionRequest& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
412
417 inline ModifyEventSubscriptionRequest& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
418
423 inline ModifyEventSubscriptionRequest& WithSeverity(const char* value) { SetSeverity(value); return *this;}
424
425
430 inline bool GetEnabled() const{ return m_enabled; }
431
436 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
437
442 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
443
448 inline ModifyEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
449
450 private:
451
452 Aws::String m_subscriptionName;
453 bool m_subscriptionNameHasBeenSet = false;
454
455 Aws::String m_snsTopicArn;
456 bool m_snsTopicArnHasBeenSet = false;
457
458 Aws::String m_sourceType;
459 bool m_sourceTypeHasBeenSet = false;
460
461 Aws::Vector<Aws::String> m_sourceIds;
462 bool m_sourceIdsHasBeenSet = false;
463
464 Aws::Vector<Aws::String> m_eventCategories;
465 bool m_eventCategoriesHasBeenSet = false;
466
467 Aws::String m_severity;
468 bool m_severityHasBeenSet = false;
469
470 bool m_enabled;
471 bool m_enabledHasBeenSet = false;
472 };
473
474} // namespace Model
475} // namespace Redshift
476} // namespace Aws
#define AWS_REDSHIFT_API
ModifyEventSubscriptionRequest & WithSnsTopicArn(const char *value)
ModifyEventSubscriptionRequest & WithSnsTopicArn(const Aws::String &value)
ModifyEventSubscriptionRequest & WithEnabled(bool value)
ModifyEventSubscriptionRequest & WithSubscriptionName(const Aws::String &value)
ModifyEventSubscriptionRequest & AddEventCategories(const Aws::String &value)
ModifyEventSubscriptionRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
ModifyEventSubscriptionRequest & WithSeverity(Aws::String &&value)
ModifyEventSubscriptionRequest & AddSourceIds(Aws::String &&value)
ModifyEventSubscriptionRequest & WithSeverity(const char *value)
ModifyEventSubscriptionRequest & WithSourceIds(Aws::Vector< Aws::String > &&value)
ModifyEventSubscriptionRequest & WithSubscriptionName(Aws::String &&value)
ModifyEventSubscriptionRequest & WithSubscriptionName(const char *value)
ModifyEventSubscriptionRequest & AddEventCategories(const char *value)
ModifyEventSubscriptionRequest & WithSourceType(const Aws::String &value)
ModifyEventSubscriptionRequest & AddSourceIds(const char *value)
void SetEventCategories(const Aws::Vector< Aws::String > &value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyEventSubscriptionRequest & AddEventCategories(Aws::String &&value)
ModifyEventSubscriptionRequest & WithSourceIds(const Aws::Vector< Aws::String > &value)
void SetSourceIds(const Aws::Vector< Aws::String > &value)
ModifyEventSubscriptionRequest & WithSourceType(const char *value)
const Aws::Vector< Aws::String > & GetEventCategories() const
ModifyEventSubscriptionRequest & WithSnsTopicArn(Aws::String &&value)
ModifyEventSubscriptionRequest & AddSourceIds(const Aws::String &value)
ModifyEventSubscriptionRequest & WithSeverity(const Aws::String &value)
ModifyEventSubscriptionRequest & WithSourceType(Aws::String &&value)
ModifyEventSubscriptionRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector