AWS SDK for C++  1.9.154
AWS SDK for C++
ModifyEventSubscriptionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Redshift
16 {
17 namespace 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 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  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 
71  inline ModifyEventSubscriptionRequest& WithSubscriptionName(const Aws::String& value) { SetSubscriptionName(value); return *this;}
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 
270  inline ModifyEventSubscriptionRequest& WithSourceIds(const Aws::Vector<Aws::String>& value) { SetSourceIds(value); return *this;}
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 
346  inline ModifyEventSubscriptionRequest& WithEventCategories(const Aws::Vector<Aws::String>& value) { SetEventCategories(value); return *this;}
347 
353  inline ModifyEventSubscriptionRequest& WithEventCategories(Aws::Vector<Aws::String>&& value) { SetEventCategories(std::move(value)); return *this;}
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;
454 
455  Aws::String m_snsTopicArn;
456  bool m_snsTopicArnHasBeenSet;
457 
458  Aws::String m_sourceType;
459  bool m_sourceTypeHasBeenSet;
460 
461  Aws::Vector<Aws::String> m_sourceIds;
462  bool m_sourceIdsHasBeenSet;
463 
464  Aws::Vector<Aws::String> m_eventCategories;
465  bool m_eventCategoriesHasBeenSet;
466 
467  Aws::String m_severity;
468  bool m_severityHasBeenSet;
469 
470  bool m_enabled;
471  bool m_enabledHasBeenSet;
472  };
473 
474 } // namespace Model
475 } // namespace Redshift
476 } // namespace Aws
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SourceIdsHasBeenSet
bool SourceIdsHasBeenSet() const
Definition: ModifyEventSubscriptionRequest.h:240
Aws::Redshift::Model::ModifyEventSubscriptionRequest::ModifyEventSubscriptionRequest
ModifyEventSubscriptionRequest()
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SetEventCategories
void SetEventCategories(Aws::Vector< Aws::String > &&value)
Definition: ModifyEventSubscriptionRequest.h:339
Aws::Redshift::Model::ModifyEventSubscriptionRequest::WithSeverity
ModifyEventSubscriptionRequest & WithSeverity(const Aws::String &value)
Definition: ModifyEventSubscriptionRequest.h:411
Aws::Redshift::Model::ModifyEventSubscriptionRequest::AddSourceIds
ModifyEventSubscriptionRequest & AddSourceIds(Aws::String &&value)
Definition: ModifyEventSubscriptionRequest.h:300
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(const Aws::String &value)
Definition: ModifyEventSubscriptionRequest.h:56
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SnsTopicArnHasBeenSet
bool SnsTopicArnHasBeenSet() const
Definition: ModifyEventSubscriptionRequest.h:94
Aws::Redshift::Model::ModifyEventSubscriptionRequest::GetEventCategories
const Aws::Vector< Aws::String > & GetEventCategories() const
Definition: ModifyEventSubscriptionRequest.h:318
Aws::Redshift::Model::ModifyEventSubscriptionRequest::WithSnsTopicArn
ModifyEventSubscriptionRequest & WithSnsTopicArn(const Aws::String &value)
Definition: ModifyEventSubscriptionRequest.h:118
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SetSourceType
void SetSourceType(Aws::String &&value)
Definition: ModifyEventSubscriptionRequest.h:175
Aws::Redshift::Model::ModifyEventSubscriptionRequest::GetSubscriptionName
const Aws::String & GetSubscriptionName() const
Definition: ModifyEventSubscriptionRequest.h:46
Aws::Redshift::Model::ModifyEventSubscriptionRequest::EventCategoriesHasBeenSet
bool EventCategoriesHasBeenSet() const
Definition: ModifyEventSubscriptionRequest.h:325
Aws::Redshift::Model::ModifyEventSubscriptionRequest::GetSourceType
const Aws::String & GetSourceType() const
Definition: ModifyEventSubscriptionRequest.h:142
Aws::Redshift::Model::ModifyEventSubscriptionRequest::GetSourceIds
const Aws::Vector< Aws::String > & GetSourceIds() const
Definition: ModifyEventSubscriptionRequest.h:230
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SetSnsTopicArn
void SetSnsTopicArn(const Aws::String &value)
Definition: ModifyEventSubscriptionRequest.h:100
Aws::Redshift::Model::ModifyEventSubscriptionRequest::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: ModifyEventSubscriptionRequest.h:436
Aws::Redshift::Model::ModifyEventSubscriptionRequest::WithSourceType
ModifyEventSubscriptionRequest & WithSourceType(const Aws::String &value)
Definition: ModifyEventSubscriptionRequest.h:197
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SetSourceType
void SetSourceType(const Aws::String &value)
Definition: ModifyEventSubscriptionRequest.h:164
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
RedshiftRequest.h
AWSVector.h
Aws::Redshift::Model::ModifyEventSubscriptionRequest::GetEnabled
bool GetEnabled() const
Definition: ModifyEventSubscriptionRequest.h:430
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SubscriptionNameHasBeenSet
bool SubscriptionNameHasBeenSet() const
Definition: ModifyEventSubscriptionRequest.h:51
Aws::Redshift::Model::ModifyEventSubscriptionRequest::WithSubscriptionName
ModifyEventSubscriptionRequest & WithSubscriptionName(Aws::String &&value)
Definition: ModifyEventSubscriptionRequest.h:76
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SetSnsTopicArn
void SetSnsTopicArn(Aws::String &&value)
Definition: ModifyEventSubscriptionRequest.h:106
Aws::Redshift::Model::ModifyEventSubscriptionRequest::WithSeverity
ModifyEventSubscriptionRequest & WithSeverity(Aws::String &&value)
Definition: ModifyEventSubscriptionRequest.h:417
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SetEventCategories
void SetEventCategories(const Aws::Vector< Aws::String > &value)
Definition: ModifyEventSubscriptionRequest.h:332
Aws::Redshift::Model::ModifyEventSubscriptionRequest::AddSourceIds
ModifyEventSubscriptionRequest & AddSourceIds(const Aws::String &value)
Definition: ModifyEventSubscriptionRequest.h:290
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SetSourceIds
void SetSourceIds(const Aws::Vector< Aws::String > &value)
Definition: ModifyEventSubscriptionRequest.h:250
Aws::Redshift::Model::ModifyEventSubscriptionRequest::WithSeverity
ModifyEventSubscriptionRequest & WithSeverity(const char *value)
Definition: ModifyEventSubscriptionRequest.h:423
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SourceTypeHasBeenSet
bool SourceTypeHasBeenSet() const
Definition: ModifyEventSubscriptionRequest.h:153
Aws::Redshift::Model::ModifyEventSubscriptionRequest::WithSnsTopicArn
ModifyEventSubscriptionRequest & WithSnsTopicArn(Aws::String &&value)
Definition: ModifyEventSubscriptionRequest.h:124
Aws::Redshift::Model::ModifyEventSubscriptionRequest::WithSourceIds
ModifyEventSubscriptionRequest & WithSourceIds(Aws::Vector< Aws::String > &&value)
Definition: ModifyEventSubscriptionRequest.h:280
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SetSourceType
void SetSourceType(const char *value)
Definition: ModifyEventSubscriptionRequest.h:186
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::ModifyEventSubscriptionRequest::WithSubscriptionName
ModifyEventSubscriptionRequest & WithSubscriptionName(const char *value)
Definition: ModifyEventSubscriptionRequest.h:81
Aws::Redshift::Model::ModifyEventSubscriptionRequest::WithSourceType
ModifyEventSubscriptionRequest & WithSourceType(Aws::String &&value)
Definition: ModifyEventSubscriptionRequest.h:208
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::ModifyEventSubscriptionRequest::WithEnabled
ModifyEventSubscriptionRequest & WithEnabled(bool value)
Definition: ModifyEventSubscriptionRequest.h:448
AWSString.h
Aws::Redshift::Model::ModifyEventSubscriptionRequest::AddEventCategories
ModifyEventSubscriptionRequest & AddEventCategories(const char *value)
Definition: ModifyEventSubscriptionRequest.h:374
Aws::Redshift::Model::ModifyEventSubscriptionRequest::WithEventCategories
ModifyEventSubscriptionRequest & WithEventCategories(Aws::Vector< Aws::String > &&value)
Definition: ModifyEventSubscriptionRequest.h:353
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(const char *value)
Definition: ModifyEventSubscriptionRequest.h:66
Aws::Redshift::Model::ModifyEventSubscriptionRequest::WithSourceType
ModifyEventSubscriptionRequest & WithSourceType(const char *value)
Definition: ModifyEventSubscriptionRequest.h:219
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SetSeverity
void SetSeverity(Aws::String &&value)
Definition: ModifyEventSubscriptionRequest.h:399
Aws::Redshift::Model::ModifyEventSubscriptionRequest::WithSubscriptionName
ModifyEventSubscriptionRequest & WithSubscriptionName(const Aws::String &value)
Definition: ModifyEventSubscriptionRequest.h:71
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SetSubscriptionName
void SetSubscriptionName(Aws::String &&value)
Definition: ModifyEventSubscriptionRequest.h:61
Aws::Redshift::Model::ModifyEventSubscriptionRequest::WithSourceIds
ModifyEventSubscriptionRequest & WithSourceIds(const Aws::Vector< Aws::String > &value)
Definition: ModifyEventSubscriptionRequest.h:270
Aws::Redshift::Model::ModifyEventSubscriptionRequest::WithEventCategories
ModifyEventSubscriptionRequest & WithEventCategories(const Aws::Vector< Aws::String > &value)
Definition: ModifyEventSubscriptionRequest.h:346
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::ModifyEventSubscriptionRequest
Definition: ModifyEventSubscriptionRequest.h:26
Aws::Redshift::Model::ModifyEventSubscriptionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyEventSubscriptionRequest.h:34
Redshift_EXPORTS.h
Aws::Redshift::Model::ModifyEventSubscriptionRequest::WithSnsTopicArn
ModifyEventSubscriptionRequest & WithSnsTopicArn(const char *value)
Definition: ModifyEventSubscriptionRequest.h:130
Aws::Redshift::Model::ModifyEventSubscriptionRequest::GetSnsTopicArn
const Aws::String & GetSnsTopicArn() const
Definition: ModifyEventSubscriptionRequest.h:88
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::ModifyEventSubscriptionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SetSeverity
void SetSeverity(const char *value)
Definition: ModifyEventSubscriptionRequest.h:405
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SeverityHasBeenSet
bool SeverityHasBeenSet() const
Definition: ModifyEventSubscriptionRequest.h:387
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SetEnabled
void SetEnabled(bool value)
Definition: ModifyEventSubscriptionRequest.h:442
Aws::Redshift::Model::ModifyEventSubscriptionRequest::AddSourceIds
ModifyEventSubscriptionRequest & AddSourceIds(const char *value)
Definition: ModifyEventSubscriptionRequest.h:310
Aws::Redshift::Model::ModifyEventSubscriptionRequest::AddEventCategories
ModifyEventSubscriptionRequest & AddEventCategories(Aws::String &&value)
Definition: ModifyEventSubscriptionRequest.h:367
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SetSeverity
void SetSeverity(const Aws::String &value)
Definition: ModifyEventSubscriptionRequest.h:393
Aws::Redshift::Model::ModifyEventSubscriptionRequest::AddEventCategories
ModifyEventSubscriptionRequest & AddEventCategories(const Aws::String &value)
Definition: ModifyEventSubscriptionRequest.h:360
Aws::Redshift::Model::ModifyEventSubscriptionRequest::GetSeverity
const Aws::String & GetSeverity() const
Definition: ModifyEventSubscriptionRequest.h:381
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SetSnsTopicArn
void SetSnsTopicArn(const char *value)
Definition: ModifyEventSubscriptionRequest.h:112
Aws::Redshift::Model::ModifyEventSubscriptionRequest::SetSourceIds
void SetSourceIds(Aws::Vector< Aws::String > &&value)
Definition: ModifyEventSubscriptionRequest.h:260