AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ErrorInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kafka/Kafka_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Kafka {
20namespace Model {
21
30class ErrorInfo {
31 public:
32 AWS_KAFKA_API ErrorInfo() = default;
33 AWS_KAFKA_API ErrorInfo(Aws::Utils::Json::JsonView jsonValue);
35 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
44 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
45 template <typename ErrorCodeT = Aws::String>
46 void SetErrorCode(ErrorCodeT&& value) {
47 m_errorCodeHasBeenSet = true;
48 m_errorCode = std::forward<ErrorCodeT>(value);
49 }
50 template <typename ErrorCodeT = Aws::String>
51 ErrorInfo& WithErrorCode(ErrorCodeT&& value) {
52 SetErrorCode(std::forward<ErrorCodeT>(value));
53 return *this;
54 }
56
58
64 inline const Aws::String& GetErrorString() const { return m_errorString; }
65 inline bool ErrorStringHasBeenSet() const { return m_errorStringHasBeenSet; }
66 template <typename ErrorStringT = Aws::String>
67 void SetErrorString(ErrorStringT&& value) {
68 m_errorStringHasBeenSet = true;
69 m_errorString = std::forward<ErrorStringT>(value);
70 }
71 template <typename ErrorStringT = Aws::String>
72 ErrorInfo& WithErrorString(ErrorStringT&& value) {
73 SetErrorString(std::forward<ErrorStringT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_errorCode;
79
80 Aws::String m_errorString;
81 bool m_errorCodeHasBeenSet = false;
82 bool m_errorStringHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Kafka
87} // namespace Aws
AWS_KAFKA_API ErrorInfo()=default
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
bool ErrorCodeHasBeenSet() const
Definition ErrorInfo.h:44
void SetErrorCode(ErrorCodeT &&value)
Definition ErrorInfo.h:46
ErrorInfo & WithErrorString(ErrorStringT &&value)
Definition ErrorInfo.h:72
void SetErrorString(ErrorStringT &&value)
Definition ErrorInfo.h:67
AWS_KAFKA_API ErrorInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetErrorString() const
Definition ErrorInfo.h:64
bool ErrorStringHasBeenSet() const
Definition ErrorInfo.h:65
const Aws::String & GetErrorCode() const
Definition ErrorInfo.h:43
ErrorInfo & WithErrorCode(ErrorCodeT &&value)
Definition ErrorInfo.h:51
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