AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
87 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
88 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
89 inline AthenaError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
90 inline AthenaError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
91 inline AthenaError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
93 private:
94
95 int m_errorCategory;
96 bool m_errorCategoryHasBeenSet = false;
97
98 int m_errorType;
99 bool m_errorTypeHasBeenSet = false;
100
101 bool m_retryable;
102 bool m_retryableHasBeenSet = false;
103
104 Aws::String m_errorMessage;
105 bool m_errorMessageHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Athena
110} // namespace Aws
AthenaError & WithErrorMessage(const Aws::String &value)
Definition AthenaError.h:89
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)
AthenaError & WithErrorMessage(const char *value)
Definition AthenaError.h:91
void SetErrorMessage(const char *value)
Definition AthenaError.h:88
AthenaError & WithErrorCategory(int value)
Definition AthenaError.h:54
void SetErrorMessage(Aws::String &&value)
Definition AthenaError.h:87
AthenaError & WithErrorType(int value)
Definition AthenaError.h:67
AthenaError & WithRetryable(bool value)
Definition AthenaError.h:77
void SetErrorMessage(const Aws::String &value)
Definition AthenaError.h:86
AWS_ATHENA_API AthenaError & operator=(Aws::Utils::Json::JsonView jsonValue)
AthenaError & WithErrorMessage(Aws::String &&value)
Definition AthenaError.h:90
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue