AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
QueryExecutionStatus.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/athena/model/QueryExecutionState.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/athena/model/AthenaError.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 Athena
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_ATHENA_API QueryExecutionStatus();
41 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
57 inline const QueryExecutionState& GetState() const{ return m_state; }
58 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
59 inline void SetState(const QueryExecutionState& value) { m_stateHasBeenSet = true; m_state = value; }
60 inline void SetState(QueryExecutionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
61 inline QueryExecutionStatus& WithState(const QueryExecutionState& value) { SetState(value); return *this;}
62 inline QueryExecutionStatus& WithState(QueryExecutionState&& value) { SetState(std::move(value)); return *this;}
64
66
69 inline const Aws::String& GetStateChangeReason() const{ return m_stateChangeReason; }
70 inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; }
71 inline void SetStateChangeReason(const Aws::String& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
72 inline void SetStateChangeReason(Aws::String&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = std::move(value); }
73 inline void SetStateChangeReason(const char* value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason.assign(value); }
74 inline QueryExecutionStatus& WithStateChangeReason(const Aws::String& value) { SetStateChangeReason(value); return *this;}
75 inline QueryExecutionStatus& WithStateChangeReason(Aws::String&& value) { SetStateChangeReason(std::move(value)); return *this;}
76 inline QueryExecutionStatus& WithStateChangeReason(const char* value) { SetStateChangeReason(value); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetSubmissionDateTime() const{ return m_submissionDateTime; }
84 inline bool SubmissionDateTimeHasBeenSet() const { return m_submissionDateTimeHasBeenSet; }
85 inline void SetSubmissionDateTime(const Aws::Utils::DateTime& value) { m_submissionDateTimeHasBeenSet = true; m_submissionDateTime = value; }
86 inline void SetSubmissionDateTime(Aws::Utils::DateTime&& value) { m_submissionDateTimeHasBeenSet = true; m_submissionDateTime = std::move(value); }
90
92
95 inline const Aws::Utils::DateTime& GetCompletionDateTime() const{ return m_completionDateTime; }
96 inline bool CompletionDateTimeHasBeenSet() const { return m_completionDateTimeHasBeenSet; }
97 inline void SetCompletionDateTime(const Aws::Utils::DateTime& value) { m_completionDateTimeHasBeenSet = true; m_completionDateTime = value; }
98 inline void SetCompletionDateTime(Aws::Utils::DateTime&& value) { m_completionDateTimeHasBeenSet = true; m_completionDateTime = std::move(value); }
102
104
107 inline const AthenaError& GetAthenaError() const{ return m_athenaError; }
108 inline bool AthenaErrorHasBeenSet() const { return m_athenaErrorHasBeenSet; }
109 inline void SetAthenaError(const AthenaError& value) { m_athenaErrorHasBeenSet = true; m_athenaError = value; }
110 inline void SetAthenaError(AthenaError&& value) { m_athenaErrorHasBeenSet = true; m_athenaError = std::move(value); }
111 inline QueryExecutionStatus& WithAthenaError(const AthenaError& value) { SetAthenaError(value); return *this;}
112 inline QueryExecutionStatus& WithAthenaError(AthenaError&& value) { SetAthenaError(std::move(value)); return *this;}
114 private:
115
116 QueryExecutionState m_state;
117 bool m_stateHasBeenSet = false;
118
119 Aws::String m_stateChangeReason;
120 bool m_stateChangeReasonHasBeenSet = false;
121
122 Aws::Utils::DateTime m_submissionDateTime;
123 bool m_submissionDateTimeHasBeenSet = false;
124
125 Aws::Utils::DateTime m_completionDateTime;
126 bool m_completionDateTimeHasBeenSet = false;
127
128 AthenaError m_athenaError;
129 bool m_athenaErrorHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace Athena
134} // namespace Aws
void SetCompletionDateTime(const Aws::Utils::DateTime &value)
const QueryExecutionState & GetState() const
QueryExecutionStatus & WithStateChangeReason(Aws::String &&value)
QueryExecutionStatus & WithState(const QueryExecutionState &value)
void SetState(QueryExecutionState &&value)
const Aws::Utils::DateTime & GetSubmissionDateTime() const
void SetState(const QueryExecutionState &value)
QueryExecutionStatus & WithSubmissionDateTime(const Aws::Utils::DateTime &value)
AWS_ATHENA_API QueryExecutionStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSubmissionDateTime(Aws::Utils::DateTime &&value)
QueryExecutionStatus & WithStateChangeReason(const Aws::String &value)
const Aws::String & GetStateChangeReason() const
QueryExecutionStatus & WithAthenaError(const AthenaError &value)
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
QueryExecutionStatus & WithSubmissionDateTime(Aws::Utils::DateTime &&value)
QueryExecutionStatus & WithAthenaError(AthenaError &&value)
AWS_ATHENA_API QueryExecutionStatus(Aws::Utils::Json::JsonView jsonValue)
QueryExecutionStatus & WithCompletionDateTime(const Aws::Utils::DateTime &value)
void SetStateChangeReason(const Aws::String &value)
void SetAthenaError(const AthenaError &value)
const Aws::Utils::DateTime & GetCompletionDateTime() const
QueryExecutionStatus & WithStateChangeReason(const char *value)
QueryExecutionStatus & WithCompletionDateTime(Aws::Utils::DateTime &&value)
void SetCompletionDateTime(Aws::Utils::DateTime &&value)
QueryExecutionStatus & WithState(QueryExecutionState &&value)
void SetSubmissionDateTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue