AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PublishBatchResultEntry.h
1
6#pragma once
7#include <aws/sns/SNS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace SNS
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SNS_API PublishBatchResultEntry() = default;
38
39 AWS_SNS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_SNS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 PublishBatchResultEntry& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_messageIdHasBeenSet = true; m_messageId = std::forward<MessageIdT>(value); }
63 template<typename MessageIdT = Aws::String>
64 PublishBatchResultEntry& WithMessageId(MessageIdT&& value) { SetMessageId(std::forward<MessageIdT>(value)); return *this;}
66
68
75 inline const Aws::String& GetSequenceNumber() const { return m_sequenceNumber; }
76 inline bool SequenceNumberHasBeenSet() const { return m_sequenceNumberHasBeenSet; }
77 template<typename SequenceNumberT = Aws::String>
78 void SetSequenceNumber(SequenceNumberT&& value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber = std::forward<SequenceNumberT>(value); }
79 template<typename SequenceNumberT = Aws::String>
80 PublishBatchResultEntry& WithSequenceNumber(SequenceNumberT&& value) { SetSequenceNumber(std::forward<SequenceNumberT>(value)); return *this;}
82 private:
83
84 Aws::String m_id;
85 bool m_idHasBeenSet = false;
86
87 Aws::String m_messageId;
88 bool m_messageIdHasBeenSet = false;
89
90 Aws::String m_sequenceNumber;
91 bool m_sequenceNumberHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace SNS
96} // 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