AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchResultErrorEntry.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 BatchResultErrorEntry() = 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 BatchResultErrorEntry& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
63 template<typename CodeT = Aws::String>
64 BatchResultErrorEntry& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
66
68
71 inline const Aws::String& GetMessage() const { return m_message; }
72 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
73 template<typename MessageT = Aws::String>
74 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
75 template<typename MessageT = Aws::String>
76 BatchResultErrorEntry& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
78
80
84 inline bool GetSenderFault() const { return m_senderFault; }
85 inline bool SenderFaultHasBeenSet() const { return m_senderFaultHasBeenSet; }
86 inline void SetSenderFault(bool value) { m_senderFaultHasBeenSet = true; m_senderFault = value; }
87 inline BatchResultErrorEntry& WithSenderFault(bool value) { SetSenderFault(value); return *this;}
89 private:
90
91 Aws::String m_id;
92 bool m_idHasBeenSet = false;
93
94 Aws::String m_code;
95 bool m_codeHasBeenSet = false;
96
97 Aws::String m_message;
98 bool m_messageHasBeenSet = false;
99
100 bool m_senderFault{false};
101 bool m_senderFaultHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace SNS
106} // 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