AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ErrorInfo.h
1
6#pragma once
7#include <aws/finspace/Finspace_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/finspace/model/ErrorDetails.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 finspace
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_FINSPACE_API ErrorInfo() = default;
37 AWS_FINSPACE_API ErrorInfo(Aws::Utils::Json::JsonView jsonValue);
38 AWS_FINSPACE_API ErrorInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_FINSPACE_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 template<typename ErrorMessageT = Aws::String>
49 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
50 template<typename ErrorMessageT = Aws::String>
51 ErrorInfo& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
53
55
58 inline ErrorDetails GetErrorType() const { return m_errorType; }
59 inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; }
60 inline void SetErrorType(ErrorDetails value) { m_errorTypeHasBeenSet = true; m_errorType = value; }
61 inline ErrorInfo& WithErrorType(ErrorDetails value) { SetErrorType(value); return *this;}
63 private:
64
65 Aws::String m_errorMessage;
66 bool m_errorMessageHasBeenSet = false;
67
69 bool m_errorTypeHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace finspace
74} // namespace Aws
const Aws::String & GetErrorMessage() const
Definition ErrorInfo.h:46
void SetErrorMessage(ErrorMessageT &&value)
Definition ErrorInfo.h:49
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:61
ErrorInfo & WithErrorMessage(ErrorMessageT &&value)
Definition ErrorInfo.h:51
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:47
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