AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ErrorCodeT = Aws::String>
52 void SetErrorCode(ErrorCodeT&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::forward<ErrorCodeT>(value); }
53 template<typename ErrorCodeT = Aws::String>
54 ErrorInfo& WithErrorCode(ErrorCodeT&& value) { SetErrorCode(std::forward<ErrorCodeT>(value)); return *this;}
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) { m_errorStringHasBeenSet = true; m_errorString = std::forward<ErrorStringT>(value); }
68 template<typename ErrorStringT = Aws::String>
69 ErrorInfo& WithErrorString(ErrorStringT&& value) { SetErrorString(std::forward<ErrorStringT>(value)); return *this;}
71 private:
72
73 Aws::String m_errorCode;
74 bool m_errorCodeHasBeenSet = false;
75
76 Aws::String m_errorString;
77 bool m_errorStringHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace Kafka
82} // namespace Aws
AWS_KAFKA_API ErrorInfo()=default
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
bool ErrorCodeHasBeenSet() const
Definition ErrorInfo.h:50
void SetErrorCode(ErrorCodeT &&value)
Definition ErrorInfo.h:52
ErrorInfo & WithErrorString(ErrorStringT &&value)
Definition ErrorInfo.h:69
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:49
ErrorInfo & WithErrorCode(ErrorCodeT &&value)
Definition ErrorInfo.h:54
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