7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/redshift/model/Tag.h>
52 template<
typename CustomerAwsIdT = Aws::String>
53 void SetCustomerAwsId(CustomerAwsIdT&& value) { m_customerAwsIdHasBeenSet =
true; m_customerAwsId = std::forward<CustomerAwsIdT>(value); }
54 template<
typename CustomerAwsIdT = Aws::String>
64 template<
typename CustSubscriptionIdT = Aws::String>
65 void SetCustSubscriptionId(CustSubscriptionIdT&& value) { m_custSubscriptionIdHasBeenSet =
true; m_custSubscriptionId = std::forward<CustSubscriptionIdT>(value); }
66 template<
typename CustSubscriptionIdT = Aws::String>
77 template<
typename SnsTopicArnT = Aws::String>
78 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet =
true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
79 template<
typename SnsTopicArnT = Aws::String>
94 template<
typename StatusT = Aws::String>
95 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
96 template<
typename StatusT = Aws::String>
107 template<
typename SubscriptionCreationTimeT = Aws::Utils::DateTime>
108 void SetSubscriptionCreationTime(SubscriptionCreationTimeT&& value) { m_subscriptionCreationTimeHasBeenSet =
true; m_subscriptionCreationTime = std::forward<SubscriptionCreationTimeT>(value); }
109 template<
typename SubscriptionCreationTimeT = Aws::Utils::DateTime>
121 template<
typename SourceTypeT = Aws::String>
122 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet =
true; m_sourceType = std::forward<SourceTypeT>(value); }
123 template<
typename SourceTypeT = Aws::String>
134 template<
typename SourceIdsListT = Aws::Vector<Aws::String>>
135 void SetSourceIdsList(SourceIdsListT&& value) { m_sourceIdsListHasBeenSet =
true; m_sourceIdsList = std::forward<SourceIdsListT>(value); }
136 template<
typename SourceIdsListT = Aws::Vector<Aws::String>>
138 template<
typename SourceIdsListT = Aws::String>
139 EventSubscription&
AddSourceIdsList(SourceIdsListT&& value) { m_sourceIdsListHasBeenSet =
true; m_sourceIdsList.emplace_back(std::forward<SourceIdsListT>(value));
return *
this; }
150 template<
typename EventCategoriesListT = Aws::Vector<Aws::String>>
151 void SetEventCategoriesList(EventCategoriesListT&& value) { m_eventCategoriesListHasBeenSet =
true; m_eventCategoriesList = std::forward<EventCategoriesListT>(value); }
152 template<
typename EventCategoriesListT = Aws::Vector<Aws::String>>
154 template<
typename EventCategoriesListT = Aws::String>
155 EventSubscription&
AddEventCategoriesList(EventCategoriesListT&& value) { m_eventCategoriesListHasBeenSet =
true; m_eventCategoriesList.emplace_back(std::forward<EventCategoriesListT>(value));
return *
this; }
165 template<
typename SeverityT = Aws::String>
166 void SetSeverity(SeverityT&& value) { m_severityHasBeenSet =
true; m_severity = std::forward<SeverityT>(value); }
167 template<
typename SeverityT = Aws::String>
178 inline void SetEnabled(
bool value) { m_enabledHasBeenSet =
true; m_enabled = value; }
188 template<
typename TagsT = Aws::Vector<Tag>>
189 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
190 template<
typename TagsT = Aws::Vector<Tag>>
192 template<
typename TagsT = Tag>
193 EventSubscription&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
198 bool m_customerAwsIdHasBeenSet =
false;
201 bool m_custSubscriptionIdHasBeenSet =
false;
204 bool m_snsTopicArnHasBeenSet =
false;
207 bool m_statusHasBeenSet =
false;
210 bool m_subscriptionCreationTimeHasBeenSet =
false;
213 bool m_sourceTypeHasBeenSet =
false;
216 bool m_sourceIdsListHasBeenSet =
false;
219 bool m_eventCategoriesListHasBeenSet =
false;
222 bool m_severityHasBeenSet =
false;
224 bool m_enabled{
false};
225 bool m_enabledHasBeenSet =
false;
228 bool m_tagsHasBeenSet =
false;
const Aws::String & GetSnsTopicArn() const
EventSubscription & WithEventCategoriesList(EventCategoriesListT &&value)
bool StatusHasBeenSet() const
void SetStatus(StatusT &&value)
EventSubscription & WithEnabled(bool value)
EventSubscription & WithSeverity(SeverityT &&value)
void SetSnsTopicArn(SnsTopicArnT &&value)
void SetTags(TagsT &&value)
EventSubscription & WithSourceType(SourceTypeT &&value)
bool SourceTypeHasBeenSet() const
EventSubscription & WithStatus(StatusT &&value)
EventSubscription & WithCustSubscriptionId(CustSubscriptionIdT &&value)
EventSubscription & AddEventCategoriesList(EventCategoriesListT &&value)
void SetEventCategoriesList(EventCategoriesListT &&value)
const Aws::Vector< Aws::String > & GetEventCategoriesList() const
void SetSourceIdsList(SourceIdsListT &&value)
EventSubscription & AddTags(TagsT &&value)
bool CustSubscriptionIdHasBeenSet() const
const Aws::String & GetSeverity() const
EventSubscription & WithCustomerAwsId(CustomerAwsIdT &&value)
void SetSubscriptionCreationTime(SubscriptionCreationTimeT &&value)
void SetSourceType(SourceTypeT &&value)
const Aws::String & GetCustomerAwsId() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCustSubscriptionId(CustSubscriptionIdT &&value)
AWS_REDSHIFT_API EventSubscription(const Aws::Utils::Xml::XmlNode &xmlNode)
bool EnabledHasBeenSet() const
EventSubscription & WithSourceIdsList(SourceIdsListT &&value)
const Aws::String & GetSourceType() const
const Aws::Vector< Tag > & GetTags() const
EventSubscription & AddSourceIdsList(SourceIdsListT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool CustomerAwsIdHasBeenSet() const
bool EventCategoriesListHasBeenSet() const
void SetEnabled(bool value)
const Aws::Vector< Aws::String > & GetSourceIdsList() const
bool SourceIdsListHasBeenSet() const
bool SubscriptionCreationTimeHasBeenSet() const
bool SeverityHasBeenSet() const
const Aws::String & GetCustSubscriptionId() const
AWS_REDSHIFT_API EventSubscription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EventSubscription & WithSubscriptionCreationTime(SubscriptionCreationTimeT &&value)
bool SnsTopicArnHasBeenSet() const
bool TagsHasBeenSet() const
EventSubscription & WithTags(TagsT &&value)
const Aws::Utils::DateTime & GetSubscriptionCreationTime() const
void SetSeverity(SeverityT &&value)
AWS_REDSHIFT_API EventSubscription()=default
void SetCustomerAwsId(CustomerAwsIdT &&value)
const Aws::String & GetStatus() const
EventSubscription & WithSnsTopicArn(SnsTopicArnT &&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