AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ErrorDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qbusiness/QBusiness_EXPORTS.h>
9#include <aws/qbusiness/model/ErrorCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QBusiness {
21namespace Model {
22
30 public:
31 AWS_QBUSINESS_API ErrorDetail() = default;
34 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
41 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
42 template <typename ErrorMessageT = Aws::String>
44 m_errorMessageHasBeenSet = true;
45 m_errorMessage = std::forward<ErrorMessageT>(value);
46 }
47 template <typename ErrorMessageT = Aws::String>
49 SetErrorMessage(std::forward<ErrorMessageT>(value));
50 return *this;
51 }
53
55
58 inline ErrorCode GetErrorCode() const { return m_errorCode; }
59 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
60 inline void SetErrorCode(ErrorCode value) {
61 m_errorCodeHasBeenSet = true;
62 m_errorCode = value;
63 }
65 SetErrorCode(value);
66 return *this;
67 }
69 private:
70 Aws::String m_errorMessage;
71
72 ErrorCode m_errorCode{ErrorCode::NOT_SET};
73 bool m_errorMessageHasBeenSet = false;
74 bool m_errorCodeHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace QBusiness
79} // namespace Aws
AWS_QBUSINESS_API ErrorDetail()=default
const Aws::String & GetErrorMessage() const
Definition ErrorDetail.h:40
ErrorDetail & WithErrorMessage(ErrorMessageT &&value)
Definition ErrorDetail.h:48
ErrorDetail & WithErrorCode(ErrorCode value)
Definition ErrorDetail.h:64
void SetErrorCode(ErrorCode value)
Definition ErrorDetail.h:60
AWS_QBUSINESS_API ErrorDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetErrorMessage(ErrorMessageT &&value)
Definition ErrorDetail.h:43
AWS_QBUSINESS_API ErrorDetail(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue