AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
ScheduledQueryRunSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
10#include <aws/timestream-query/model/ErrorReportLocation.h>
11#include <aws/timestream-query/model/ExecutionStats.h>
12#include <aws/timestream-query/model/ScheduledQueryInsightsResponse.h>
13#include <aws/timestream-query/model/ScheduledQueryRunStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace TimestreamQuery {
25namespace Model {
26
33 public:
34 AWS_TIMESTREAMQUERY_API ScheduledQueryRunSummary() = default;
37 AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline const Aws::Utils::DateTime& GetInvocationTime() const { return m_invocationTime; }
46 inline bool InvocationTimeHasBeenSet() const { return m_invocationTimeHasBeenSet; }
47 template <typename InvocationTimeT = Aws::Utils::DateTime>
49 m_invocationTimeHasBeenSet = true;
50 m_invocationTime = std::forward<InvocationTimeT>(value);
51 }
52 template <typename InvocationTimeT = Aws::Utils::DateTime>
54 SetInvocationTime(std::forward<InvocationTimeT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::Utils::DateTime& GetTriggerTime() const { return m_triggerTime; }
64 inline bool TriggerTimeHasBeenSet() const { return m_triggerTimeHasBeenSet; }
65 template <typename TriggerTimeT = Aws::Utils::DateTime>
67 m_triggerTimeHasBeenSet = true;
68 m_triggerTime = std::forward<TriggerTimeT>(value);
69 }
70 template <typename TriggerTimeT = Aws::Utils::DateTime>
72 SetTriggerTime(std::forward<TriggerTimeT>(value));
73 return *this;
74 }
76
78
81 inline ScheduledQueryRunStatus GetRunStatus() const { return m_runStatus; }
82 inline bool RunStatusHasBeenSet() const { return m_runStatusHasBeenSet; }
84 m_runStatusHasBeenSet = true;
85 m_runStatus = value;
86 }
88 SetRunStatus(value);
89 return *this;
90 }
92
94
97 inline const ExecutionStats& GetExecutionStats() const { return m_executionStats; }
98 inline bool ExecutionStatsHasBeenSet() const { return m_executionStatsHasBeenSet; }
99 template <typename ExecutionStatsT = ExecutionStats>
101 m_executionStatsHasBeenSet = true;
102 m_executionStats = std::forward<ExecutionStatsT>(value);
103 }
104 template <typename ExecutionStatsT = ExecutionStats>
106 SetExecutionStats(std::forward<ExecutionStatsT>(value));
107 return *this;
108 }
110
112
116 inline const ScheduledQueryInsightsResponse& GetQueryInsightsResponse() const { return m_queryInsightsResponse; }
117 inline bool QueryInsightsResponseHasBeenSet() const { return m_queryInsightsResponseHasBeenSet; }
118 template <typename QueryInsightsResponseT = ScheduledQueryInsightsResponse>
120 m_queryInsightsResponseHasBeenSet = true;
121 m_queryInsightsResponse = std::forward<QueryInsightsResponseT>(value);
122 }
123 template <typename QueryInsightsResponseT = ScheduledQueryInsightsResponse>
125 SetQueryInsightsResponse(std::forward<QueryInsightsResponseT>(value));
126 return *this;
127 }
129
131
134 inline const ErrorReportLocation& GetErrorReportLocation() const { return m_errorReportLocation; }
135 inline bool ErrorReportLocationHasBeenSet() const { return m_errorReportLocationHasBeenSet; }
136 template <typename ErrorReportLocationT = ErrorReportLocation>
138 m_errorReportLocationHasBeenSet = true;
139 m_errorReportLocation = std::forward<ErrorReportLocationT>(value);
140 }
141 template <typename ErrorReportLocationT = ErrorReportLocation>
143 SetErrorReportLocation(std::forward<ErrorReportLocationT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
154 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
155 template <typename FailureReasonT = Aws::String>
157 m_failureReasonHasBeenSet = true;
158 m_failureReason = std::forward<FailureReasonT>(value);
159 }
160 template <typename FailureReasonT = Aws::String>
162 SetFailureReason(std::forward<FailureReasonT>(value));
163 return *this;
164 }
166 private:
167 Aws::Utils::DateTime m_invocationTime{};
168
169 Aws::Utils::DateTime m_triggerTime{};
170
172
173 ExecutionStats m_executionStats;
174
175 ScheduledQueryInsightsResponse m_queryInsightsResponse;
176
177 ErrorReportLocation m_errorReportLocation;
178
179 Aws::String m_failureReason;
180 bool m_invocationTimeHasBeenSet = false;
181 bool m_triggerTimeHasBeenSet = false;
182 bool m_runStatusHasBeenSet = false;
183 bool m_executionStatsHasBeenSet = false;
184 bool m_queryInsightsResponseHasBeenSet = false;
185 bool m_errorReportLocationHasBeenSet = false;
186 bool m_failureReasonHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace TimestreamQuery
191} // namespace Aws
AWS_TIMESTREAMQUERY_API ScheduledQueryRunSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ScheduledQueryRunSummary & WithErrorReportLocation(ErrorReportLocationT &&value)
ScheduledQueryRunSummary & WithQueryInsightsResponse(QueryInsightsResponseT &&value)
ScheduledQueryRunSummary & WithFailureReason(FailureReasonT &&value)
AWS_TIMESTREAMQUERY_API ScheduledQueryRunSummary()=default
ScheduledQueryRunSummary & WithInvocationTime(InvocationTimeT &&value)
ScheduledQueryRunSummary & WithTriggerTime(TriggerTimeT &&value)
ScheduledQueryRunSummary & WithExecutionStats(ExecutionStatsT &&value)
const ScheduledQueryInsightsResponse & GetQueryInsightsResponse() const
AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TIMESTREAMQUERY_API ScheduledQueryRunSummary(Aws::Utils::Json::JsonView jsonValue)
ScheduledQueryRunSummary & WithRunStatus(ScheduledQueryRunStatus value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue