AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
60 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
61 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
62 inline Statement& WithCode(const Aws::String& value) { SetCode(value); return *this;}
63 inline Statement& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
64 inline Statement& WithCode(const char* value) { SetCode(value); return *this;}
66
68
71 inline const StatementState& GetState() const{ return m_state; }
72 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
73 inline void SetState(const StatementState& value) { m_stateHasBeenSet = true; m_state = value; }
74 inline void SetState(StatementState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
75 inline Statement& WithState(const StatementState& value) { SetState(value); return *this;}
76 inline Statement& WithState(StatementState&& value) { SetState(std::move(value)); return *this;}
78
80
83 inline const StatementOutput& GetOutput() const{ return m_output; }
84 inline bool OutputHasBeenSet() const { return m_outputHasBeenSet; }
85 inline void SetOutput(const StatementOutput& value) { m_outputHasBeenSet = true; m_output = value; }
86 inline void SetOutput(StatementOutput&& value) { m_outputHasBeenSet = true; m_output = std::move(value); }
87 inline Statement& WithOutput(const StatementOutput& value) { SetOutput(value); return *this;}
88 inline Statement& WithOutput(StatementOutput&& value) { SetOutput(std::move(value)); return *this;}
90
92
95 inline double GetProgress() const{ return m_progress; }
96 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
97 inline void SetProgress(double value) { m_progressHasBeenSet = true; m_progress = value; }
98 inline Statement& WithProgress(double value) { SetProgress(value); return *this;}
100
102
105 inline long long GetStartedOn() const{ return m_startedOn; }
106 inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
107 inline void SetStartedOn(long long value) { m_startedOnHasBeenSet = true; m_startedOn = value; }
108 inline Statement& WithStartedOn(long long value) { SetStartedOn(value); return *this;}
110
112
115 inline long long GetCompletedOn() const{ return m_completedOn; }
116 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
117 inline void SetCompletedOn(long long value) { m_completedOnHasBeenSet = true; m_completedOn = value; }
118 inline Statement& WithCompletedOn(long long value) { SetCompletedOn(value); return *this;}
120 private:
121
122 int m_id;
123 bool m_idHasBeenSet = false;
124
125 Aws::String m_code;
126 bool m_codeHasBeenSet = false;
127
128 StatementState m_state;
129 bool m_stateHasBeenSet = false;
130
131 StatementOutput m_output;
132 bool m_outputHasBeenSet = false;
133
134 double m_progress;
135 bool m_progressHasBeenSet = false;
136
137 long long m_startedOn;
138 bool m_startedOnHasBeenSet = false;
139
140 long long m_completedOn;
141 bool m_completedOnHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace Glue
146} // namespace Aws
Statement & WithCode(Aws::String &&value)
Definition Statement.h:63
void SetState(StatementState &&value)
Definition Statement.h:74
Statement & WithId(int value)
Definition Statement.h:50
void SetId(int value)
Definition Statement.h:49
long long GetCompletedOn() const
Definition Statement.h:115
void SetProgress(double value)
Definition Statement.h:97
const StatementState & GetState() const
Definition Statement.h:71
Statement & WithCode(const char *value)
Definition Statement.h:64
Statement & WithCode(const Aws::String &value)
Definition Statement.h:62
bool ProgressHasBeenSet() const
Definition Statement.h:96
void SetCode(Aws::String &&value)
Definition Statement.h:60
Statement & WithCompletedOn(long long value)
Definition Statement.h:118
Statement & WithOutput(const StatementOutput &value)
Definition Statement.h:87
void SetOutput(const StatementOutput &value)
Definition Statement.h:85
AWS_GLUE_API Statement(Aws::Utils::Json::JsonView jsonValue)
bool StartedOnHasBeenSet() const
Definition Statement.h:106
void SetCompletedOn(long long value)
Definition Statement.h:117
const StatementOutput & GetOutput() const
Definition Statement.h:83
void SetCode(const Aws::String &value)
Definition Statement.h:59
Statement & WithStartedOn(long long value)
Definition Statement.h:108
void SetOutput(StatementOutput &&value)
Definition Statement.h:86
void SetStartedOn(long long value)
Definition Statement.h:107
long long GetStartedOn() const
Definition Statement.h:105
bool CompletedOnHasBeenSet() const
Definition Statement.h:116
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
void SetState(const StatementState &value)
Definition Statement.h:73
bool OutputHasBeenSet() const
Definition Statement.h:84
double GetProgress() const
Definition Statement.h:95
Statement & WithProgress(double value)
Definition Statement.h:98
Statement & WithOutput(StatementOutput &&value)
Definition Statement.h:88
bool StateHasBeenSet() const
Definition Statement.h:72
Statement & WithState(StatementState &&value)
Definition Statement.h:76
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCode(const char *value)
Definition Statement.h:61
Statement & WithState(const StatementState &value)
Definition Statement.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue