AWS SDK for C++

AWS SDK for C++ Version 1.11.845

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
217 inline const DestinationConfiguration& GetDestinationConfiguration() const { return m_destinationConfiguration; }
218 inline bool DestinationConfigurationHasBeenSet() const { return m_destinationConfigurationHasBeenSet; }
219 template <typename DestinationConfigurationT = DestinationConfiguration>
220 void SetDestinationConfiguration(DestinationConfigurationT&& value) {
221 m_destinationConfigurationHasBeenSet = true;
222 m_destinationConfiguration = std::forward<DestinationConfigurationT>(value);
223 }
224 template <typename DestinationConfigurationT = DestinationConfiguration>
225 CreateScheduledQueryRequest& WithDestinationConfiguration(DestinationConfigurationT&& value) {
226 SetDestinationConfiguration(std::forward<DestinationConfigurationT>(value));
227 return *this;
228 }
230
232
236 inline long long GetScheduleStartTime() const { return m_scheduleStartTime; }
237 inline bool ScheduleStartTimeHasBeenSet() const { return m_scheduleStartTimeHasBeenSet; }
238 inline void SetScheduleStartTime(long long value) {
239 m_scheduleStartTimeHasBeenSet = true;
240 m_scheduleStartTime = value;
241 }
244 return *this;
245 }
247
249
253 inline long long GetScheduleEndTime() const { return m_scheduleEndTime; }
254 inline bool ScheduleEndTimeHasBeenSet() const { return m_scheduleEndTimeHasBeenSet; }
255 inline void SetScheduleEndTime(long long value) {
256 m_scheduleEndTimeHasBeenSet = true;
257 m_scheduleEndTime = value;
258 }
260 SetScheduleEndTime(value);
261 return *this;
262 }
264
266
271 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
272 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
273 template <typename ExecutionRoleArnT = Aws::String>
274 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
275 m_executionRoleArnHasBeenSet = true;
276 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
277 }
278 template <typename ExecutionRoleArnT = Aws::String>
280 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
281 return *this;
282 }
284
286
291 inline ScheduledQueryState GetState() const { return m_state; }
292 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
293 inline void SetState(ScheduledQueryState value) {
294 m_stateHasBeenSet = true;
295 m_state = value;
296 }
298 SetState(value);
299 return *this;
300 }
302
304
308 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
309 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
310 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
311 void SetTags(TagsT&& value) {
312 m_tagsHasBeenSet = true;
313 m_tags = std::forward<TagsT>(value);
314 }
315 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
317 SetTags(std::forward<TagsT>(value));
318 return *this;
319 }
320 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
321 CreateScheduledQueryRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
322 m_tagsHasBeenSet = true;
323 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
324 return *this;
325 }
327 private:
328 Aws::String m_name;
329
330 Aws::String m_description;
331
332 QueryLanguage m_queryLanguage{QueryLanguage::NOT_SET};
333
334 Aws::String m_queryString;
335
336 Aws::Vector<Aws::String> m_logGroupIdentifiers;
337
338 Aws::String m_scheduleExpression;
339
340 Aws::String m_timezone;
341
342 long long m_startTimeOffset{0};
343
344 long long m_endTimeOffset{0};
345
346 DestinationConfiguration m_destinationConfiguration;
347
348 long long m_scheduleStartTime{0};
349
350 long long m_scheduleEndTime{0};
351
352 Aws::String m_executionRoleArn;
353
355
357 bool m_nameHasBeenSet = false;
358 bool m_descriptionHasBeenSet = false;
359 bool m_queryLanguageHasBeenSet = false;
360 bool m_queryStringHasBeenSet = false;
361 bool m_logGroupIdentifiersHasBeenSet = false;
362 bool m_scheduleExpressionHasBeenSet = false;
363 bool m_timezoneHasBeenSet = false;
364 bool m_startTimeOffsetHasBeenSet = false;
365 bool m_endTimeOffsetHasBeenSet = false;
366 bool m_destinationConfigurationHasBeenSet = false;
367 bool m_scheduleStartTimeHasBeenSet = false;
368 bool m_scheduleEndTimeHasBeenSet = false;
369 bool m_executionRoleArnHasBeenSet = false;
370 bool m_stateHasBeenSet = false;
371 bool m_tagsHasBeenSet = false;
372};
373
374} // namespace Model
375} // namespace CloudWatchLogs
376} // 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