AWS SDK for C++  1.9.1
AWS SDK for C++
DeleteMessageRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sqs/SQS_EXPORTS.h>
8 #include <aws/sqs/SQSRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SQS
15 {
16 namespace Model
17 {
18 
25  {
26  public:
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::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
46  inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; }
47 
52  inline bool QueueUrlHasBeenSet() const { return m_queueUrlHasBeenSet; }
53 
58  inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
59 
64  inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = std::move(value); }
65 
70  inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); }
71 
76  inline DeleteMessageRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
77 
82  inline DeleteMessageRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(std::move(value)); return *this;}
83 
88  inline DeleteMessageRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
89 
90 
94  inline const Aws::String& GetReceiptHandle() const{ return m_receiptHandle; }
95 
99  inline bool ReceiptHandleHasBeenSet() const { return m_receiptHandleHasBeenSet; }
100 
104  inline void SetReceiptHandle(const Aws::String& value) { m_receiptHandleHasBeenSet = true; m_receiptHandle = value; }
105 
109  inline void SetReceiptHandle(Aws::String&& value) { m_receiptHandleHasBeenSet = true; m_receiptHandle = std::move(value); }
110 
114  inline void SetReceiptHandle(const char* value) { m_receiptHandleHasBeenSet = true; m_receiptHandle.assign(value); }
115 
119  inline DeleteMessageRequest& WithReceiptHandle(const Aws::String& value) { SetReceiptHandle(value); return *this;}
120 
124  inline DeleteMessageRequest& WithReceiptHandle(Aws::String&& value) { SetReceiptHandle(std::move(value)); return *this;}
125 
129  inline DeleteMessageRequest& WithReceiptHandle(const char* value) { SetReceiptHandle(value); return *this;}
130 
131  private:
132 
133  Aws::String m_queueUrl;
134  bool m_queueUrlHasBeenSet;
135 
136  Aws::String m_receiptHandle;
137  bool m_receiptHandleHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace SQS
142 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::SQS::Model::DeleteMessageRequest::WithReceiptHandle
DeleteMessageRequest & WithReceiptHandle(Aws::String &&value)
Definition: DeleteMessageRequest.h:124
Aws::SQS::Model::DeleteMessageRequest::GetQueueUrl
const Aws::String & GetQueueUrl() const
Definition: DeleteMessageRequest.h:46
Aws::SQS::Model::DeleteMessageRequest::GetReceiptHandle
const Aws::String & GetReceiptHandle() const
Definition: DeleteMessageRequest.h:94
Aws::SQS::Model::DeleteMessageRequest::WithQueueUrl
DeleteMessageRequest & WithQueueUrl(Aws::String &&value)
Definition: DeleteMessageRequest.h:82
Aws::SQS::Model::DeleteMessageRequest::DeleteMessageRequest
DeleteMessageRequest()
Aws::SQS::Model::DeleteMessageRequest
Definition: DeleteMessageRequest.h:25
Aws::SQS::Model::DeleteMessageRequest::SetQueueUrl
void SetQueueUrl(const Aws::String &value)
Definition: DeleteMessageRequest.h:58
Aws::SQS::Model::DeleteMessageRequest::SetQueueUrl
void SetQueueUrl(const char *value)
Definition: DeleteMessageRequest.h:70
Aws::SQS::Model::DeleteMessageRequest::WithReceiptHandle
DeleteMessageRequest & WithReceiptHandle(const Aws::String &value)
Definition: DeleteMessageRequest.h:119
Aws::SQS::Model::DeleteMessageRequest::SetReceiptHandle
void SetReceiptHandle(Aws::String &&value)
Definition: DeleteMessageRequest.h:109
Aws::SQS::Model::DeleteMessageRequest::SetReceiptHandle
void SetReceiptHandle(const char *value)
Definition: DeleteMessageRequest.h:114
Aws::SQS::Model::DeleteMessageRequest::SetQueueUrl
void SetQueueUrl(Aws::String &&value)
Definition: DeleteMessageRequest.h:64
Aws::Chime::Model::NotificationTarget::NOT_SET
@ NOT_SET
AWSString.h
AWS_SQS_API
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
Aws::SQS::Model::DeleteMessageRequest::WithReceiptHandle
DeleteMessageRequest & WithReceiptHandle(const char *value)
Definition: DeleteMessageRequest.h:129
Aws::SQS::Model::DeleteMessageRequest::SetReceiptHandle
void SetReceiptHandle(const Aws::String &value)
Definition: DeleteMessageRequest.h:104
SQS_EXPORTS.h
Aws::SQS::SQSRequest
Definition: SQSRequest.h:17
Aws::SQS::Model::DeleteMessageRequest::WithQueueUrl
DeleteMessageRequest & WithQueueUrl(const char *value)
Definition: DeleteMessageRequest.h:88
Aws
Definition: AccessManagementClient.h:15
Aws::SQS::Model::DeleteMessageRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SQS::Model::DeleteMessageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SQS::Model::DeleteMessageRequest::WithQueueUrl
DeleteMessageRequest & WithQueueUrl(const Aws::String &value)
Definition: DeleteMessageRequest.h:76
Aws::SQS::Model::DeleteMessageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteMessageRequest.h:33
Aws::SQS::Model::DeleteMessageRequest::QueueUrlHasBeenSet
bool QueueUrlHasBeenSet() const
Definition: DeleteMessageRequest.h:52
SQSRequest.h
Aws::SQS::Model::DeleteMessageRequest::ReceiptHandleHasBeenSet
bool ReceiptHandleHasBeenSet() const
Definition: DeleteMessageRequest.h:99