/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Detailed information about an event to which you have
* subscribed.See Also:
AWS
* API Reference
The Amazon Web Services customer account that is associated with the Amazon * DocumentDB event notification subscription.
*/ inline const Aws::String& GetCustomerAwsId() const{ return m_customerAwsId; } /** *The Amazon Web Services customer account that is associated with the Amazon * DocumentDB event notification subscription.
*/ inline bool CustomerAwsIdHasBeenSet() const { return m_customerAwsIdHasBeenSet; } /** *The Amazon Web Services customer account that is associated with the Amazon * DocumentDB event notification subscription.
*/ inline void SetCustomerAwsId(const Aws::String& value) { m_customerAwsIdHasBeenSet = true; m_customerAwsId = value; } /** *The Amazon Web Services customer account that is associated with the Amazon * DocumentDB event notification subscription.
*/ inline void SetCustomerAwsId(Aws::String&& value) { m_customerAwsIdHasBeenSet = true; m_customerAwsId = std::move(value); } /** *The Amazon Web Services customer account that is associated with the Amazon * DocumentDB event notification subscription.
*/ inline void SetCustomerAwsId(const char* value) { m_customerAwsIdHasBeenSet = true; m_customerAwsId.assign(value); } /** *The Amazon Web Services customer account that is associated with the Amazon * DocumentDB event notification subscription.
*/ inline EventSubscription& WithCustomerAwsId(const Aws::String& value) { SetCustomerAwsId(value); return *this;} /** *The Amazon Web Services customer account that is associated with the Amazon * DocumentDB event notification subscription.
*/ inline EventSubscription& WithCustomerAwsId(Aws::String&& value) { SetCustomerAwsId(std::move(value)); return *this;} /** *The Amazon Web Services customer account that is associated with the Amazon * DocumentDB event notification subscription.
*/ inline EventSubscription& WithCustomerAwsId(const char* value) { SetCustomerAwsId(value); return *this;} /** *The Amazon DocumentDB event notification subscription ID.
*/ inline const Aws::String& GetCustSubscriptionId() const{ return m_custSubscriptionId; } /** *The Amazon DocumentDB event notification subscription ID.
*/ inline bool CustSubscriptionIdHasBeenSet() const { return m_custSubscriptionIdHasBeenSet; } /** *The Amazon DocumentDB event notification subscription ID.
*/ inline void SetCustSubscriptionId(const Aws::String& value) { m_custSubscriptionIdHasBeenSet = true; m_custSubscriptionId = value; } /** *The Amazon DocumentDB event notification subscription ID.
*/ inline void SetCustSubscriptionId(Aws::String&& value) { m_custSubscriptionIdHasBeenSet = true; m_custSubscriptionId = std::move(value); } /** *The Amazon DocumentDB event notification subscription ID.
*/ inline void SetCustSubscriptionId(const char* value) { m_custSubscriptionIdHasBeenSet = true; m_custSubscriptionId.assign(value); } /** *The Amazon DocumentDB event notification subscription ID.
*/ inline EventSubscription& WithCustSubscriptionId(const Aws::String& value) { SetCustSubscriptionId(value); return *this;} /** *The Amazon DocumentDB event notification subscription ID.
*/ inline EventSubscription& WithCustSubscriptionId(Aws::String&& value) { SetCustSubscriptionId(std::move(value)); return *this;} /** *The Amazon DocumentDB event notification subscription ID.
*/ inline EventSubscription& WithCustSubscriptionId(const char* value) { SetCustSubscriptionId(value); return *this;} /** *The topic ARN of the Amazon DocumentDB event notification subscription.
*/ inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; } /** *The topic ARN of the Amazon DocumentDB event notification subscription.
*/ inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; } /** *The topic ARN of the Amazon DocumentDB event notification subscription.
*/ inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; } /** *The topic ARN of the Amazon DocumentDB event notification subscription.
*/ inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); } /** *The topic ARN of the Amazon DocumentDB event notification subscription.
*/ inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); } /** *The topic ARN of the Amazon DocumentDB event notification subscription.
*/ inline EventSubscription& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;} /** *The topic ARN of the Amazon DocumentDB event notification subscription.
*/ inline EventSubscription& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;} /** *The topic ARN of the Amazon DocumentDB event notification subscription.
*/ inline EventSubscription& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;} /** *The status of the Amazon DocumentDB event notification subscription.
*Constraints:
Can be one of the following: creating
,
* modifying
, deleting
, active
,
* no-permission
, topic-not-exist
The
* no-permission
status indicates that Amazon DocumentDB no longer has
* permission to post to the SNS topic. The topic-not-exist
status
* indicates that the topic was deleted after the subscription was created.
The status of the Amazon DocumentDB event notification subscription.
*Constraints:
Can be one of the following: creating
,
* modifying
, deleting
, active
,
* no-permission
, topic-not-exist
The
* no-permission
status indicates that Amazon DocumentDB no longer has
* permission to post to the SNS topic. The topic-not-exist
status
* indicates that the topic was deleted after the subscription was created.
The status of the Amazon DocumentDB event notification subscription.
*Constraints:
Can be one of the following: creating
,
* modifying
, deleting
, active
,
* no-permission
, topic-not-exist
The
* no-permission
status indicates that Amazon DocumentDB no longer has
* permission to post to the SNS topic. The topic-not-exist
status
* indicates that the topic was deleted after the subscription was created.
The status of the Amazon DocumentDB event notification subscription.
*Constraints:
Can be one of the following: creating
,
* modifying
, deleting
, active
,
* no-permission
, topic-not-exist
The
* no-permission
status indicates that Amazon DocumentDB no longer has
* permission to post to the SNS topic. The topic-not-exist
status
* indicates that the topic was deleted after the subscription was created.
The status of the Amazon DocumentDB event notification subscription.
*Constraints:
Can be one of the following: creating
,
* modifying
, deleting
, active
,
* no-permission
, topic-not-exist
The
* no-permission
status indicates that Amazon DocumentDB no longer has
* permission to post to the SNS topic. The topic-not-exist
status
* indicates that the topic was deleted after the subscription was created.
The status of the Amazon DocumentDB event notification subscription.
*Constraints:
Can be one of the following: creating
,
* modifying
, deleting
, active
,
* no-permission
, topic-not-exist
The
* no-permission
status indicates that Amazon DocumentDB no longer has
* permission to post to the SNS topic. The topic-not-exist
status
* indicates that the topic was deleted after the subscription was created.
The status of the Amazon DocumentDB event notification subscription.
*Constraints:
Can be one of the following: creating
,
* modifying
, deleting
, active
,
* no-permission
, topic-not-exist
The
* no-permission
status indicates that Amazon DocumentDB no longer has
* permission to post to the SNS topic. The topic-not-exist
status
* indicates that the topic was deleted after the subscription was created.
The status of the Amazon DocumentDB event notification subscription.
*Constraints:
Can be one of the following: creating
,
* modifying
, deleting
, active
,
* no-permission
, topic-not-exist
The
* no-permission
status indicates that Amazon DocumentDB no longer has
* permission to post to the SNS topic. The topic-not-exist
status
* indicates that the topic was deleted after the subscription was created.
The time at which the Amazon DocumentDB event notification subscription was * created.
*/ inline const Aws::String& GetSubscriptionCreationTime() const{ return m_subscriptionCreationTime; } /** *The time at which the Amazon DocumentDB event notification subscription was * created.
*/ inline bool SubscriptionCreationTimeHasBeenSet() const { return m_subscriptionCreationTimeHasBeenSet; } /** *The time at which the Amazon DocumentDB event notification subscription was * created.
*/ inline void SetSubscriptionCreationTime(const Aws::String& value) { m_subscriptionCreationTimeHasBeenSet = true; m_subscriptionCreationTime = value; } /** *The time at which the Amazon DocumentDB event notification subscription was * created.
*/ inline void SetSubscriptionCreationTime(Aws::String&& value) { m_subscriptionCreationTimeHasBeenSet = true; m_subscriptionCreationTime = std::move(value); } /** *The time at which the Amazon DocumentDB event notification subscription was * created.
*/ inline void SetSubscriptionCreationTime(const char* value) { m_subscriptionCreationTimeHasBeenSet = true; m_subscriptionCreationTime.assign(value); } /** *The time at which the Amazon DocumentDB event notification subscription was * created.
*/ inline EventSubscription& WithSubscriptionCreationTime(const Aws::String& value) { SetSubscriptionCreationTime(value); return *this;} /** *The time at which the Amazon DocumentDB event notification subscription was * created.
*/ inline EventSubscription& WithSubscriptionCreationTime(Aws::String&& value) { SetSubscriptionCreationTime(std::move(value)); return *this;} /** *The time at which the Amazon DocumentDB event notification subscription was * created.
*/ inline EventSubscription& WithSubscriptionCreationTime(const char* value) { SetSubscriptionCreationTime(value); return *this;} /** *The source type for the Amazon DocumentDB event notification * subscription.
*/ inline const Aws::String& GetSourceType() const{ return m_sourceType; } /** *The source type for the Amazon DocumentDB event notification * subscription.
*/ inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; } /** *The source type for the Amazon DocumentDB event notification * subscription.
*/ inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; } /** *The source type for the Amazon DocumentDB event notification * subscription.
*/ inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); } /** *The source type for the Amazon DocumentDB event notification * subscription.
*/ inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); } /** *The source type for the Amazon DocumentDB event notification * subscription.
*/ inline EventSubscription& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;} /** *The source type for the Amazon DocumentDB event notification * subscription.
*/ inline EventSubscription& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;} /** *The source type for the Amazon DocumentDB event notification * subscription.
*/ inline EventSubscription& WithSourceType(const char* value) { SetSourceType(value); return *this;} /** *A list of source IDs for the Amazon DocumentDB event notification * subscription.
*/ inline const Aws::VectorA list of source IDs for the Amazon DocumentDB event notification * subscription.
*/ inline bool SourceIdsListHasBeenSet() const { return m_sourceIdsListHasBeenSet; } /** *A list of source IDs for the Amazon DocumentDB event notification * subscription.
*/ inline void SetSourceIdsList(const Aws::VectorA list of source IDs for the Amazon DocumentDB event notification * subscription.
*/ inline void SetSourceIdsList(Aws::VectorA list of source IDs for the Amazon DocumentDB event notification * subscription.
*/ inline EventSubscription& WithSourceIdsList(const Aws::VectorA list of source IDs for the Amazon DocumentDB event notification * subscription.
*/ inline EventSubscription& WithSourceIdsList(Aws::VectorA list of source IDs for the Amazon DocumentDB event notification * subscription.
*/ inline EventSubscription& AddSourceIdsList(const Aws::String& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList.push_back(value); return *this; } /** *A list of source IDs for the Amazon DocumentDB event notification * subscription.
*/ inline EventSubscription& AddSourceIdsList(Aws::String&& value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList.push_back(std::move(value)); return *this; } /** *A list of source IDs for the Amazon DocumentDB event notification * subscription.
*/ inline EventSubscription& AddSourceIdsList(const char* value) { m_sourceIdsListHasBeenSet = true; m_sourceIdsList.push_back(value); return *this; } /** *A list of event categories for the Amazon DocumentDB event notification * subscription.
*/ inline const Aws::VectorA list of event categories for the Amazon DocumentDB event notification * subscription.
*/ inline bool EventCategoriesListHasBeenSet() const { return m_eventCategoriesListHasBeenSet; } /** *A list of event categories for the Amazon DocumentDB event notification * subscription.
*/ inline void SetEventCategoriesList(const Aws::VectorA list of event categories for the Amazon DocumentDB event notification * subscription.
*/ inline void SetEventCategoriesList(Aws::VectorA list of event categories for the Amazon DocumentDB event notification * subscription.
*/ inline EventSubscription& WithEventCategoriesList(const Aws::VectorA list of event categories for the Amazon DocumentDB event notification * subscription.
*/ inline EventSubscription& WithEventCategoriesList(Aws::VectorA list of event categories for the Amazon DocumentDB event notification * subscription.
*/ inline EventSubscription& AddEventCategoriesList(const Aws::String& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList.push_back(value); return *this; } /** *A list of event categories for the Amazon DocumentDB event notification * subscription.
*/ inline EventSubscription& AddEventCategoriesList(Aws::String&& value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList.push_back(std::move(value)); return *this; } /** *A list of event categories for the Amazon DocumentDB event notification * subscription.
*/ inline EventSubscription& AddEventCategoriesList(const char* value) { m_eventCategoriesListHasBeenSet = true; m_eventCategoriesList.push_back(value); return *this; } /** *A Boolean value indicating whether the subscription is enabled. A value of
* true
indicates that the subscription is enabled.
A Boolean value indicating whether the subscription is enabled. A value of
* true
indicates that the subscription is enabled.
A Boolean value indicating whether the subscription is enabled. A value of
* true
indicates that the subscription is enabled.
A Boolean value indicating whether the subscription is enabled. A value of
* true
indicates that the subscription is enabled.
The Amazon Resource Name (ARN) for the event subscription.
*/ inline const Aws::String& GetEventSubscriptionArn() const{ return m_eventSubscriptionArn; } /** *The Amazon Resource Name (ARN) for the event subscription.
*/ inline bool EventSubscriptionArnHasBeenSet() const { return m_eventSubscriptionArnHasBeenSet; } /** *The Amazon Resource Name (ARN) for the event subscription.
*/ inline void SetEventSubscriptionArn(const Aws::String& value) { m_eventSubscriptionArnHasBeenSet = true; m_eventSubscriptionArn = value; } /** *The Amazon Resource Name (ARN) for the event subscription.
*/ inline void SetEventSubscriptionArn(Aws::String&& value) { m_eventSubscriptionArnHasBeenSet = true; m_eventSubscriptionArn = std::move(value); } /** *The Amazon Resource Name (ARN) for the event subscription.
*/ inline void SetEventSubscriptionArn(const char* value) { m_eventSubscriptionArnHasBeenSet = true; m_eventSubscriptionArn.assign(value); } /** *The Amazon Resource Name (ARN) for the event subscription.
*/ inline EventSubscription& WithEventSubscriptionArn(const Aws::String& value) { SetEventSubscriptionArn(value); return *this;} /** *The Amazon Resource Name (ARN) for the event subscription.
*/ inline EventSubscription& WithEventSubscriptionArn(Aws::String&& value) { SetEventSubscriptionArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) for the event subscription.
*/ inline EventSubscription& WithEventSubscriptionArn(const char* value) { SetEventSubscriptionArn(value); return *this;} private: Aws::String m_customerAwsId; bool m_customerAwsIdHasBeenSet = false; Aws::String m_custSubscriptionId; bool m_custSubscriptionIdHasBeenSet = false; Aws::String m_snsTopicArn; bool m_snsTopicArnHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_subscriptionCreationTime; bool m_subscriptionCreationTimeHasBeenSet = false; Aws::String m_sourceType; bool m_sourceTypeHasBeenSet = false; Aws::Vector