/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace SQS { namespace Model { /** */ class ChangeMessageVisibilityRequest : public SQSRequest { public: AWS_SQS_API ChangeMessageVisibilityRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ChangeMessageVisibility"; } AWS_SQS_API Aws::String SerializePayload() const override; protected: AWS_SQS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The URL of the Amazon SQS queue whose message's visibility is changed.

*

Queue URLs and names are case-sensitive.

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

The URL of the Amazon SQS queue whose message's visibility is changed.

*

Queue URLs and names are case-sensitive.

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

The URL of the Amazon SQS queue whose message's visibility is changed.

*

Queue URLs and names are case-sensitive.

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

The URL of the Amazon SQS queue whose message's visibility is changed.

*

Queue URLs and names are case-sensitive.

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

The URL of the Amazon SQS queue whose message's visibility is changed.

*

Queue URLs and names are case-sensitive.

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

The URL of the Amazon SQS queue whose message's visibility is changed.

*

Queue URLs and names are case-sensitive.

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

The URL of the Amazon SQS queue whose message's visibility is changed.

*

Queue URLs and names are case-sensitive.

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

The URL of the Amazon SQS queue whose message's visibility is changed.

*

Queue URLs and names are case-sensitive.

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

The receipt handle associated with the message, whose visibility timeout is * changed. This parameter is returned by the ReceiveMessage * action.

*/ inline const Aws::String& GetReceiptHandle() const{ return m_receiptHandle; } /** *

The receipt handle associated with the message, whose visibility timeout is * changed. This parameter is returned by the ReceiveMessage * action.

*/ inline bool ReceiptHandleHasBeenSet() const { return m_receiptHandleHasBeenSet; } /** *

The receipt handle associated with the message, whose visibility timeout is * changed. This parameter is returned by the ReceiveMessage * action.

*/ inline void SetReceiptHandle(const Aws::String& value) { m_receiptHandleHasBeenSet = true; m_receiptHandle = value; } /** *

The receipt handle associated with the message, whose visibility timeout is * changed. This parameter is returned by the ReceiveMessage * action.

*/ inline void SetReceiptHandle(Aws::String&& value) { m_receiptHandleHasBeenSet = true; m_receiptHandle = std::move(value); } /** *

The receipt handle associated with the message, whose visibility timeout is * changed. This parameter is returned by the ReceiveMessage * action.

*/ inline void SetReceiptHandle(const char* value) { m_receiptHandleHasBeenSet = true; m_receiptHandle.assign(value); } /** *

The receipt handle associated with the message, whose visibility timeout is * changed. This parameter is returned by the ReceiveMessage * action.

*/ inline ChangeMessageVisibilityRequest& WithReceiptHandle(const Aws::String& value) { SetReceiptHandle(value); return *this;} /** *

The receipt handle associated with the message, whose visibility timeout is * changed. This parameter is returned by the ReceiveMessage * action.

*/ inline ChangeMessageVisibilityRequest& WithReceiptHandle(Aws::String&& value) { SetReceiptHandle(std::move(value)); return *this;} /** *

The receipt handle associated with the message, whose visibility timeout is * changed. This parameter is returned by the ReceiveMessage * action.

*/ inline ChangeMessageVisibilityRequest& WithReceiptHandle(const char* value) { SetReceiptHandle(value); return *this;} /** *

The new value for the message's visibility timeout (in seconds). Values * range: 0 to 43200. Maximum: 12 hours.

*/ inline int GetVisibilityTimeout() const{ return m_visibilityTimeout; } /** *

The new value for the message's visibility timeout (in seconds). Values * range: 0 to 43200. Maximum: 12 hours.

*/ inline bool VisibilityTimeoutHasBeenSet() const { return m_visibilityTimeoutHasBeenSet; } /** *

The new value for the message's visibility timeout (in seconds). Values * range: 0 to 43200. Maximum: 12 hours.

*/ inline void SetVisibilityTimeout(int value) { m_visibilityTimeoutHasBeenSet = true; m_visibilityTimeout = value; } /** *

The new value for the message's visibility timeout (in seconds). Values * range: 0 to 43200. Maximum: 12 hours.

*/ inline ChangeMessageVisibilityRequest& WithVisibilityTimeout(int value) { SetVisibilityTimeout(value); return *this;} private: Aws::String m_queueUrl; bool m_queueUrlHasBeenSet = false; Aws::String m_receiptHandle; bool m_receiptHandleHasBeenSet = false; int m_visibilityTimeout; bool m_visibilityTimeoutHasBeenSet = false; }; } // namespace Model } // namespace SQS } // namespace Aws