AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeleteMessageRequest.h
1
6#pragma once
7#include <aws/sqs/SQS_EXPORTS.h>
8#include <aws/sqs/SQSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace SQS
15{
16namespace Model
17{
18
25 {
26 public:
27 AWS_SQS_API DeleteMessageRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DeleteMessage"; }
34
35 AWS_SQS_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; }
46 inline bool QueueUrlHasBeenSet() const { return m_queueUrlHasBeenSet; }
47 inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
48 inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = std::move(value); }
49 inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); }
50 inline DeleteMessageRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
51 inline DeleteMessageRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(std::move(value)); return *this;}
52 inline DeleteMessageRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
54
56
59 inline const Aws::String& GetReceiptHandle() const{ return m_receiptHandle; }
60 inline bool ReceiptHandleHasBeenSet() const { return m_receiptHandleHasBeenSet; }
61 inline void SetReceiptHandle(const Aws::String& value) { m_receiptHandleHasBeenSet = true; m_receiptHandle = value; }
62 inline void SetReceiptHandle(Aws::String&& value) { m_receiptHandleHasBeenSet = true; m_receiptHandle = std::move(value); }
63 inline void SetReceiptHandle(const char* value) { m_receiptHandleHasBeenSet = true; m_receiptHandle.assign(value); }
64 inline DeleteMessageRequest& WithReceiptHandle(const Aws::String& value) { SetReceiptHandle(value); return *this;}
65 inline DeleteMessageRequest& WithReceiptHandle(Aws::String&& value) { SetReceiptHandle(std::move(value)); return *this;}
66 inline DeleteMessageRequest& WithReceiptHandle(const char* value) { SetReceiptHandle(value); return *this;}
68 private:
69
70 Aws::String m_queueUrl;
71 bool m_queueUrlHasBeenSet = false;
72
73 Aws::String m_receiptHandle;
74 bool m_receiptHandleHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace SQS
79} // namespace Aws
void SetQueueUrl(const Aws::String &value)
const Aws::String & GetQueueUrl() const
const Aws::String & GetReceiptHandle() const
DeleteMessageRequest & WithQueueUrl(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
DeleteMessageRequest & WithQueueUrl(const char *value)
AWS_SQS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DeleteMessageRequest & WithReceiptHandle(const char *value)
DeleteMessageRequest & WithQueueUrl(const Aws::String &value)
AWS_SQS_API Aws::String SerializePayload() const override
DeleteMessageRequest & WithReceiptHandle(const Aws::String &value)
DeleteMessageRequest & WithReceiptHandle(Aws::String &&value)
void SetReceiptHandle(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String