AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ErrorDetail.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qbusiness/model/ErrorCode.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QBusiness
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_QBUSINESS_API ErrorDetail();
37 AWS_QBUSINESS_API ErrorDetail(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QBUSINESS_API ErrorDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
47 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
48 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
49 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
50 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
51 inline ErrorDetail& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
52 inline ErrorDetail& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
53 inline ErrorDetail& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
55
57
60 inline const ErrorCode& GetErrorCode() const{ return m_errorCode; }
61 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
62 inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
63 inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
64 inline ErrorDetail& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;}
65 inline ErrorDetail& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
67 private:
68
69 Aws::String m_errorMessage;
70 bool m_errorMessageHasBeenSet = false;
71
72 ErrorCode m_errorCode;
73 bool m_errorCodeHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace QBusiness
78} // namespace Aws
const Aws::String & GetErrorMessage() const
Definition ErrorDetail.h:46
ErrorDetail & WithErrorCode(ErrorCode &&value)
Definition ErrorDetail.h:65
ErrorDetail & WithErrorMessage(const Aws::String &value)
Definition ErrorDetail.h:51
AWS_QBUSINESS_API ErrorDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetErrorMessage(Aws::String &&value)
Definition ErrorDetail.h:49
const ErrorCode & GetErrorCode() const
Definition ErrorDetail.h:60
void SetErrorMessage(const char *value)
Definition ErrorDetail.h:50
void SetErrorCode(const ErrorCode &value)
Definition ErrorDetail.h:62
void SetErrorCode(ErrorCode &&value)
Definition ErrorDetail.h:63
void SetErrorMessage(const Aws::String &value)
Definition ErrorDetail.h:48
ErrorDetail & WithErrorMessage(Aws::String &&value)
Definition ErrorDetail.h:52
ErrorDetail & WithErrorCode(const ErrorCode &value)
Definition ErrorDetail.h:64
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
ErrorDetail & WithErrorMessage(const char *value)
Definition ErrorDetail.h:53
AWS_QBUSINESS_API ErrorDetail(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue