AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
BatchResultErrorEntry.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 BatchResultErrorEntry() = 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& GetCode() const { return m_code; }
60 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
61 template <typename CodeT = Aws::String>
62 void SetCode(CodeT&& value) {
63 m_codeHasBeenSet = true;
64 m_code = std::forward<CodeT>(value);
65 }
66 template <typename CodeT = Aws::String>
68 SetCode(std::forward<CodeT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetMessage() const { return m_message; }
78 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
79 template <typename MessageT = Aws::String>
80 void SetMessage(MessageT&& value) {
81 m_messageHasBeenSet = true;
82 m_message = std::forward<MessageT>(value);
83 }
84 template <typename MessageT = Aws::String>
86 SetMessage(std::forward<MessageT>(value));
87 return *this;
88 }
90
92
96 inline bool GetSenderFault() const { return m_senderFault; }
97 inline bool SenderFaultHasBeenSet() const { return m_senderFaultHasBeenSet; }
98 inline void SetSenderFault(bool value) {
99 m_senderFaultHasBeenSet = true;
100 m_senderFault = value;
101 }
103 SetSenderFault(value);
104 return *this;
105 }
107 private:
108 Aws::String m_id;
109
110 Aws::String m_code;
111
112 Aws::String m_message;
113
114 bool m_senderFault{false};
115 bool m_idHasBeenSet = false;
116 bool m_codeHasBeenSet = false;
117 bool m_messageHasBeenSet = false;
118 bool m_senderFaultHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace SNS
123} // namespace Aws
BatchResultErrorEntry & WithCode(CodeT &&value)
void SetMessage(MessageT &&value)
const Aws::String & GetMessage() const
AWS_SNS_API BatchResultErrorEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_SNS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSenderFault(bool value)
BatchResultErrorEntry & WithMessage(MessageT &&value)
bool MessageHasBeenSet() const
AWS_SNS_API BatchResultErrorEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetId(IdT &&value)
bool GetSenderFault() const
BatchResultErrorEntry & WithId(IdT &&value)
AWS_SNS_API BatchResultErrorEntry()=default
bool CodeHasBeenSet() const
BatchResultErrorEntry & WithSenderFault(bool value)
void SetCode(CodeT &&value)
bool IdHasBeenSet() const
const Aws::String & GetCode() const
bool SenderFaultHasBeenSet() const
AWS_SNS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream