AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CreateEventSubscriptionRequest.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Redshift
17{
18namespace Model
19{
20
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateEventSubscription"; }
36
38
39 protected:
40 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
51 inline const Aws::String& GetSubscriptionName() const{ return m_subscriptionName; }
52
60 inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
61
69 inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
70
78 inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
79
87 inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
88
97
105 inline CreateEventSubscriptionRequest& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;}
106
114 inline CreateEventSubscriptionRequest& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
115
116
122 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
123
129 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
130
136 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
137
143 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
144
150 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
151
157 inline CreateEventSubscriptionRequest& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
158
164 inline CreateEventSubscriptionRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
165
171 inline CreateEventSubscriptionRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
172
173
183 inline const Aws::String& GetSourceType() const{ return m_sourceType; }
184
194 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
195
205 inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
206
216 inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
217
227 inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
228
238 inline CreateEventSubscriptionRequest& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
239
249 inline CreateEventSubscriptionRequest& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
250
260 inline CreateEventSubscriptionRequest& WithSourceType(const char* value) { SetSourceType(value); return *this;}
261
262
271 inline const Aws::Vector<Aws::String>& GetSourceIds() const{ return m_sourceIds; }
272
281 inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; }
282
291 inline void SetSourceIds(const Aws::Vector<Aws::String>& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = value; }
292
301 inline void SetSourceIds(Aws::Vector<Aws::String>&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = std::move(value); }
302
312
321 inline CreateEventSubscriptionRequest& WithSourceIds(Aws::Vector<Aws::String>&& value) { SetSourceIds(std::move(value)); return *this;}
322
331 inline CreateEventSubscriptionRequest& AddSourceIds(const Aws::String& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(value); return *this; }
332
341 inline CreateEventSubscriptionRequest& AddSourceIds(Aws::String&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(std::move(value)); return *this; }
342
351 inline CreateEventSubscriptionRequest& AddSourceIds(const char* value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(value); return *this; }
352
353
359 inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
360
366 inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
367
373 inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
374
380 inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
381
388
395
401 inline CreateEventSubscriptionRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
402
408 inline CreateEventSubscriptionRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
409
415 inline CreateEventSubscriptionRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
416
417
422 inline const Aws::String& GetSeverity() const{ return m_severity; }
423
428 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
429
434 inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
435
440 inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
441
446 inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
447
452 inline CreateEventSubscriptionRequest& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
453
458 inline CreateEventSubscriptionRequest& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
459
464 inline CreateEventSubscriptionRequest& WithSeverity(const char* value) { SetSeverity(value); return *this;}
465
466
471 inline bool GetEnabled() const{ return m_enabled; }
472
477 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
478
483 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
484
489 inline CreateEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
490
491
495 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
496
500 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
501
505 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
506
510 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
511
515 inline CreateEventSubscriptionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
516
520 inline CreateEventSubscriptionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
521
525 inline CreateEventSubscriptionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
526
530 inline CreateEventSubscriptionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
531
532 private:
533
534 Aws::String m_subscriptionName;
535 bool m_subscriptionNameHasBeenSet = false;
536
537 Aws::String m_snsTopicArn;
538 bool m_snsTopicArnHasBeenSet = false;
539
540 Aws::String m_sourceType;
541 bool m_sourceTypeHasBeenSet = false;
542
543 Aws::Vector<Aws::String> m_sourceIds;
544 bool m_sourceIdsHasBeenSet = false;
545
546 Aws::Vector<Aws::String> m_eventCategories;
547 bool m_eventCategoriesHasBeenSet = false;
548
549 Aws::String m_severity;
550 bool m_severityHasBeenSet = false;
551
552 bool m_enabled;
553 bool m_enabledHasBeenSet = false;
554
555 Aws::Vector<Tag> m_tags;
556 bool m_tagsHasBeenSet = false;
557 };
558
559} // namespace Model
560} // namespace Redshift
561} // namespace Aws
#define AWS_REDSHIFT_API
CreateEventSubscriptionRequest & WithSeverity(const char *value)
CreateEventSubscriptionRequest & AddSourceIds(Aws::String &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetSourceIds(const Aws::Vector< Aws::String > &value)
CreateEventSubscriptionRequest & WithSubscriptionName(Aws::String &&value)
const Aws::Vector< Aws::String > & GetEventCategories() const
CreateEventSubscriptionRequest & WithSnsTopicArn(Aws::String &&value)
CreateEventSubscriptionRequest & WithSubscriptionName(const char *value)
CreateEventSubscriptionRequest & WithSourceType(const Aws::String &value)
CreateEventSubscriptionRequest & WithSeverity(const Aws::String &value)
CreateEventSubscriptionRequest & WithSourceIds(const Aws::Vector< Aws::String > &value)
CreateEventSubscriptionRequest & AddTags(Tag &&value)
CreateEventSubscriptionRequest & AddEventCategories(const char *value)
CreateEventSubscriptionRequest & WithSubscriptionName(const Aws::String &value)
CreateEventSubscriptionRequest & AddTags(const Tag &value)
CreateEventSubscriptionRequest & WithSeverity(Aws::String &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
void SetEventCategories(const Aws::Vector< Aws::String > &value)
CreateEventSubscriptionRequest & AddSourceIds(const char *value)
CreateEventSubscriptionRequest & WithSourceType(const char *value)
CreateEventSubscriptionRequest & AddEventCategories(Aws::String &&value)
CreateEventSubscriptionRequest & AddEventCategories(const Aws::String &value)
CreateEventSubscriptionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateEventSubscriptionRequest & AddSourceIds(const Aws::String &value)
CreateEventSubscriptionRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
CreateEventSubscriptionRequest & WithEnabled(bool value)
CreateEventSubscriptionRequest & WithSnsTopicArn(const Aws::String &value)
CreateEventSubscriptionRequest & WithTags(Aws::Vector< Tag > &&value)
CreateEventSubscriptionRequest & WithSnsTopicArn(const char *value)
CreateEventSubscriptionRequest & WithSourceType(Aws::String &&value)
CreateEventSubscriptionRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
CreateEventSubscriptionRequest & WithSourceIds(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector