7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/Redshift_EXPORTS.h>
12#include <aws/redshift/model/Tag.h>
46 template <
typename CustomerAwsIdT = Aws::String>
48 m_customerAwsIdHasBeenSet =
true;
49 m_customerAwsId = std::forward<CustomerAwsIdT>(value);
51 template <
typename CustomerAwsIdT = Aws::String>
64 template <
typename CustSubscriptionIdT = Aws::String>
66 m_custSubscriptionIdHasBeenSet =
true;
67 m_custSubscriptionId = std::forward<CustSubscriptionIdT>(value);
69 template <
typename CustSubscriptionIdT = Aws::String>
83 template <
typename SnsTopicArnT = Aws::String>
85 m_snsTopicArnHasBeenSet =
true;
86 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
88 template <
typename SnsTopicArnT = Aws::String>
106 template <
typename StatusT = Aws::String>
108 m_statusHasBeenSet =
true;
109 m_status = std::forward<StatusT>(value);
111 template <
typename StatusT = Aws::String>
125 template <
typename SubscriptionCreationTimeT = Aws::Utils::DateTime>
127 m_subscriptionCreationTimeHasBeenSet =
true;
128 m_subscriptionCreationTime = std::forward<SubscriptionCreationTimeT>(value);
130 template <
typename SubscriptionCreationTimeT = Aws::Utils::DateTime>
145 template <
typename SourceTypeT = Aws::String>
147 m_sourceTypeHasBeenSet =
true;
148 m_sourceType = std::forward<SourceTypeT>(value);
150 template <
typename SourceTypeT = Aws::String>
164 template <
typename SourceIdsListT = Aws::Vector<Aws::String>>
166 m_sourceIdsListHasBeenSet =
true;
167 m_sourceIdsList = std::forward<SourceIdsListT>(value);
169 template <
typename SourceIdsListT = Aws::Vector<Aws::String>>
174 template <
typename SourceIdsListT = Aws::String>
176 m_sourceIdsListHasBeenSet =
true;
177 m_sourceIdsList.emplace_back(std::forward<SourceIdsListT>(value));
190 template <
typename EventCategoriesListT = Aws::Vector<Aws::String>>
192 m_eventCategoriesListHasBeenSet =
true;
193 m_eventCategoriesList = std::forward<EventCategoriesListT>(value);
195 template <
typename EventCategoriesListT = Aws::Vector<Aws::String>>
200 template <
typename EventCategoriesListT = Aws::String>
202 m_eventCategoriesListHasBeenSet =
true;
203 m_eventCategoriesList.emplace_back(std::forward<EventCategoriesListT>(value));
215 template <
typename SeverityT = Aws::String>
217 m_severityHasBeenSet =
true;
218 m_severity = std::forward<SeverityT>(value);
220 template <
typename SeverityT = Aws::String>
235 m_enabledHasBeenSet =
true;
250 template <
typename TagsT = Aws::Vector<Tag>>
252 m_tagsHasBeenSet =
true;
253 m_tags = std::forward<TagsT>(value);
255 template <
typename TagsT = Aws::Vector<Tag>>
257 SetTags(std::forward<TagsT>(value));
260 template <
typename TagsT = Tag>
262 m_tagsHasBeenSet =
true;
263 m_tags.emplace_back(std::forward<TagsT>(value));
286 bool m_enabled{
false};
289 bool m_customerAwsIdHasBeenSet =
false;
290 bool m_custSubscriptionIdHasBeenSet =
false;
291 bool m_snsTopicArnHasBeenSet =
false;
292 bool m_statusHasBeenSet =
false;
293 bool m_subscriptionCreationTimeHasBeenSet =
false;
294 bool m_sourceTypeHasBeenSet =
false;
295 bool m_sourceIdsListHasBeenSet =
false;
296 bool m_eventCategoriesListHasBeenSet =
false;
297 bool m_severityHasBeenSet =
false;
298 bool m_enabledHasBeenSet =
false;
299 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