AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DataViewErrorInfo.h
1
6#pragma once
7#include <aws/finspace-data/FinSpaceData_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/finspace-data/model/ErrorCategory.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 FinSpaceData
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_FINSPACEDATA_API DataViewErrorInfo() = default;
36 AWS_FINSPACEDATA_API DataViewErrorInfo(Aws::Utils::Json::JsonView jsonValue);
37 AWS_FINSPACEDATA_API DataViewErrorInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_FINSPACEDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
46 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
47 template<typename ErrorMessageT = Aws::String>
48 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
49 template<typename ErrorMessageT = Aws::String>
50 DataViewErrorInfo& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
52
54
68 inline ErrorCategory GetErrorCategory() const { return m_errorCategory; }
69 inline bool ErrorCategoryHasBeenSet() const { return m_errorCategoryHasBeenSet; }
70 inline void SetErrorCategory(ErrorCategory value) { m_errorCategoryHasBeenSet = true; m_errorCategory = value; }
71 inline DataViewErrorInfo& WithErrorCategory(ErrorCategory value) { SetErrorCategory(value); return *this;}
73 private:
74
75 Aws::String m_errorMessage;
76 bool m_errorMessageHasBeenSet = false;
77
79 bool m_errorCategoryHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace FinSpaceData
84} // namespace Aws
AWS_FINSPACEDATA_API DataViewErrorInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FINSPACEDATA_API DataViewErrorInfo()=default
AWS_FINSPACEDATA_API Aws::Utils::Json::JsonValue Jsonize() const
DataViewErrorInfo & WithErrorCategory(ErrorCategory value)
DataViewErrorInfo & WithErrorMessage(ErrorMessageT &&value)
AWS_FINSPACEDATA_API DataViewErrorInfo(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue