AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
PublishBatchResultEntry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sns/SNS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace SNS {
20namespace Model {
21
29 public:
30 AWS_SNS_API PublishBatchResultEntry() = default;
33
34 AWS_SNS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_SNS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetMessageId() const { return m_messageId; }
60 inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
61 template <typename MessageIdT = Aws::String>
62 void SetMessageId(MessageIdT&& value) {
63 m_messageIdHasBeenSet = true;
64 m_messageId = std::forward<MessageIdT>(value);
65 }
66 template <typename MessageIdT = Aws::String>
68 SetMessageId(std::forward<MessageIdT>(value));
69 return *this;
70 }
72
74
81 inline const Aws::String& GetSequenceNumber() const { return m_sequenceNumber; }
82 inline bool SequenceNumberHasBeenSet() const { return m_sequenceNumberHasBeenSet; }
83 template <typename SequenceNumberT = Aws::String>
84 void SetSequenceNumber(SequenceNumberT&& value) {
85 m_sequenceNumberHasBeenSet = true;
86 m_sequenceNumber = std::forward<SequenceNumberT>(value);
87 }
88 template <typename SequenceNumberT = Aws::String>
89 PublishBatchResultEntry& WithSequenceNumber(SequenceNumberT&& value) {
90 SetSequenceNumber(std::forward<SequenceNumberT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_id;
96
97 Aws::String m_messageId;
98
99 Aws::String m_sequenceNumber;
100 bool m_idHasBeenSet = false;
101 bool m_messageIdHasBeenSet = false;
102 bool m_sequenceNumberHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace SNS
107} // namespace Aws
AWS_SNS_API PublishBatchResultEntry()=default
AWS_SNS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetId() const
void SetSequenceNumber(SequenceNumberT &&value)
AWS_SNS_API PublishBatchResultEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SequenceNumberHasBeenSet() const
bool MessageIdHasBeenSet() const
AWS_SNS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetMessageId() const
PublishBatchResultEntry & WithId(IdT &&value)
const Aws::String & GetSequenceNumber() const
void SetMessageId(MessageIdT &&value)
void SetId(IdT &&value)
PublishBatchResultEntry & WithMessageId(MessageIdT &&value)
AWS_SNS_API PublishBatchResultEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
bool IdHasBeenSet() const
PublishBatchResultEntry & WithSequenceNumber(SequenceNumberT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream