AWS SDK for C++  0.12.9
AWS SDK for C++
ChangeMessageVisibilityBatchRequest.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 ChangeMessageVisibilityBatchRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
67 
72  inline ChangeMessageVisibilityBatchRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(value); return *this;}
73 
78  inline ChangeMessageVisibilityBatchRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
79 
84  inline const Aws::Vector<ChangeMessageVisibilityBatchRequestEntry>& GetEntries() const{ return m_entries; }
85 
90  inline void SetEntries(const Aws::Vector<ChangeMessageVisibilityBatchRequestEntry>& value) { m_entriesHasBeenSet = true; m_entries = value; }
91 
96  inline void SetEntries(Aws::Vector<ChangeMessageVisibilityBatchRequestEntry>&& value) { m_entriesHasBeenSet = true; m_entries = value; }
97 
103 
109 
114  inline ChangeMessageVisibilityBatchRequest& AddEntries(const ChangeMessageVisibilityBatchRequestEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; }
115 
120  inline ChangeMessageVisibilityBatchRequest& AddEntries(ChangeMessageVisibilityBatchRequestEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; }
121 
122  private:
123  Aws::String m_queueUrl;
124  bool m_queueUrlHasBeenSet;
126  bool m_entriesHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace SQS
131 } // namespace Aws
ChangeMessageVisibilityBatchRequest & WithEntries(Aws::Vector< ChangeMessageVisibilityBatchRequestEntry > &&value)
ChangeMessageVisibilityBatchRequest & AddEntries(const ChangeMessageVisibilityBatchRequestEntry &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ChangeMessageVisibilityBatchRequest & WithEntries(const Aws::Vector< ChangeMessageVisibilityBatchRequestEntry > &value)
const Aws::Vector< ChangeMessageVisibilityBatchRequestEntry > & GetEntries() const
void SetEntries(const Aws::Vector< ChangeMessageVisibilityBatchRequestEntry > &value)
ChangeMessageVisibilityBatchRequest & WithQueueUrl(Aws::String &&value)
ChangeMessageVisibilityBatchRequest & WithQueueUrl(const char *value)
ChangeMessageVisibilityBatchRequest & WithQueueUrl(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetEntries(Aws::Vector< ChangeMessageVisibilityBatchRequestEntry > &&value)
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:34
ChangeMessageVisibilityBatchRequest & AddEntries(ChangeMessageVisibilityBatchRequestEntry &&value)
JSON (JavaScript Object Notation).