AWS SDK for C++  1.9.108
AWS SDK for C++
CreateEventSubscriptionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/rds/RDSRequest.h>
11 #include <aws/rds/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace RDS
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 
48  inline const Aws::String& GetSubscriptionName() const{ return m_subscriptionName; }
49 
54  inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; }
55 
60  inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; }
61 
66  inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); }
67 
72  inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); }
73 
78  inline CreateEventSubscriptionRequest& WithSubscriptionName(const Aws::String& value) { SetSubscriptionName(value); return *this;}
79 
84  inline CreateEventSubscriptionRequest& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;}
85 
90  inline CreateEventSubscriptionRequest& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;}
91 
92 
98  inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
99 
105  inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
106 
112  inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
113 
119  inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); }
120 
126  inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
127 
133  inline CreateEventSubscriptionRequest& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
134 
140  inline CreateEventSubscriptionRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;}
141 
147  inline CreateEventSubscriptionRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
148 
149 
159  inline const Aws::String& GetSourceType() const{ return m_sourceType; }
160 
170  inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
171 
181  inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
182 
192  inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
193 
203  inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
204 
214  inline CreateEventSubscriptionRequest& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
215 
225  inline CreateEventSubscriptionRequest& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;}
226 
236  inline CreateEventSubscriptionRequest& WithSourceType(const char* value) { SetSourceType(value); return *this;}
237 
238 
247  inline const Aws::Vector<Aws::String>& GetEventCategories() const{ return m_eventCategories; }
248 
257  inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; }
258 
267  inline void SetEventCategories(const Aws::Vector<Aws::String>& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; }
268 
277  inline void SetEventCategories(Aws::Vector<Aws::String>&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); }
278 
287  inline CreateEventSubscriptionRequest& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
288 
297  inline CreateEventSubscriptionRequest& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(std::move(value)); return *this;}
298 
307  inline CreateEventSubscriptionRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
308 
317  inline CreateEventSubscriptionRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; }
318 
327  inline CreateEventSubscriptionRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; }
328 
329 
348  inline const Aws::Vector<Aws::String>& GetSourceIds() const{ return m_sourceIds; }
349 
368  inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; }
369 
388  inline void SetSourceIds(const Aws::Vector<Aws::String>& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = value; }
389 
408  inline void SetSourceIds(Aws::Vector<Aws::String>&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = std::move(value); }
409 
428  inline CreateEventSubscriptionRequest& WithSourceIds(const Aws::Vector<Aws::String>& value) { SetSourceIds(value); return *this;}
429 
448  inline CreateEventSubscriptionRequest& WithSourceIds(Aws::Vector<Aws::String>&& value) { SetSourceIds(std::move(value)); return *this;}
449 
468  inline CreateEventSubscriptionRequest& AddSourceIds(const Aws::String& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(value); return *this; }
469 
488  inline CreateEventSubscriptionRequest& AddSourceIds(Aws::String&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(std::move(value)); return *this; }
489 
508  inline CreateEventSubscriptionRequest& AddSourceIds(const char* value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(value); return *this; }
509 
510 
516  inline bool GetEnabled() const{ return m_enabled; }
517 
523  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
524 
530  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
531 
537  inline CreateEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
538 
539 
540 
541  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
542 
543 
544  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
545 
546 
547  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
548 
549 
550  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
551 
552 
553  inline CreateEventSubscriptionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
554 
555 
556  inline CreateEventSubscriptionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
557 
558 
559  inline CreateEventSubscriptionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
560 
561 
562  inline CreateEventSubscriptionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
563 
564  private:
565 
566  Aws::String m_subscriptionName;
567  bool m_subscriptionNameHasBeenSet;
568 
569  Aws::String m_snsTopicArn;
570  bool m_snsTopicArnHasBeenSet;
571 
572  Aws::String m_sourceType;
573  bool m_sourceTypeHasBeenSet;
574 
575  Aws::Vector<Aws::String> m_eventCategories;
576  bool m_eventCategoriesHasBeenSet;
577 
578  Aws::Vector<Aws::String> m_sourceIds;
579  bool m_sourceIdsHasBeenSet;
580 
581  bool m_enabled;
582  bool m_enabledHasBeenSet;
583 
584  Aws::Vector<Tag> m_tags;
585  bool m_tagsHasBeenSet;
586  };
587 
588 } // namespace Model
589 } // namespace RDS
590 } // namespace Aws
Aws::RDS::Model::CreateEventSubscriptionRequest::SetSourceIds
void SetSourceIds(const Aws::Vector< Aws::String > &value)
Definition: CreateEventSubscriptionRequest.h:388
Aws::RDS::Model::CreateEventSubscriptionRequest::AddEventCategories
CreateEventSubscriptionRequest & AddEventCategories(Aws::String &&value)
Definition: CreateEventSubscriptionRequest.h:317
Aws::RDS::Model::Tag
Definition: Tag.h:33
Aws::RDS::Model::CreateEventSubscriptionRequest::AddSourceIds
CreateEventSubscriptionRequest & AddSourceIds(const char *value)
Definition: CreateEventSubscriptionRequest.h:508
Aws::RDS::Model::CreateEventSubscriptionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateEventSubscriptionRequest.h:35
Aws::RDS::Model::CreateEventSubscriptionRequest::SetSourceType
void SetSourceType(const Aws::String &value)
Definition: CreateEventSubscriptionRequest.h:181
Aws::RDS::Model::CreateEventSubscriptionRequest::WithSnsTopicArn
CreateEventSubscriptionRequest & WithSnsTopicArn(const Aws::String &value)
Definition: CreateEventSubscriptionRequest.h:133
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::CreateEventSubscriptionRequest::GetEventCategories
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition: CreateEventSubscriptionRequest.h:247
Aws::RDS::Model::CreateEventSubscriptionRequest::WithTags
CreateEventSubscriptionRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateEventSubscriptionRequest.h:556
Aws::RDS::Model::CreateEventSubscriptionRequest::SetSourceIds
void SetSourceIds(Aws::Vector< Aws::String > &&value)
Definition: CreateEventSubscriptionRequest.h:408
Aws::RDS::Model::CreateEventSubscriptionRequest::WithSubscriptionName
CreateEventSubscriptionRequest & WithSubscriptionName(const char *value)
Definition: CreateEventSubscriptionRequest.h:90
Aws::RDS::Model::CreateEventSubscriptionRequest::WithEnabled
CreateEventSubscriptionRequest & WithEnabled(bool value)
Definition: CreateEventSubscriptionRequest.h:537
Aws::RDS::Model::CreateEventSubscriptionRequest::WithSubscriptionName
CreateEventSubscriptionRequest & WithSubscriptionName(Aws::String &&value)
Definition: CreateEventSubscriptionRequest.h:84
Aws::RDS::Model::CreateEventSubscriptionRequest::AddTags
CreateEventSubscriptionRequest & AddTags(const Tag &value)
Definition: CreateEventSubscriptionRequest.h:559
Aws::RDS::Model::CreateEventSubscriptionRequest::SetSnsTopicArn
void SetSnsTopicArn(const char *value)
Definition: CreateEventSubscriptionRequest.h:126
Aws::RDS::Model::CreateEventSubscriptionRequest::WithSourceIds
CreateEventSubscriptionRequest & WithSourceIds(const Aws::Vector< Aws::String > &value)
Definition: CreateEventSubscriptionRequest.h:428
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::CreateEventSubscriptionRequest::SnsTopicArnHasBeenSet
bool SnsTopicArnHasBeenSet() const
Definition: CreateEventSubscriptionRequest.h:105
Aws::RDS::Model::CreateEventSubscriptionRequest::WithEventCategories
CreateEventSubscriptionRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
Definition: CreateEventSubscriptionRequest.h:297
Aws::RDS::Model::CreateEventSubscriptionRequest::SourceTypeHasBeenSet
bool SourceTypeHasBeenSet() const
Definition: CreateEventSubscriptionRequest.h:170
Aws::RDS::Model::CreateEventSubscriptionRequest::WithEventCategories
CreateEventSubscriptionRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
Definition: CreateEventSubscriptionRequest.h:287
Aws::RDS::Model::CreateEventSubscriptionRequest::WithSourceType
CreateEventSubscriptionRequest & WithSourceType(Aws::String &&value)
Definition: CreateEventSubscriptionRequest.h:225
Aws::RDS::Model::CreateEventSubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(const char *value)
Definition: CreateEventSubscriptionRequest.h:72
Aws::RDS::Model::CreateEventSubscriptionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDS::Model::CreateEventSubscriptionRequest::SetEnabled
void SetEnabled(bool value)
Definition: CreateEventSubscriptionRequest.h:530
Aws::RDS::Model::CreateEventSubscriptionRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateEventSubscriptionRequest.h:550
Aws::RDS::Model::CreateEventSubscriptionRequest::SetSnsTopicArn
void SetSnsTopicArn(const Aws::String &value)
Definition: CreateEventSubscriptionRequest.h:112
Aws::RDS::Model::CreateEventSubscriptionRequest::WithSourceType
CreateEventSubscriptionRequest & WithSourceType(const char *value)
Definition: CreateEventSubscriptionRequest.h:236
AWSVector.h
Aws::RDS::Model::CreateEventSubscriptionRequest::GetEnabled
bool GetEnabled() const
Definition: CreateEventSubscriptionRequest.h:516
Aws::RDS::Model::CreateEventSubscriptionRequest::SubscriptionNameHasBeenSet
bool SubscriptionNameHasBeenSet() const
Definition: CreateEventSubscriptionRequest.h:54
Aws::RDS::Model::CreateEventSubscriptionRequest::GetSourceIds
const Aws::Vector< Aws::String > & GetSourceIds() const
Definition: CreateEventSubscriptionRequest.h:348
RDS_EXPORTS.h
Aws::RDS::Model::CreateEventSubscriptionRequest::AddSourceIds
CreateEventSubscriptionRequest & AddSourceIds(Aws::String &&value)
Definition: CreateEventSubscriptionRequest.h:488
Aws::RDS::Model::CreateEventSubscriptionRequest::WithSubscriptionName
CreateEventSubscriptionRequest & WithSubscriptionName(const Aws::String &value)
Definition: CreateEventSubscriptionRequest.h:78
Aws::RDS::Model::CreateEventSubscriptionRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateEventSubscriptionRequest.h:544
Aws::RDS::Model::CreateEventSubscriptionRequest
Definition: CreateEventSubscriptionRequest.h:27
Aws::RDS::Model::CreateEventSubscriptionRequest::WithSnsTopicArn
CreateEventSubscriptionRequest & WithSnsTopicArn(Aws::String &&value)
Definition: CreateEventSubscriptionRequest.h:140
Aws::RDS::Model::CreateEventSubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(Aws::String &&value)
Definition: CreateEventSubscriptionRequest.h:66
Aws::RDS::Model::CreateEventSubscriptionRequest::WithTags
CreateEventSubscriptionRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateEventSubscriptionRequest.h:553
Aws::RDS::Model::CreateEventSubscriptionRequest::AddEventCategories
CreateEventSubscriptionRequest & AddEventCategories(const char *value)
Definition: CreateEventSubscriptionRequest.h:327
Aws::RDS::Model::CreateEventSubscriptionRequest::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: CreateEventSubscriptionRequest.h:523
AWSString.h
Aws::RDS::Model::CreateEventSubscriptionRequest::SetSnsTopicArn
void SetSnsTopicArn(Aws::String &&value)
Definition: CreateEventSubscriptionRequest.h:119
Aws::RDS::Model::CreateEventSubscriptionRequest::AddTags
CreateEventSubscriptionRequest & AddTags(Tag &&value)
Definition: CreateEventSubscriptionRequest.h:562
Aws::RDS::Model::CreateEventSubscriptionRequest::GetSnsTopicArn
const Aws::String & GetSnsTopicArn() const
Definition: CreateEventSubscriptionRequest.h:98
Aws::RDS::Model::CreateEventSubscriptionRequest::SourceIdsHasBeenSet
bool SourceIdsHasBeenSet() const
Definition: CreateEventSubscriptionRequest.h:368
Aws::RDS::Model::CreateEventSubscriptionRequest::WithSourceIds
CreateEventSubscriptionRequest & WithSourceIds(Aws::Vector< Aws::String > &&value)
Definition: CreateEventSubscriptionRequest.h:448
Aws::RDS::Model::CreateEventSubscriptionRequest::EventCategoriesHasBeenSet
bool EventCategoriesHasBeenSet() const
Definition: CreateEventSubscriptionRequest.h:257
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::CreateEventSubscriptionRequest::WithSnsTopicArn
CreateEventSubscriptionRequest & WithSnsTopicArn(const char *value)
Definition: CreateEventSubscriptionRequest.h:147
Aws::RDS::Model::CreateEventSubscriptionRequest::SetSourceType
void SetSourceType(const char *value)
Definition: CreateEventSubscriptionRequest.h:203
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::CreateEventSubscriptionRequest::GetSourceType
const Aws::String & GetSourceType() const
Definition: CreateEventSubscriptionRequest.h:159
Aws::RDS::Model::CreateEventSubscriptionRequest::CreateEventSubscriptionRequest
CreateEventSubscriptionRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Tag.h
RDSRequest.h
Aws::RDS::Model::CreateEventSubscriptionRequest::GetSubscriptionName
const Aws::String & GetSubscriptionName() const
Definition: CreateEventSubscriptionRequest.h:48
Aws::RDS::Model::CreateEventSubscriptionRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateEventSubscriptionRequest.h:547
Aws::RDS::Model::CreateEventSubscriptionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::CreateEventSubscriptionRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateEventSubscriptionRequest.h:541
Aws::RDS::Model::CreateEventSubscriptionRequest::WithSourceType
CreateEventSubscriptionRequest & WithSourceType(const Aws::String &value)
Definition: CreateEventSubscriptionRequest.h:214
Aws::RDS::Model::CreateEventSubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(const Aws::String &value)
Definition: CreateEventSubscriptionRequest.h:60
Aws::RDS::Model::CreateEventSubscriptionRequest::AddSourceIds
CreateEventSubscriptionRequest & AddSourceIds(const Aws::String &value)
Definition: CreateEventSubscriptionRequest.h:468
Aws::RDS::Model::CreateEventSubscriptionRequest::SetEventCategories
void SetEventCategories(Aws::Vector< Aws::String > &&value)
Definition: CreateEventSubscriptionRequest.h:277
Aws::RDS::Model::CreateEventSubscriptionRequest::SetEventCategories
void SetEventCategories(const Aws::Vector< Aws::String > &value)
Definition: CreateEventSubscriptionRequest.h:267
Aws::RDS::Model::CreateEventSubscriptionRequest::AddEventCategories
CreateEventSubscriptionRequest & AddEventCategories(const Aws::String &value)
Definition: CreateEventSubscriptionRequest.h:307
Aws::RDS::Model::CreateEventSubscriptionRequest::SetSourceType
void SetSourceType(Aws::String &&value)
Definition: CreateEventSubscriptionRequest.h:192