AWS SDK for C++  0.14.3
AWS SDK for C++
DeleteMessageBatchRequest.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>
21 
22 namespace Aws
23 {
24 namespace SQS
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
42  inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; }
43 
48  inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
49 
54  inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
55 
60  inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); }
61 
66  inline DeleteMessageBatchRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
67 
72  inline DeleteMessageBatchRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(value); return *this;}
73 
78  inline DeleteMessageBatchRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
79 
83  inline const Aws::Vector<DeleteMessageBatchRequestEntry>& GetEntries() const{ return m_entries; }
84 
88  inline void SetEntries(const Aws::Vector<DeleteMessageBatchRequestEntry>& value) { m_entriesHasBeenSet = true; m_entries = value; }
89 
93  inline void SetEntries(Aws::Vector<DeleteMessageBatchRequestEntry>&& value) { m_entriesHasBeenSet = true; m_entries = value; }
94 
98  inline DeleteMessageBatchRequest& WithEntries(const Aws::Vector<DeleteMessageBatchRequestEntry>& value) { SetEntries(value); return *this;}
99 
103  inline DeleteMessageBatchRequest& WithEntries(Aws::Vector<DeleteMessageBatchRequestEntry>&& value) { SetEntries(value); return *this;}
104 
108  inline DeleteMessageBatchRequest& AddEntries(const DeleteMessageBatchRequestEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; }
109 
113  inline DeleteMessageBatchRequest& AddEntries(DeleteMessageBatchRequestEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; }
114 
115  private:
116  Aws::String m_queueUrl;
117  bool m_queueUrlHasBeenSet;
119  bool m_entriesHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace SQS
124 } // namespace Aws
DeleteMessageBatchRequest & WithQueueUrl(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DeleteMessageBatchRequest & WithEntries(Aws::Vector< DeleteMessageBatchRequestEntry > &&value)
DeleteMessageBatchRequest & WithQueueUrl(const char *value)
DeleteMessageBatchRequest & AddEntries(const DeleteMessageBatchRequestEntry &value)
DeleteMessageBatchRequest & WithEntries(const Aws::Vector< DeleteMessageBatchRequestEntry > &value)
void SetEntries(const Aws::Vector< DeleteMessageBatchRequestEntry > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DeleteMessageBatchRequest & WithQueueUrl(const Aws::String &value)
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:37
DeleteMessageBatchRequest & AddEntries(DeleteMessageBatchRequestEntry &&value)
void SetEntries(Aws::Vector< DeleteMessageBatchRequestEntry > &&value)
const Aws::Vector< DeleteMessageBatchRequestEntry > & GetEntries() const
JSON (JavaScript Object Notation).