AWS SDK for C++  0.14.3
AWS SDK for C++
EventSubscription.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 #include <aws/redshift/model/Tag.h>
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Xml
28 {
29  class XmlNode;
30 } // namespace Xml
31 } // namespace Utils
32 namespace Redshift
33 {
34 namespace Model
35 {
36 
41  {
42  public:
45  EventSubscription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46 
47  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48  void OutputToStream(Aws::OStream& oStream, const char* location) const;
49 
54  inline const Aws::String& GetCustomerAwsId() const{ return m_customerAwsId; }
55 
60  inline void SetCustomerAwsId(const Aws::String& value) { m_customerAwsIdHasBeenSet = true; m_customerAwsId = value; }
61 
66  inline void SetCustomerAwsId(Aws::String&& value) { m_customerAwsIdHasBeenSet = true; m_customerAwsId = value; }
67 
72  inline void SetCustomerAwsId(const char* value) { m_customerAwsIdHasBeenSet = true; m_customerAwsId.assign(value); }
73 
78  inline EventSubscription& WithCustomerAwsId(const Aws::String& value) { SetCustomerAwsId(value); return *this;}
79 
84  inline EventSubscription& WithCustomerAwsId(Aws::String&& value) { SetCustomerAwsId(value); return *this;}
85 
90  inline EventSubscription& WithCustomerAwsId(const char* value) { SetCustomerAwsId(value); return *this;}
91 
95  inline const Aws::String& GetCustSubscriptionId() const{ return m_custSubscriptionId; }
96 
100  inline void SetCustSubscriptionId(const Aws::String& value) { m_custSubscriptionIdHasBeenSet = true; m_custSubscriptionId = value; }
101 
105  inline void SetCustSubscriptionId(Aws::String&& value) { m_custSubscriptionIdHasBeenSet = true; m_custSubscriptionId = value; }
106 
110  inline void SetCustSubscriptionId(const char* value) { m_custSubscriptionIdHasBeenSet = true; m_custSubscriptionId.assign(value); }
111 
115  inline EventSubscription& WithCustSubscriptionId(const Aws::String& value) { SetCustSubscriptionId(value); return *this;}
116 
120  inline EventSubscription& WithCustSubscriptionId(Aws::String&& value) { SetCustSubscriptionId(value); return *this;}
121 
125  inline EventSubscription& WithCustSubscriptionId(const char* value) { SetCustSubscriptionId(value); return *this;}
126 
131  inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; }
132 
137  inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
138 
143  inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; }
144 
149  inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); }
150 
155  inline EventSubscription& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;}
156 
161  inline EventSubscription& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(value); return *this;}
162 
167  inline EventSubscription& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;}
168 
177  inline const Aws::String& GetStatus() const{ return m_status; }
178 
187  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
188 
197  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
198 
207  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
208 
217  inline EventSubscription& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
218 
227  inline EventSubscription& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
228 
237  inline EventSubscription& WithStatus(const char* value) { SetStatus(value); return *this;}
238 
243  inline const Aws::Utils::DateTime& GetSubscriptionCreationTime() const{ return m_subscriptionCreationTime; }
244 
249  inline void SetSubscriptionCreationTime(const Aws::Utils::DateTime& value) { m_subscriptionCreationTimeHasBeenSet = true; m_subscriptionCreationTime = value; }
250 
255  inline void SetSubscriptionCreationTime(Aws::Utils::DateTime&& value) { m_subscriptionCreationTimeHasBeenSet = true; m_subscriptionCreationTime = value; }
256 
261  inline EventSubscription& WithSubscriptionCreationTime(const Aws::Utils::DateTime& value) { SetSubscriptionCreationTime(value); return *this;}
262 
267  inline EventSubscription& WithSubscriptionCreationTime(Aws::Utils::DateTime&& value) { SetSubscriptionCreationTime(value); return *this;}
268 
273  inline const Aws::String& GetSourceType() const{ return m_sourceType; }
274 
279  inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
280 
285  inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
286 
291  inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); }
292 
297  inline EventSubscription& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;}
298 
303  inline EventSubscription& WithSourceType(Aws::String&& value) { SetSourceType(value); return *this;}
304 
309  inline EventSubscription& WithSourceType(const char* value) { SetSourceType(value); return *this;}
310 
315  inline const Aws::Vector<Aws::String>& GetSourceIdsList() const{ return m_sourceIdsList; }
316 
321  inline void SetSourceIdsList(const Aws::Vector<Aws::String>& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList = value; }
322 
327  inline void SetSourceIdsList(Aws::Vector<Aws::String>&& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList = value; }
328 
333  inline EventSubscription& WithSourceIdsList(const Aws::Vector<Aws::String>& value) { SetSourceIdsList(value); return *this;}
334 
339  inline EventSubscription& WithSourceIdsList(Aws::Vector<Aws::String>&& value) { SetSourceIdsList(value); return *this;}
340 
345  inline EventSubscription& AddSourceIdsList(const Aws::String& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList.push_back(value); return *this; }
346 
351  inline EventSubscription& AddSourceIdsList(Aws::String&& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList.push_back(value); return *this; }
352 
357  inline EventSubscription& AddSourceIdsList(const char* value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList.push_back(value); return *this; }
358 
364  inline const Aws::Vector<Aws::String>& GetEventCategoriesList() const{ return m_eventCategoriesList; }
365 
371  inline void SetEventCategoriesList(const Aws::Vector<Aws::String>& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList = value; }
372 
378  inline void SetEventCategoriesList(Aws::Vector<Aws::String>&& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList = value; }
379 
385  inline EventSubscription& WithEventCategoriesList(const Aws::Vector<Aws::String>& value) { SetEventCategoriesList(value); return *this;}
386 
392  inline EventSubscription& WithEventCategoriesList(Aws::Vector<Aws::String>&& value) { SetEventCategoriesList(value); return *this;}
393 
399  inline EventSubscription& AddEventCategoriesList(const Aws::String& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList.push_back(value); return *this; }
400 
406  inline EventSubscription& AddEventCategoriesList(Aws::String&& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList.push_back(value); return *this; }
407 
413  inline EventSubscription& AddEventCategoriesList(const char* value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList.push_back(value); return *this; }
414 
419  inline const Aws::String& GetSeverity() const{ return m_severity; }
420 
425  inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
426 
431  inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = value; }
432 
437  inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
438 
443  inline EventSubscription& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
444 
449  inline EventSubscription& WithSeverity(Aws::String&& value) { SetSeverity(value); return *this;}
450 
455  inline EventSubscription& WithSeverity(const char* value) { SetSeverity(value); return *this;}
456 
461  inline bool GetEnabled() const{ return m_enabled; }
462 
467  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
468 
473  inline EventSubscription& WithEnabled(bool value) { SetEnabled(value); return *this;}
474 
478  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
479 
483  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
484 
488  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
489 
493  inline EventSubscription& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
494 
498  inline EventSubscription& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
499 
503  inline EventSubscription& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
504 
508  inline EventSubscription& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
509 
510  private:
511  Aws::String m_customerAwsId;
512  bool m_customerAwsIdHasBeenSet;
513  Aws::String m_custSubscriptionId;
514  bool m_custSubscriptionIdHasBeenSet;
515  Aws::String m_snsTopicArn;
516  bool m_snsTopicArnHasBeenSet;
517  Aws::String m_status;
518  bool m_statusHasBeenSet;
519  Aws::Utils::DateTime m_subscriptionCreationTime;
520  bool m_subscriptionCreationTimeHasBeenSet;
521  Aws::String m_sourceType;
522  bool m_sourceTypeHasBeenSet;
523  Aws::Vector<Aws::String> m_sourceIdsList;
524  bool m_sourceIdsListHasBeenSet;
525  Aws::Vector<Aws::String> m_eventCategoriesList;
526  bool m_eventCategoriesListHasBeenSet;
527  Aws::String m_severity;
528  bool m_severityHasBeenSet;
529  bool m_enabled;
530  bool m_enabledHasBeenSet;
531  Aws::Vector<Tag> m_tags;
532  bool m_tagsHasBeenSet;
533  };
534 
535 } // namespace Model
536 } // namespace Redshift
537 } // namespace Aws
EventSubscription & WithCustSubscriptionId(const char *value)
void SetCustSubscriptionId(const char *value)
EventSubscription & WithSourceIdsList(Aws::Vector< Aws::String > &&value)
EventSubscription & WithEventCategoriesList(Aws::Vector< Aws::String > &&value)
EventSubscription & WithStatus(const Aws::String &value)
EventSubscription & WithTags(const Aws::Vector< Tag > &value)
EventSubscription & WithEnabled(bool value)
const Aws::String & GetSeverity() const
const Aws::Vector< Aws::String > & GetSourceIdsList() const
EventSubscription & WithCustomerAwsId(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
void SetSubscriptionCreationTime(const Aws::Utils::DateTime &value)
EventSubscription & WithStatus(const char *value)
void SetCustSubscriptionId(Aws::String &&value)
EventSubscription & WithSourceType(const Aws::String &value)
EventSubscription & WithTags(Aws::Vector< Tag > &&value)
void SetSourceIdsList(Aws::Vector< Aws::String > &&value)
void SetSnsTopicArn(const Aws::String &value)
const Aws::String & GetSourceType() const
EventSubscription & WithCustomerAwsId(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
EventSubscription & WithCustSubscriptionId(Aws::String &&value)
void SetCustomerAwsId(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetSnsTopicArn(Aws::String &&value)
EventSubscription & AddTags(Tag &&value)
void SetTags(const Aws::Vector< Tag > &value)
void SetSourceType(const Aws::String &value)
EventSubscription & WithSeverity(const Aws::String &value)
EventSubscription & WithSnsTopicArn(const Aws::String &value)
const Aws::String & GetSnsTopicArn() const
EventSubscription & AddTags(const Tag &value)
EventSubscription & WithSourceType(Aws::String &&value)
EventSubscription & WithSnsTopicArn(const char *value)
EventSubscription & WithCustomerAwsId(Aws::String &&value)
#define AWS_REDSHIFT_API
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
EventSubscription & WithSourceIdsList(const Aws::Vector< Aws::String > &value)
EventSubscription & AddSourceIdsList(const Aws::String &value)
void SetEventCategoriesList(Aws::Vector< Aws::String > &&value)
EventSubscription & WithStatus(Aws::String &&value)
EventSubscription & AddEventCategoriesList(Aws::String &&value)
void SetCustomerAwsId(Aws::String &&value)
EventSubscription & WithSubscriptionCreationTime(Aws::Utils::DateTime &&value)
void SetSeverity(const Aws::String &value)
EventSubscription & AddSourceIdsList(Aws::String &&value)
const Aws::String & GetCustSubscriptionId() const
const Aws::Utils::DateTime & GetSubscriptionCreationTime() const
EventSubscription & AddEventCategoriesList(const Aws::String &value)
EventSubscription & WithCustSubscriptionId(const Aws::String &value)
const Aws::Vector< Aws::String > & GetEventCategoriesList() const
void SetEventCategoriesList(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
EventSubscription & WithEventCategoriesList(const Aws::Vector< Aws::String > &value)
void SetSubscriptionCreationTime(Aws::Utils::DateTime &&value)
const Aws::String & GetStatus() const
EventSubscription & AddEventCategoriesList(const char *value)
EventSubscription & WithSeverity(Aws::String &&value)
void SetSourceIdsList(const Aws::Vector< Aws::String > &value)
void SetStatus(const Aws::String &value)
const Aws::String & GetCustomerAwsId() const
EventSubscription & AddSourceIdsList(const char *value)
EventSubscription & WithSnsTopicArn(Aws::String &&value)
void SetCustSubscriptionId(const Aws::String &value)
EventSubscription & WithSubscriptionCreationTime(const Aws::Utils::DateTime &value)
EventSubscription & WithSourceType(const char *value)
JSON (JavaScript Object Notation).
EventSubscription & WithSeverity(const char *value)