AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Statement.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/model/StatementState.h>
10#include <aws/glue/model/StatementOutput.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GLUE_API Statement() = default;
38 AWS_GLUE_API Statement(Aws::Utils::Json::JsonView jsonValue);
41
42
44
47 inline int GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; }
50 inline Statement& WithId(int value) { SetId(value); return *this;}
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) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
61 template<typename CodeT = Aws::String>
62 Statement& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
64
66
69 inline StatementState GetState() const { return m_state; }
70 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
71 inline void SetState(StatementState value) { m_stateHasBeenSet = true; m_state = value; }
72 inline Statement& WithState(StatementState value) { SetState(value); return *this;}
74
76
79 inline const StatementOutput& GetOutput() const { return m_output; }
80 inline bool OutputHasBeenSet() const { return m_outputHasBeenSet; }
81 template<typename OutputT = StatementOutput>
82 void SetOutput(OutputT&& value) { m_outputHasBeenSet = true; m_output = std::forward<OutputT>(value); }
83 template<typename OutputT = StatementOutput>
84 Statement& WithOutput(OutputT&& value) { SetOutput(std::forward<OutputT>(value)); return *this;}
86
88
91 inline double GetProgress() const { return m_progress; }
92 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
93 inline void SetProgress(double value) { m_progressHasBeenSet = true; m_progress = value; }
94 inline Statement& WithProgress(double value) { SetProgress(value); return *this;}
96
98
101 inline long long GetStartedOn() const { return m_startedOn; }
102 inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
103 inline void SetStartedOn(long long value) { m_startedOnHasBeenSet = true; m_startedOn = value; }
104 inline Statement& WithStartedOn(long long value) { SetStartedOn(value); return *this;}
106
108
111 inline long long GetCompletedOn() const { return m_completedOn; }
112 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
113 inline void SetCompletedOn(long long value) { m_completedOnHasBeenSet = true; m_completedOn = value; }
114 inline Statement& WithCompletedOn(long long value) { SetCompletedOn(value); return *this;}
116 private:
117
118 int m_id{0};
119 bool m_idHasBeenSet = false;
120
121 Aws::String m_code;
122 bool m_codeHasBeenSet = false;
123
125 bool m_stateHasBeenSet = false;
126
127 StatementOutput m_output;
128 bool m_outputHasBeenSet = false;
129
130 double m_progress{0.0};
131 bool m_progressHasBeenSet = false;
132
133 long long m_startedOn{0};
134 bool m_startedOnHasBeenSet = false;
135
136 long long m_completedOn{0};
137 bool m_completedOnHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace Glue
142} // namespace Aws
Statement & WithState(StatementState value)
Definition Statement.h:72
Statement & WithId(int value)
Definition Statement.h:50
AWS_GLUE_API Statement()=default
Statement & WithCode(CodeT &&value)
Definition Statement.h:62
void SetId(int value)
Definition Statement.h:49
StatementState GetState() const
Definition Statement.h:69
long long GetCompletedOn() const
Definition Statement.h:111
void SetProgress(double value)
Definition Statement.h:93
bool ProgressHasBeenSet() const
Definition Statement.h:92
Statement & WithCompletedOn(long long value)
Definition Statement.h:114
Statement & WithOutput(OutputT &&value)
Definition Statement.h:84
AWS_GLUE_API Statement(Aws::Utils::Json::JsonView jsonValue)
bool StartedOnHasBeenSet() const
Definition Statement.h:102
void SetCode(CodeT &&value)
Definition Statement.h:60
void SetCompletedOn(long long value)
Definition Statement.h:113
const StatementOutput & GetOutput() const
Definition Statement.h:79
void SetOutput(OutputT &&value)
Definition Statement.h:82
Statement & WithStartedOn(long long value)
Definition Statement.h:104
void SetStartedOn(long long value)
Definition Statement.h:103
long long GetStartedOn() const
Definition Statement.h:101
bool CompletedOnHasBeenSet() const
Definition Statement.h:112
void SetState(StatementState value)
Definition Statement.h:71
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:80
double GetProgress() const
Definition Statement.h:91
Statement & WithProgress(double value)
Definition Statement.h:94
bool StateHasBeenSet() const
Definition Statement.h:70
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