AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline BatchResultErrorEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline BatchResultErrorEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline BatchResultErrorEntry& WithId(const char* value) { SetId(value); return *this;}
56
58
61 inline const Aws::String& GetCode() const{ return m_code; }
62 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
63 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
64 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
65 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
66 inline BatchResultErrorEntry& WithCode(const Aws::String& value) { SetCode(value); return *this;}
67 inline BatchResultErrorEntry& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
68 inline BatchResultErrorEntry& WithCode(const char* value) { SetCode(value); return *this;}
70
72
75 inline const Aws::String& GetMessage() const{ return m_message; }
76 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
77 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
78 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
79 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
80 inline BatchResultErrorEntry& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
81 inline BatchResultErrorEntry& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
82 inline BatchResultErrorEntry& WithMessage(const char* value) { SetMessage(value); return *this;}
84
86
90 inline bool GetSenderFault() const{ return m_senderFault; }
91 inline bool SenderFaultHasBeenSet() const { return m_senderFaultHasBeenSet; }
92 inline void SetSenderFault(bool value) { m_senderFaultHasBeenSet = true; m_senderFault = value; }
93 inline BatchResultErrorEntry& WithSenderFault(bool value) { SetSenderFault(value); return *this;}
95 private:
96
97 Aws::String m_id;
98 bool m_idHasBeenSet = false;
99
100 Aws::String m_code;
101 bool m_codeHasBeenSet = false;
102
103 Aws::String m_message;
104 bool m_messageHasBeenSet = false;
105
106 bool m_senderFault;
107 bool m_senderFaultHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace SNS
112} // namespace Aws
const Aws::String & GetMessage() const
void SetMessage(const Aws::String &value)
void SetId(const Aws::String &value)
AWS_SNS_API BatchResultErrorEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
BatchResultErrorEntry & WithCode(const char *value)
AWS_SNS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSenderFault(bool value)
AWS_SNS_API BatchResultErrorEntry()
bool MessageHasBeenSet() const
AWS_SNS_API BatchResultErrorEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
BatchResultErrorEntry & WithCode(Aws::String &&value)
bool GetSenderFault() const
void SetId(const char *value)
bool CodeHasBeenSet() const
BatchResultErrorEntry & WithMessage(const Aws::String &value)
BatchResultErrorEntry & WithSenderFault(bool value)
BatchResultErrorEntry & WithId(const Aws::String &value)
bool IdHasBeenSet() const
const Aws::String & GetCode() const
BatchResultErrorEntry & WithMessage(const char *value)
void SetId(Aws::String &&value)
void SetMessage(const char *value)
void SetCode(Aws::String &&value)
void SetCode(const Aws::String &value)
BatchResultErrorEntry & WithId(Aws::String &&value)
BatchResultErrorEntry & WithId(const char *value)
bool SenderFaultHasBeenSet() const
BatchResultErrorEntry & WithCode(const Aws::String &value)
AWS_SNS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetId() const
BatchResultErrorEntry & WithMessage(Aws::String &&value)
void SetCode(const char *value)
void SetMessage(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream