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

See Also:

AWS * API Reference

*/ class PurgeQueueRequest : public SQSRequest { public: AWS_SQS_API PurgeQueueRequest(); // 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 "PurgeQueue"; } 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 queue from which the PurgeQueue action deletes * messages.

Queue URLs and names are case-sensitive.

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

The URL of the queue from which the PurgeQueue action deletes * messages.

Queue URLs and names are case-sensitive.

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

The URL of the queue from which the PurgeQueue action deletes * messages.

Queue URLs and names are case-sensitive.

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

The URL of the queue from which the PurgeQueue action deletes * messages.

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 queue from which the PurgeQueue action deletes * messages.

Queue URLs and names are case-sensitive.

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

The URL of the queue from which the PurgeQueue action deletes * messages.

Queue URLs and names are case-sensitive.

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

The URL of the queue from which the PurgeQueue action deletes * messages.

Queue URLs and names are case-sensitive.

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

The URL of the queue from which the PurgeQueue action deletes * messages.

Queue URLs and names are case-sensitive.

*/ inline PurgeQueueRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;} private: Aws::String m_queueUrl; bool m_queueUrlHasBeenSet = false; }; } // namespace Model } // namespace SQS } // namespace Aws