AWS SDK for C++  1.9.123
AWS SDK for C++
ErrorInfo.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetCode() const{ return m_code; }
44 
48  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
49 
53  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
54 
58  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
59 
63  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
64 
68  inline ErrorInfo& WithCode(const Aws::String& value) { SetCode(value); return *this;}
69 
73  inline ErrorInfo& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
74 
78  inline ErrorInfo& WithCode(const char* value) { SetCode(value); return *this;}
79 
80 
84  inline const Aws::String& GetMessage() const{ return m_message; }
85 
89  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
90 
94  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
95 
99  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
100 
104  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
105 
109  inline ErrorInfo& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
110 
114  inline ErrorInfo& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
115 
119  inline ErrorInfo& WithMessage(const char* value) { SetMessage(value); return *this;}
120 
121  private:
122 
123  Aws::String m_code;
124  bool m_codeHasBeenSet;
125 
126  Aws::String m_message;
127  bool m_messageHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace IoT
132 } // namespace Aws
Aws::IoT::Model::ErrorInfo::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ErrorInfo.h:89
Aws::IoT::Model::ErrorInfo
Definition: ErrorInfo.h:32
Aws::IoT::Model::ErrorInfo::SetCode
void SetCode(const Aws::String &value)
Definition: ErrorInfo.h:53
Aws::IoT::Model::ErrorInfo::WithMessage
ErrorInfo & WithMessage(const Aws::String &value)
Definition: ErrorInfo.h:109
Aws::IoT::Model::ErrorInfo::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::ErrorInfo::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: ErrorInfo.h:48
Aws::IoT::Model::ErrorInfo::SetCode
void SetCode(const char *value)
Definition: ErrorInfo.h:63
Aws::IoT::Model::ErrorInfo::WithCode
ErrorInfo & WithCode(const char *value)
Definition: ErrorInfo.h:78
Aws::IoT::Model::ErrorInfo::operator=
ErrorInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ErrorInfo::SetCode
void SetCode(Aws::String &&value)
Definition: ErrorInfo.h:58
Aws::IoT::Model::ErrorInfo::ErrorInfo
ErrorInfo()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::IoT::Model::ErrorInfo::SetMessage
void SetMessage(const char *value)
Definition: ErrorInfo.h:104
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::ErrorInfo::GetCode
const Aws::String & GetCode() const
Definition: ErrorInfo.h:43
Aws::IoT::Model::ErrorInfo::WithCode
ErrorInfo & WithCode(Aws::String &&value)
Definition: ErrorInfo.h:73
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ErrorInfo::SetMessage
void SetMessage(Aws::String &&value)
Definition: ErrorInfo.h:99
Aws::IoT::Model::ErrorInfo::GetMessage
const Aws::String & GetMessage() const
Definition: ErrorInfo.h:84
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ErrorInfo::WithMessage
ErrorInfo & WithMessage(const char *value)
Definition: ErrorInfo.h:119
Aws::IoT::Model::ErrorInfo::ErrorInfo
ErrorInfo(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ErrorInfo::WithMessage
ErrorInfo & WithMessage(Aws::String &&value)
Definition: ErrorInfo.h:114
IoT_EXPORTS.h
Aws::IoT::Model::ErrorInfo::WithCode
ErrorInfo & WithCode(const Aws::String &value)
Definition: ErrorInfo.h:68
Aws::IoT::Model::ErrorInfo::SetMessage
void SetMessage(const Aws::String &value)
Definition: ErrorInfo.h:94