AWS SDK for C++  1.8.126
AWS SDK for C++
SendMessageBatchResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sqs/SQS_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace SQS
27 {
28 namespace Model
29 {
39  {
40  public:
44 
45 
49  inline const Aws::Vector<SendMessageBatchResultEntry>& GetSuccessful() const{ return m_successful; }
50 
54  inline void SetSuccessful(const Aws::Vector<SendMessageBatchResultEntry>& value) { m_successful = value; }
55 
59  inline void SetSuccessful(Aws::Vector<SendMessageBatchResultEntry>&& value) { m_successful = std::move(value); }
60 
64  inline SendMessageBatchResult& WithSuccessful(const Aws::Vector<SendMessageBatchResultEntry>& value) { SetSuccessful(value); return *this;}
65 
69  inline SendMessageBatchResult& WithSuccessful(Aws::Vector<SendMessageBatchResultEntry>&& value) { SetSuccessful(std::move(value)); return *this;}
70 
74  inline SendMessageBatchResult& AddSuccessful(const SendMessageBatchResultEntry& value) { m_successful.push_back(value); return *this; }
75 
79  inline SendMessageBatchResult& AddSuccessful(SendMessageBatchResultEntry&& value) { m_successful.push_back(std::move(value)); return *this; }
80 
81 
86  inline const Aws::Vector<BatchResultErrorEntry>& GetFailed() const{ return m_failed; }
87 
92  inline void SetFailed(const Aws::Vector<BatchResultErrorEntry>& value) { m_failed = value; }
93 
98  inline void SetFailed(Aws::Vector<BatchResultErrorEntry>&& value) { m_failed = std::move(value); }
99 
104  inline SendMessageBatchResult& WithFailed(const Aws::Vector<BatchResultErrorEntry>& value) { SetFailed(value); return *this;}
105 
110  inline SendMessageBatchResult& WithFailed(Aws::Vector<BatchResultErrorEntry>&& value) { SetFailed(std::move(value)); return *this;}
111 
116  inline SendMessageBatchResult& AddFailed(const BatchResultErrorEntry& value) { m_failed.push_back(value); return *this; }
117 
122  inline SendMessageBatchResult& AddFailed(BatchResultErrorEntry&& value) { m_failed.push_back(std::move(value)); return *this; }
123 
124 
125 
126  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
127 
128 
129  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
130 
131 
132  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
133 
134 
135  inline SendMessageBatchResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
136 
137 
138  inline SendMessageBatchResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
139 
140  private:
141 
143 
145 
146  ResponseMetadata m_responseMetadata;
147  };
148 
149 } // namespace Model
150 } // namespace SQS
151 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::SQS::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::SQS::Model::BatchResultErrorEntry
Definition: BatchResultErrorEntry.h:33
Aws::SQS::Model::SendMessageBatchResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: SendMessageBatchResult.h:126
Aws::SQS::Model::SendMessageBatchResult::SendMessageBatchResult
SendMessageBatchResult()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SQS::Model::SendMessageBatchResult
Definition: SendMessageBatchResult.h:39
Aws::SQS::Model::SendMessageBatchResult::SetFailed
void SetFailed(Aws::Vector< BatchResultErrorEntry > &&value)
Definition: SendMessageBatchResult.h:98
AWSVector.h
Aws::SQS::Model::SendMessageBatchResult::WithSuccessful
SendMessageBatchResult & WithSuccessful(const Aws::Vector< SendMessageBatchResultEntry > &value)
Definition: SendMessageBatchResult.h:64
Aws::SQS::Model::SendMessageBatchResult::SetSuccessful
void SetSuccessful(Aws::Vector< SendMessageBatchResultEntry > &&value)
Definition: SendMessageBatchResult.h:59
Aws::SQS::Model::SendMessageBatchResult::SetFailed
void SetFailed(const Aws::Vector< BatchResultErrorEntry > &value)
Definition: SendMessageBatchResult.h:92
SendMessageBatchResultEntry.h
Aws::SQS::Model::SendMessageBatchResult::AddFailed
SendMessageBatchResult & AddFailed(const BatchResultErrorEntry &value)
Definition: SendMessageBatchResult.h:116
Aws::SQS::Model::SendMessageBatchResult::SetSuccessful
void SetSuccessful(const Aws::Vector< SendMessageBatchResultEntry > &value)
Definition: SendMessageBatchResult.h:54
Aws::Chime::Model::NotificationTarget::NOT_SET
@ NOT_SET
Aws::SQS::Model::SendMessageBatchResultEntry
Definition: SendMessageBatchResultEntry.h:33
Aws::SQS::Model::SendMessageBatchResult::WithResponseMetadata
SendMessageBatchResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: SendMessageBatchResult.h:138
AWS_SQS_API
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
Aws::SQS::Model::SendMessageBatchResult::operator=
SendMessageBatchResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::SQS::Model::SendMessageBatchResult::GetSuccessful
const Aws::Vector< SendMessageBatchResultEntry > & GetSuccessful() const
Definition: SendMessageBatchResult.h:49
Aws::SQS::Model::SendMessageBatchResult::AddSuccessful
SendMessageBatchResult & AddSuccessful(const SendMessageBatchResultEntry &value)
Definition: SendMessageBatchResult.h:74
Aws::SQS::Model::SendMessageBatchResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: SendMessageBatchResult.h:132
Aws::SQS::Model::SendMessageBatchResult::WithFailed
SendMessageBatchResult & WithFailed(const Aws::Vector< BatchResultErrorEntry > &value)
Definition: SendMessageBatchResult.h:104
BatchResultErrorEntry.h
Aws::SQS::Model::SendMessageBatchResult::SendMessageBatchResult
SendMessageBatchResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
SQS_EXPORTS.h
Aws::SQS::Model::SendMessageBatchResult::WithResponseMetadata
SendMessageBatchResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: SendMessageBatchResult.h:135
Aws
Definition: AccessManagementClient.h:15
Aws::SQS::Model::SendMessageBatchResult::GetFailed
const Aws::Vector< BatchResultErrorEntry > & GetFailed() const
Definition: SendMessageBatchResult.h:86
Aws::SQS::Model::SendMessageBatchResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: SendMessageBatchResult.h:129
Aws::SQS::Model::SendMessageBatchResult::AddFailed
SendMessageBatchResult & AddFailed(BatchResultErrorEntry &&value)
Definition: SendMessageBatchResult.h:122
ResponseMetadata.h
Aws::SQS::Model::SendMessageBatchResult::AddSuccessful
SendMessageBatchResult & AddSuccessful(SendMessageBatchResultEntry &&value)
Definition: SendMessageBatchResult.h:79
Aws::SQS::Model::SendMessageBatchResult::WithSuccessful
SendMessageBatchResult & WithSuccessful(Aws::Vector< SendMessageBatchResultEntry > &&value)
Definition: SendMessageBatchResult.h:69
Aws::SQS::Model::SendMessageBatchResult::WithFailed
SendMessageBatchResult & WithFailed(Aws::Vector< BatchResultErrorEntry > &&value)
Definition: SendMessageBatchResult.h:110