AWS SDK for C++  1.9.104
AWS SDK for C++
CreateEventSubscriptionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/redshift/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Redshift
17 {
18 namespace 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 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  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 
96  inline CreateEventSubscriptionRequest& WithSubscriptionName(const Aws::String& value) { SetSubscriptionName(value); return *this;}
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 
311  inline CreateEventSubscriptionRequest& WithSourceIds(const Aws::Vector<Aws::String>& value) { SetSourceIds(value); return *this;}
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 
387  inline CreateEventSubscriptionRequest& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
388 
394  inline CreateEventSubscriptionRequest& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(std::move(value)); return *this;}
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;
536 
537  Aws::String m_snsTopicArn;
538  bool m_snsTopicArnHasBeenSet;
539 
540  Aws::String m_sourceType;
541  bool m_sourceTypeHasBeenSet;
542 
543  Aws::Vector<Aws::String> m_sourceIds;
544  bool m_sourceIdsHasBeenSet;
545 
546  Aws::Vector<Aws::String> m_eventCategories;
547  bool m_eventCategoriesHasBeenSet;
548 
549  Aws::String m_severity;
550  bool m_severityHasBeenSet;
551 
552  bool m_enabled;
553  bool m_enabledHasBeenSet;
554 
555  Aws::Vector<Tag> m_tags;
556  bool m_tagsHasBeenSet;
557  };
558 
559 } // namespace Model
560 } // namespace Redshift
561 } // namespace Aws
Aws::Redshift::Model::CreateEventSubscriptionRequest::SetSourceIds
void SetSourceIds(const Aws::Vector< Aws::String > &value)
Definition: CreateEventSubscriptionRequest.h:291
Aws::Redshift::Model::Tag
Definition: Tag.h:33
Aws::Redshift::Model::CreateEventSubscriptionRequest::WithSnsTopicArn
CreateEventSubscriptionRequest & WithSnsTopicArn(Aws::String &&value)
Definition: CreateEventSubscriptionRequest.h:164
Aws::Redshift::Model::CreateEventSubscriptionRequest::WithTags
CreateEventSubscriptionRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateEventSubscriptionRequest.h:515
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::CreateEventSubscriptionRequest::GetSourceType
const Aws::String & GetSourceType() const
Definition: CreateEventSubscriptionRequest.h:183
Aws::Redshift::Model::CreateEventSubscriptionRequest::SetEventCategories
void SetEventCategories(const Aws::Vector< Aws::String > &value)
Definition: CreateEventSubscriptionRequest.h:373
Aws::Redshift::Model::CreateEventSubscriptionRequest::SetSnsTopicArn
void SetSnsTopicArn(const Aws::String &value)
Definition: CreateEventSubscriptionRequest.h:136
Aws::Redshift::Model::CreateEventSubscriptionRequest::WithSeverity
CreateEventSubscriptionRequest & WithSeverity(Aws::String &&value)
Definition: CreateEventSubscriptionRequest.h:458
Aws::Redshift::Model::CreateEventSubscriptionRequest::WithSourceType
CreateEventSubscriptionRequest & WithSourceType(const Aws::String &value)
Definition: CreateEventSubscriptionRequest.h:238
Aws::Redshift::Model::CreateEventSubscriptionRequest::SourceTypeHasBeenSet
bool SourceTypeHasBeenSet() const
Definition: CreateEventSubscriptionRequest.h:194
Tag.h
Aws::Redshift::Model::CreateEventSubscriptionRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateEventSubscriptionRequest.h:510
Aws::Redshift::Model::CreateEventSubscriptionRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateEventSubscriptionRequest.h:505
Aws::Redshift::Model::CreateEventSubscriptionRequest::AddEventCategories
CreateEventSubscriptionRequest & AddEventCategories(const char *value)
Definition: CreateEventSubscriptionRequest.h:415
Aws::Redshift::Model::CreateEventSubscriptionRequest::GetSourceIds
const Aws::Vector< Aws::String > & GetSourceIds() const
Definition: CreateEventSubscriptionRequest.h:271
Aws::Redshift::Model::CreateEventSubscriptionRequest::SetSourceType
void SetSourceType(const char *value)
Definition: CreateEventSubscriptionRequest.h:227
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
RedshiftRequest.h
Aws::Redshift::Model::CreateEventSubscriptionRequest::SnsTopicArnHasBeenSet
bool SnsTopicArnHasBeenSet() const
Definition: CreateEventSubscriptionRequest.h:129
AWSVector.h
Aws::Redshift::Model::CreateEventSubscriptionRequest::WithSnsTopicArn
CreateEventSubscriptionRequest & WithSnsTopicArn(const Aws::String &value)
Definition: CreateEventSubscriptionRequest.h:157
Aws::Redshift::Model::CreateEventSubscriptionRequest::AddSourceIds
CreateEventSubscriptionRequest & AddSourceIds(const Aws::String &value)
Definition: CreateEventSubscriptionRequest.h:331
Aws::Redshift::Model::CreateEventSubscriptionRequest::SetSnsTopicArn
void SetSnsTopicArn(Aws::String &&value)
Definition: CreateEventSubscriptionRequest.h:143
Aws::Redshift::Model::CreateEventSubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(Aws::String &&value)
Definition: CreateEventSubscriptionRequest.h:78
Aws::Redshift::Model::CreateEventSubscriptionRequest::WithSeverity
CreateEventSubscriptionRequest & WithSeverity(const char *value)
Definition: CreateEventSubscriptionRequest.h:464
Aws::Redshift::Model::CreateEventSubscriptionRequest::AddEventCategories
CreateEventSubscriptionRequest & AddEventCategories(const Aws::String &value)
Definition: CreateEventSubscriptionRequest.h:401
Aws::Redshift::Model::CreateEventSubscriptionRequest
Definition: CreateEventSubscriptionRequest.h:27
Aws::Redshift::Model::CreateEventSubscriptionRequest::EventCategoriesHasBeenSet
bool EventCategoriesHasBeenSet() const
Definition: CreateEventSubscriptionRequest.h:366
Aws::Redshift::Model::CreateEventSubscriptionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateEventSubscriptionRequest.h:35
Aws::Redshift::Model::CreateEventSubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(const Aws::String &value)
Definition: CreateEventSubscriptionRequest.h:69
Aws::Redshift::Model::CreateEventSubscriptionRequest::WithSeverity
CreateEventSubscriptionRequest & WithSeverity(const Aws::String &value)
Definition: CreateEventSubscriptionRequest.h:452
Aws::Redshift::Model::CreateEventSubscriptionRequest::WithSourceType
CreateEventSubscriptionRequest & WithSourceType(Aws::String &&value)
Definition: CreateEventSubscriptionRequest.h:249
Aws::Redshift::Model::CreateEventSubscriptionRequest::WithSourceType
CreateEventSubscriptionRequest & WithSourceType(const char *value)
Definition: CreateEventSubscriptionRequest.h:260
Aws::Redshift::Model::CreateEventSubscriptionRequest::SetSeverity
void SetSeverity(const char *value)
Definition: CreateEventSubscriptionRequest.h:446
Aws::Redshift::Model::CreateEventSubscriptionRequest::SetSourceType
void SetSourceType(Aws::String &&value)
Definition: CreateEventSubscriptionRequest.h:216
Aws::Redshift::Model::CreateEventSubscriptionRequest::GetEnabled
bool GetEnabled() const
Definition: CreateEventSubscriptionRequest.h:471
Aws::Redshift::Model::CreateEventSubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(const char *value)
Definition: CreateEventSubscriptionRequest.h:87
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::CreateEventSubscriptionRequest::WithSubscriptionName
CreateEventSubscriptionRequest & WithSubscriptionName(const Aws::String &value)
Definition: CreateEventSubscriptionRequest.h:96
Aws::Redshift::Model::CreateEventSubscriptionRequest::WithEnabled
CreateEventSubscriptionRequest & WithEnabled(bool value)
Definition: CreateEventSubscriptionRequest.h:489
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::CreateEventSubscriptionRequest::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: CreateEventSubscriptionRequest.h:477
AWSString.h
Aws::Redshift::Model::CreateEventSubscriptionRequest::WithSubscriptionName
CreateEventSubscriptionRequest & WithSubscriptionName(const char *value)
Definition: CreateEventSubscriptionRequest.h:114
Aws::Redshift::Model::CreateEventSubscriptionRequest::GetEventCategories
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition: CreateEventSubscriptionRequest.h:359
Aws::Redshift::Model::CreateEventSubscriptionRequest::CreateEventSubscriptionRequest
CreateEventSubscriptionRequest()
Aws::Redshift::Model::CreateEventSubscriptionRequest::GetSeverity
const Aws::String & GetSeverity() const
Definition: CreateEventSubscriptionRequest.h:422
Aws::Redshift::Model::CreateEventSubscriptionRequest::SeverityHasBeenSet
bool SeverityHasBeenSet() const
Definition: CreateEventSubscriptionRequest.h:428
Aws::Redshift::Model::CreateEventSubscriptionRequest::AddSourceIds
CreateEventSubscriptionRequest & AddSourceIds(const char *value)
Definition: CreateEventSubscriptionRequest.h:351
Aws::Redshift::Model::CreateEventSubscriptionRequest::SetEventCategories
void SetEventCategories(Aws::Vector< Aws::String > &&value)
Definition: CreateEventSubscriptionRequest.h:380
Aws::Redshift::Model::CreateEventSubscriptionRequest::WithSourceIds
CreateEventSubscriptionRequest & WithSourceIds(const Aws::Vector< Aws::String > &value)
Definition: CreateEventSubscriptionRequest.h:311
Aws::Redshift::Model::CreateEventSubscriptionRequest::WithSubscriptionName
CreateEventSubscriptionRequest & WithSubscriptionName(Aws::String &&value)
Definition: CreateEventSubscriptionRequest.h:105
Aws::Redshift::Model::CreateEventSubscriptionRequest::WithSnsTopicArn
CreateEventSubscriptionRequest & WithSnsTopicArn(const char *value)
Definition: CreateEventSubscriptionRequest.h:171
Aws::Redshift::Model::CreateEventSubscriptionRequest::SetSourceIds
void SetSourceIds(Aws::Vector< Aws::String > &&value)
Definition: CreateEventSubscriptionRequest.h:301
Aws::Redshift::Model::CreateEventSubscriptionRequest::GetSubscriptionName
const Aws::String & GetSubscriptionName() const
Definition: CreateEventSubscriptionRequest.h:51
Aws::Redshift::Model::CreateEventSubscriptionRequest::AddTags
CreateEventSubscriptionRequest & AddTags(const Tag &value)
Definition: CreateEventSubscriptionRequest.h:525
Aws::Redshift::Model::CreateEventSubscriptionRequest::WithTags
CreateEventSubscriptionRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateEventSubscriptionRequest.h:520
Aws::Redshift::Model::CreateEventSubscriptionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::CreateEventSubscriptionRequest::AddSourceIds
CreateEventSubscriptionRequest & AddSourceIds(Aws::String &&value)
Definition: CreateEventSubscriptionRequest.h:341
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::CreateEventSubscriptionRequest::SetSnsTopicArn
void SetSnsTopicArn(const char *value)
Definition: CreateEventSubscriptionRequest.h:150
Redshift_EXPORTS.h
Aws::Redshift::Model::CreateEventSubscriptionRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateEventSubscriptionRequest.h:495
Aws::Redshift::Model::CreateEventSubscriptionRequest::GetSnsTopicArn
const Aws::String & GetSnsTopicArn() const
Definition: CreateEventSubscriptionRequest.h:122
Aws::Redshift::Model::CreateEventSubscriptionRequest::SubscriptionNameHasBeenSet
bool SubscriptionNameHasBeenSet() const
Definition: CreateEventSubscriptionRequest.h:60
Aws::Redshift::Model::CreateEventSubscriptionRequest::SetSourceType
void SetSourceType(const Aws::String &value)
Definition: CreateEventSubscriptionRequest.h:205
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::CreateEventSubscriptionRequest::SetSeverity
void SetSeverity(Aws::String &&value)
Definition: CreateEventSubscriptionRequest.h:440
Aws::Redshift::Model::CreateEventSubscriptionRequest::AddEventCategories
CreateEventSubscriptionRequest & AddEventCategories(Aws::String &&value)
Definition: CreateEventSubscriptionRequest.h:408
Aws::Redshift::Model::CreateEventSubscriptionRequest::WithSourceIds
CreateEventSubscriptionRequest & WithSourceIds(Aws::Vector< Aws::String > &&value)
Definition: CreateEventSubscriptionRequest.h:321
Aws::Redshift::Model::CreateEventSubscriptionRequest::SetSeverity
void SetSeverity(const Aws::String &value)
Definition: CreateEventSubscriptionRequest.h:434
Aws::Redshift::Model::CreateEventSubscriptionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::CreateEventSubscriptionRequest::WithEventCategories
CreateEventSubscriptionRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
Definition: CreateEventSubscriptionRequest.h:394
Aws::Redshift::Model::CreateEventSubscriptionRequest::AddTags
CreateEventSubscriptionRequest & AddTags(Tag &&value)
Definition: CreateEventSubscriptionRequest.h:530
Aws::Redshift::Model::CreateEventSubscriptionRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateEventSubscriptionRequest.h:500
Aws::Redshift::Model::CreateEventSubscriptionRequest::SetEnabled
void SetEnabled(bool value)
Definition: CreateEventSubscriptionRequest.h:483
Aws::Redshift::Model::CreateEventSubscriptionRequest::WithEventCategories
CreateEventSubscriptionRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
Definition: CreateEventSubscriptionRequest.h:387
Aws::Redshift::Model::CreateEventSubscriptionRequest::SourceIdsHasBeenSet
bool SourceIdsHasBeenSet() const
Definition: CreateEventSubscriptionRequest.h:281