AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Statement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/Glue_EXPORTS.h>
9#include <aws/glue/model/StatementOutput.h>
10#include <aws/glue/model/StatementState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
30class Statement {
31 public:
32 AWS_GLUE_API Statement() = default;
33 AWS_GLUE_API Statement(Aws::Utils::Json::JsonView jsonValue);
36
38
41 inline int GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 inline void SetId(int value) {
44 m_idHasBeenSet = true;
45 m_id = value;
46 }
47 inline Statement& WithId(int value) {
48 SetId(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCode() const { return m_code; }
58 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
59 template <typename CodeT = Aws::String>
60 void SetCode(CodeT&& value) {
61 m_codeHasBeenSet = true;
62 m_code = std::forward<CodeT>(value);
63 }
64 template <typename CodeT = Aws::String>
65 Statement& WithCode(CodeT&& value) {
66 SetCode(std::forward<CodeT>(value));
67 return *this;
68 }
70
72
75 inline StatementState GetState() const { return m_state; }
76 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
77 inline void SetState(StatementState value) {
78 m_stateHasBeenSet = true;
79 m_state = value;
80 }
82 SetState(value);
83 return *this;
84 }
86
88
91 inline const StatementOutput& GetOutput() const { return m_output; }
92 inline bool OutputHasBeenSet() const { return m_outputHasBeenSet; }
93 template <typename OutputT = StatementOutput>
94 void SetOutput(OutputT&& value) {
95 m_outputHasBeenSet = true;
96 m_output = std::forward<OutputT>(value);
97 }
98 template <typename OutputT = StatementOutput>
99 Statement& WithOutput(OutputT&& value) {
100 SetOutput(std::forward<OutputT>(value));
101 return *this;
102 }
104
106
109 inline double GetProgress() const { return m_progress; }
110 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
111 inline void SetProgress(double value) {
112 m_progressHasBeenSet = true;
113 m_progress = value;
114 }
115 inline Statement& WithProgress(double value) {
116 SetProgress(value);
117 return *this;
118 }
120
122
125 inline long long GetStartedOn() const { return m_startedOn; }
126 inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
127 inline void SetStartedOn(long long value) {
128 m_startedOnHasBeenSet = true;
129 m_startedOn = value;
130 }
131 inline Statement& WithStartedOn(long long value) {
132 SetStartedOn(value);
133 return *this;
134 }
136
138
141 inline long long GetCompletedOn() const { return m_completedOn; }
142 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
143 inline void SetCompletedOn(long long value) {
144 m_completedOnHasBeenSet = true;
145 m_completedOn = value;
146 }
147 inline Statement& WithCompletedOn(long long value) {
148 SetCompletedOn(value);
149 return *this;
150 }
152 private:
153 int m_id{0};
154
155 Aws::String m_code;
156
158
159 StatementOutput m_output;
160
161 double m_progress{0.0};
162
163 long long m_startedOn{0};
164
165 long long m_completedOn{0};
166 bool m_idHasBeenSet = false;
167 bool m_codeHasBeenSet = false;
168 bool m_stateHasBeenSet = false;
169 bool m_outputHasBeenSet = false;
170 bool m_progressHasBeenSet = false;
171 bool m_startedOnHasBeenSet = false;
172 bool m_completedOnHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace Glue
177} // namespace Aws
Statement & WithState(StatementState value)
Definition Statement.h:81
Statement & WithId(int value)
Definition Statement.h:47
AWS_GLUE_API Statement()=default
Statement & WithCode(CodeT &&value)
Definition Statement.h:65
void SetId(int value)
Definition Statement.h:43
StatementState GetState() const
Definition Statement.h:75
long long GetCompletedOn() const
Definition Statement.h:141
void SetProgress(double value)
Definition Statement.h:111
bool ProgressHasBeenSet() const
Definition Statement.h:110
Statement & WithCompletedOn(long long value)
Definition Statement.h:147
Statement & WithOutput(OutputT &&value)
Definition Statement.h:99
AWS_GLUE_API Statement(Aws::Utils::Json::JsonView jsonValue)
bool StartedOnHasBeenSet() const
Definition Statement.h:126
void SetCode(CodeT &&value)
Definition Statement.h:60
void SetCompletedOn(long long value)
Definition Statement.h:143
const StatementOutput & GetOutput() const
Definition Statement.h:91
void SetOutput(OutputT &&value)
Definition Statement.h:94
Statement & WithStartedOn(long long value)
Definition Statement.h:131
void SetStartedOn(long long value)
Definition Statement.h:127
long long GetStartedOn() const
Definition Statement.h:125
bool CompletedOnHasBeenSet() const
Definition Statement.h:142
void SetState(StatementState value)
Definition Statement.h:77
const Aws::String & GetCode() const
Definition Statement.h:57
AWS_GLUE_API Statement & operator=(Aws::Utils::Json::JsonView jsonValue)
bool CodeHasBeenSet() const
Definition Statement.h:58
bool OutputHasBeenSet() const
Definition Statement.h:92
double GetProgress() const
Definition Statement.h:109
Statement & WithProgress(double value)
Definition Statement.h:115
bool StateHasBeenSet() const
Definition Statement.h:76
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue