AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateScheduledQueryRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/logs/CloudWatchLogsRequest.h>
10#include <aws/logs/CloudWatchLogs_EXPORTS.h>
11#include <aws/logs/model/DestinationConfiguration.h>
12#include <aws/logs/model/QueryLanguage.h>
13#include <aws/logs/model/ScheduledQueryState.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CloudWatchLogs {
19namespace Model {
20
24 public:
25 AWS_CLOUDWATCHLOGS_API UpdateScheduledQueryRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateScheduledQuery"; }
32
33 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
34
35 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetIdentifier() const { return m_identifier; }
42 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
43 template <typename IdentifierT = Aws::String>
44 void SetIdentifier(IdentifierT&& value) {
45 m_identifierHasBeenSet = true;
46 m_identifier = std::forward<IdentifierT>(value);
47 }
48 template <typename IdentifierT = Aws::String>
50 SetIdentifier(std::forward<IdentifierT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
77 inline QueryLanguage GetQueryLanguage() const { return m_queryLanguage; }
78 inline bool QueryLanguageHasBeenSet() const { return m_queryLanguageHasBeenSet; }
79 inline void SetQueryLanguage(QueryLanguage value) {
80 m_queryLanguageHasBeenSet = true;
81 m_queryLanguage = value;
82 }
84 SetQueryLanguage(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetQueryString() const { return m_queryString; }
94 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
95 template <typename QueryStringT = Aws::String>
96 void SetQueryString(QueryStringT&& value) {
97 m_queryStringHasBeenSet = true;
98 m_queryString = std::forward<QueryStringT>(value);
99 }
100 template <typename QueryStringT = Aws::String>
102 SetQueryString(std::forward<QueryStringT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Vector<Aws::String>& GetLogGroupIdentifiers() const { return m_logGroupIdentifiers; }
112 inline bool LogGroupIdentifiersHasBeenSet() const { return m_logGroupIdentifiersHasBeenSet; }
113 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
114 void SetLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
115 m_logGroupIdentifiersHasBeenSet = true;
116 m_logGroupIdentifiers = std::forward<LogGroupIdentifiersT>(value);
117 }
118 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
120 SetLogGroupIdentifiers(std::forward<LogGroupIdentifiersT>(value));
121 return *this;
122 }
123 template <typename LogGroupIdentifiersT = Aws::String>
125 m_logGroupIdentifiersHasBeenSet = true;
126 m_logGroupIdentifiers.emplace_back(std::forward<LogGroupIdentifiersT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
136 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
137 template <typename ScheduleExpressionT = Aws::String>
138 void SetScheduleExpression(ScheduleExpressionT&& value) {
139 m_scheduleExpressionHasBeenSet = true;
140 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
141 }
142 template <typename ScheduleExpressionT = Aws::String>
144 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetTimezone() const { return m_timezone; }
154 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
155 template <typename TimezoneT = Aws::String>
156 void SetTimezone(TimezoneT&& value) {
157 m_timezoneHasBeenSet = true;
158 m_timezone = std::forward<TimezoneT>(value);
159 }
160 template <typename TimezoneT = Aws::String>
162 SetTimezone(std::forward<TimezoneT>(value));
163 return *this;
164 }
166
168
172 inline long long GetStartTimeOffset() const { return m_startTimeOffset; }
173 inline bool StartTimeOffsetHasBeenSet() const { return m_startTimeOffsetHasBeenSet; }
174 inline void SetStartTimeOffset(long long value) {
175 m_startTimeOffsetHasBeenSet = true;
176 m_startTimeOffset = value;
177 }
179 SetStartTimeOffset(value);
180 return *this;
181 }
183
185
188 inline const DestinationConfiguration& GetDestinationConfiguration() const { return m_destinationConfiguration; }
189 inline bool DestinationConfigurationHasBeenSet() const { return m_destinationConfigurationHasBeenSet; }
190 template <typename DestinationConfigurationT = DestinationConfiguration>
191 void SetDestinationConfiguration(DestinationConfigurationT&& value) {
192 m_destinationConfigurationHasBeenSet = true;
193 m_destinationConfiguration = std::forward<DestinationConfigurationT>(value);
194 }
195 template <typename DestinationConfigurationT = DestinationConfiguration>
196 UpdateScheduledQueryRequest& WithDestinationConfiguration(DestinationConfigurationT&& value) {
197 SetDestinationConfiguration(std::forward<DestinationConfigurationT>(value));
198 return *this;
199 }
201
203
206 inline long long GetScheduleStartTime() const { return m_scheduleStartTime; }
207 inline bool ScheduleStartTimeHasBeenSet() const { return m_scheduleStartTimeHasBeenSet; }
208 inline void SetScheduleStartTime(long long value) {
209 m_scheduleStartTimeHasBeenSet = true;
210 m_scheduleStartTime = value;
211 }
214 return *this;
215 }
217
219
222 inline long long GetScheduleEndTime() const { return m_scheduleEndTime; }
223 inline bool ScheduleEndTimeHasBeenSet() const { return m_scheduleEndTimeHasBeenSet; }
224 inline void SetScheduleEndTime(long long value) {
225 m_scheduleEndTimeHasBeenSet = true;
226 m_scheduleEndTime = value;
227 }
229 SetScheduleEndTime(value);
230 return *this;
231 }
233
235
239 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
240 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
241 template <typename ExecutionRoleArnT = Aws::String>
242 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
243 m_executionRoleArnHasBeenSet = true;
244 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
245 }
246 template <typename ExecutionRoleArnT = Aws::String>
248 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
249 return *this;
250 }
252
254
257 inline ScheduledQueryState GetState() const { return m_state; }
258 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
259 inline void SetState(ScheduledQueryState value) {
260 m_stateHasBeenSet = true;
261 m_state = value;
262 }
264 SetState(value);
265 return *this;
266 }
268 private:
269 Aws::String m_identifier;
270
271 Aws::String m_description;
272
273 QueryLanguage m_queryLanguage{QueryLanguage::NOT_SET};
274
275 Aws::String m_queryString;
276
277 Aws::Vector<Aws::String> m_logGroupIdentifiers;
278
279 Aws::String m_scheduleExpression;
280
281 Aws::String m_timezone;
282
283 long long m_startTimeOffset{0};
284
285 DestinationConfiguration m_destinationConfiguration;
286
287 long long m_scheduleStartTime{0};
288
289 long long m_scheduleEndTime{0};
290
291 Aws::String m_executionRoleArn;
292
294 bool m_identifierHasBeenSet = false;
295 bool m_descriptionHasBeenSet = false;
296 bool m_queryLanguageHasBeenSet = false;
297 bool m_queryStringHasBeenSet = false;
298 bool m_logGroupIdentifiersHasBeenSet = false;
299 bool m_scheduleExpressionHasBeenSet = false;
300 bool m_timezoneHasBeenSet = false;
301 bool m_startTimeOffsetHasBeenSet = false;
302 bool m_destinationConfigurationHasBeenSet = false;
303 bool m_scheduleStartTimeHasBeenSet = false;
304 bool m_scheduleEndTimeHasBeenSet = false;
305 bool m_executionRoleArnHasBeenSet = false;
306 bool m_stateHasBeenSet = false;
307};
308
309} // namespace Model
310} // namespace CloudWatchLogs
311} // namespace Aws
UpdateScheduledQueryRequest & WithDescription(DescriptionT &&value)
UpdateScheduledQueryRequest & WithScheduleStartTime(long long value)
const Aws::Vector< Aws::String > & GetLogGroupIdentifiers() const
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateScheduledQueryRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
UpdateScheduledQueryRequest & WithStartTimeOffset(long long value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
AWS_CLOUDWATCHLOGS_API UpdateScheduledQueryRequest()=default
UpdateScheduledQueryRequest & WithQueryString(QueryStringT &&value)
UpdateScheduledQueryRequest & WithScheduleEndTime(long long value)
UpdateScheduledQueryRequest & AddLogGroupIdentifiers(LogGroupIdentifiersT &&value)
const DestinationConfiguration & GetDestinationConfiguration() const
UpdateScheduledQueryRequest & WithScheduleExpression(ScheduleExpressionT &&value)
void SetDestinationConfiguration(DestinationConfigurationT &&value)
UpdateScheduledQueryRequest & WithQueryLanguage(QueryLanguage value)
UpdateScheduledQueryRequest & WithState(ScheduledQueryState value)
UpdateScheduledQueryRequest & WithLogGroupIdentifiers(LogGroupIdentifiersT &&value)
UpdateScheduledQueryRequest & WithIdentifier(IdentifierT &&value)
UpdateScheduledQueryRequest & WithTimezone(TimezoneT &&value)
UpdateScheduledQueryRequest & WithDestinationConfiguration(DestinationConfigurationT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector