AWS SDK for C++  0.12.9
AWS SDK for C++
ChangeMessageVisibilityBatchResult.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>
21 
22 namespace Aws
23 {
24 template<typename RESULT_TYPE>
25 class AmazonWebServiceResult;
26 
27 namespace Utils
28 {
29 namespace Xml
30 {
31  class XmlDocument;
32 } // namespace Xml
33 } // namespace Utils
34 namespace SQS
35 {
36 namespace Model
37 {
44  {
45  public:
49 
53  inline const Aws::Vector<ChangeMessageVisibilityBatchResultEntry>& GetSuccessful() const{ return m_successful; }
54 
58  inline void SetSuccessful(const Aws::Vector<ChangeMessageVisibilityBatchResultEntry>& value) { m_successful = value; }
59 
63  inline void SetSuccessful(Aws::Vector<ChangeMessageVisibilityBatchResultEntry>&& value) { m_successful = value; }
64 
69 
74 
78  inline ChangeMessageVisibilityBatchResult& AddSuccessful(const ChangeMessageVisibilityBatchResultEntry& value) { m_successful.push_back(value); return *this; }
79 
83  inline ChangeMessageVisibilityBatchResult& AddSuccessful(ChangeMessageVisibilityBatchResultEntry&& value) { m_successful.push_back(value); return *this; }
84 
88  inline const Aws::Vector<BatchResultErrorEntry>& GetFailed() const{ return m_failed; }
89 
93  inline void SetFailed(const Aws::Vector<BatchResultErrorEntry>& value) { m_failed = value; }
94 
98  inline void SetFailed(Aws::Vector<BatchResultErrorEntry>&& value) { m_failed = value; }
99 
103  inline ChangeMessageVisibilityBatchResult& WithFailed(const Aws::Vector<BatchResultErrorEntry>& value) { SetFailed(value); return *this;}
104 
108  inline ChangeMessageVisibilityBatchResult& WithFailed(Aws::Vector<BatchResultErrorEntry>&& value) { SetFailed(value); return *this;}
109 
113  inline ChangeMessageVisibilityBatchResult& AddFailed(const BatchResultErrorEntry& value) { m_failed.push_back(value); return *this; }
114 
118  inline ChangeMessageVisibilityBatchResult& AddFailed(BatchResultErrorEntry&& value) { m_failed.push_back(value); return *this; }
119 
120 
121  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
122 
123 
124  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
125 
126 
127  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
128 
129 
130  inline ChangeMessageVisibilityBatchResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
131 
132 
133  inline ChangeMessageVisibilityBatchResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
134 
135  private:
138  ResponseMetadata m_responseMetadata;
139  };
140 
141 } // namespace Model
142 } // namespace SQS
143 } // namespace Aws
void SetSuccessful(Aws::Vector< ChangeMessageVisibilityBatchResultEntry > &&value)
ChangeMessageVisibilityBatchResult & WithResponseMetadata(const ResponseMetadata &value)
ChangeMessageVisibilityBatchResult & WithFailed(const Aws::Vector< BatchResultErrorEntry > &value)
ChangeMessageVisibilityBatchResult & WithSuccessful(const Aws::Vector< ChangeMessageVisibilityBatchResultEntry > &value)
ChangeMessageVisibilityBatchResult & AddFailed(const BatchResultErrorEntry &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetFailed(Aws::Vector< BatchResultErrorEntry > &&value)
ChangeMessageVisibilityBatchResult & AddSuccessful(const ChangeMessageVisibilityBatchResultEntry &value)
ChangeMessageVisibilityBatchResult & WithFailed(Aws::Vector< BatchResultErrorEntry > &&value)
ChangeMessageVisibilityBatchResult & WithSuccessful(Aws::Vector< ChangeMessageVisibilityBatchResultEntry > &&value)
ChangeMessageVisibilityBatchResult & WithResponseMetadata(ResponseMetadata &&value)
const Aws::Vector< ChangeMessageVisibilityBatchResultEntry > & GetSuccessful() const
const Aws::Vector< BatchResultErrorEntry > & GetFailed() const
void SetFailed(const Aws::Vector< BatchResultErrorEntry > &value)
ChangeMessageVisibilityBatchResult & AddFailed(BatchResultErrorEntry &&value)
void SetSuccessful(const Aws::Vector< ChangeMessageVisibilityBatchResultEntry > &value)
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:34
ChangeMessageVisibilityBatchResult & AddSuccessful(ChangeMessageVisibilityBatchResultEntry &&value)
JSON (JavaScript Object Notation).