AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PublishBatchResult.h
1
6#pragma once
7#include <aws/sns/SNS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sns/model/ResponseMetadata.h>
10#include <aws/sns/model/PublishBatchResultEntry.h>
11#include <aws/sns/model/BatchResultErrorEntry.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace SNS
27{
28namespace Model
29{
31 {
32 public:
33 AWS_SNS_API PublishBatchResult();
36
37
39
42 inline const Aws::Vector<PublishBatchResultEntry>& GetSuccessful() const{ return m_successful; }
43 inline void SetSuccessful(const Aws::Vector<PublishBatchResultEntry>& value) { m_successful = value; }
44 inline void SetSuccessful(Aws::Vector<PublishBatchResultEntry>&& value) { m_successful = std::move(value); }
46 inline PublishBatchResult& WithSuccessful(Aws::Vector<PublishBatchResultEntry>&& value) { SetSuccessful(std::move(value)); return *this;}
47 inline PublishBatchResult& AddSuccessful(const PublishBatchResultEntry& value) { m_successful.push_back(value); return *this; }
48 inline PublishBatchResult& AddSuccessful(PublishBatchResultEntry&& value) { m_successful.push_back(std::move(value)); return *this; }
50
52
55 inline const Aws::Vector<BatchResultErrorEntry>& GetFailed() const{ return m_failed; }
56 inline void SetFailed(const Aws::Vector<BatchResultErrorEntry>& value) { m_failed = value; }
57 inline void SetFailed(Aws::Vector<BatchResultErrorEntry>&& value) { m_failed = std::move(value); }
58 inline PublishBatchResult& WithFailed(const Aws::Vector<BatchResultErrorEntry>& value) { SetFailed(value); return *this;}
59 inline PublishBatchResult& WithFailed(Aws::Vector<BatchResultErrorEntry>&& value) { SetFailed(std::move(value)); return *this;}
60 inline PublishBatchResult& AddFailed(const BatchResultErrorEntry& value) { m_failed.push_back(value); return *this; }
61 inline PublishBatchResult& AddFailed(BatchResultErrorEntry&& value) { m_failed.push_back(std::move(value)); return *this; }
63
65
66 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
67 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
68 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
69 inline PublishBatchResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
70 inline PublishBatchResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
72 private:
73
75
77
78 ResponseMetadata m_responseMetadata;
79 };
80
81} // namespace Model
82} // namespace SNS
83} // namespace Aws
void SetResponseMetadata(ResponseMetadata &&value)
PublishBatchResult & WithFailed(const Aws::Vector< BatchResultErrorEntry > &value)
AWS_SNS_API PublishBatchResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
PublishBatchResult & AddSuccessful(PublishBatchResultEntry &&value)
void SetResponseMetadata(const ResponseMetadata &value)
PublishBatchResult & WithSuccessful(const Aws::Vector< PublishBatchResultEntry > &value)
const Aws::Vector< PublishBatchResultEntry > & GetSuccessful() const
PublishBatchResult & AddFailed(BatchResultErrorEntry &&value)
PublishBatchResult & WithResponseMetadata(ResponseMetadata &&value)
void SetFailed(const Aws::Vector< BatchResultErrorEntry > &value)
void SetSuccessful(Aws::Vector< PublishBatchResultEntry > &&value)
PublishBatchResult & AddFailed(const BatchResultErrorEntry &value)
PublishBatchResult & WithSuccessful(Aws::Vector< PublishBatchResultEntry > &&value)
void SetFailed(Aws::Vector< BatchResultErrorEntry > &&value)
void SetSuccessful(const Aws::Vector< PublishBatchResultEntry > &value)
PublishBatchResult & WithFailed(Aws::Vector< BatchResultErrorEntry > &&value)
PublishBatchResult & WithResponseMetadata(const ResponseMetadata &value)
AWS_SNS_API PublishBatchResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const ResponseMetadata & GetResponseMetadata() const
PublishBatchResult & AddSuccessful(const PublishBatchResultEntry &value)
const Aws::Vector< BatchResultErrorEntry > & GetFailed() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument