/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes an action to publish to an Amazon SNS topic.See
* Also:
AWS API
* Reference
The ARN of the SNS topic.
*/ inline const Aws::String& GetTargetArn() const{ return m_targetArn; } /** *The ARN of the SNS topic.
*/ inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; } /** *The ARN of the SNS topic.
*/ inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; } /** *The ARN of the SNS topic.
*/ inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); } /** *The ARN of the SNS topic.
*/ inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); } /** *The ARN of the SNS topic.
*/ inline SnsAction& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;} /** *The ARN of the SNS topic.
*/ inline SnsAction& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;} /** *The ARN of the SNS topic.
*/ inline SnsAction& WithTargetArn(const char* value) { SetTargetArn(value); return *this;} /** *The ARN of the IAM role that grants access.
*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *The ARN of the IAM role that grants access.
*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *The ARN of the IAM role that grants access.
*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *The ARN of the IAM role that grants access.
*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *The ARN of the IAM role that grants access.
*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *The ARN of the IAM role that grants access.
*/ inline SnsAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *The ARN of the IAM role that grants access.
*/ inline SnsAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *The ARN of the IAM role that grants access.
*/ inline SnsAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *(Optional) The message format of the message to publish. Accepted values are * "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this * setting to determine if the payload should be parsed and relevant * platform-specific bits of the payload should be extracted. To read more about * SNS message formats, see https://docs.aws.amazon.com/sns/latest/dg/json-formats.html * refer to their official documentation.
*/ inline const MessageFormat& GetMessageFormat() const{ return m_messageFormat; } /** *(Optional) The message format of the message to publish. Accepted values are * "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this * setting to determine if the payload should be parsed and relevant * platform-specific bits of the payload should be extracted. To read more about * SNS message formats, see https://docs.aws.amazon.com/sns/latest/dg/json-formats.html * refer to their official documentation.
*/ inline bool MessageFormatHasBeenSet() const { return m_messageFormatHasBeenSet; } /** *(Optional) The message format of the message to publish. Accepted values are * "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this * setting to determine if the payload should be parsed and relevant * platform-specific bits of the payload should be extracted. To read more about * SNS message formats, see https://docs.aws.amazon.com/sns/latest/dg/json-formats.html * refer to their official documentation.
*/ inline void SetMessageFormat(const MessageFormat& value) { m_messageFormatHasBeenSet = true; m_messageFormat = value; } /** *(Optional) The message format of the message to publish. Accepted values are * "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this * setting to determine if the payload should be parsed and relevant * platform-specific bits of the payload should be extracted. To read more about * SNS message formats, see https://docs.aws.amazon.com/sns/latest/dg/json-formats.html * refer to their official documentation.
*/ inline void SetMessageFormat(MessageFormat&& value) { m_messageFormatHasBeenSet = true; m_messageFormat = std::move(value); } /** *(Optional) The message format of the message to publish. Accepted values are * "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this * setting to determine if the payload should be parsed and relevant * platform-specific bits of the payload should be extracted. To read more about * SNS message formats, see https://docs.aws.amazon.com/sns/latest/dg/json-formats.html * refer to their official documentation.
*/ inline SnsAction& WithMessageFormat(const MessageFormat& value) { SetMessageFormat(value); return *this;} /** *(Optional) The message format of the message to publish. Accepted values are * "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this * setting to determine if the payload should be parsed and relevant * platform-specific bits of the payload should be extracted. To read more about * SNS message formats, see https://docs.aws.amazon.com/sns/latest/dg/json-formats.html * refer to their official documentation.
*/ inline SnsAction& WithMessageFormat(MessageFormat&& value) { SetMessageFormat(std::move(value)); return *this;} private: Aws::String m_targetArn; bool m_targetArnHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; MessageFormat m_messageFormat; bool m_messageFormatHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws