AWS SDK for C++  0.14.3
AWS SDK for C++
SendMessageBatchResult.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<SendMessageBatchResultEntry>& GetSuccessful() const{ return m_successful; }
54 
58  inline void SetSuccessful(const Aws::Vector<SendMessageBatchResultEntry>& value) { m_successful = value; }
59 
63  inline void SetSuccessful(Aws::Vector<SendMessageBatchResultEntry>&& value) { m_successful = value; }
64 
68  inline SendMessageBatchResult& WithSuccessful(const Aws::Vector<SendMessageBatchResultEntry>& value) { SetSuccessful(value); return *this;}
69 
73  inline SendMessageBatchResult& WithSuccessful(Aws::Vector<SendMessageBatchResultEntry>&& value) { SetSuccessful(value); return *this;}
74 
78  inline SendMessageBatchResult& AddSuccessful(const SendMessageBatchResultEntry& value) { m_successful.push_back(value); return *this; }
79 
83  inline SendMessageBatchResult& AddSuccessful(SendMessageBatchResultEntry&& value) { m_successful.push_back(value); return *this; }
84 
89  inline const Aws::Vector<BatchResultErrorEntry>& GetFailed() const{ return m_failed; }
90 
95  inline void SetFailed(const Aws::Vector<BatchResultErrorEntry>& value) { m_failed = value; }
96 
101  inline void SetFailed(Aws::Vector<BatchResultErrorEntry>&& value) { m_failed = value; }
102 
107  inline SendMessageBatchResult& WithFailed(const Aws::Vector<BatchResultErrorEntry>& value) { SetFailed(value); return *this;}
108 
113  inline SendMessageBatchResult& WithFailed(Aws::Vector<BatchResultErrorEntry>&& value) { SetFailed(value); return *this;}
114 
119  inline SendMessageBatchResult& AddFailed(const BatchResultErrorEntry& value) { m_failed.push_back(value); return *this; }
120 
125  inline SendMessageBatchResult& AddFailed(BatchResultErrorEntry&& value) { m_failed.push_back(value); return *this; }
126 
127 
128  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
129 
130 
131  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
132 
133 
134  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
135 
136 
137  inline SendMessageBatchResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
138 
139 
140  inline SendMessageBatchResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
141 
142  private:
145  ResponseMetadata m_responseMetadata;
146  };
147 
148 } // namespace Model
149 } // namespace SQS
150 } // namespace Aws
SendMessageBatchResult & WithResponseMetadata(const ResponseMetadata &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetResponseMetadata(const ResponseMetadata &value)
void SetSuccessful(const Aws::Vector< SendMessageBatchResultEntry > &value)
SendMessageBatchResult & WithSuccessful(Aws::Vector< SendMessageBatchResultEntry > &&value)
SendMessageBatchResult & AddFailed(BatchResultErrorEntry &&value)
void SetResponseMetadata(ResponseMetadata &&value)
const ResponseMetadata & GetResponseMetadata() const
const Aws::Vector< BatchResultErrorEntry > & GetFailed() const
void SetFailed(const Aws::Vector< BatchResultErrorEntry > &value)
SendMessageBatchResult & WithResponseMetadata(ResponseMetadata &&value)
SendMessageBatchResult & WithFailed(Aws::Vector< BatchResultErrorEntry > &&value)
SendMessageBatchResult & WithSuccessful(const Aws::Vector< SendMessageBatchResultEntry > &value)
SendMessageBatchResult & AddSuccessful(const SendMessageBatchResultEntry &value)
SendMessageBatchResult & AddFailed(const BatchResultErrorEntry &value)
SendMessageBatchResult & WithFailed(const Aws::Vector< BatchResultErrorEntry > &value)
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:37
SendMessageBatchResult & AddSuccessful(SendMessageBatchResultEntry &&value)
void SetSuccessful(Aws::Vector< SendMessageBatchResultEntry > &&value)
JSON (JavaScript Object Notation).
void SetFailed(Aws::Vector< BatchResultErrorEntry > &&value)
const Aws::Vector< SendMessageBatchResultEntry > & GetSuccessful() const