AWS SDK for C++  1.9.104
AWS SDK for C++
QueryExecutionStatus.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Athena
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
55  inline const QueryExecutionState& GetState() const{ return m_state; }
56 
69  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
70 
83  inline void SetState(const QueryExecutionState& value) { m_stateHasBeenSet = true; m_state = value; }
84 
97  inline void SetState(QueryExecutionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
98 
111  inline QueryExecutionStatus& WithState(const QueryExecutionState& value) { SetState(value); return *this;}
112 
125  inline QueryExecutionStatus& WithState(QueryExecutionState&& value) { SetState(std::move(value)); return *this;}
126 
127 
131  inline const Aws::String& GetStateChangeReason() const{ return m_stateChangeReason; }
132 
136  inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; }
137 
141  inline void SetStateChangeReason(const Aws::String& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
142 
146  inline void SetStateChangeReason(Aws::String&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = std::move(value); }
147 
151  inline void SetStateChangeReason(const char* value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason.assign(value); }
152 
156  inline QueryExecutionStatus& WithStateChangeReason(const Aws::String& value) { SetStateChangeReason(value); return *this;}
157 
161  inline QueryExecutionStatus& WithStateChangeReason(Aws::String&& value) { SetStateChangeReason(std::move(value)); return *this;}
162 
166  inline QueryExecutionStatus& WithStateChangeReason(const char* value) { SetStateChangeReason(value); return *this;}
167 
168 
172  inline const Aws::Utils::DateTime& GetSubmissionDateTime() const{ return m_submissionDateTime; }
173 
177  inline bool SubmissionDateTimeHasBeenSet() const { return m_submissionDateTimeHasBeenSet; }
178 
182  inline void SetSubmissionDateTime(const Aws::Utils::DateTime& value) { m_submissionDateTimeHasBeenSet = true; m_submissionDateTime = value; }
183 
187  inline void SetSubmissionDateTime(Aws::Utils::DateTime&& value) { m_submissionDateTimeHasBeenSet = true; m_submissionDateTime = std::move(value); }
188 
192  inline QueryExecutionStatus& WithSubmissionDateTime(const Aws::Utils::DateTime& value) { SetSubmissionDateTime(value); return *this;}
193 
197  inline QueryExecutionStatus& WithSubmissionDateTime(Aws::Utils::DateTime&& value) { SetSubmissionDateTime(std::move(value)); return *this;}
198 
199 
203  inline const Aws::Utils::DateTime& GetCompletionDateTime() const{ return m_completionDateTime; }
204 
208  inline bool CompletionDateTimeHasBeenSet() const { return m_completionDateTimeHasBeenSet; }
209 
213  inline void SetCompletionDateTime(const Aws::Utils::DateTime& value) { m_completionDateTimeHasBeenSet = true; m_completionDateTime = value; }
214 
218  inline void SetCompletionDateTime(Aws::Utils::DateTime&& value) { m_completionDateTimeHasBeenSet = true; m_completionDateTime = std::move(value); }
219 
223  inline QueryExecutionStatus& WithCompletionDateTime(const Aws::Utils::DateTime& value) { SetCompletionDateTime(value); return *this;}
224 
228  inline QueryExecutionStatus& WithCompletionDateTime(Aws::Utils::DateTime&& value) { SetCompletionDateTime(std::move(value)); return *this;}
229 
230  private:
231 
232  QueryExecutionState m_state;
233  bool m_stateHasBeenSet;
234 
235  Aws::String m_stateChangeReason;
236  bool m_stateChangeReasonHasBeenSet;
237 
238  Aws::Utils::DateTime m_submissionDateTime;
239  bool m_submissionDateTimeHasBeenSet;
240 
241  Aws::Utils::DateTime m_completionDateTime;
242  bool m_completionDateTimeHasBeenSet;
243  };
244 
245 } // namespace Model
246 } // namespace Athena
247 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Athena::Model::QueryExecutionStatus::SetStateChangeReason
void SetStateChangeReason(const Aws::String &value)
Definition: QueryExecutionStatus.h:141
Aws::Athena::Model::QueryExecutionStatus::SetState
void SetState(QueryExecutionState &&value)
Definition: QueryExecutionStatus.h:97
Aws::Athena::Model::QueryExecutionStatus::GetCompletionDateTime
const Aws::Utils::DateTime & GetCompletionDateTime() const
Definition: QueryExecutionStatus.h:203
Aws::Athena::Model::QueryExecutionStatus::SetSubmissionDateTime
void SetSubmissionDateTime(Aws::Utils::DateTime &&value)
Definition: QueryExecutionStatus.h:187
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::Model::QueryExecutionStatus::GetState
const QueryExecutionState & GetState() const
Definition: QueryExecutionStatus.h:55
DateTime.h
Aws::Athena::Model::QueryExecutionStatus::GetSubmissionDateTime
const Aws::Utils::DateTime & GetSubmissionDateTime() const
Definition: QueryExecutionStatus.h:172
Aws::Athena::Model::QueryExecutionStatus::WithCompletionDateTime
QueryExecutionStatus & WithCompletionDateTime(const Aws::Utils::DateTime &value)
Definition: QueryExecutionStatus.h:223
Aws::Athena::Model::QueryExecutionState
QueryExecutionState
Definition: QueryExecutionState.h:17
Aws::Athena::Model::QueryExecutionStatus::SetState
void SetState(const QueryExecutionState &value)
Definition: QueryExecutionStatus.h:83
Aws::Athena::Model::QueryExecutionStatus::WithStateChangeReason
QueryExecutionStatus & WithStateChangeReason(const Aws::String &value)
Definition: QueryExecutionStatus.h:156
Aws::Athena::Model::QueryExecutionStatus::WithCompletionDateTime
QueryExecutionStatus & WithCompletionDateTime(Aws::Utils::DateTime &&value)
Definition: QueryExecutionStatus.h:228
Aws::Athena::Model::QueryExecutionStatus::WithStateChangeReason
QueryExecutionStatus & WithStateChangeReason(Aws::String &&value)
Definition: QueryExecutionStatus.h:161
Aws::Athena::Model::QueryExecutionStatus::QueryExecutionStatus
QueryExecutionStatus()
Aws::Athena::Model::QueryExecutionStatus::GetStateChangeReason
const Aws::String & GetStateChangeReason() const
Definition: QueryExecutionStatus.h:131
Aws::Athena::Model::QueryExecutionStatus::SetCompletionDateTime
void SetCompletionDateTime(Aws::Utils::DateTime &&value)
Definition: QueryExecutionStatus.h:218
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Athena_EXPORTS.h
Aws::Athena::Model::QueryExecutionStatus::SetStateChangeReason
void SetStateChangeReason(const char *value)
Definition: QueryExecutionStatus.h:151
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Athena::Model::QueryExecutionStatus::SetStateChangeReason
void SetStateChangeReason(Aws::String &&value)
Definition: QueryExecutionStatus.h:146
Aws::Athena::Model::QueryExecutionStatus::WithState
QueryExecutionStatus & WithState(QueryExecutionState &&value)
Definition: QueryExecutionStatus.h:125
Aws::Athena::Model::QueryExecutionStatus::SetSubmissionDateTime
void SetSubmissionDateTime(const Aws::Utils::DateTime &value)
Definition: QueryExecutionStatus.h:182
Aws::Athena::Model::QueryExecutionStatus::operator=
QueryExecutionStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Athena::Model::QueryExecutionStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Athena::Model::QueryExecutionStatus::WithState
QueryExecutionStatus & WithState(const QueryExecutionState &value)
Definition: QueryExecutionStatus.h:111
Aws::Athena::Model::QueryExecutionStatus::QueryExecutionStatus
QueryExecutionStatus(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::Athena::Model::QueryExecutionStatus::WithSubmissionDateTime
QueryExecutionStatus & WithSubmissionDateTime(Aws::Utils::DateTime &&value)
Definition: QueryExecutionStatus.h:197
Aws::Athena::Model::QueryExecutionStatus::StateChangeReasonHasBeenSet
bool StateChangeReasonHasBeenSet() const
Definition: QueryExecutionStatus.h:136
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::QueryExecutionStatus::WithStateChangeReason
QueryExecutionStatus & WithStateChangeReason(const char *value)
Definition: QueryExecutionStatus.h:166
Aws::Athena::Model::QueryExecutionStatus::WithSubmissionDateTime
QueryExecutionStatus & WithSubmissionDateTime(const Aws::Utils::DateTime &value)
Definition: QueryExecutionStatus.h:192
Aws::Athena::Model::QueryExecutionStatus::SetCompletionDateTime
void SetCompletionDateTime(const Aws::Utils::DateTime &value)
Definition: QueryExecutionStatus.h:213
QueryExecutionState.h
Aws::Athena::Model::QueryExecutionStatus::CompletionDateTimeHasBeenSet
bool CompletionDateTimeHasBeenSet() const
Definition: QueryExecutionStatus.h:208
Aws::Athena::Model::QueryExecutionStatus::SubmissionDateTimeHasBeenSet
bool SubmissionDateTimeHasBeenSet() const
Definition: QueryExecutionStatus.h:177
Aws::Athena::Model::QueryExecutionStatus::StateHasBeenSet
bool StateHasBeenSet() const
Definition: QueryExecutionStatus.h:69
Aws::Athena::Model::QueryExecutionStatus
Definition: QueryExecutionStatus.h:35