/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Inspector { namespace Model { /** *

This data type is used as a response element in the * ListEventSubscriptions action.

See Also:

AWS * API Reference

*/ class Subscription { public: AWS_INSPECTOR_API Subscription(); AWS_INSPECTOR_API Subscription(Aws::Utils::Json::JsonView jsonValue); AWS_INSPECTOR_API Subscription& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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::Vector& GetEventSubscriptions() const{ return m_eventSubscriptions; } /** *

The list of existing event subscriptions.

*/ inline bool EventSubscriptionsHasBeenSet() const { return m_eventSubscriptionsHasBeenSet; } /** *

The list of existing event subscriptions.

*/ inline void SetEventSubscriptions(const Aws::Vector& value) { m_eventSubscriptionsHasBeenSet = true; m_eventSubscriptions = value; } /** *

The list of existing event subscriptions.

*/ inline void SetEventSubscriptions(Aws::Vector&& value) { m_eventSubscriptionsHasBeenSet = true; m_eventSubscriptions = std::move(value); } /** *

The list of existing event subscriptions.

*/ inline Subscription& WithEventSubscriptions(const Aws::Vector& value) { SetEventSubscriptions(value); return *this;} /** *

The list of existing event subscriptions.

*/ inline Subscription& WithEventSubscriptions(Aws::Vector&& value) { SetEventSubscriptions(std::move(value)); return *this;} /** *

The 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 m_eventSubscriptions; bool m_eventSubscriptionsHasBeenSet = false; }; } // namespace Model } // namespace Inspector } // namespace Aws