AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40 AWS_TIMESTREAMQUERY_API ScheduledQueryRunSummary(Aws::Utils::Json::JsonView jsonValue);
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 inline void SetInvocationTime(const Aws::Utils::DateTime& value) { m_invocationTimeHasBeenSet = true; m_invocationTime = value; }
54 inline void SetInvocationTime(Aws::Utils::DateTime&& value) { m_invocationTimeHasBeenSet = true; m_invocationTime = std::move(value); }
56 inline ScheduledQueryRunSummary& WithInvocationTime(Aws::Utils::DateTime&& value) { SetInvocationTime(std::move(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 inline void SetTriggerTime(const Aws::Utils::DateTime& value) { m_triggerTimeHasBeenSet = true; m_triggerTime = value; }
66 inline void SetTriggerTime(Aws::Utils::DateTime&& value) { m_triggerTimeHasBeenSet = true; m_triggerTime = std::move(value); }
67 inline ScheduledQueryRunSummary& WithTriggerTime(const Aws::Utils::DateTime& value) { SetTriggerTime(value); return *this;}
68 inline ScheduledQueryRunSummary& WithTriggerTime(Aws::Utils::DateTime&& value) { SetTriggerTime(std::move(value)); return *this;}
70
72
75 inline const ScheduledQueryRunStatus& GetRunStatus() const{ return m_runStatus; }
76 inline bool RunStatusHasBeenSet() const { return m_runStatusHasBeenSet; }
77 inline void SetRunStatus(const ScheduledQueryRunStatus& value) { m_runStatusHasBeenSet = true; m_runStatus = value; }
78 inline void SetRunStatus(ScheduledQueryRunStatus&& value) { m_runStatusHasBeenSet = true; m_runStatus = std::move(value); }
79 inline ScheduledQueryRunSummary& WithRunStatus(const ScheduledQueryRunStatus& value) { SetRunStatus(value); return *this;}
80 inline ScheduledQueryRunSummary& WithRunStatus(ScheduledQueryRunStatus&& value) { SetRunStatus(std::move(value)); return *this;}
82
84
87 inline const ExecutionStats& GetExecutionStats() const{ return m_executionStats; }
88 inline bool ExecutionStatsHasBeenSet() const { return m_executionStatsHasBeenSet; }
89 inline void SetExecutionStats(const ExecutionStats& value) { m_executionStatsHasBeenSet = true; m_executionStats = value; }
90 inline void SetExecutionStats(ExecutionStats&& value) { m_executionStatsHasBeenSet = true; m_executionStats = std::move(value); }
91 inline ScheduledQueryRunSummary& WithExecutionStats(const ExecutionStats& value) { SetExecutionStats(value); return *this;}
92 inline ScheduledQueryRunSummary& WithExecutionStats(ExecutionStats&& value) { SetExecutionStats(std::move(value)); return *this;}
94
96
100 inline const ScheduledQueryInsightsResponse& GetQueryInsightsResponse() const{ return m_queryInsightsResponse; }
101 inline bool QueryInsightsResponseHasBeenSet() const { return m_queryInsightsResponseHasBeenSet; }
102 inline void SetQueryInsightsResponse(const ScheduledQueryInsightsResponse& value) { m_queryInsightsResponseHasBeenSet = true; m_queryInsightsResponse = value; }
103 inline void SetQueryInsightsResponse(ScheduledQueryInsightsResponse&& value) { m_queryInsightsResponseHasBeenSet = true; m_queryInsightsResponse = std::move(value); }
107
109
112 inline const ErrorReportLocation& GetErrorReportLocation() const{ return m_errorReportLocation; }
113 inline bool ErrorReportLocationHasBeenSet() const { return m_errorReportLocationHasBeenSet; }
114 inline void SetErrorReportLocation(const ErrorReportLocation& value) { m_errorReportLocationHasBeenSet = true; m_errorReportLocation = value; }
115 inline void SetErrorReportLocation(ErrorReportLocation&& value) { m_errorReportLocationHasBeenSet = true; m_errorReportLocation = std::move(value); }
119
121
125 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
126 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
127 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
128 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
129 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
130 inline ScheduledQueryRunSummary& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
131 inline ScheduledQueryRunSummary& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
132 inline ScheduledQueryRunSummary& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
134 private:
135
136 Aws::Utils::DateTime m_invocationTime;
137 bool m_invocationTimeHasBeenSet = false;
138
139 Aws::Utils::DateTime m_triggerTime;
140 bool m_triggerTimeHasBeenSet = false;
141
142 ScheduledQueryRunStatus m_runStatus;
143 bool m_runStatusHasBeenSet = false;
144
145 ExecutionStats m_executionStats;
146 bool m_executionStatsHasBeenSet = false;
147
148 ScheduledQueryInsightsResponse m_queryInsightsResponse;
149 bool m_queryInsightsResponseHasBeenSet = false;
150
151 ErrorReportLocation m_errorReportLocation;
152 bool m_errorReportLocationHasBeenSet = false;
153
154 Aws::String m_failureReason;
155 bool m_failureReasonHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace TimestreamQuery
160} // namespace Aws
void SetQueryInsightsResponse(const ScheduledQueryInsightsResponse &value)
ScheduledQueryRunSummary & WithRunStatus(ScheduledQueryRunStatus &&value)
AWS_TIMESTREAMQUERY_API ScheduledQueryRunSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRunStatus(const ScheduledQueryRunStatus &value)
ScheduledQueryRunSummary & WithInvocationTime(Aws::Utils::DateTime &&value)
ScheduledQueryRunSummary & WithFailureReason(Aws::String &&value)
void SetInvocationTime(const Aws::Utils::DateTime &value)
ScheduledQueryRunSummary & WithErrorReportLocation(ErrorReportLocation &&value)
void SetQueryInsightsResponse(ScheduledQueryInsightsResponse &&value)
ScheduledQueryRunSummary & WithExecutionStats(const ExecutionStats &value)
ScheduledQueryRunSummary & WithQueryInsightsResponse(ScheduledQueryInsightsResponse &&value)
ScheduledQueryRunSummary & WithTriggerTime(const Aws::Utils::DateTime &value)
void SetErrorReportLocation(const ErrorReportLocation &value)
ScheduledQueryRunSummary & WithExecutionStats(ExecutionStats &&value)
const ScheduledQueryInsightsResponse & GetQueryInsightsResponse() const
AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TIMESTREAMQUERY_API ScheduledQueryRunSummary(Aws::Utils::Json::JsonView jsonValue)
ScheduledQueryRunSummary & WithFailureReason(const Aws::String &value)
ScheduledQueryRunSummary & WithTriggerTime(Aws::Utils::DateTime &&value)
ScheduledQueryRunSummary & WithFailureReason(const char *value)
ScheduledQueryRunSummary & WithQueryInsightsResponse(const ScheduledQueryInsightsResponse &value)
ScheduledQueryRunSummary & WithErrorReportLocation(const ErrorReportLocation &value)
ScheduledQueryRunSummary & WithInvocationTime(const Aws::Utils::DateTime &value)
ScheduledQueryRunSummary & WithRunStatus(const ScheduledQueryRunStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue