/** * 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 Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace SQS { namespace Model { /** *

Encloses a receipt handle and an entry ID for each message in * ChangeMessageVisibilityBatch.

See Also:

AWS * API Reference

*/ class ChangeMessageVisibilityBatchRequestEntry { public: AWS_SQS_API ChangeMessageVisibilityBatchRequestEntry(); AWS_SQS_API ChangeMessageVisibilityBatchRequestEntry(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SQS_API ChangeMessageVisibilityBatchRequestEntry& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SQS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_SQS_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

An identifier for this particular receipt handle used to communicate the * result.

The Ids of a batch request need to be unique * within a request.

This identifier can have up to 80 characters. The * following characters are accepted: alphanumeric characters, hyphens(-), and * underscores (_).

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

An identifier for this particular receipt handle used to communicate the * result.

The Ids of a batch request need to be unique * within a request.

This identifier can have up to 80 characters. The * following characters are accepted: alphanumeric characters, hyphens(-), and * underscores (_).

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

An identifier for this particular receipt handle used to communicate the * result.

The Ids of a batch request need to be unique * within a request.

This identifier can have up to 80 characters. The * following characters are accepted: alphanumeric characters, hyphens(-), and * underscores (_).

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

An identifier for this particular receipt handle used to communicate the * result.

The Ids of a batch request need to be unique * within a request.

This identifier can have up to 80 characters. The * following characters are accepted: alphanumeric characters, hyphens(-), and * underscores (_).

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

An identifier for this particular receipt handle used to communicate the * result.

The Ids of a batch request need to be unique * within a request.

This identifier can have up to 80 characters. The * following characters are accepted: alphanumeric characters, hyphens(-), and * underscores (_).

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

An identifier for this particular receipt handle used to communicate the * result.

The Ids of a batch request need to be unique * within a request.

This identifier can have up to 80 characters. The * following characters are accepted: alphanumeric characters, hyphens(-), and * underscores (_).

*/ inline ChangeMessageVisibilityBatchRequestEntry& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

An identifier for this particular receipt handle used to communicate the * result.

The Ids of a batch request need to be unique * within a request.

This identifier can have up to 80 characters. The * following characters are accepted: alphanumeric characters, hyphens(-), and * underscores (_).

*/ inline ChangeMessageVisibilityBatchRequestEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

An identifier for this particular receipt handle used to communicate the * result.

The Ids of a batch request need to be unique * within a request.

This identifier can have up to 80 characters. The * following characters are accepted: alphanumeric characters, hyphens(-), and * underscores (_).

*/ inline ChangeMessageVisibilityBatchRequestEntry& WithId(const char* value) { SetId(value); return *this;} /** *

A receipt handle.

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

A receipt handle.

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

A receipt handle.

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

A receipt handle.

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

A receipt handle.

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

A receipt handle.

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

A receipt handle.

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

A receipt handle.

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

The new value (in seconds) for the message's visibility timeout.

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

The new value (in seconds) for the message's visibility timeout.

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

The new value (in seconds) for the message's visibility timeout.

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

The new value (in seconds) for the message's visibility timeout.

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