AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
41
42
44
47 inline const StatementOutputData& GetData() const{ return m_data; }
48 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
49 inline void SetData(const StatementOutputData& value) { m_dataHasBeenSet = true; m_data = value; }
50 inline void SetData(StatementOutputData&& value) { m_dataHasBeenSet = true; m_data = std::move(value); }
51 inline StatementOutput& WithData(const StatementOutputData& value) { SetData(value); return *this;}
52 inline StatementOutput& WithData(StatementOutputData&& value) { SetData(std::move(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 const StatementState& GetStatus() const{ return m_status; }
70 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
71 inline void SetStatus(const StatementState& value) { m_statusHasBeenSet = true; m_status = value; }
72 inline void SetStatus(StatementState&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
73 inline StatementOutput& WithStatus(const StatementState& value) { SetStatus(value); return *this;}
74 inline StatementOutput& WithStatus(StatementState&& value) { SetStatus(std::move(value)); return *this;}
76
78
81 inline const Aws::String& GetErrorName() const{ return m_errorName; }
82 inline bool ErrorNameHasBeenSet() const { return m_errorNameHasBeenSet; }
83 inline void SetErrorName(const Aws::String& value) { m_errorNameHasBeenSet = true; m_errorName = value; }
84 inline void SetErrorName(Aws::String&& value) { m_errorNameHasBeenSet = true; m_errorName = std::move(value); }
85 inline void SetErrorName(const char* value) { m_errorNameHasBeenSet = true; m_errorName.assign(value); }
86 inline StatementOutput& WithErrorName(const Aws::String& value) { SetErrorName(value); return *this;}
87 inline StatementOutput& WithErrorName(Aws::String&& value) { SetErrorName(std::move(value)); return *this;}
88 inline StatementOutput& WithErrorName(const char* value) { SetErrorName(value); return *this;}
90
92
95 inline const Aws::String& GetErrorValue() const{ return m_errorValue; }
96 inline bool ErrorValueHasBeenSet() const { return m_errorValueHasBeenSet; }
97 inline void SetErrorValue(const Aws::String& value) { m_errorValueHasBeenSet = true; m_errorValue = value; }
98 inline void SetErrorValue(Aws::String&& value) { m_errorValueHasBeenSet = true; m_errorValue = std::move(value); }
99 inline void SetErrorValue(const char* value) { m_errorValueHasBeenSet = true; m_errorValue.assign(value); }
100 inline StatementOutput& WithErrorValue(const Aws::String& value) { SetErrorValue(value); return *this;}
101 inline StatementOutput& WithErrorValue(Aws::String&& value) { SetErrorValue(std::move(value)); return *this;}
102 inline StatementOutput& WithErrorValue(const char* value) { SetErrorValue(value); return *this;}
104
106
109 inline const Aws::Vector<Aws::String>& GetTraceback() const{ return m_traceback; }
110 inline bool TracebackHasBeenSet() const { return m_tracebackHasBeenSet; }
111 inline void SetTraceback(const Aws::Vector<Aws::String>& value) { m_tracebackHasBeenSet = true; m_traceback = value; }
112 inline void SetTraceback(Aws::Vector<Aws::String>&& value) { m_tracebackHasBeenSet = true; m_traceback = std::move(value); }
113 inline StatementOutput& WithTraceback(const Aws::Vector<Aws::String>& value) { SetTraceback(value); return *this;}
114 inline StatementOutput& WithTraceback(Aws::Vector<Aws::String>&& value) { SetTraceback(std::move(value)); return *this;}
115 inline StatementOutput& AddTraceback(const Aws::String& value) { m_tracebackHasBeenSet = true; m_traceback.push_back(value); return *this; }
116 inline StatementOutput& AddTraceback(Aws::String&& value) { m_tracebackHasBeenSet = true; m_traceback.push_back(std::move(value)); return *this; }
117 inline StatementOutput& AddTraceback(const char* value) { m_tracebackHasBeenSet = true; m_traceback.push_back(value); return *this; }
119 private:
120
121 StatementOutputData m_data;
122 bool m_dataHasBeenSet = false;
123
124 int m_executionCount;
125 bool m_executionCountHasBeenSet = false;
126
127 StatementState m_status;
128 bool m_statusHasBeenSet = false;
129
130 Aws::String m_errorName;
131 bool m_errorNameHasBeenSet = false;
132
133 Aws::String m_errorValue;
134 bool m_errorValueHasBeenSet = false;
135
136 Aws::Vector<Aws::String> m_traceback;
137 bool m_tracebackHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace Glue
142} // namespace Aws
StatementOutput & AddTraceback(const char *value)
void SetErrorValue(const Aws::String &value)
const Aws::String & GetErrorValue() const
StatementOutput & WithErrorName(const Aws::String &value)
void SetTraceback(Aws::Vector< Aws::String > &&value)
StatementOutput & WithTraceback(const Aws::Vector< Aws::String > &value)
void SetData(const StatementOutputData &value)
StatementOutput & WithTraceback(Aws::Vector< Aws::String > &&value)
StatementOutput & WithErrorValue(const Aws::String &value)
const Aws::Vector< Aws::String > & GetTraceback() const
void SetStatus(StatementState &&value)
const Aws::String & GetErrorName() const
const StatementState & GetStatus() const
StatementOutput & WithStatus(StatementState &&value)
void SetTraceback(const Aws::Vector< Aws::String > &value)
StatementOutput & WithData(StatementOutputData &&value)
StatementOutput & WithExecutionCount(int value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
StatementOutput & WithData(const StatementOutputData &value)
void SetErrorName(const Aws::String &value)
StatementOutput & WithStatus(const StatementState &value)
AWS_GLUE_API StatementOutput(Aws::Utils::Json::JsonView jsonValue)
void SetErrorName(Aws::String &&value)
StatementOutput & AddTraceback(Aws::String &&value)
StatementOutput & AddTraceback(const Aws::String &value)
StatementOutput & WithErrorName(Aws::String &&value)
const StatementOutputData & GetData() const
void SetErrorName(const char *value)
StatementOutput & WithErrorValue(const char *value)
void SetStatus(const StatementState &value)
void SetData(StatementOutputData &&value)
void SetErrorValue(const char *value)
StatementOutput & WithErrorValue(Aws::String &&value)
void SetErrorValue(Aws::String &&value)
StatementOutput & WithErrorName(const char *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