AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
DataViewErrorInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/finspace-data/FinSpaceData_EXPORTS.h>
9#include <aws/finspace-data/model/ErrorCategory.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace FinSpaceData {
21namespace Model {
22
29 public:
30 AWS_FINSPACEDATA_API DataViewErrorInfo() = default;
31 AWS_FINSPACEDATA_API DataViewErrorInfo(Aws::Utils::Json::JsonView jsonValue);
32 AWS_FINSPACEDATA_API DataViewErrorInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_FINSPACEDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
40 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
41 template <typename ErrorMessageT = Aws::String>
42 void SetErrorMessage(ErrorMessageT&& value) {
43 m_errorMessageHasBeenSet = true;
44 m_errorMessage = std::forward<ErrorMessageT>(value);
45 }
46 template <typename ErrorMessageT = Aws::String>
47 DataViewErrorInfo& WithErrorMessage(ErrorMessageT&& value) {
48 SetErrorMessage(std::forward<ErrorMessageT>(value));
49 return *this;
50 }
52
54
68 inline ErrorCategory GetErrorCategory() const { return m_errorCategory; }
69 inline bool ErrorCategoryHasBeenSet() const { return m_errorCategoryHasBeenSet; }
70 inline void SetErrorCategory(ErrorCategory value) {
71 m_errorCategoryHasBeenSet = true;
72 m_errorCategory = value;
73 }
75 SetErrorCategory(value);
76 return *this;
77 }
79 private:
80 Aws::String m_errorMessage;
81
83 bool m_errorMessageHasBeenSet = false;
84 bool m_errorCategoryHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace FinSpaceData
89} // 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