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

Parameters to define a mitigation action that publishes findings to Amazon * SNS. You can implement your own custom actions in response to the Amazon SNS * messages.

See Also:

AWS * API Reference

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

The ARN of the topic to which you want to publish the findings.

*/ inline const Aws::String& GetTopicArn() const{ return m_topicArn; } /** *

The ARN of the topic to which you want to publish the findings.

*/ inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; } /** *

The ARN of the topic to which you want to publish the findings.

*/ inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; } /** *

The ARN of the topic to which you want to publish the findings.

*/ inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); } /** *

The ARN of the topic to which you want to publish the findings.

*/ inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); } /** *

The ARN of the topic to which you want to publish the findings.

*/ inline PublishFindingToSnsParams& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;} /** *

The ARN of the topic to which you want to publish the findings.

*/ inline PublishFindingToSnsParams& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;} /** *

The ARN of the topic to which you want to publish the findings.

*/ inline PublishFindingToSnsParams& WithTopicArn(const char* value) { SetTopicArn(value); return *this;} private: Aws::String m_topicArn; bool m_topicArnHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws