AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
StatementOutput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/StatementOutputData.h>
11#include <aws/glue/model/StatementState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue {
23namespace Model {
24
31 public:
32 AWS_GLUE_API StatementOutput() = default;
36
38
41 inline const StatementOutputData& GetData() const { return m_data; }
42 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
43 template <typename DataT = StatementOutputData>
44 void SetData(DataT&& value) {
45 m_dataHasBeenSet = true;
46 m_data = std::forward<DataT>(value);
47 }
48 template <typename DataT = StatementOutputData>
49 StatementOutput& WithData(DataT&& value) {
50 SetData(std::forward<DataT>(value));
51 return *this;
52 }
54
56
59 inline int GetExecutionCount() const { return m_executionCount; }
60 inline bool ExecutionCountHasBeenSet() const { return m_executionCountHasBeenSet; }
61 inline void SetExecutionCount(int value) {
62 m_executionCountHasBeenSet = true;
63 m_executionCount = value;
64 }
66 SetExecutionCount(value);
67 return *this;
68 }
70
72
75 inline StatementState GetStatus() const { return m_status; }
76 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
77 inline void SetStatus(StatementState value) {
78 m_statusHasBeenSet = true;
79 m_status = value;
80 }
82 SetStatus(value);
83 return *this;
84 }
86
88
91 inline const Aws::String& GetErrorName() const { return m_errorName; }
92 inline bool ErrorNameHasBeenSet() const { return m_errorNameHasBeenSet; }
93 template <typename ErrorNameT = Aws::String>
94 void SetErrorName(ErrorNameT&& value) {
95 m_errorNameHasBeenSet = true;
96 m_errorName = std::forward<ErrorNameT>(value);
97 }
98 template <typename ErrorNameT = Aws::String>
99 StatementOutput& WithErrorName(ErrorNameT&& value) {
100 SetErrorName(std::forward<ErrorNameT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetErrorValue() const { return m_errorValue; }
110 inline bool ErrorValueHasBeenSet() const { return m_errorValueHasBeenSet; }
111 template <typename ErrorValueT = Aws::String>
112 void SetErrorValue(ErrorValueT&& value) {
113 m_errorValueHasBeenSet = true;
114 m_errorValue = std::forward<ErrorValueT>(value);
115 }
116 template <typename ErrorValueT = Aws::String>
117 StatementOutput& WithErrorValue(ErrorValueT&& value) {
118 SetErrorValue(std::forward<ErrorValueT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::Vector<Aws::String>& GetTraceback() const { return m_traceback; }
128 inline bool TracebackHasBeenSet() const { return m_tracebackHasBeenSet; }
129 template <typename TracebackT = Aws::Vector<Aws::String>>
130 void SetTraceback(TracebackT&& value) {
131 m_tracebackHasBeenSet = true;
132 m_traceback = std::forward<TracebackT>(value);
133 }
134 template <typename TracebackT = Aws::Vector<Aws::String>>
135 StatementOutput& WithTraceback(TracebackT&& value) {
136 SetTraceback(std::forward<TracebackT>(value));
137 return *this;
138 }
139 template <typename TracebackT = Aws::String>
140 StatementOutput& AddTraceback(TracebackT&& value) {
141 m_tracebackHasBeenSet = true;
142 m_traceback.emplace_back(std::forward<TracebackT>(value));
143 return *this;
144 }
146 private:
147 StatementOutputData m_data;
148
149 int m_executionCount{0};
150
152
153 Aws::String m_errorName;
154
155 Aws::String m_errorValue;
156
157 Aws::Vector<Aws::String> m_traceback;
158 bool m_dataHasBeenSet = false;
159 bool m_executionCountHasBeenSet = false;
160 bool m_statusHasBeenSet = false;
161 bool m_errorNameHasBeenSet = false;
162 bool m_errorValueHasBeenSet = false;
163 bool m_tracebackHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace Glue
168} // namespace Aws
StatementOutput & WithErrorValue(ErrorValueT &&value)
void SetTraceback(TracebackT &&value)
const Aws::String & GetErrorValue() const
void SetStatus(StatementState value)
StatementOutput & WithErrorName(ErrorNameT &&value)
const Aws::Vector< Aws::String > & GetTraceback() const
const Aws::String & GetErrorName() const
StatementOutput & WithExecutionCount(int value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API StatementOutput()=default
AWS_GLUE_API StatementOutput(Aws::Utils::Json::JsonView jsonValue)
void SetErrorValue(ErrorValueT &&value)
StatementOutput & WithStatus(StatementState value)
StatementOutput & AddTraceback(TracebackT &&value)
const StatementOutputData & GetData() const
StatementState GetStatus() const
void SetErrorName(ErrorNameT &&value)
StatementOutput & WithTraceback(TracebackT &&value)
StatementOutput & WithData(DataT &&value)
AWS_GLUE_API StatementOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue