AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ErrorInfo.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Kafka
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_KAFKA_API ErrorInfo();
38 AWS_KAFKA_API ErrorInfo(Aws::Utils::Json::JsonView jsonValue);
40 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
50 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
51 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
52 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
53 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
54 inline ErrorInfo& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
55 inline ErrorInfo& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
56 inline ErrorInfo& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
58
60
66 inline const Aws::String& GetErrorString() const{ return m_errorString; }
67 inline bool ErrorStringHasBeenSet() const { return m_errorStringHasBeenSet; }
68 inline void SetErrorString(const Aws::String& value) { m_errorStringHasBeenSet = true; m_errorString = value; }
69 inline void SetErrorString(Aws::String&& value) { m_errorStringHasBeenSet = true; m_errorString = std::move(value); }
70 inline void SetErrorString(const char* value) { m_errorStringHasBeenSet = true; m_errorString.assign(value); }
71 inline ErrorInfo& WithErrorString(const Aws::String& value) { SetErrorString(value); return *this;}
72 inline ErrorInfo& WithErrorString(Aws::String&& value) { SetErrorString(std::move(value)); return *this;}
73 inline ErrorInfo& WithErrorString(const char* value) { SetErrorString(value); return *this;}
75 private:
76
77 Aws::String m_errorCode;
78 bool m_errorCodeHasBeenSet = false;
79
80 Aws::String m_errorString;
81 bool m_errorStringHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace Kafka
86} // namespace Aws
ErrorInfo & WithErrorCode(const Aws::String &value)
Definition ErrorInfo.h:54
void SetErrorCode(const char *value)
Definition ErrorInfo.h:53
void SetErrorCode(const Aws::String &value)
Definition ErrorInfo.h:51
void SetErrorString(const Aws::String &value)
Definition ErrorInfo.h:68
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
ErrorInfo & WithErrorString(const Aws::String &value)
Definition ErrorInfo.h:71
bool ErrorCodeHasBeenSet() const
Definition ErrorInfo.h:50
void SetErrorString(const char *value)
Definition ErrorInfo.h:70
ErrorInfo & WithErrorString(Aws::String &&value)
Definition ErrorInfo.h:72
void SetErrorString(Aws::String &&value)
Definition ErrorInfo.h:69
AWS_KAFKA_API ErrorInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetErrorString() const
Definition ErrorInfo.h:66
ErrorInfo & WithErrorString(const char *value)
Definition ErrorInfo.h:73
bool ErrorStringHasBeenSet() const
Definition ErrorInfo.h:67
const Aws::String & GetErrorCode() const
Definition ErrorInfo.h:49
void SetErrorCode(Aws::String &&value)
Definition ErrorInfo.h:52
ErrorInfo & WithErrorCode(const char *value)
Definition ErrorInfo.h:56
ErrorInfo & WithErrorCode(Aws::String &&value)
Definition ErrorInfo.h:55
AWS_KAFKA_API ErrorInfo(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue