AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
EventSubscription.h
Go to the documentation of this file.
1
6#pragma once
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace Redshift
25{
26namespace Model
27{
28
35 {
36 public:
40
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
49 inline const Aws::String& GetCustomerAwsId() const{ return m_customerAwsId; }
50
55 inline bool CustomerAwsIdHasBeenSet() const { return m_customerAwsIdHasBeenSet; }
56
61 inline void SetCustomerAwsId(const Aws::String& value) { m_customerAwsIdHasBeenSet = true; m_customerAwsId = value; }
62
67 inline void SetCustomerAwsId(Aws::String&& value) { m_customerAwsIdHasBeenSet = true; m_customerAwsId = std::move(value); }
68
73 inline void SetCustomerAwsId(const char* value) { m_customerAwsIdHasBeenSet = true; m_customerAwsId.assign(value); }
74
79 inline EventSubscription& WithCustomerAwsId(const Aws::String& value) { SetCustomerAwsId(value); return *this;}
80
85 inline EventSubscription& WithCustomerAwsId(Aws::String&& value) { SetCustomerAwsId(std::move(value)); return *this;}
86
91 inline EventSubscription& WithCustomerAwsId(const char* value) { SetCustomerAwsId(value); return *this;}
92
93
97 inline const Aws::String& GetCustSubscriptionId() const{ return m_custSubscriptionId; }
98
102 inline bool CustSubscriptionIdHasBeenSet() const { return m_custSubscriptionIdHasBeenSet; }
103
107 inline void SetCustSubscriptionId(const Aws::String& value) { m_custSubscriptionIdHasBeenSet = true; m_custSubscriptionId = value; }
108
112 inline void SetCustSubscriptionId(Aws::String&& value) { m_custSubscriptionIdHasBeenSet = true; m_custSubscriptionId = std::move(value); }
113
117 inline void SetCustSubscriptionId(const char* value) { m_custSubscriptionIdHasBeenSet = true; m_custSubscriptionId.assign(value); }
118
122 inline EventSubscription& WithCustSubscriptionId(const Aws::String& value) { SetCustSubscriptionId(value); return *this;}
123
127 inline EventSubscription& WithCustSubscriptionId(Aws::String&& value) { SetCustSubscriptionId(std::move(value)); return *this;}
128
132 inline EventSubscription& WithCustSubscriptionId(const char* value) { SetCustSubscriptionId(value); return *this;}
133
134
139 inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
140
145 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
146
151 inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
152
157 inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
158
163 inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
164
169 inline EventSubscription& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
170
175 inline EventSubscription& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
176
181 inline EventSubscription& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
182
183
192 inline const Aws::String& GetStatus() const{ return m_status; }
193
202 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
203
212 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
213
222 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
223
232 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
233
242 inline EventSubscription& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
243
252 inline EventSubscription& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
253
262 inline EventSubscription& WithStatus(const char* value) { SetStatus(value); return *this;}
263
264
269 inline const Aws::Utils::DateTime& GetSubscriptionCreationTime() const{ return m_subscriptionCreationTime; }
270
275 inline bool SubscriptionCreationTimeHasBeenSet() const { return m_subscriptionCreationTimeHasBeenSet; }
276
281 inline void SetSubscriptionCreationTime(const Aws::Utils::DateTime& value) { m_subscriptionCreationTimeHasBeenSet = true; m_subscriptionCreationTime = value; }
282
287 inline void SetSubscriptionCreationTime(Aws::Utils::DateTime&& value) { m_subscriptionCreationTimeHasBeenSet = true; m_subscriptionCreationTime = std::move(value); }
288
294
300
301
307 inline const Aws::String& GetSourceType() const{ return m_sourceType; }
308
314 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
315
321 inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
322
328 inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
329
335 inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
336
342 inline EventSubscription& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
343
349 inline EventSubscription& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
350
356 inline EventSubscription& WithSourceType(const char* value) { SetSourceType(value); return *this;}
357
358
363 inline const Aws::Vector<Aws::String>& GetSourceIdsList() const{ return m_sourceIdsList; }
364
369 inline bool SourceIdsListHasBeenSet() const { return m_sourceIdsListHasBeenSet; }
370
375 inline void SetSourceIdsList(const Aws::Vector<Aws::String>& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList = value; }
376
381 inline void SetSourceIdsList(Aws::Vector<Aws::String>&& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList = std::move(value); }
382
388
393 inline EventSubscription& WithSourceIdsList(Aws::Vector<Aws::String>&& value) { SetSourceIdsList(std::move(value)); return *this;}
394
399 inline EventSubscription& AddSourceIdsList(const Aws::String& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList.push_back(value); return *this; }
400
405 inline EventSubscription& AddSourceIdsList(Aws::String&& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList.push_back(std::move(value)); return *this; }
406
411 inline EventSubscription& AddSourceIdsList(const char* value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList.push_back(value); return *this; }
412
413
419 inline const Aws::Vector<Aws::String>& GetEventCategoriesList() const{ return m_eventCategoriesList; }
420
426 inline bool EventCategoriesListHasBeenSet() const { return m_eventCategoriesListHasBeenSet; }
427
433 inline void SetEventCategoriesList(const Aws::Vector<Aws::String>& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList = value; }
434
440 inline void SetEventCategoriesList(Aws::Vector<Aws::String>&& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList = std::move(value); }
441
448
455
461 inline EventSubscription& AddEventCategoriesList(const Aws::String& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList.push_back(value); return *this; }
462
468 inline EventSubscription& AddEventCategoriesList(Aws::String&& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList.push_back(std::move(value)); return *this; }
469
475 inline EventSubscription& AddEventCategoriesList(const char* value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList.push_back(value); return *this; }
476
477
482 inline const Aws::String& GetSeverity() const{ return m_severity; }
483
488 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
489
494 inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
495
500 inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
501
506 inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
507
512 inline EventSubscription& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
513
518 inline EventSubscription& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
519
524 inline EventSubscription& WithSeverity(const char* value) { SetSeverity(value); return *this;}
525
526
531 inline bool GetEnabled() const{ return m_enabled; }
532
537 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
538
543 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
544
549 inline EventSubscription& WithEnabled(bool value) { SetEnabled(value); return *this;}
550
551
555 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
556
560 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
561
565 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
566
570 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
571
575 inline EventSubscription& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
576
580 inline EventSubscription& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
581
585 inline EventSubscription& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
586
590 inline EventSubscription& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
591
592 private:
593
594 Aws::String m_customerAwsId;
595 bool m_customerAwsIdHasBeenSet = false;
596
597 Aws::String m_custSubscriptionId;
598 bool m_custSubscriptionIdHasBeenSet = false;
599
600 Aws::String m_snsTopicArn;
601 bool m_snsTopicArnHasBeenSet = false;
602
603 Aws::String m_status;
604 bool m_statusHasBeenSet = false;
605
606 Aws::Utils::DateTime m_subscriptionCreationTime;
607 bool m_subscriptionCreationTimeHasBeenSet = false;
608
609 Aws::String m_sourceType;
610 bool m_sourceTypeHasBeenSet = false;
611
612 Aws::Vector<Aws::String> m_sourceIdsList;
613 bool m_sourceIdsListHasBeenSet = false;
614
615 Aws::Vector<Aws::String> m_eventCategoriesList;
616 bool m_eventCategoriesListHasBeenSet = false;
617
618 Aws::String m_severity;
619 bool m_severityHasBeenSet = false;
620
621 bool m_enabled;
622 bool m_enabledHasBeenSet = false;
623
624 Aws::Vector<Tag> m_tags;
625 bool m_tagsHasBeenSet = false;
626 };
627
628} // namespace Model
629} // namespace Redshift
630} // namespace Aws
#define AWS_REDSHIFT_API
EventSubscription & AddEventCategoriesList(const char *value)
EventSubscription & WithEventCategoriesList(const Aws::Vector< Aws::String > &value)
EventSubscription & AddSourceIdsList(const Aws::String &value)
const Aws::String & GetSnsTopicArn() const
EventSubscription & WithCustomerAwsId(const Aws::String &value)
EventSubscription & AddEventCategoriesList(Aws::String &&value)
EventSubscription & WithSnsTopicArn(Aws::String &&value)
void SetEventCategoriesList(Aws::Vector< Aws::String > &&value)
EventSubscription & WithEnabled(bool value)
void SetTags(Aws::Vector< Tag > &&value)
EventSubscription & WithSourceType(Aws::String &&value)
void SetSourceIdsList(const Aws::Vector< Aws::String > &value)
void SetCustSubscriptionId(const Aws::String &value)
void SetCustSubscriptionId(const char *value)
EventSubscription & WithSeverity(Aws::String &&value)
EventSubscription & WithSourceType(const Aws::String &value)
EventSubscription & WithTags(Aws::Vector< Tag > &&value)
EventSubscription & WithSeverity(const char *value)
EventSubscription & WithStatus(const char *value)
const Aws::Vector< Aws::String > & GetEventCategoriesList() const
EventSubscription & AddEventCategoriesList(const Aws::String &value)
EventSubscription & AddSourceIdsList(const char *value)
EventSubscription & WithTags(const Aws::Vector< Tag > &value)
void SetSubscriptionCreationTime(Aws::Utils::DateTime &&value)
void SetEventCategoriesList(const Aws::Vector< Aws::String > &value)
EventSubscription & WithSubscriptionCreationTime(const Aws::Utils::DateTime &value)
EventSubscription & WithEventCategoriesList(Aws::Vector< Aws::String > &&value)
EventSubscription & WithCustomerAwsId(const char *value)
const Aws::String & GetSeverity() const
EventSubscription & WithSourceIdsList(const Aws::Vector< Aws::String > &value)
EventSubscription & WithSeverity(const Aws::String &value)
EventSubscription & WithSourceIdsList(Aws::Vector< Aws::String > &&value)
EventSubscription & WithCustSubscriptionId(const Aws::String &value)
const Aws::String & GetCustomerAwsId() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSnsTopicArn(const Aws::String &value)
void SetCustomerAwsId(const Aws::String &value)
AWS_REDSHIFT_API EventSubscription(const Aws::Utils::Xml::XmlNode &xmlNode)
EventSubscription & AddTags(Tag &&value)
EventSubscription & WithSnsTopicArn(const char *value)
void SetSnsTopicArn(Aws::String &&value)
const Aws::String & GetSourceType() const
void SetTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetTags() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EventSubscription & WithStatus(Aws::String &&value)
EventSubscription & WithSourceType(const char *value)
void SetSourceType(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSourceIdsList() const
EventSubscription & WithSnsTopicArn(const Aws::String &value)
EventSubscription & WithCustomerAwsId(Aws::String &&value)
EventSubscription & WithStatus(const Aws::String &value)
void SetSubscriptionCreationTime(const Aws::Utils::DateTime &value)
const Aws::String & GetCustSubscriptionId() const
AWS_REDSHIFT_API EventSubscription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EventSubscription & AddTags(const Tag &value)
EventSubscription & WithCustSubscriptionId(const char *value)
void SetCustSubscriptionId(Aws::String &&value)
EventSubscription & AddSourceIdsList(Aws::String &&value)
EventSubscription & WithCustSubscriptionId(Aws::String &&value)
const Aws::Utils::DateTime & GetSubscriptionCreationTime() const
void SetCustomerAwsId(Aws::String &&value)
void SetSourceIdsList(Aws::Vector< Aws::String > &&value)
void SetStatus(const Aws::String &value)
const Aws::String & GetStatus() const
void SetSeverity(const Aws::String &value)
EventSubscription & WithSubscriptionCreationTime(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream