AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ScheduledQueryRunSummary.h
1
6#pragma once
7#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/timestream-query/model/ScheduledQueryRunStatus.h>
10#include <aws/timestream-query/model/ExecutionStats.h>
11#include <aws/timestream-query/model/ScheduledQueryInsightsResponse.h>
12#include <aws/timestream-query/model/ErrorReportLocation.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace TimestreamQuery
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_TIMESTREAMQUERY_API ScheduledQueryRunSummary() = default;
42 AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const Aws::Utils::DateTime& GetInvocationTime() const { return m_invocationTime; }
52 inline bool InvocationTimeHasBeenSet() const { return m_invocationTimeHasBeenSet; }
53 template<typename InvocationTimeT = Aws::Utils::DateTime>
54 void SetInvocationTime(InvocationTimeT&& value) { m_invocationTimeHasBeenSet = true; m_invocationTime = std::forward<InvocationTimeT>(value); }
55 template<typename InvocationTimeT = Aws::Utils::DateTime>
56 ScheduledQueryRunSummary& WithInvocationTime(InvocationTimeT&& value) { SetInvocationTime(std::forward<InvocationTimeT>(value)); return *this;}
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>
66 void SetTriggerTime(TriggerTimeT&& value) { m_triggerTimeHasBeenSet = true; m_triggerTime = std::forward<TriggerTimeT>(value); }
67 template<typename TriggerTimeT = Aws::Utils::DateTime>
68 ScheduledQueryRunSummary& WithTriggerTime(TriggerTimeT&& value) { SetTriggerTime(std::forward<TriggerTimeT>(value)); return *this;}
70
72
75 inline ScheduledQueryRunStatus GetRunStatus() const { return m_runStatus; }
76 inline bool RunStatusHasBeenSet() const { return m_runStatusHasBeenSet; }
77 inline void SetRunStatus(ScheduledQueryRunStatus value) { m_runStatusHasBeenSet = true; m_runStatus = value; }
80
82
85 inline const ExecutionStats& GetExecutionStats() const { return m_executionStats; }
86 inline bool ExecutionStatsHasBeenSet() const { return m_executionStatsHasBeenSet; }
87 template<typename ExecutionStatsT = ExecutionStats>
88 void SetExecutionStats(ExecutionStatsT&& value) { m_executionStatsHasBeenSet = true; m_executionStats = std::forward<ExecutionStatsT>(value); }
89 template<typename ExecutionStatsT = ExecutionStats>
90 ScheduledQueryRunSummary& WithExecutionStats(ExecutionStatsT&& value) { SetExecutionStats(std::forward<ExecutionStatsT>(value)); return *this;}
92
94
98 inline const ScheduledQueryInsightsResponse& GetQueryInsightsResponse() const { return m_queryInsightsResponse; }
99 inline bool QueryInsightsResponseHasBeenSet() const { return m_queryInsightsResponseHasBeenSet; }
100 template<typename QueryInsightsResponseT = ScheduledQueryInsightsResponse>
101 void SetQueryInsightsResponse(QueryInsightsResponseT&& value) { m_queryInsightsResponseHasBeenSet = true; m_queryInsightsResponse = std::forward<QueryInsightsResponseT>(value); }
102 template<typename QueryInsightsResponseT = ScheduledQueryInsightsResponse>
103 ScheduledQueryRunSummary& WithQueryInsightsResponse(QueryInsightsResponseT&& value) { SetQueryInsightsResponse(std::forward<QueryInsightsResponseT>(value)); return *this;}
105
107
110 inline const ErrorReportLocation& GetErrorReportLocation() const { return m_errorReportLocation; }
111 inline bool ErrorReportLocationHasBeenSet() const { return m_errorReportLocationHasBeenSet; }
112 template<typename ErrorReportLocationT = ErrorReportLocation>
113 void SetErrorReportLocation(ErrorReportLocationT&& value) { m_errorReportLocationHasBeenSet = true; m_errorReportLocation = std::forward<ErrorReportLocationT>(value); }
114 template<typename ErrorReportLocationT = ErrorReportLocation>
115 ScheduledQueryRunSummary& WithErrorReportLocation(ErrorReportLocationT&& value) { SetErrorReportLocation(std::forward<ErrorReportLocationT>(value)); return *this;}
117
119
123 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
124 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
125 template<typename FailureReasonT = Aws::String>
126 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
127 template<typename FailureReasonT = Aws::String>
128 ScheduledQueryRunSummary& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
130 private:
131
132 Aws::Utils::DateTime m_invocationTime{};
133 bool m_invocationTimeHasBeenSet = false;
134
135 Aws::Utils::DateTime m_triggerTime{};
136 bool m_triggerTimeHasBeenSet = false;
137
139 bool m_runStatusHasBeenSet = false;
140
141 ExecutionStats m_executionStats;
142 bool m_executionStatsHasBeenSet = false;
143
144 ScheduledQueryInsightsResponse m_queryInsightsResponse;
145 bool m_queryInsightsResponseHasBeenSet = false;
146
147 ErrorReportLocation m_errorReportLocation;
148 bool m_errorReportLocationHasBeenSet = false;
149
150 Aws::String m_failureReason;
151 bool m_failureReasonHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace TimestreamQuery
156} // 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