AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ErrorInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/finspace/Finspace_EXPORTS.h>
9#include <aws/finspace/model/ErrorDetails.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace finspace {
21namespace Model {
22
29class ErrorInfo {
30 public:
31 AWS_FINSPACE_API ErrorInfo() = default;
32 AWS_FINSPACE_API ErrorInfo(Aws::Utils::Json::JsonView jsonValue);
33 AWS_FINSPACE_API ErrorInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_FINSPACE_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>
43 void SetErrorMessage(ErrorMessageT&& value) {
44 m_errorMessageHasBeenSet = true;
45 m_errorMessage = std::forward<ErrorMessageT>(value);
46 }
47 template <typename ErrorMessageT = Aws::String>
48 ErrorInfo& WithErrorMessage(ErrorMessageT&& value) {
49 SetErrorMessage(std::forward<ErrorMessageT>(value));
50 return *this;
51 }
53
55
58 inline ErrorDetails GetErrorType() const { return m_errorType; }
59 inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; }
60 inline void SetErrorType(ErrorDetails value) {
61 m_errorTypeHasBeenSet = true;
62 m_errorType = value;
63 }
65 SetErrorType(value);
66 return *this;
67 }
69 private:
70 Aws::String m_errorMessage;
71
73 bool m_errorMessageHasBeenSet = false;
74 bool m_errorTypeHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace finspace
79} // namespace Aws
const Aws::String & GetErrorMessage() const
Definition ErrorInfo.h:40
void SetErrorMessage(ErrorMessageT &&value)
Definition ErrorInfo.h:43
void SetErrorType(ErrorDetails value)
Definition ErrorInfo.h:60
AWS_FINSPACE_API ErrorInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
ErrorInfo & WithErrorType(ErrorDetails value)
Definition ErrorInfo.h:64
ErrorInfo & WithErrorMessage(ErrorMessageT &&value)
Definition ErrorInfo.h:48
ErrorDetails GetErrorType() const
Definition ErrorInfo.h:58
AWS_FINSPACE_API ErrorInfo()=default
AWS_FINSPACE_API ErrorInfo(Aws::Utils::Json::JsonView jsonValue)
bool ErrorMessageHasBeenSet() const
Definition ErrorInfo.h:41
AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue