AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AthenaError.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Athena
22{
23namespace Model
24{
25
37 {
38 public:
39 AWS_ATHENA_API AthenaError() = default;
40 AWS_ATHENA_API AthenaError(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline int GetErrorCategory() const { return m_errorCategory; }
52 inline bool ErrorCategoryHasBeenSet() const { return m_errorCategoryHasBeenSet; }
53 inline void SetErrorCategory(int value) { m_errorCategoryHasBeenSet = true; m_errorCategory = value; }
54 inline AthenaError& WithErrorCategory(int value) { SetErrorCategory(value); return *this;}
56
58
64 inline int GetErrorType() const { return m_errorType; }
65 inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; }
66 inline void SetErrorType(int value) { m_errorTypeHasBeenSet = true; m_errorType = value; }
67 inline AthenaError& WithErrorType(int value) { SetErrorType(value); return *this;}
69
71
74 inline bool GetRetryable() const { return m_retryable; }
75 inline bool RetryableHasBeenSet() const { return m_retryableHasBeenSet; }
76 inline void SetRetryable(bool value) { m_retryableHasBeenSet = true; m_retryable = value; }
77 inline AthenaError& WithRetryable(bool value) { SetRetryable(value); return *this;}
79
81
84 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
85 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
86 template<typename ErrorMessageT = Aws::String>
87 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
88 template<typename ErrorMessageT = Aws::String>
89 AthenaError& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
91 private:
92
93 int m_errorCategory{0};
94 bool m_errorCategoryHasBeenSet = false;
95
96 int m_errorType{0};
97 bool m_errorTypeHasBeenSet = false;
98
99 bool m_retryable{false};
100 bool m_retryableHasBeenSet = false;
101
102 Aws::String m_errorMessage;
103 bool m_errorMessageHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Athena
108} // namespace Aws
const Aws::String & GetErrorMessage() const
Definition AthenaError.h:84
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ATHENA_API AthenaError(Aws::Utils::Json::JsonView jsonValue)
AWS_ATHENA_API AthenaError()=default
void SetErrorMessage(ErrorMessageT &&value)
Definition AthenaError.h:87
AthenaError & WithErrorCategory(int value)
Definition AthenaError.h:54
AthenaError & WithErrorMessage(ErrorMessageT &&value)
Definition AthenaError.h:89
AthenaError & WithErrorType(int value)
Definition AthenaError.h:67
AthenaError & WithRetryable(bool value)
Definition AthenaError.h:77
AWS_ATHENA_API AthenaError & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue