AWS SDK for C++  1.9.105
AWS SDK for C++
ErrorInfo.h
Go to the documentation of this file.
1 
6 #pragma once
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 Kafka
22 {
23 namespace Model
24 {
25 
35  {
36  public:
41 
42 
48  inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
49 
55  inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
56 
62  inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
63 
69  inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
70 
76  inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
77 
83  inline ErrorInfo& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
84 
90  inline ErrorInfo& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
91 
97  inline ErrorInfo& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
98 
99 
106  inline const Aws::String& GetErrorString() const{ return m_errorString; }
107 
114  inline bool ErrorStringHasBeenSet() const { return m_errorStringHasBeenSet; }
115 
122  inline void SetErrorString(const Aws::String& value) { m_errorStringHasBeenSet = true; m_errorString = value; }
123 
130  inline void SetErrorString(Aws::String&& value) { m_errorStringHasBeenSet = true; m_errorString = std::move(value); }
131 
138  inline void SetErrorString(const char* value) { m_errorStringHasBeenSet = true; m_errorString.assign(value); }
139 
146  inline ErrorInfo& WithErrorString(const Aws::String& value) { SetErrorString(value); return *this;}
147 
154  inline ErrorInfo& WithErrorString(Aws::String&& value) { SetErrorString(std::move(value)); return *this;}
155 
162  inline ErrorInfo& WithErrorString(const char* value) { SetErrorString(value); return *this;}
163 
164  private:
165 
166  Aws::String m_errorCode;
167  bool m_errorCodeHasBeenSet;
168 
169  Aws::String m_errorString;
170  bool m_errorStringHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace Kafka
175 } // namespace Aws
Aws::Kafka::Model::ErrorInfo
Definition: ErrorInfo.h:35
Aws::Kafka::Model::ErrorInfo::WithErrorString
ErrorInfo & WithErrorString(const Aws::String &value)
Definition: ErrorInfo.h:146
Aws::Kafka::Model::ErrorInfo::ErrorInfo
ErrorInfo(Aws::Utils::Json::JsonView jsonValue)
Aws::Kafka::Model::ErrorInfo::GetErrorCode
const Aws::String & GetErrorCode() const
Definition: ErrorInfo.h:48
Aws::Kafka::Model::ErrorInfo::ErrorInfo
ErrorInfo()
Aws::Kafka::Model::ErrorInfo::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Kafka::Model::ErrorInfo::SetErrorString
void SetErrorString(Aws::String &&value)
Definition: ErrorInfo.h:130
Aws::Kafka::Model::ErrorInfo::SetErrorString
void SetErrorString(const Aws::String &value)
Definition: ErrorInfo.h:122
Aws::Kafka::Model::ErrorInfo::ErrorStringHasBeenSet
bool ErrorStringHasBeenSet() const
Definition: ErrorInfo.h:114
Aws::Kafka::Model::ErrorInfo::WithErrorCode
ErrorInfo & WithErrorCode(const Aws::String &value)
Definition: ErrorInfo.h:83
Aws::Kafka::Model::ErrorInfo::WithErrorString
ErrorInfo & WithErrorString(const char *value)
Definition: ErrorInfo.h:162
Aws::Kafka::Model::ErrorInfo::WithErrorCode
ErrorInfo & WithErrorCode(const char *value)
Definition: ErrorInfo.h:97
Aws::Kafka::Model::ErrorInfo::WithErrorCode
ErrorInfo & WithErrorCode(Aws::String &&value)
Definition: ErrorInfo.h:90
Aws::Kafka::Model::ErrorInfo::SetErrorCode
void SetErrorCode(Aws::String &&value)
Definition: ErrorInfo.h:69
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Kafka::Model::ErrorInfo::SetErrorCode
void SetErrorCode(const char *value)
Definition: ErrorInfo.h:76
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
AWS_KAFKA_API
#define AWS_KAFKA_API
Definition: Kafka_EXPORTS.h:28
Aws::Kafka::Model::ErrorInfo::operator=
ErrorInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Kafka::Model::ErrorInfo::WithErrorString
ErrorInfo & WithErrorString(Aws::String &&value)
Definition: ErrorInfo.h:154
Aws::Kafka::Model::ErrorInfo::GetErrorString
const Aws::String & GetErrorString() const
Definition: ErrorInfo.h:106
Aws
Definition: AccessManagementClient.h:15
Aws::Kafka::Model::ErrorInfo::ErrorCodeHasBeenSet
bool ErrorCodeHasBeenSet() const
Definition: ErrorInfo.h:55
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kafka::Model::ErrorInfo::SetErrorCode
void SetErrorCode(const Aws::String &value)
Definition: ErrorInfo.h:62
Kafka_EXPORTS.h
Aws::Kafka::Model::ErrorInfo::SetErrorString
void SetErrorString(const char *value)
Definition: ErrorInfo.h:138