AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ErrorInformation.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/ErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
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:
35 AWS_CODEDEPLOY_API ErrorInformation();
36 AWS_CODEDEPLOY_API ErrorInformation(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
70 inline const ErrorCode& GetCode() const{ return m_code; }
71 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
72 inline void SetCode(const ErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
73 inline void SetCode(ErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
74 inline ErrorInformation& WithCode(const ErrorCode& value) { SetCode(value); return *this;}
75 inline ErrorInformation& WithCode(ErrorCode&& value) { SetCode(std::move(value)); return *this;}
77
79
82 inline const Aws::String& GetMessage() const{ return m_message; }
83 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
84 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
85 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
86 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
87 inline ErrorInformation& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
88 inline ErrorInformation& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
89 inline ErrorInformation& WithMessage(const char* value) { SetMessage(value); return *this;}
91 private:
92
93 ErrorCode m_code;
94 bool m_codeHasBeenSet = false;
95
96 Aws::String m_message;
97 bool m_messageHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace CodeDeploy
102} // namespace Aws
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
Aws::Utils::Json::JsonValue JsonValue