AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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/ScheduledQueryState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudWatchLogs {
23namespace Model {
24
32 public:
33 AWS_CLOUDWATCHLOGS_API ScheduledQuerySummary() = default;
34 AWS_CLOUDWATCHLOGS_API ScheduledQuerySummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetScheduledQueryArn() const { return m_scheduledQueryArn; }
43 inline bool ScheduledQueryArnHasBeenSet() const { return m_scheduledQueryArnHasBeenSet; }
44 template <typename ScheduledQueryArnT = Aws::String>
45 void SetScheduledQueryArn(ScheduledQueryArnT&& value) {
46 m_scheduledQueryArnHasBeenSet = true;
47 m_scheduledQueryArn = std::forward<ScheduledQueryArnT>(value);
48 }
49 template <typename ScheduledQueryArnT = Aws::String>
50 ScheduledQuerySummary& WithScheduledQueryArn(ScheduledQueryArnT&& value) {
51 SetScheduledQueryArn(std::forward<ScheduledQueryArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline ScheduledQueryState GetState() const { return m_state; }
79 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
80 inline void SetState(ScheduledQueryState value) {
81 m_stateHasBeenSet = true;
82 m_state = value;
83 }
85 SetState(value);
86 return *this;
87 }
89
91
94 inline long long GetLastTriggeredTime() const { return m_lastTriggeredTime; }
95 inline bool LastTriggeredTimeHasBeenSet() const { return m_lastTriggeredTimeHasBeenSet; }
96 inline void SetLastTriggeredTime(long long value) {
97 m_lastTriggeredTimeHasBeenSet = true;
98 m_lastTriggeredTime = value;
99 }
102 return *this;
103 }
105
107
110 inline ExecutionStatus GetLastExecutionStatus() const { return m_lastExecutionStatus; }
111 inline bool LastExecutionStatusHasBeenSet() const { return m_lastExecutionStatusHasBeenSet; }
113 m_lastExecutionStatusHasBeenSet = true;
114 m_lastExecutionStatus = value;
115 }
118 return *this;
119 }
121
123
126 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
127 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
128 template <typename ScheduleExpressionT = Aws::String>
129 void SetScheduleExpression(ScheduleExpressionT&& value) {
130 m_scheduleExpressionHasBeenSet = true;
131 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
132 }
133 template <typename ScheduleExpressionT = Aws::String>
134 ScheduledQuerySummary& WithScheduleExpression(ScheduleExpressionT&& value) {
135 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::String& GetTimezone() const { return m_timezone; }
145 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
146 template <typename TimezoneT = Aws::String>
147 void SetTimezone(TimezoneT&& value) {
148 m_timezoneHasBeenSet = true;
149 m_timezone = std::forward<TimezoneT>(value);
150 }
151 template <typename TimezoneT = Aws::String>
153 SetTimezone(std::forward<TimezoneT>(value));
154 return *this;
155 }
157
159
162 inline const DestinationConfiguration& GetDestinationConfiguration() const { return m_destinationConfiguration; }
163 inline bool DestinationConfigurationHasBeenSet() const { return m_destinationConfigurationHasBeenSet; }
164 template <typename DestinationConfigurationT = DestinationConfiguration>
165 void SetDestinationConfiguration(DestinationConfigurationT&& value) {
166 m_destinationConfigurationHasBeenSet = true;
167 m_destinationConfiguration = std::forward<DestinationConfigurationT>(value);
168 }
169 template <typename DestinationConfigurationT = DestinationConfiguration>
170 ScheduledQuerySummary& WithDestinationConfiguration(DestinationConfigurationT&& value) {
171 SetDestinationConfiguration(std::forward<DestinationConfigurationT>(value));
172 return *this;
173 }
175
177
180 inline long long GetCreationTime() const { return m_creationTime; }
181 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
182 inline void SetCreationTime(long long value) {
183 m_creationTimeHasBeenSet = true;
184 m_creationTime = value;
185 }
186 inline ScheduledQuerySummary& WithCreationTime(long long value) {
187 SetCreationTime(value);
188 return *this;
189 }
191
193
196 inline long long GetLastUpdatedTime() const { return m_lastUpdatedTime; }
197 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
198 inline void SetLastUpdatedTime(long long value) {
199 m_lastUpdatedTimeHasBeenSet = true;
200 m_lastUpdatedTime = value;
201 }
203 SetLastUpdatedTime(value);
204 return *this;
205 }
207 private:
208 Aws::String m_scheduledQueryArn;
209
210 Aws::String m_name;
211
213
214 long long m_lastTriggeredTime{0};
215
216 ExecutionStatus m_lastExecutionStatus{ExecutionStatus::NOT_SET};
217
218 Aws::String m_scheduleExpression;
219
220 Aws::String m_timezone;
221
222 DestinationConfiguration m_destinationConfiguration;
223
224 long long m_creationTime{0};
225
226 long long m_lastUpdatedTime{0};
227 bool m_scheduledQueryArnHasBeenSet = false;
228 bool m_nameHasBeenSet = false;
229 bool m_stateHasBeenSet = false;
230 bool m_lastTriggeredTimeHasBeenSet = false;
231 bool m_lastExecutionStatusHasBeenSet = false;
232 bool m_scheduleExpressionHasBeenSet = false;
233 bool m_timezoneHasBeenSet = false;
234 bool m_destinationConfigurationHasBeenSet = false;
235 bool m_creationTimeHasBeenSet = false;
236 bool m_lastUpdatedTimeHasBeenSet = false;
237};
238
239} // namespace Model
240} // namespace CloudWatchLogs
241} // 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 & 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