AWS SDK for C++  0.12.9
AWS SDK for C++
DeleteMessageRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/sqs/SQS_EXPORTS.h>
17 #include <aws/sqs/SQSRequest.h>
19 
20 namespace Aws
21 {
22 namespace SQS
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
40  inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; }
41 
46  inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
47 
52  inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
53 
58  inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); }
59 
64  inline DeleteMessageRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
65 
70  inline DeleteMessageRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(value); return *this;}
71 
76  inline DeleteMessageRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
77 
81  inline const Aws::String& GetReceiptHandle() const{ return m_receiptHandle; }
82 
86  inline void SetReceiptHandle(const Aws::String& value) { m_receiptHandleHasBeenSet = true; m_receiptHandle = value; }
87 
91  inline void SetReceiptHandle(Aws::String&& value) { m_receiptHandleHasBeenSet = true; m_receiptHandle = value; }
92 
96  inline void SetReceiptHandle(const char* value) { m_receiptHandleHasBeenSet = true; m_receiptHandle.assign(value); }
97 
101  inline DeleteMessageRequest& WithReceiptHandle(const Aws::String& value) { SetReceiptHandle(value); return *this;}
102 
106  inline DeleteMessageRequest& WithReceiptHandle(Aws::String&& value) { SetReceiptHandle(value); return *this;}
107 
111  inline DeleteMessageRequest& WithReceiptHandle(const char* value) { SetReceiptHandle(value); return *this;}
112 
113  private:
114  Aws::String m_queueUrl;
115  bool m_queueUrlHasBeenSet;
116  Aws::String m_receiptHandle;
117  bool m_receiptHandleHasBeenSet;
118  };
119 
120 } // namespace Model
121 } // namespace SQS
122 } // namespace Aws
DeleteMessageRequest & WithReceiptHandle(const Aws::String &value)
DeleteMessageRequest & WithQueueUrl(Aws::String &&value)
void SetReceiptHandle(const Aws::String &value)
const Aws::String & GetReceiptHandle() const
void SetReceiptHandle(Aws::String &&value)
DeleteMessageRequest & WithReceiptHandle(Aws::String &&value)
void SetQueueUrl(const Aws::String &value)
DeleteMessageRequest & WithReceiptHandle(const char *value)
const Aws::String & GetQueueUrl() const
DeleteMessageRequest & WithQueueUrl(const Aws::String &value)
DeleteMessageRequest & WithQueueUrl(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:34
JSON (JavaScript Object Notation).