7#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
22namespace DatabaseMigrationService
49 template<
typename CustomerAwsIdT = Aws::String>
50 void SetCustomerAwsId(CustomerAwsIdT&& value) { m_customerAwsIdHasBeenSet =
true; m_customerAwsId = std::forward<CustomerAwsIdT>(value); }
51 template<
typename CustomerAwsIdT = Aws::String>
61 template<
typename CustSubscriptionIdT = Aws::String>
62 void SetCustSubscriptionId(CustSubscriptionIdT&& value) { m_custSubscriptionIdHasBeenSet =
true; m_custSubscriptionId = std::forward<CustSubscriptionIdT>(value); }
63 template<
typename CustSubscriptionIdT = Aws::String>
73 template<
typename SnsTopicArnT = Aws::String>
74 void SetSnsTopicArn(SnsTopicArnT&& value) { m_snsTopicArnHasBeenSet =
true; m_snsTopicArn = std::forward<SnsTopicArnT>(value); }
75 template<
typename SnsTopicArnT = Aws::String>
90 template<
typename StatusT = Aws::String>
91 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
92 template<
typename StatusT = Aws::String>
102 template<
typename SubscriptionCreationTimeT = Aws::String>
103 void SetSubscriptionCreationTime(SubscriptionCreationTimeT&& value) { m_subscriptionCreationTimeHasBeenSet =
true; m_subscriptionCreationTime = std::forward<SubscriptionCreationTimeT>(value); }
104 template<
typename SubscriptionCreationTimeT = Aws::String>
116 template<
typename SourceTypeT = Aws::String>
117 void SetSourceType(SourceTypeT&& value) { m_sourceTypeHasBeenSet =
true; m_sourceType = std::forward<SourceTypeT>(value); }
118 template<
typename SourceTypeT = Aws::String>
128 template<
typename SourceIdsListT = Aws::Vector<Aws::String>>
129 void SetSourceIdsList(SourceIdsListT&& value) { m_sourceIdsListHasBeenSet =
true; m_sourceIdsList = std::forward<SourceIdsListT>(value); }
130 template<
typename SourceIdsListT = Aws::Vector<Aws::String>>
132 template<
typename SourceIdsListT = Aws::String>
133 EventSubscription&
AddSourceIdsList(SourceIdsListT&& value) { m_sourceIdsListHasBeenSet =
true; m_sourceIdsList.emplace_back(std::forward<SourceIdsListT>(value));
return *
this; }
142 template<
typename EventCategoriesListT = Aws::Vector<Aws::String>>
143 void SetEventCategoriesList(EventCategoriesListT&& value) { m_eventCategoriesListHasBeenSet =
true; m_eventCategoriesList = std::forward<EventCategoriesListT>(value); }
144 template<
typename EventCategoriesListT = Aws::Vector<Aws::String>>
146 template<
typename EventCategoriesListT = Aws::String>
147 EventSubscription&
AddEventCategoriesList(EventCategoriesListT&& value) { m_eventCategoriesListHasBeenSet =
true; m_eventCategoriesList.emplace_back(std::forward<EventCategoriesListT>(value));
return *
this; }
156 inline void SetEnabled(
bool value) { m_enabledHasBeenSet =
true; m_enabled = value; }
162 bool m_customerAwsIdHasBeenSet =
false;
165 bool m_custSubscriptionIdHasBeenSet =
false;
168 bool m_snsTopicArnHasBeenSet =
false;
171 bool m_statusHasBeenSet =
false;
174 bool m_subscriptionCreationTimeHasBeenSet =
false;
177 bool m_sourceTypeHasBeenSet =
false;
180 bool m_sourceIdsListHasBeenSet =
false;
183 bool m_eventCategoriesListHasBeenSet =
false;
185 bool m_enabled{
false};
186 bool m_enabledHasBeenSet =
false;
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
bool EventCategoriesListHasBeenSet() const
bool SourceIdsListHasBeenSet() const
bool EnabledHasBeenSet() const
const Aws::String & GetStatus() const
void SetEventCategoriesList(EventCategoriesListT &&value)
void SetCustomerAwsId(CustomerAwsIdT &&value)
void SetSubscriptionCreationTime(SubscriptionCreationTimeT &&value)
void SetSnsTopicArn(SnsTopicArnT &&value)
EventSubscription & WithEnabled(bool value)
void SetCustSubscriptionId(CustSubscriptionIdT &&value)
EventSubscription & WithSourceIdsList(SourceIdsListT &&value)
const Aws::String & GetSubscriptionCreationTime() const
EventSubscription & AddEventCategoriesList(EventCategoriesListT &&value)
void SetStatus(StatusT &&value)
bool StatusHasBeenSet() const
bool SnsTopicArnHasBeenSet() const
EventSubscription & WithSnsTopicArn(SnsTopicArnT &&value)
AWS_DATABASEMIGRATIONSERVICE_API EventSubscription(Aws::Utils::Json::JsonView jsonValue)
bool CustSubscriptionIdHasBeenSet() const
void SetSourceType(SourceTypeT &&value)
EventSubscription & WithStatus(StatusT &&value)
EventSubscription & AddSourceIdsList(SourceIdsListT &&value)
void SetEnabled(bool value)
AWS_DATABASEMIGRATIONSERVICE_API EventSubscription()=default
EventSubscription & WithCustomerAwsId(CustomerAwsIdT &&value)
AWS_DATABASEMIGRATIONSERVICE_API EventSubscription & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetSourceIdsList() const
EventSubscription & WithCustSubscriptionId(CustSubscriptionIdT &&value)
const Aws::String & GetCustomerAwsId() const
bool SourceTypeHasBeenSet() const
EventSubscription & WithEventCategoriesList(EventCategoriesListT &&value)
const Aws::String & GetSourceType() const
const Aws::String & GetSnsTopicArn() const
const Aws::String & GetCustSubscriptionId() const
bool CustomerAwsIdHasBeenSet() const
bool SubscriptionCreationTimeHasBeenSet() const
EventSubscription & WithSourceType(SourceTypeT &&value)
const Aws::Vector< Aws::String > & GetEventCategoriesList() const
void SetSourceIdsList(SourceIdsListT &&value)
EventSubscription & WithSubscriptionCreationTime(SubscriptionCreationTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue