AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ErrorInformation.h
Go to the documentation of this file.
1
6#pragma once
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeDeploy
23{
24namespace Model
25{
26
33 {
34 public:
39
40
69 inline const ErrorCode& GetCode() const{ return m_code; }
70
99 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
100
129 inline void SetCode(const ErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
130
159 inline void SetCode(ErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
160
189 inline ErrorInformation& WithCode(const ErrorCode& value) { SetCode(value); return *this;}
190
219 inline ErrorInformation& WithCode(ErrorCode&& value) { SetCode(std::move(value)); return *this;}
220
221
225 inline const Aws::String& GetMessage() const{ return m_message; }
226
230 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
231
235 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
236
240 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
241
245 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
246
250 inline ErrorInformation& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
251
255 inline ErrorInformation& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
256
260 inline ErrorInformation& WithMessage(const char* value) { SetMessage(value); return *this;}
261
262 private:
263
264 ErrorCode m_code;
265 bool m_codeHasBeenSet = false;
266
267 Aws::String m_message;
268 bool m_messageHasBeenSet = false;
269 };
270
271} // namespace Model
272} // namespace CodeDeploy
273} // namespace Aws
#define AWS_CODEDEPLOY_API
ErrorInformation & WithCode(ErrorCode &&value)
ErrorInformation & WithMessage(const Aws::String &value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEDEPLOY_API ErrorInformation(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMessage() const
void SetMessage(const Aws::String &value)
AWS_CODEDEPLOY_API ErrorInformation & operator=(Aws::Utils::Json::JsonView jsonValue)
ErrorInformation & WithMessage(Aws::String &&value)
ErrorInformation & WithMessage(const char *value)
ErrorInformation & WithCode(const ErrorCode &value)
void SetCode(const ErrorCode &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String