AWS SDK for C++  0.14.3
AWS SDK for C++
BatchResultErrorEntry.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/sqs/SQS_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace SQS
30 {
31 namespace Model
32 {
33 
39  {
40  public:
43  BatchResultErrorEntry& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::String& GetId() const{ return m_id; }
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 = 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(value); return *this;}
77 
81  inline BatchResultErrorEntry& WithId(const char* value) { SetId(value); return *this;}
82 
86  inline bool GetSenderFault() const{ return m_senderFault; }
87 
91  inline void SetSenderFault(bool value) { m_senderFaultHasBeenSet = true; m_senderFault = value; }
92 
96  inline BatchResultErrorEntry& WithSenderFault(bool value) { SetSenderFault(value); return *this;}
97 
101  inline const Aws::String& GetCode() const{ return m_code; }
102 
106  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
107 
111  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = value; }
112 
116  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
117 
121  inline BatchResultErrorEntry& WithCode(const Aws::String& value) { SetCode(value); return *this;}
122 
126  inline BatchResultErrorEntry& WithCode(Aws::String&& value) { SetCode(value); return *this;}
127 
131  inline BatchResultErrorEntry& WithCode(const char* value) { SetCode(value); return *this;}
132 
136  inline const Aws::String& GetMessage() const{ return m_message; }
137 
141  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
142 
146  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
147 
151  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
152 
156  inline BatchResultErrorEntry& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
157 
161  inline BatchResultErrorEntry& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
162 
166  inline BatchResultErrorEntry& WithMessage(const char* value) { SetMessage(value); return *this;}
167 
168  private:
169  Aws::String m_id;
170  bool m_idHasBeenSet;
171  bool m_senderFault;
172  bool m_senderFaultHasBeenSet;
173  Aws::String m_code;
174  bool m_codeHasBeenSet;
175  Aws::String m_message;
176  bool m_messageHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace SQS
181 } // namespace Aws
BatchResultErrorEntry & WithMessage(Aws::String &&value)
BatchResultErrorEntry & WithCode(const Aws::String &value)
void SetSenderFault(bool value)
const Aws::String & GetCode() const
void SetMessage(Aws::String &&value)
void SetMessage(const Aws::String &value)
BatchResultErrorEntry & WithId(Aws::String &&value)
const Aws::String & GetId() const
void SetId(const char *value)
void SetCode(const Aws::String &value)
BatchResultErrorEntry & WithMessage(const Aws::String &value)
BatchResultErrorEntry & WithId(const char *value)
void SetId(Aws::String &&value)
BatchResultErrorEntry & WithSenderFault(bool value)
void SetId(const Aws::String &value)
BatchResultErrorEntry & WithId(const Aws::String &value)
const Aws::String & GetMessage() const
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetCode(Aws::String &&value)
BatchResultErrorEntry & WithMessage(const char *value)
BatchResultErrorEntry & WithCode(Aws::String &&value)
bool GetSenderFault() const
void SetMessage(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetCode(const char *value)
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:37
BatchResultErrorEntry & WithCode(const char *value)
JSON (JavaScript Object Notation).