AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SendMessageBatchResult.h
1
6#pragma once
7#include <aws/sqs/SQS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sqs/model/ResponseMetadata.h>
11#include <aws/sqs/model/SendMessageBatchResultEntry.h>
12#include <aws/sqs/model/BatchResultErrorEntry.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace SQS
28{
29namespace Model
30{
40 {
41 public:
45
46
48
51 inline const Aws::Vector<SendMessageBatchResultEntry>& GetSuccessful() const{ return m_successful; }
52 inline void SetSuccessful(const Aws::Vector<SendMessageBatchResultEntry>& value) { m_successful = value; }
53 inline void SetSuccessful(Aws::Vector<SendMessageBatchResultEntry>&& value) { m_successful = std::move(value); }
56 inline SendMessageBatchResult& AddSuccessful(const SendMessageBatchResultEntry& value) { m_successful.push_back(value); return *this; }
57 inline SendMessageBatchResult& AddSuccessful(SendMessageBatchResultEntry&& value) { m_successful.push_back(std::move(value)); return *this; }
59
61
65 inline const Aws::Vector<BatchResultErrorEntry>& GetFailed() const{ return m_failed; }
66 inline void SetFailed(const Aws::Vector<BatchResultErrorEntry>& value) { m_failed = value; }
67 inline void SetFailed(Aws::Vector<BatchResultErrorEntry>&& value) { m_failed = std::move(value); }
69 inline SendMessageBatchResult& WithFailed(Aws::Vector<BatchResultErrorEntry>&& value) { SetFailed(std::move(value)); return *this;}
70 inline SendMessageBatchResult& AddFailed(const BatchResultErrorEntry& value) { m_failed.push_back(value); return *this; }
71 inline SendMessageBatchResult& AddFailed(BatchResultErrorEntry&& value) { m_failed.push_back(std::move(value)); return *this; }
73
75
76 inline const Aws::String& GetRequestId() const{ return m_requestId; }
77 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
78 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
79 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
80 inline SendMessageBatchResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
81 inline SendMessageBatchResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
82 inline SendMessageBatchResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
84
86
87 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
88 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
89 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
91 inline SendMessageBatchResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
93 private:
94
96
98
99 Aws::String m_requestId;
100
101 ResponseMetadata m_responseMetadata;
102 };
103
104} // namespace Model
105} // namespace SQS
106} // namespace Aws
const ResponseMetadata & GetResponseMetadata() const
SendMessageBatchResult & AddSuccessful(SendMessageBatchResultEntry &&value)
const Aws::Vector< BatchResultErrorEntry > & GetFailed() const
void SetSuccessful(Aws::Vector< SendMessageBatchResultEntry > &&value)
SendMessageBatchResult & WithFailed(Aws::Vector< BatchResultErrorEntry > &&value)
SendMessageBatchResult & WithFailed(const Aws::Vector< BatchResultErrorEntry > &value)
SendMessageBatchResult & WithRequestId(Aws::String &&value)
SendMessageBatchResult & WithSuccessful(Aws::Vector< SendMessageBatchResultEntry > &&value)
void SetResponseMetadata(const ResponseMetadata &value)
SendMessageBatchResult & AddSuccessful(const SendMessageBatchResultEntry &value)
AWS_SQS_API SendMessageBatchResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetSuccessful(const Aws::Vector< SendMessageBatchResultEntry > &value)
void SetFailed(Aws::Vector< BatchResultErrorEntry > &&value)
SendMessageBatchResult & AddFailed(const BatchResultErrorEntry &value)
SendMessageBatchResult & WithSuccessful(const Aws::Vector< SendMessageBatchResultEntry > &value)
AWS_SQS_API SendMessageBatchResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SendMessageBatchResult & AddFailed(BatchResultErrorEntry &&value)
void SetResponseMetadata(ResponseMetadata &&value)
SendMessageBatchResult & WithResponseMetadata(const ResponseMetadata &value)
SendMessageBatchResult & WithRequestId(const Aws::String &value)
SendMessageBatchResult & WithResponseMetadata(ResponseMetadata &&value)
void SetFailed(const Aws::Vector< BatchResultErrorEntry > &value)
SendMessageBatchResult & WithRequestId(const char *value)
void SetRequestId(const Aws::String &value)
const Aws::Vector< SendMessageBatchResultEntry > & GetSuccessful() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue