/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information required to publish the Amazon SNS message.See
* Also:
AWS
* API Reference
The ARN of the Amazon SNS target where the message is sent.
*/ inline const Aws::String& GetTargetArn() const{ return m_targetArn; } /** *The ARN of the Amazon SNS target where the message is sent.
*/ inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; } /** *The ARN of the Amazon SNS target where the message is sent.
*/ inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; } /** *The ARN of the Amazon SNS target where the message is sent.
*/ inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); } /** *The ARN of the Amazon SNS target where the message is sent.
*/ inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); } /** *The ARN of the Amazon SNS target where the message is sent.
*/ inline SNSTopicPublishAction& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;} /** *The ARN of the Amazon SNS target where the message is sent.
*/ inline SNSTopicPublishAction& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;} /** *The ARN of the Amazon SNS target where the message is sent.
*/ inline SNSTopicPublishAction& WithTargetArn(const char* value) { SetTargetArn(value); return *this;} /** *You can configure the action payload when you send a message as an Amazon SNS * push notification.
*/ inline const Payload& GetPayload() const{ return m_payload; } /** *You can configure the action payload when you send a message as an Amazon SNS * push notification.
*/ inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; } /** *You can configure the action payload when you send a message as an Amazon SNS * push notification.
*/ inline void SetPayload(const Payload& value) { m_payloadHasBeenSet = true; m_payload = value; } /** *You can configure the action payload when you send a message as an Amazon SNS * push notification.
*/ inline void SetPayload(Payload&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); } /** *You can configure the action payload when you send a message as an Amazon SNS * push notification.
*/ inline SNSTopicPublishAction& WithPayload(const Payload& value) { SetPayload(value); return *this;} /** *You can configure the action payload when you send a message as an Amazon SNS * push notification.
*/ inline SNSTopicPublishAction& WithPayload(Payload&& value) { SetPayload(std::move(value)); return *this;} private: Aws::String m_targetArn; bool m_targetArnHasBeenSet = false; Payload m_payload; bool m_payloadHasBeenSet = false; }; } // namespace Model } // namespace IoTEvents } // namespace Aws