AWS SDK for C++  1.8.126
AWS SDK for C++
BatchResultErrorEntry.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sqs/SQS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace SQS
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetId() const{ return m_id; }
47 
51  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 
56  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
57 
61  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
62 
66  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
67 
71  inline BatchResultErrorEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
72 
76  inline BatchResultErrorEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
77 
81  inline BatchResultErrorEntry& WithId(const char* value) { SetId(value); return *this;}
82 
83 
88  inline bool GetSenderFault() const{ return m_senderFault; }
89 
94  inline bool SenderFaultHasBeenSet() const { return m_senderFaultHasBeenSet; }
95 
100  inline void SetSenderFault(bool value) { m_senderFaultHasBeenSet = true; m_senderFault = value; }
101 
106  inline BatchResultErrorEntry& WithSenderFault(bool value) { SetSenderFault(value); return *this;}
107 
108 
112  inline const Aws::String& GetCode() const{ return m_code; }
113 
117  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
118 
122  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
123 
127  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
128 
132  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
133 
137  inline BatchResultErrorEntry& WithCode(const Aws::String& value) { SetCode(value); return *this;}
138 
142  inline BatchResultErrorEntry& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
143 
147  inline BatchResultErrorEntry& WithCode(const char* value) { SetCode(value); return *this;}
148 
149 
153  inline const Aws::String& GetMessage() const{ return m_message; }
154 
158  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
159 
163  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
164 
168  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
169 
173  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
174 
178  inline BatchResultErrorEntry& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
179 
183  inline BatchResultErrorEntry& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
184 
188  inline BatchResultErrorEntry& WithMessage(const char* value) { SetMessage(value); return *this;}
189 
190  private:
191 
192  Aws::String m_id;
193  bool m_idHasBeenSet;
194 
195  bool m_senderFault;
196  bool m_senderFaultHasBeenSet;
197 
198  Aws::String m_code;
199  bool m_codeHasBeenSet;
200 
201  Aws::String m_message;
202  bool m_messageHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace SQS
207 } // namespace Aws
Aws::SQS::Model::BatchResultErrorEntry::SetCode
void SetCode(const Aws::String &value)
Definition: BatchResultErrorEntry.h:122
Aws::SQS::Model::BatchResultErrorEntry::IdHasBeenSet
bool IdHasBeenSet() const
Definition: BatchResultErrorEntry.h:51
Aws::SQS::Model::BatchResultErrorEntry::SetMessage
void SetMessage(Aws::String &&value)
Definition: BatchResultErrorEntry.h:168
Aws::SQS::Model::BatchResultErrorEntry::GetId
const Aws::String & GetId() const
Definition: BatchResultErrorEntry.h:46
Aws::SQS::Model::BatchResultErrorEntry::SetId
void SetId(const char *value)
Definition: BatchResultErrorEntry.h:66
Aws::SQS::Model::BatchResultErrorEntry::SetMessage
void SetMessage(const char *value)
Definition: BatchResultErrorEntry.h:173
Aws::SQS::Model::BatchResultErrorEntry
Definition: BatchResultErrorEntry.h:33
Aws::SQS::Model::BatchResultErrorEntry::BatchResultErrorEntry
BatchResultErrorEntry()
Aws::SQS::Model::BatchResultErrorEntry::WithCode
BatchResultErrorEntry & WithCode(const Aws::String &value)
Definition: BatchResultErrorEntry.h:137
Aws::SQS::Model::BatchResultErrorEntry::BatchResultErrorEntry
BatchResultErrorEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SQS::Model::BatchResultErrorEntry::WithId
BatchResultErrorEntry & WithId(Aws::String &&value)
Definition: BatchResultErrorEntry.h:76
AWSStreamFwd.h
Aws::SQS::Model::BatchResultErrorEntry::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: BatchResultErrorEntry.h:117
Aws::SQS::Model::BatchResultErrorEntry::GetSenderFault
bool GetSenderFault() const
Definition: BatchResultErrorEntry.h:88
Aws::SQS::Model::BatchResultErrorEntry::WithCode
BatchResultErrorEntry & WithCode(const char *value)
Definition: BatchResultErrorEntry.h:147
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SQS::Model::BatchResultErrorEntry::WithMessage
BatchResultErrorEntry & WithMessage(const Aws::String &value)
Definition: BatchResultErrorEntry.h:178
Aws::SQS::Model::BatchResultErrorEntry::WithId
BatchResultErrorEntry & WithId(const char *value)
Definition: BatchResultErrorEntry.h:81
Aws::SQS::Model::BatchResultErrorEntry::SenderFaultHasBeenSet
bool SenderFaultHasBeenSet() const
Definition: BatchResultErrorEntry.h:94
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SQS::Model::BatchResultErrorEntry::GetCode
const Aws::String & GetCode() const
Definition: BatchResultErrorEntry.h:112
Aws::SQS::Model::BatchResultErrorEntry::WithSenderFault
BatchResultErrorEntry & WithSenderFault(bool value)
Definition: BatchResultErrorEntry.h:106
Aws::SQS::Model::BatchResultErrorEntry::SetSenderFault
void SetSenderFault(bool value)
Definition: BatchResultErrorEntry.h:100
Aws::SQS::Model::BatchResultErrorEntry::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Chime::Model::NotificationTarget::NOT_SET
@ NOT_SET
AWSString.h
AWS_SQS_API
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
Aws::SQS::Model::BatchResultErrorEntry::SetMessage
void SetMessage(const Aws::String &value)
Definition: BatchResultErrorEntry.h:163
Aws::SQS::Model::BatchResultErrorEntry::SetCode
void SetCode(const char *value)
Definition: BatchResultErrorEntry.h:132
Aws::SQS::Model::BatchResultErrorEntry::WithCode
BatchResultErrorEntry & WithCode(Aws::String &&value)
Definition: BatchResultErrorEntry.h:142
Aws::SQS::Model::BatchResultErrorEntry::SetCode
void SetCode(Aws::String &&value)
Definition: BatchResultErrorEntry.h:127
Aws::SQS::Model::BatchResultErrorEntry::WithMessage
BatchResultErrorEntry & WithMessage(const char *value)
Definition: BatchResultErrorEntry.h:188
SQS_EXPORTS.h
Aws::SQS::Model::BatchResultErrorEntry::SetId
void SetId(Aws::String &&value)
Definition: BatchResultErrorEntry.h:61
Aws
Definition: AccessManagementClient.h:15
Aws::SQS::Model::BatchResultErrorEntry::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:171
Aws::SQS::Model::BatchResultErrorEntry::operator=
BatchResultErrorEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SQS::Model::BatchResultErrorEntry::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: BatchResultErrorEntry.h:158
Aws::SQS::Model::BatchResultErrorEntry::WithMessage
BatchResultErrorEntry & WithMessage(Aws::String &&value)
Definition: BatchResultErrorEntry.h:183
Aws::SQS::Model::BatchResultErrorEntry::WithId
BatchResultErrorEntry & WithId(const Aws::String &value)
Definition: BatchResultErrorEntry.h:71
Aws::SQS::Model::BatchResultErrorEntry::SetId
void SetId(const Aws::String &value)
Definition: BatchResultErrorEntry.h:56
Aws::SQS::Model::BatchResultErrorEntry::GetMessage
const Aws::String & GetMessage() const
Definition: BatchResultErrorEntry.h:153