AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ScheduledQuery.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/ErrorReportConfiguration.h>
11#include <aws/timestream-query/model/ScheduledQueryRunStatus.h>
12#include <aws/timestream-query/model/ScheduledQueryState.h>
13#include <aws/timestream-query/model/TargetDestination.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 ScheduledQuery() = default;
37 AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
80 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
81 template <typename CreationTimeT = Aws::Utils::DateTime>
83 m_creationTimeHasBeenSet = true;
84 m_creationTime = std::forward<CreationTimeT>(value);
85 }
86 template <typename CreationTimeT = Aws::Utils::DateTime>
88 SetCreationTime(std::forward<CreationTimeT>(value));
89 return *this;
90 }
92
94
97 inline ScheduledQueryState GetState() const { return m_state; }
98 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
99 inline void SetState(ScheduledQueryState value) {
100 m_stateHasBeenSet = true;
101 m_state = value;
102 }
104 SetState(value);
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetPreviousInvocationTime() const { return m_previousInvocationTime; }
114 inline bool PreviousInvocationTimeHasBeenSet() const { return m_previousInvocationTimeHasBeenSet; }
115 template <typename PreviousInvocationTimeT = Aws::Utils::DateTime>
117 m_previousInvocationTimeHasBeenSet = true;
118 m_previousInvocationTime = std::forward<PreviousInvocationTimeT>(value);
119 }
120 template <typename PreviousInvocationTimeT = Aws::Utils::DateTime>
122 SetPreviousInvocationTime(std::forward<PreviousInvocationTimeT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetNextInvocationTime() const { return m_nextInvocationTime; }
132 inline bool NextInvocationTimeHasBeenSet() const { return m_nextInvocationTimeHasBeenSet; }
133 template <typename NextInvocationTimeT = Aws::Utils::DateTime>
135 m_nextInvocationTimeHasBeenSet = true;
136 m_nextInvocationTime = std::forward<NextInvocationTimeT>(value);
137 }
138 template <typename NextInvocationTimeT = Aws::Utils::DateTime>
140 SetNextInvocationTime(std::forward<NextInvocationTimeT>(value));
141 return *this;
142 }
144
146
149 inline const ErrorReportConfiguration& GetErrorReportConfiguration() const { return m_errorReportConfiguration; }
150 inline bool ErrorReportConfigurationHasBeenSet() const { return m_errorReportConfigurationHasBeenSet; }
151 template <typename ErrorReportConfigurationT = ErrorReportConfiguration>
153 m_errorReportConfigurationHasBeenSet = true;
154 m_errorReportConfiguration = std::forward<ErrorReportConfigurationT>(value);
155 }
156 template <typename ErrorReportConfigurationT = ErrorReportConfiguration>
158 SetErrorReportConfiguration(std::forward<ErrorReportConfigurationT>(value));
159 return *this;
160 }
162
164
167 inline const TargetDestination& GetTargetDestination() const { return m_targetDestination; }
168 inline bool TargetDestinationHasBeenSet() const { return m_targetDestinationHasBeenSet; }
169 template <typename TargetDestinationT = TargetDestination>
171 m_targetDestinationHasBeenSet = true;
172 m_targetDestination = std::forward<TargetDestinationT>(value);
173 }
174 template <typename TargetDestinationT = TargetDestination>
176 SetTargetDestination(std::forward<TargetDestinationT>(value));
177 return *this;
178 }
180
182
185 inline ScheduledQueryRunStatus GetLastRunStatus() const { return m_lastRunStatus; }
186 inline bool LastRunStatusHasBeenSet() const { return m_lastRunStatusHasBeenSet; }
188 m_lastRunStatusHasBeenSet = true;
189 m_lastRunStatus = value;
190 }
192 SetLastRunStatus(value);
193 return *this;
194 }
196 private:
197 Aws::String m_arn;
198
199 Aws::String m_name;
200
201 Aws::Utils::DateTime m_creationTime{};
202
204
205 Aws::Utils::DateTime m_previousInvocationTime{};
206
207 Aws::Utils::DateTime m_nextInvocationTime{};
208
209 ErrorReportConfiguration m_errorReportConfiguration;
210
211 TargetDestination m_targetDestination;
212
214 bool m_arnHasBeenSet = false;
215 bool m_nameHasBeenSet = false;
216 bool m_creationTimeHasBeenSet = false;
217 bool m_stateHasBeenSet = false;
218 bool m_previousInvocationTimeHasBeenSet = false;
219 bool m_nextInvocationTimeHasBeenSet = false;
220 bool m_errorReportConfigurationHasBeenSet = false;
221 bool m_targetDestinationHasBeenSet = false;
222 bool m_lastRunStatusHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace TimestreamQuery
227} // namespace Aws
ScheduledQuery & WithNextInvocationTime(NextInvocationTimeT &&value)
void SetPreviousInvocationTime(PreviousInvocationTimeT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
AWS_TIMESTREAMQUERY_API ScheduledQuery()=default
ScheduledQuery & WithArn(ArnT &&value)
void SetErrorReportConfiguration(ErrorReportConfigurationT &&value)
ScheduledQueryRunStatus GetLastRunStatus() const
ScheduledQuery & WithLastRunStatus(ScheduledQueryRunStatus value)
ScheduledQuery & WithTargetDestination(TargetDestinationT &&value)
AWS_TIMESTREAMQUERY_API ScheduledQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
ScheduledQuery & WithName(NameT &&value)
void SetState(ScheduledQueryState value)
ScheduledQuery & WithErrorReportConfiguration(ErrorReportConfigurationT &&value)
void SetLastRunStatus(ScheduledQueryRunStatus value)
void SetCreationTime(CreationTimeT &&value)
ScheduledQuery & WithCreationTime(CreationTimeT &&value)
void SetNextInvocationTime(NextInvocationTimeT &&value)
AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
const ErrorReportConfiguration & GetErrorReportConfiguration() const
void SetTargetDestination(TargetDestinationT &&value)
const Aws::Utils::DateTime & GetNextInvocationTime() const
ScheduledQuery & WithState(ScheduledQueryState value)
ScheduledQuery & WithPreviousInvocationTime(PreviousInvocationTimeT &&value)
const Aws::Utils::DateTime & GetPreviousInvocationTime() const
AWS_TIMESTREAMQUERY_API ScheduledQuery(Aws::Utils::Json::JsonView jsonValue)
const TargetDestination & GetTargetDestination() const
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