AWS SDK for C++

AWS SDK for C++ Version 1.11.865

Loading...
Searching...
No Matches
CreateScheduledQueryRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/logs/CloudWatchLogsRequest.h>
11#include <aws/logs/CloudWatchLogs_EXPORTS.h>
12#include <aws/logs/model/DestinationConfiguration.h>
13#include <aws/logs/model/QueryLanguage.h>
14#include <aws/logs/model/ScheduledQueryState.h>
15
16#include <utility>
17
18namespace Aws {
19namespace CloudWatchLogs {
20namespace Model {
21
25 public:
26 AWS_CLOUDWATCHLOGS_API CreateScheduledQueryRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateScheduledQuery"; }
33
34 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
35
36 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template <typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) {
66 m_descriptionHasBeenSet = true;
67 m_description = std::forward<DescriptionT>(value);
68 }
69 template <typename DescriptionT = Aws::String>
71 SetDescription(std::forward<DescriptionT>(value));
72 return *this;
73 }
75
77
81 inline QueryLanguage GetQueryLanguage() const { return m_queryLanguage; }
82 inline bool QueryLanguageHasBeenSet() const { return m_queryLanguageHasBeenSet; }
83 inline void SetQueryLanguage(QueryLanguage value) {
84 m_queryLanguageHasBeenSet = true;
85 m_queryLanguage = value;
86 }
88 SetQueryLanguage(value);
89 return *this;
90 }
92
94
98 inline const Aws::String& GetQueryString() const { return m_queryString; }
99 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
100 template <typename QueryStringT = Aws::String>
101 void SetQueryString(QueryStringT&& value) {
102 m_queryStringHasBeenSet = true;
103 m_queryString = std::forward<QueryStringT>(value);
104 }
105 template <typename QueryStringT = Aws::String>
107 SetQueryString(std::forward<QueryStringT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::Vector<Aws::String>& GetLogGroupIdentifiers() const { return m_logGroupIdentifiers; }
118 inline bool LogGroupIdentifiersHasBeenSet() const { return m_logGroupIdentifiersHasBeenSet; }
119 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
120 void SetLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
121 m_logGroupIdentifiersHasBeenSet = true;
122 m_logGroupIdentifiers = std::forward<LogGroupIdentifiersT>(value);
123 }
124 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
126 SetLogGroupIdentifiers(std::forward<LogGroupIdentifiersT>(value));
127 return *this;
128 }
129 template <typename LogGroupIdentifiersT = Aws::String>
131 m_logGroupIdentifiersHasBeenSet = true;
132 m_logGroupIdentifiers.emplace_back(std::forward<LogGroupIdentifiersT>(value));
133 return *this;
134 }
136
138
143 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
144 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
145 template <typename ScheduleExpressionT = Aws::String>
146 void SetScheduleExpression(ScheduleExpressionT&& value) {
147 m_scheduleExpressionHasBeenSet = true;
148 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
149 }
150 template <typename ScheduleExpressionT = Aws::String>
152 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
153 return *this;
154 }
156
158
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
182 inline long long GetStartTimeOffset() const { return m_startTimeOffset; }
183 inline bool StartTimeOffsetHasBeenSet() const { return m_startTimeOffsetHasBeenSet; }
184 inline void SetStartTimeOffset(long long value) {
185 m_startTimeOffsetHasBeenSet = true;
186 m_startTimeOffset = value;
187 }
189 SetStartTimeOffset(value);
190 return *this;
191 }
193
195
200 inline long long GetEndTimeOffset() const { return m_endTimeOffset; }
201 inline bool EndTimeOffsetHasBeenSet() const { return m_endTimeOffsetHasBeenSet; }
202 inline void SetEndTimeOffset(long long value) {
203 m_endTimeOffsetHasBeenSet = true;
204 m_endTimeOffset = value;
205 }
207 SetEndTimeOffset(value);
208 return *this;
209 }
211
213
219 inline const DestinationConfiguration& GetDestinationConfiguration() const { return m_destinationConfiguration; }
220 inline bool DestinationConfigurationHasBeenSet() const { return m_destinationConfigurationHasBeenSet; }
221 template <typename DestinationConfigurationT = DestinationConfiguration>
222 void SetDestinationConfiguration(DestinationConfigurationT&& value) {
223 m_destinationConfigurationHasBeenSet = true;
224 m_destinationConfiguration = std::forward<DestinationConfigurationT>(value);
225 }
226 template <typename DestinationConfigurationT = DestinationConfiguration>
227 CreateScheduledQueryRequest& WithDestinationConfiguration(DestinationConfigurationT&& value) {
228 SetDestinationConfiguration(std::forward<DestinationConfigurationT>(value));
229 return *this;
230 }
232
234
238 inline long long GetScheduleStartTime() const { return m_scheduleStartTime; }
239 inline bool ScheduleStartTimeHasBeenSet() const { return m_scheduleStartTimeHasBeenSet; }
240 inline void SetScheduleStartTime(long long value) {
241 m_scheduleStartTimeHasBeenSet = true;
242 m_scheduleStartTime = value;
243 }
246 return *this;
247 }
249
251
255 inline long long GetScheduleEndTime() const { return m_scheduleEndTime; }
256 inline bool ScheduleEndTimeHasBeenSet() const { return m_scheduleEndTimeHasBeenSet; }
257 inline void SetScheduleEndTime(long long value) {
258 m_scheduleEndTimeHasBeenSet = true;
259 m_scheduleEndTime = value;
260 }
262 SetScheduleEndTime(value);
263 return *this;
264 }
266
268
273 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
274 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
275 template <typename ExecutionRoleArnT = Aws::String>
276 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
277 m_executionRoleArnHasBeenSet = true;
278 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
279 }
280 template <typename ExecutionRoleArnT = Aws::String>
282 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
283 return *this;
284 }
286
288
293 inline ScheduledQueryState GetState() const { return m_state; }
294 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
295 inline void SetState(ScheduledQueryState value) {
296 m_stateHasBeenSet = true;
297 m_state = value;
298 }
300 SetState(value);
301 return *this;
302 }
304
306
310 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
311 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
312 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
313 void SetTags(TagsT&& value) {
314 m_tagsHasBeenSet = true;
315 m_tags = std::forward<TagsT>(value);
316 }
317 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
319 SetTags(std::forward<TagsT>(value));
320 return *this;
321 }
322 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
323 CreateScheduledQueryRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
324 m_tagsHasBeenSet = true;
325 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
326 return *this;
327 }
329 private:
330 Aws::String m_name;
331
332 Aws::String m_description;
333
334 QueryLanguage m_queryLanguage{QueryLanguage::NOT_SET};
335
336 Aws::String m_queryString;
337
338 Aws::Vector<Aws::String> m_logGroupIdentifiers;
339
340 Aws::String m_scheduleExpression;
341
342 Aws::String m_timezone;
343
344 long long m_startTimeOffset{0};
345
346 long long m_endTimeOffset{0};
347
348 DestinationConfiguration m_destinationConfiguration;
349
350 long long m_scheduleStartTime{0};
351
352 long long m_scheduleEndTime{0};
353
354 Aws::String m_executionRoleArn;
355
357
359 bool m_nameHasBeenSet = false;
360 bool m_descriptionHasBeenSet = false;
361 bool m_queryLanguageHasBeenSet = false;
362 bool m_queryStringHasBeenSet = false;
363 bool m_logGroupIdentifiersHasBeenSet = false;
364 bool m_scheduleExpressionHasBeenSet = false;
365 bool m_timezoneHasBeenSet = false;
366 bool m_startTimeOffsetHasBeenSet = false;
367 bool m_endTimeOffsetHasBeenSet = false;
368 bool m_destinationConfigurationHasBeenSet = false;
369 bool m_scheduleStartTimeHasBeenSet = false;
370 bool m_scheduleEndTimeHasBeenSet = false;
371 bool m_executionRoleArnHasBeenSet = false;
372 bool m_stateHasBeenSet = false;
373 bool m_tagsHasBeenSet = false;
374};
375
376} // namespace Model
377} // namespace CloudWatchLogs
378} // namespace Aws
CreateScheduledQueryRequest & WithLogGroupIdentifiers(LogGroupIdentifiersT &&value)
void SetDestinationConfiguration(DestinationConfigurationT &&value)
CreateScheduledQueryRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateScheduledQueryRequest & WithDestinationConfiguration(DestinationConfigurationT &&value)
CreateScheduledQueryRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< Aws::String > & GetLogGroupIdentifiers() const
const DestinationConfiguration & GetDestinationConfiguration() const
CreateScheduledQueryRequest & WithStartTimeOffset(long long value)
AWS_CLOUDWATCHLOGS_API CreateScheduledQueryRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateScheduledQueryRequest & WithState(ScheduledQueryState value)
CreateScheduledQueryRequest & WithQueryString(QueryStringT &&value)
CreateScheduledQueryRequest & WithTimezone(TimezoneT &&value)
CreateScheduledQueryRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateScheduledQueryRequest & WithQueryLanguage(QueryLanguage value)
CreateScheduledQueryRequest & WithScheduleExpression(ScheduleExpressionT &&value)
CreateScheduledQueryRequest & WithEndTimeOffset(long long value)
CreateScheduledQueryRequest & WithScheduleEndTime(long long value)
CreateScheduledQueryRequest & WithScheduleStartTime(long long value)
CreateScheduledQueryRequest & AddLogGroupIdentifiers(LogGroupIdentifiersT &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector