/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace SQS { namespace Model { /** *

See Also:

AWS * API Reference

*/ class DeleteMessageBatchRequest : public SQSRequest { public: AWS_SQS_API DeleteMessageBatchRequest(); // 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 "DeleteMessageBatch"; } 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 from which messages are deleted.

Queue * URLs and names are case-sensitive.

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

The URL of the Amazon SQS queue from which messages are deleted.

Queue * URLs and names are case-sensitive.

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

The URL of the Amazon SQS queue from which messages are deleted.

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 from which messages are deleted.

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 from which messages are deleted.

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 from which messages are deleted.

Queue * URLs and names are case-sensitive.

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

The URL of the Amazon SQS queue from which messages are deleted.

Queue * URLs and names are case-sensitive.

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

The URL of the Amazon SQS queue from which messages are deleted.

Queue * URLs and names are case-sensitive.

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

Lists the receipt handles for the messages to be deleted.

*/ inline const Aws::Vector& GetEntries() const{ return m_entries; } /** *

Lists the receipt handles for the messages to be deleted.

*/ inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; } /** *

Lists the receipt handles for the messages to be deleted.

*/ inline void SetEntries(const Aws::Vector& value) { m_entriesHasBeenSet = true; m_entries = value; } /** *

Lists the receipt handles for the messages to be deleted.

*/ inline void SetEntries(Aws::Vector&& value) { m_entriesHasBeenSet = true; m_entries = std::move(value); } /** *

Lists the receipt handles for the messages to be deleted.

*/ inline DeleteMessageBatchRequest& WithEntries(const Aws::Vector& value) { SetEntries(value); return *this;} /** *

Lists the receipt handles for the messages to be deleted.

*/ inline DeleteMessageBatchRequest& WithEntries(Aws::Vector&& value) { SetEntries(std::move(value)); return *this;} /** *

Lists the receipt handles for the messages to be deleted.

*/ inline DeleteMessageBatchRequest& AddEntries(const DeleteMessageBatchRequestEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; } /** *

Lists the receipt handles for the messages to be deleted.

*/ inline DeleteMessageBatchRequest& AddEntries(DeleteMessageBatchRequestEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(std::move(value)); return *this; } private: Aws::String m_queueUrl; bool m_queueUrlHasBeenSet = false; Aws::Vector m_entries; bool m_entriesHasBeenSet = false; }; } // namespace Model } // namespace SQS } // namespace Aws