AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template <typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) {
67 m_descriptionHasBeenSet = true;
68 m_description = std::forward<DescriptionT>(value);
69 }
70 template <typename DescriptionT = Aws::String>
72 SetDescription(std::forward<DescriptionT>(value));
73 return *this;
74 }
76
78
82 inline QueryLanguage GetQueryLanguage() const { return m_queryLanguage; }
83 inline bool QueryLanguageHasBeenSet() const { return m_queryLanguageHasBeenSet; }
84 inline void SetQueryLanguage(QueryLanguage value) {
85 m_queryLanguageHasBeenSet = true;
86 m_queryLanguage = value;
87 }
89 SetQueryLanguage(value);
90 return *this;
91 }
93
95
99 inline const Aws::String& GetQueryString() const { return m_queryString; }
100 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
101 template <typename QueryStringT = Aws::String>
102 void SetQueryString(QueryStringT&& value) {
103 m_queryStringHasBeenSet = true;
104 m_queryString = std::forward<QueryStringT>(value);
105 }
106 template <typename QueryStringT = Aws::String>
108 SetQueryString(std::forward<QueryStringT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::Vector<Aws::String>& GetLogGroupIdentifiers() const { return m_logGroupIdentifiers; }
119 inline bool LogGroupIdentifiersHasBeenSet() const { return m_logGroupIdentifiersHasBeenSet; }
120 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
121 void SetLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
122 m_logGroupIdentifiersHasBeenSet = true;
123 m_logGroupIdentifiers = std::forward<LogGroupIdentifiersT>(value);
124 }
125 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
127 SetLogGroupIdentifiers(std::forward<LogGroupIdentifiersT>(value));
128 return *this;
129 }
130 template <typename LogGroupIdentifiersT = Aws::String>
132 m_logGroupIdentifiersHasBeenSet = true;
133 m_logGroupIdentifiers.emplace_back(std::forward<LogGroupIdentifiersT>(value));
134 return *this;
135 }
137
139
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>
153 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
154 return *this;
155 }
157
159
163 inline const Aws::String& GetTimezone() const { return m_timezone; }
164 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
165 template <typename TimezoneT = Aws::String>
166 void SetTimezone(TimezoneT&& value) {
167 m_timezoneHasBeenSet = true;
168 m_timezone = std::forward<TimezoneT>(value);
169 }
170 template <typename TimezoneT = Aws::String>
172 SetTimezone(std::forward<TimezoneT>(value));
173 return *this;
174 }
176
178
183 inline long long GetStartTimeOffset() const { return m_startTimeOffset; }
184 inline bool StartTimeOffsetHasBeenSet() const { return m_startTimeOffsetHasBeenSet; }
185 inline void SetStartTimeOffset(long long value) {
186 m_startTimeOffsetHasBeenSet = true;
187 m_startTimeOffset = value;
188 }
190 SetStartTimeOffset(value);
191 return *this;
192 }
194
196
200 inline const DestinationConfiguration& GetDestinationConfiguration() const { return m_destinationConfiguration; }
201 inline bool DestinationConfigurationHasBeenSet() const { return m_destinationConfigurationHasBeenSet; }
202 template <typename DestinationConfigurationT = DestinationConfiguration>
203 void SetDestinationConfiguration(DestinationConfigurationT&& value) {
204 m_destinationConfigurationHasBeenSet = true;
205 m_destinationConfiguration = std::forward<DestinationConfigurationT>(value);
206 }
207 template <typename DestinationConfigurationT = DestinationConfiguration>
208 CreateScheduledQueryRequest& WithDestinationConfiguration(DestinationConfigurationT&& value) {
209 SetDestinationConfiguration(std::forward<DestinationConfigurationT>(value));
210 return *this;
211 }
213
215
219 inline long long GetScheduleStartTime() const { return m_scheduleStartTime; }
220 inline bool ScheduleStartTimeHasBeenSet() const { return m_scheduleStartTimeHasBeenSet; }
221 inline void SetScheduleStartTime(long long value) {
222 m_scheduleStartTimeHasBeenSet = true;
223 m_scheduleStartTime = value;
224 }
227 return *this;
228 }
230
232
236 inline long long GetScheduleEndTime() const { return m_scheduleEndTime; }
237 inline bool ScheduleEndTimeHasBeenSet() const { return m_scheduleEndTimeHasBeenSet; }
238 inline void SetScheduleEndTime(long long value) {
239 m_scheduleEndTimeHasBeenSet = true;
240 m_scheduleEndTime = value;
241 }
243 SetScheduleEndTime(value);
244 return *this;
245 }
247
249
254 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
255 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
256 template <typename ExecutionRoleArnT = Aws::String>
257 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
258 m_executionRoleArnHasBeenSet = true;
259 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
260 }
261 template <typename ExecutionRoleArnT = Aws::String>
263 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
264 return *this;
265 }
267
269
274 inline ScheduledQueryState GetState() const { return m_state; }
275 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
276 inline void SetState(ScheduledQueryState value) {
277 m_stateHasBeenSet = true;
278 m_state = value;
279 }
281 SetState(value);
282 return *this;
283 }
285
287
291 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
292 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
293 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
294 void SetTags(TagsT&& value) {
295 m_tagsHasBeenSet = true;
296 m_tags = std::forward<TagsT>(value);
297 }
298 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
300 SetTags(std::forward<TagsT>(value));
301 return *this;
302 }
303 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
304 CreateScheduledQueryRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
305 m_tagsHasBeenSet = true;
306 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
307 return *this;
308 }
310 private:
311 Aws::String m_name;
312
313 Aws::String m_description;
314
315 QueryLanguage m_queryLanguage{QueryLanguage::NOT_SET};
316
317 Aws::String m_queryString;
318
319 Aws::Vector<Aws::String> m_logGroupIdentifiers;
320
321 Aws::String m_scheduleExpression;
322
323 Aws::String m_timezone;
324
325 long long m_startTimeOffset{0};
326
327 DestinationConfiguration m_destinationConfiguration;
328
329 long long m_scheduleStartTime{0};
330
331 long long m_scheduleEndTime{0};
332
333 Aws::String m_executionRoleArn;
334
336
338 bool m_nameHasBeenSet = false;
339 bool m_descriptionHasBeenSet = false;
340 bool m_queryLanguageHasBeenSet = false;
341 bool m_queryStringHasBeenSet = false;
342 bool m_logGroupIdentifiersHasBeenSet = false;
343 bool m_scheduleExpressionHasBeenSet = false;
344 bool m_timezoneHasBeenSet = false;
345 bool m_startTimeOffsetHasBeenSet = false;
346 bool m_destinationConfigurationHasBeenSet = false;
347 bool m_scheduleStartTimeHasBeenSet = false;
348 bool m_scheduleEndTimeHasBeenSet = false;
349 bool m_executionRoleArnHasBeenSet = false;
350 bool m_stateHasBeenSet = false;
351 bool m_tagsHasBeenSet = false;
352};
353
354} // namespace Model
355} // namespace CloudWatchLogs
356} // 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 & 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