7#include <aws/docdb/DocDB_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/memory/stl/AWSVector.h>
51 template<
typename CustomerAwsIdT = Aws::String>
52 void SetCustomerAwsId(CustomerAwsIdT&& value) { m_customerAwsIdHasBeenSet =
true; m_customerAwsId = std::forward<CustomerAwsIdT>(value); }
53 template<
typename CustomerAwsIdT = Aws::String>
63 template<
typename CustSubscriptionIdT = Aws::String>
64 void SetCustSubscriptionId(CustSubscriptionIdT&& value) { m_custSubscriptionIdHasBeenSet =
true; m_custSubscriptionId = std::forward<CustSubscriptionIdT>(value); }
65 template<
typename CustSubscriptionIdT = Aws::String>
75 template<
typename SnsTopicArnT = Aws::String>
76 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet =
true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
77 template<
typename SnsTopicArnT = Aws::String>
93 template<
typename StatusT = Aws::String>
94 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
95 template<
typename StatusT = Aws::String>
106 template<
typename SubscriptionCreationTimeT = Aws::String>
107 void SetSubscriptionCreationTime(SubscriptionCreationTimeT&& value) { m_subscriptionCreationTimeHasBeenSet =
true; m_subscriptionCreationTime = std::forward<SubscriptionCreationTimeT>(value); }
108 template<
typename SubscriptionCreationTimeT = Aws::String>
119 template<
typename SourceTypeT = Aws::String>
120 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet =
true; m_sourceType = std::forward<SourceTypeT>(value); }
121 template<
typename SourceTypeT = Aws::String>
132 template<
typename SourceIdsListT = Aws::Vector<Aws::String>>
133 void SetSourceIdsList(SourceIdsListT&& value) { m_sourceIdsListHasBeenSet =
true; m_sourceIdsList = std::forward<SourceIdsListT>(value); }
134 template<
typename SourceIdsListT = Aws::Vector<Aws::String>>
136 template<
typename SourceIdsListT = Aws::String>
137 EventSubscription&
AddSourceIdsList(SourceIdsListT&& value) { m_sourceIdsListHasBeenSet =
true; m_sourceIdsList.emplace_back(std::forward<SourceIdsListT>(value));
return *
this; }
147 template<
typename EventCategoriesListT = Aws::Vector<Aws::String>>
148 void SetEventCategoriesList(EventCategoriesListT&& value) { m_eventCategoriesListHasBeenSet =
true; m_eventCategoriesList = std::forward<EventCategoriesListT>(value); }
149 template<
typename EventCategoriesListT = Aws::Vector<Aws::String>>
151 template<
typename EventCategoriesListT = Aws::String>
152 EventSubscription&
AddEventCategoriesList(EventCategoriesListT&& value) { m_eventCategoriesListHasBeenSet =
true; m_eventCategoriesList.emplace_back(std::forward<EventCategoriesListT>(value));
return *
this; }
162 inline void SetEnabled(
bool value) { m_enabledHasBeenSet =
true; m_enabled = value; }
172 template<
typename EventSubscriptionArnT = Aws::String>
173 void SetEventSubscriptionArn(EventSubscriptionArnT&& value) { m_eventSubscriptionArnHasBeenSet =
true; m_eventSubscriptionArn = std::forward<EventSubscriptionArnT>(value); }
174 template<
typename EventSubscriptionArnT = Aws::String>
180 bool m_customerAwsIdHasBeenSet =
false;
183 bool m_custSubscriptionIdHasBeenSet =
false;
186 bool m_snsTopicArnHasBeenSet =
false;
189 bool m_statusHasBeenSet =
false;
192 bool m_subscriptionCreationTimeHasBeenSet =
false;
195 bool m_sourceTypeHasBeenSet =
false;
198 bool m_sourceIdsListHasBeenSet =
false;
201 bool m_eventCategoriesListHasBeenSet =
false;
203 bool m_enabled{
false};
204 bool m_enabledHasBeenSet =
false;
207 bool m_eventSubscriptionArnHasBeenSet =
false;
void SetEventSubscriptionArn(EventSubscriptionArnT &&value)
const Aws::String & GetEventSubscriptionArn() const
const Aws::String & GetSourceType() const
EventSubscription & AddEventCategoriesList(EventCategoriesListT &&value)
void SetEventCategoriesList(EventCategoriesListT &&value)
bool SourceTypeHasBeenSet() const
const Aws::String & GetSnsTopicArn() const
const Aws::String & GetStatus() const
EventSubscription & WithSnsTopicArn(SnsTopicArnT &&value)
AWS_DOCDB_API EventSubscription()=default
EventSubscription & WithEnabled(bool value)
bool CustSubscriptionIdHasBeenSet() const
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool EnabledHasBeenSet() const
EventSubscription & WithEventCategoriesList(EventCategoriesListT &&value)
bool StatusHasBeenSet() const
bool SourceIdsListHasBeenSet() const
EventSubscription & WithEventSubscriptionArn(EventSubscriptionArnT &&value)
const Aws::Vector< Aws::String > & GetSourceIdsList() const
EventSubscription & AddSourceIdsList(SourceIdsListT &&value)
void SetEnabled(bool value)
EventSubscription & WithStatus(StatusT &&value)
const Aws::String & GetCustSubscriptionId() const
EventSubscription & WithSubscriptionCreationTime(SubscriptionCreationTimeT &&value)
EventSubscription & WithCustomerAwsId(CustomerAwsIdT &&value)
void SetSourceType(SourceTypeT &&value)
void SetSnsTopicArn(SnsTopicArnT &&value)
bool SubscriptionCreationTimeHasBeenSet() const
AWS_DOCDB_API EventSubscription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EventSubscription & WithCustSubscriptionId(CustSubscriptionIdT &&value)
EventSubscription & WithSourceIdsList(SourceIdsListT &&value)
bool EventSubscriptionArnHasBeenSet() const
void SetSourceIdsList(SourceIdsListT &&value)
void SetCustomerAwsId(CustomerAwsIdT &&value)
void SetCustSubscriptionId(CustSubscriptionIdT &&value)
AWS_DOCDB_API EventSubscription(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SnsTopicArnHasBeenSet() const
void SetSubscriptionCreationTime(SubscriptionCreationTimeT &&value)
EventSubscription & WithSourceType(SourceTypeT &&value)
bool EventCategoriesListHasBeenSet() const
const Aws::String & GetCustomerAwsId() const
const Aws::String & GetSubscriptionCreationTime() const
bool CustomerAwsIdHasBeenSet() const
const Aws::Vector< Aws::String > & GetEventCategoriesList() const
void SetStatus(StatusT &&value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
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