/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include This data type is used as a response element in the
* ListEventSubscriptions action.See Also:
AWS
* API Reference
The ARN of the assessment template that is used during the event for which * the SNS notification is sent.
*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *The ARN of the assessment template that is used during the event for which * the SNS notification is sent.
*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *The ARN of the assessment template that is used during the event for which * the SNS notification is sent.
*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *The ARN of the assessment template that is used during the event for which * the SNS notification is sent.
*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *The ARN of the assessment template that is used during the event for which * the SNS notification is sent.
*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *The ARN of the assessment template that is used during the event for which * the SNS notification is sent.
*/ inline Subscription& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *The ARN of the assessment template that is used during the event for which * the SNS notification is sent.
*/ inline Subscription& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *The ARN of the assessment template that is used during the event for which * the SNS notification is sent.
*/ inline Subscription& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *The ARN of the Amazon Simple Notification Service (SNS) topic to which the * SNS notifications are sent.
*/ inline const Aws::String& GetTopicArn() const{ return m_topicArn; } /** *The ARN of the Amazon Simple Notification Service (SNS) topic to which the * SNS notifications are sent.
*/ inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; } /** *The ARN of the Amazon Simple Notification Service (SNS) topic to which the * SNS notifications are sent.
*/ inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; } /** *The ARN of the Amazon Simple Notification Service (SNS) topic to which the * SNS notifications are sent.
*/ inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); } /** *The ARN of the Amazon Simple Notification Service (SNS) topic to which the * SNS notifications are sent.
*/ inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); } /** *The ARN of the Amazon Simple Notification Service (SNS) topic to which the * SNS notifications are sent.
*/ inline Subscription& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;} /** *The ARN of the Amazon Simple Notification Service (SNS) topic to which the * SNS notifications are sent.
*/ inline Subscription& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;} /** *The ARN of the Amazon Simple Notification Service (SNS) topic to which the * SNS notifications are sent.
*/ inline Subscription& WithTopicArn(const char* value) { SetTopicArn(value); return *this;} /** *The list of existing event subscriptions.
*/ inline const Aws::VectorThe list of existing event subscriptions.
*/ inline bool EventSubscriptionsHasBeenSet() const { return m_eventSubscriptionsHasBeenSet; } /** *The list of existing event subscriptions.
*/ inline void SetEventSubscriptions(const Aws::VectorThe list of existing event subscriptions.
*/ inline void SetEventSubscriptions(Aws::VectorThe list of existing event subscriptions.
*/ inline Subscription& WithEventSubscriptions(const Aws::VectorThe list of existing event subscriptions.
*/ inline Subscription& WithEventSubscriptions(Aws::VectorThe list of existing event subscriptions.
*/ inline Subscription& AddEventSubscriptions(const EventSubscription& value) { m_eventSubscriptionsHasBeenSet = true; m_eventSubscriptions.push_back(value); return *this; } /** *The list of existing event subscriptions.
*/ inline Subscription& AddEventSubscriptions(EventSubscription&& value) { m_eventSubscriptionsHasBeenSet = true; m_eventSubscriptions.push_back(std::move(value)); return *this; } private: Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; Aws::String m_topicArn; bool m_topicArnHasBeenSet = false; Aws::Vector