AWS SDK for C++

AWS SDK for C++ Version 1.11.851

Loading...
Searching...
No Matches
ScheduledQuerySummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9#include <aws/logs/model/DestinationConfiguration.h>
10#include <aws/logs/model/ExecutionStatus.h>
11#include <aws/logs/model/ScheduleType.h>
12#include <aws/logs/model/ScheduledQueryState.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudWatchLogs {
24namespace Model {
25
33 public:
34 AWS_CLOUDWATCHLOGS_API ScheduledQuerySummary() = default;
35 AWS_CLOUDWATCHLOGS_API ScheduledQuerySummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetScheduledQueryArn() const { return m_scheduledQueryArn; }
44 inline bool ScheduledQueryArnHasBeenSet() const { return m_scheduledQueryArnHasBeenSet; }
45 template <typename ScheduledQueryArnT = Aws::String>
46 void SetScheduledQueryArn(ScheduledQueryArnT&& value) {
47 m_scheduledQueryArnHasBeenSet = true;
48 m_scheduledQueryArn = std::forward<ScheduledQueryArnT>(value);
49 }
50 template <typename ScheduledQueryArnT = Aws::String>
51 ScheduledQuerySummary& WithScheduledQueryArn(ScheduledQueryArnT&& value) {
52 SetScheduledQueryArn(std::forward<ScheduledQueryArnT>(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 ScheduledQueryState GetState() const { return m_state; }
80 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
81 inline void SetState(ScheduledQueryState value) {
82 m_stateHasBeenSet = true;
83 m_state = value;
84 }
86 SetState(value);
87 return *this;
88 }
90
92
96 inline ScheduleType GetScheduleType() const { return m_scheduleType; }
97 inline bool ScheduleTypeHasBeenSet() const { return m_scheduleTypeHasBeenSet; }
98 inline void SetScheduleType(ScheduleType value) {
99 m_scheduleTypeHasBeenSet = true;
100 m_scheduleType = value;
101 }
103 SetScheduleType(value);
104 return *this;
105 }
107
109
112 inline long long GetLastTriggeredTime() const { return m_lastTriggeredTime; }
113 inline bool LastTriggeredTimeHasBeenSet() const { return m_lastTriggeredTimeHasBeenSet; }
114 inline void SetLastTriggeredTime(long long value) {
115 m_lastTriggeredTimeHasBeenSet = true;
116 m_lastTriggeredTime = value;
117 }
120 return *this;
121 }
123
125
128 inline ExecutionStatus GetLastExecutionStatus() const { return m_lastExecutionStatus; }
129 inline bool LastExecutionStatusHasBeenSet() const { return m_lastExecutionStatusHasBeenSet; }
131 m_lastExecutionStatusHasBeenSet = true;
132 m_lastExecutionStatus = value;
133 }
136 return *this;
137 }
139
141
144 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
145 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
146 template <typename ScheduleExpressionT = Aws::String>
147 void SetScheduleExpression(ScheduleExpressionT&& value) {
148 m_scheduleExpressionHasBeenSet = true;
149 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
150 }
151 template <typename ScheduleExpressionT = Aws::String>
152 ScheduledQuerySummary& WithScheduleExpression(ScheduleExpressionT&& value) {
153 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::String& GetTimezone() const { return m_timezone; }
163 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
164 template <typename TimezoneT = Aws::String>
165 void SetTimezone(TimezoneT&& value) {
166 m_timezoneHasBeenSet = true;
167 m_timezone = std::forward<TimezoneT>(value);
168 }
169 template <typename TimezoneT = Aws::String>
171 SetTimezone(std::forward<TimezoneT>(value));
172 return *this;
173 }
175
177
180 inline const DestinationConfiguration& GetDestinationConfiguration() const { return m_destinationConfiguration; }
181 inline bool DestinationConfigurationHasBeenSet() const { return m_destinationConfigurationHasBeenSet; }
182 template <typename DestinationConfigurationT = DestinationConfiguration>
183 void SetDestinationConfiguration(DestinationConfigurationT&& value) {
184 m_destinationConfigurationHasBeenSet = true;
185 m_destinationConfiguration = std::forward<DestinationConfigurationT>(value);
186 }
187 template <typename DestinationConfigurationT = DestinationConfiguration>
188 ScheduledQuerySummary& WithDestinationConfiguration(DestinationConfigurationT&& value) {
189 SetDestinationConfiguration(std::forward<DestinationConfigurationT>(value));
190 return *this;
191 }
193
195
198 inline long long GetCreationTime() const { return m_creationTime; }
199 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
200 inline void SetCreationTime(long long value) {
201 m_creationTimeHasBeenSet = true;
202 m_creationTime = value;
203 }
204 inline ScheduledQuerySummary& WithCreationTime(long long value) {
205 SetCreationTime(value);
206 return *this;
207 }
209
211
214 inline long long GetLastUpdatedTime() const { return m_lastUpdatedTime; }
215 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
216 inline void SetLastUpdatedTime(long long value) {
217 m_lastUpdatedTimeHasBeenSet = true;
218 m_lastUpdatedTime = value;
219 }
221 SetLastUpdatedTime(value);
222 return *this;
223 }
225 private:
226 Aws::String m_scheduledQueryArn;
227
228 Aws::String m_name;
229
231
232 ScheduleType m_scheduleType{ScheduleType::NOT_SET};
233
234 long long m_lastTriggeredTime{0};
235
236 ExecutionStatus m_lastExecutionStatus{ExecutionStatus::NOT_SET};
237
238 Aws::String m_scheduleExpression;
239
240 Aws::String m_timezone;
241
242 DestinationConfiguration m_destinationConfiguration;
243
244 long long m_creationTime{0};
245
246 long long m_lastUpdatedTime{0};
247 bool m_scheduledQueryArnHasBeenSet = false;
248 bool m_nameHasBeenSet = false;
249 bool m_stateHasBeenSet = false;
250 bool m_scheduleTypeHasBeenSet = false;
251 bool m_lastTriggeredTimeHasBeenSet = false;
252 bool m_lastExecutionStatusHasBeenSet = false;
253 bool m_scheduleExpressionHasBeenSet = false;
254 bool m_timezoneHasBeenSet = false;
255 bool m_destinationConfigurationHasBeenSet = false;
256 bool m_creationTimeHasBeenSet = false;
257 bool m_lastUpdatedTimeHasBeenSet = false;
258};
259
260} // namespace Model
261} // namespace CloudWatchLogs
262} // namespace Aws
AWS_CLOUDWATCHLOGS_API ScheduledQuerySummary(Aws::Utils::Json::JsonView jsonValue)
ScheduledQuerySummary & WithDestinationConfiguration(DestinationConfigurationT &&value)
AWS_CLOUDWATCHLOGS_API ScheduledQuerySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ScheduledQuerySummary & WithCreationTime(long long value)
const DestinationConfiguration & GetDestinationConfiguration() const
ScheduledQuerySummary & WithTimezone(TimezoneT &&value)
ScheduledQuerySummary & WithLastExecutionStatus(ExecutionStatus value)
ScheduledQuerySummary & WithScheduleType(ScheduleType value)
ScheduledQuerySummary & WithLastTriggeredTime(long long value)
void SetScheduleExpression(ScheduleExpressionT &&value)
ScheduledQuerySummary & WithName(NameT &&value)
ScheduledQuerySummary & WithLastUpdatedTime(long long value)
ScheduledQuerySummary & WithState(ScheduledQueryState value)
AWS_CLOUDWATCHLOGS_API ScheduledQuerySummary()=default
void SetDestinationConfiguration(DestinationConfigurationT &&value)
ScheduledQuerySummary & WithScheduledQueryArn(ScheduledQueryArnT &&value)
ScheduledQuerySummary & WithScheduleExpression(ScheduleExpressionT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue