/** * 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 { /** *

Describes an action to publish data to an Amazon SQS queue.

See * Also:

AWS API * Reference

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

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 SqsAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The ARN of the IAM role that grants access.

*/ inline SqsAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The ARN of the IAM role that grants access.

*/ inline SqsAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The URL of the Amazon SQS queue.

*/ inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; } /** *

The URL of the Amazon SQS queue.

*/ inline bool QueueUrlHasBeenSet() const { return m_queueUrlHasBeenSet; } /** *

The URL of the Amazon SQS queue.

*/ inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; } /** *

The URL of the Amazon SQS queue.

*/ inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = std::move(value); } /** *

The URL of the Amazon SQS queue.

*/ inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); } /** *

The URL of the Amazon SQS queue.

*/ inline SqsAction& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;} /** *

The URL of the Amazon SQS queue.

*/ inline SqsAction& WithQueueUrl(Aws::String&& value) { SetQueueUrl(std::move(value)); return *this;} /** *

The URL of the Amazon SQS queue.

*/ inline SqsAction& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;} /** *

Specifies whether to use Base64 encoding.

*/ inline bool GetUseBase64() const{ return m_useBase64; } /** *

Specifies whether to use Base64 encoding.

*/ inline bool UseBase64HasBeenSet() const { return m_useBase64HasBeenSet; } /** *

Specifies whether to use Base64 encoding.

*/ inline void SetUseBase64(bool value) { m_useBase64HasBeenSet = true; m_useBase64 = value; } /** *

Specifies whether to use Base64 encoding.

*/ inline SqsAction& WithUseBase64(bool value) { SetUseBase64(value); return *this;} private: Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_queueUrl; bool m_queueUrlHasBeenSet = false; bool m_useBase64; bool m_useBase64HasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws