AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StatementOutput.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/model/StatementOutputData.h>
9#include <aws/glue/model/StatementState.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Glue
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_GLUE_API StatementOutput() = default;
41
42
44
47 inline const StatementOutputData& GetData() const { return m_data; }
48 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
49 template<typename DataT = StatementOutputData>
50 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
51 template<typename DataT = StatementOutputData>
52 StatementOutput& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
54
56
59 inline int GetExecutionCount() const { return m_executionCount; }
60 inline bool ExecutionCountHasBeenSet() const { return m_executionCountHasBeenSet; }
61 inline void SetExecutionCount(int value) { m_executionCountHasBeenSet = true; m_executionCount = value; }
62 inline StatementOutput& WithExecutionCount(int value) { SetExecutionCount(value); return *this;}
64
66
69 inline StatementState GetStatus() const { return m_status; }
70 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
71 inline void SetStatus(StatementState value) { m_statusHasBeenSet = true; m_status = value; }
72 inline StatementOutput& WithStatus(StatementState value) { SetStatus(value); return *this;}
74
76
79 inline const Aws::String& GetErrorName() const { return m_errorName; }
80 inline bool ErrorNameHasBeenSet() const { return m_errorNameHasBeenSet; }
81 template<typename ErrorNameT = Aws::String>
82 void SetErrorName(ErrorNameT&& value) { m_errorNameHasBeenSet = true; m_errorName = std::forward<ErrorNameT>(value); }
83 template<typename ErrorNameT = Aws::String>
84 StatementOutput& WithErrorName(ErrorNameT&& value) { SetErrorName(std::forward<ErrorNameT>(value)); return *this;}
86
88
91 inline const Aws::String& GetErrorValue() const { return m_errorValue; }
92 inline bool ErrorValueHasBeenSet() const { return m_errorValueHasBeenSet; }
93 template<typename ErrorValueT = Aws::String>
94 void SetErrorValue(ErrorValueT&& value) { m_errorValueHasBeenSet = true; m_errorValue = std::forward<ErrorValueT>(value); }
95 template<typename ErrorValueT = Aws::String>
96 StatementOutput& WithErrorValue(ErrorValueT&& value) { SetErrorValue(std::forward<ErrorValueT>(value)); return *this;}
98
100
103 inline const Aws::Vector<Aws::String>& GetTraceback() const { return m_traceback; }
104 inline bool TracebackHasBeenSet() const { return m_tracebackHasBeenSet; }
105 template<typename TracebackT = Aws::Vector<Aws::String>>
106 void SetTraceback(TracebackT&& value) { m_tracebackHasBeenSet = true; m_traceback = std::forward<TracebackT>(value); }
107 template<typename TracebackT = Aws::Vector<Aws::String>>
108 StatementOutput& WithTraceback(TracebackT&& value) { SetTraceback(std::forward<TracebackT>(value)); return *this;}
109 template<typename TracebackT = Aws::String>
110 StatementOutput& AddTraceback(TracebackT&& value) { m_tracebackHasBeenSet = true; m_traceback.emplace_back(std::forward<TracebackT>(value)); return *this; }
112 private:
113
114 StatementOutputData m_data;
115 bool m_dataHasBeenSet = false;
116
117 int m_executionCount{0};
118 bool m_executionCountHasBeenSet = false;
119
121 bool m_statusHasBeenSet = false;
122
123 Aws::String m_errorName;
124 bool m_errorNameHasBeenSet = false;
125
126 Aws::String m_errorValue;
127 bool m_errorValueHasBeenSet = false;
128
129 Aws::Vector<Aws::String> m_traceback;
130 bool m_tracebackHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace Glue
135} // 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