AWS SDK for C++  0.14.3
AWS SDK for C++
DeleteMessageBatchRequestEntry.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>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace SQS
30 {
31 namespace Model
32 {
33 
38  {
39  public:
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
52  inline const Aws::String& GetId() const{ return m_id; }
53 
59  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
60 
66  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
67 
73  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
74 
80  inline DeleteMessageBatchRequestEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
81 
87  inline DeleteMessageBatchRequestEntry& WithId(Aws::String&& value) { SetId(value); return *this;}
88 
94  inline DeleteMessageBatchRequestEntry& WithId(const char* value) { SetId(value); return *this;}
95 
99  inline const Aws::String& GetReceiptHandle() const{ return m_receiptHandle; }
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 = value; }
110 
114  inline void SetReceiptHandle(const char* value) { m_receiptHandleHasBeenSet = true; m_receiptHandle.assign(value); }
115 
119  inline DeleteMessageBatchRequestEntry& WithReceiptHandle(const Aws::String& value) { SetReceiptHandle(value); return *this;}
120 
124  inline DeleteMessageBatchRequestEntry& WithReceiptHandle(Aws::String&& value) { SetReceiptHandle(value); return *this;}
125 
129  inline DeleteMessageBatchRequestEntry& WithReceiptHandle(const char* value) { SetReceiptHandle(value); return *this;}
130 
131  private:
132  Aws::String m_id;
133  bool m_idHasBeenSet;
134  Aws::String m_receiptHandle;
135  bool m_receiptHandleHasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace SQS
140 } // namespace Aws
DeleteMessageBatchRequestEntry & WithId(Aws::String &&value)
DeleteMessageBatchRequestEntry & WithReceiptHandle(Aws::String &&value)
void SetId(Aws::String &&value)
void SetId(const Aws::String &value)
DeleteMessageBatchRequestEntry & WithId(const char *value)
DeleteMessageBatchRequestEntry & WithId(const Aws::String &value)
void SetId(const char *value)
const Aws::String & GetReceiptHandle() const
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetReceiptHandle(const char *value)
void SetReceiptHandle(Aws::String &&value)
DeleteMessageBatchRequestEntry & WithReceiptHandle(const char *value)
const Aws::String & GetId() const
void SetReceiptHandle(const Aws::String &value)
DeleteMessageBatchRequestEntry & WithReceiptHandle(const Aws::String &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:37
JSON (JavaScript Object Notation).