AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateMaintenanceWindowTaskRequest.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/ssm/SSMRequest.h>
11#include <aws/ssm/SSM_EXPORTS.h>
12#include <aws/ssm/model/AlarmConfiguration.h>
13#include <aws/ssm/model/LoggingInfo.h>
14#include <aws/ssm/model/MaintenanceWindowTaskCutoffBehavior.h>
15#include <aws/ssm/model/MaintenanceWindowTaskInvocationParameters.h>
16#include <aws/ssm/model/MaintenanceWindowTaskParameterValueExpression.h>
17#include <aws/ssm/model/Target.h>
18
19#include <utility>
20
21namespace Aws {
22namespace SSM {
23namespace Model {
24
28 public:
29 AWS_SSM_API UpdateMaintenanceWindowTaskRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateMaintenanceWindowTask"; }
36
37 AWS_SSM_API Aws::String SerializePayload() const override;
38
40
42
45 inline const Aws::String& GetWindowId() const { return m_windowId; }
46 inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; }
47 template <typename WindowIdT = Aws::String>
48 void SetWindowId(WindowIdT&& value) {
49 m_windowIdHasBeenSet = true;
50 m_windowId = std::forward<WindowIdT>(value);
51 }
52 template <typename WindowIdT = Aws::String>
54 SetWindowId(std::forward<WindowIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetWindowTaskId() const { return m_windowTaskId; }
64 inline bool WindowTaskIdHasBeenSet() const { return m_windowTaskIdHasBeenSet; }
65 template <typename WindowTaskIdT = Aws::String>
66 void SetWindowTaskId(WindowTaskIdT&& value) {
67 m_windowTaskIdHasBeenSet = true;
68 m_windowTaskId = std::forward<WindowTaskIdT>(value);
69 }
70 template <typename WindowTaskIdT = Aws::String>
72 SetWindowTaskId(std::forward<WindowTaskIdT>(value));
73 return *this;
74 }
76
78
91 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
92 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
93 template <typename TargetsT = Aws::Vector<Target>>
94 void SetTargets(TargetsT&& value) {
95 m_targetsHasBeenSet = true;
96 m_targets = std::forward<TargetsT>(value);
97 }
98 template <typename TargetsT = Aws::Vector<Target>>
100 SetTargets(std::forward<TargetsT>(value));
101 return *this;
102 }
103 template <typename TargetsT = Target>
105 m_targetsHasBeenSet = true;
106 m_targets.emplace_back(std::forward<TargetsT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetTaskArn() const { return m_taskArn; }
116 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
117 template <typename TaskArnT = Aws::String>
118 void SetTaskArn(TaskArnT&& value) {
119 m_taskArnHasBeenSet = true;
120 m_taskArn = std::forward<TaskArnT>(value);
121 }
122 template <typename TaskArnT = Aws::String>
124 SetTaskArn(std::forward<TaskArnT>(value));
125 return *this;
126 }
128
130
145 inline const Aws::String& GetServiceRoleArn() const { return m_serviceRoleArn; }
146 inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; }
147 template <typename ServiceRoleArnT = Aws::String>
148 void SetServiceRoleArn(ServiceRoleArnT&& value) {
149 m_serviceRoleArnHasBeenSet = true;
150 m_serviceRoleArn = std::forward<ServiceRoleArnT>(value);
151 }
152 template <typename ServiceRoleArnT = Aws::String>
154 SetServiceRoleArn(std::forward<ServiceRoleArnT>(value));
155 return *this;
156 }
158
160
171 inline bool TaskParametersHasBeenSet() const { return m_taskParametersHasBeenSet; }
172 template <typename TaskParametersT = Aws::Map<Aws::String, MaintenanceWindowTaskParameterValueExpression>>
173 void SetTaskParameters(TaskParametersT&& value) {
174 m_taskParametersHasBeenSet = true;
175 m_taskParameters = std::forward<TaskParametersT>(value);
176 }
177 template <typename TaskParametersT = Aws::Map<Aws::String, MaintenanceWindowTaskParameterValueExpression>>
179 SetTaskParameters(std::forward<TaskParametersT>(value));
180 return *this;
181 }
182 template <typename TaskParametersKeyT = Aws::String, typename TaskParametersValueT = MaintenanceWindowTaskParameterValueExpression>
183 UpdateMaintenanceWindowTaskRequest& AddTaskParameters(TaskParametersKeyT&& key, TaskParametersValueT&& value) {
184 m_taskParametersHasBeenSet = true;
185 m_taskParameters.emplace(std::forward<TaskParametersKeyT>(key), std::forward<TaskParametersValueT>(value));
186 return *this;
187 }
189
191
205 inline const MaintenanceWindowTaskInvocationParameters& GetTaskInvocationParameters() const { return m_taskInvocationParameters; }
206 inline bool TaskInvocationParametersHasBeenSet() const { return m_taskInvocationParametersHasBeenSet; }
207 template <typename TaskInvocationParametersT = MaintenanceWindowTaskInvocationParameters>
208 void SetTaskInvocationParameters(TaskInvocationParametersT&& value) {
209 m_taskInvocationParametersHasBeenSet = true;
210 m_taskInvocationParameters = std::forward<TaskInvocationParametersT>(value);
211 }
212 template <typename TaskInvocationParametersT = MaintenanceWindowTaskInvocationParameters>
214 SetTaskInvocationParameters(std::forward<TaskInvocationParametersT>(value));
215 return *this;
216 }
218
220
224 inline int GetPriority() const { return m_priority; }
225 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
226 inline void SetPriority(int value) {
227 m_priorityHasBeenSet = true;
228 m_priority = value;
229 }
231 SetPriority(value);
232 return *this;
233 }
235
237
249 inline const Aws::String& GetMaxConcurrency() const { return m_maxConcurrency; }
250 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
251 template <typename MaxConcurrencyT = Aws::String>
252 void SetMaxConcurrency(MaxConcurrencyT&& value) {
253 m_maxConcurrencyHasBeenSet = true;
254 m_maxConcurrency = std::forward<MaxConcurrencyT>(value);
255 }
256 template <typename MaxConcurrencyT = Aws::String>
258 SetMaxConcurrency(std::forward<MaxConcurrencyT>(value));
259 return *this;
260 }
262
264
275 inline const Aws::String& GetMaxErrors() const { return m_maxErrors; }
276 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
277 template <typename MaxErrorsT = Aws::String>
278 void SetMaxErrors(MaxErrorsT&& value) {
279 m_maxErrorsHasBeenSet = true;
280 m_maxErrors = std::forward<MaxErrorsT>(value);
281 }
282 template <typename MaxErrorsT = Aws::String>
284 SetMaxErrors(std::forward<MaxErrorsT>(value));
285 return *this;
286 }
288
290
300 inline const LoggingInfo& GetLoggingInfo() const { return m_loggingInfo; }
301 inline bool LoggingInfoHasBeenSet() const { return m_loggingInfoHasBeenSet; }
302 template <typename LoggingInfoT = LoggingInfo>
303 void SetLoggingInfo(LoggingInfoT&& value) {
304 m_loggingInfoHasBeenSet = true;
305 m_loggingInfo = std::forward<LoggingInfoT>(value);
306 }
307 template <typename LoggingInfoT = LoggingInfo>
309 SetLoggingInfo(std::forward<LoggingInfoT>(value));
310 return *this;
311 }
313
315
318 inline const Aws::String& GetName() const { return m_name; }
319 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
320 template <typename NameT = Aws::String>
321 void SetName(NameT&& value) {
322 m_nameHasBeenSet = true;
323 m_name = std::forward<NameT>(value);
324 }
325 template <typename NameT = Aws::String>
327 SetName(std::forward<NameT>(value));
328 return *this;
329 }
331
333
336 inline const Aws::String& GetDescription() const { return m_description; }
337 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
338 template <typename DescriptionT = Aws::String>
339 void SetDescription(DescriptionT&& value) {
340 m_descriptionHasBeenSet = true;
341 m_description = std::forward<DescriptionT>(value);
342 }
343 template <typename DescriptionT = Aws::String>
345 SetDescription(std::forward<DescriptionT>(value));
346 return *this;
347 }
349
351
356 inline bool GetReplace() const { return m_replace; }
357 inline bool ReplaceHasBeenSet() const { return m_replaceHasBeenSet; }
358 inline void SetReplace(bool value) {
359 m_replaceHasBeenSet = true;
360 m_replace = value;
361 }
363 SetReplace(value);
364 return *this;
365 }
367
369
383 inline MaintenanceWindowTaskCutoffBehavior GetCutoffBehavior() const { return m_cutoffBehavior; }
384 inline bool CutoffBehaviorHasBeenSet() const { return m_cutoffBehaviorHasBeenSet; }
386 m_cutoffBehaviorHasBeenSet = true;
387 m_cutoffBehavior = value;
388 }
390 SetCutoffBehavior(value);
391 return *this;
392 }
394
396
399 inline const AlarmConfiguration& GetAlarmConfiguration() const { return m_alarmConfiguration; }
400 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
401 template <typename AlarmConfigurationT = AlarmConfiguration>
402 void SetAlarmConfiguration(AlarmConfigurationT&& value) {
403 m_alarmConfigurationHasBeenSet = true;
404 m_alarmConfiguration = std::forward<AlarmConfigurationT>(value);
405 }
406 template <typename AlarmConfigurationT = AlarmConfiguration>
408 SetAlarmConfiguration(std::forward<AlarmConfigurationT>(value));
409 return *this;
410 }
412 private:
413 Aws::String m_windowId;
414
415 Aws::String m_windowTaskId;
416
417 Aws::Vector<Target> m_targets;
418
419 Aws::String m_taskArn;
420
421 Aws::String m_serviceRoleArn;
422
424
425 MaintenanceWindowTaskInvocationParameters m_taskInvocationParameters;
426
427 int m_priority{0};
428
429 Aws::String m_maxConcurrency;
430
431 Aws::String m_maxErrors;
432
433 LoggingInfo m_loggingInfo;
434
435 Aws::String m_name;
436
437 Aws::String m_description;
438
439 bool m_replace{false};
440
442
443 AlarmConfiguration m_alarmConfiguration;
444 bool m_windowIdHasBeenSet = false;
445 bool m_windowTaskIdHasBeenSet = false;
446 bool m_targetsHasBeenSet = false;
447 bool m_taskArnHasBeenSet = false;
448 bool m_serviceRoleArnHasBeenSet = false;
449 bool m_taskParametersHasBeenSet = false;
450 bool m_taskInvocationParametersHasBeenSet = false;
451 bool m_priorityHasBeenSet = false;
452 bool m_maxConcurrencyHasBeenSet = false;
453 bool m_maxErrorsHasBeenSet = false;
454 bool m_loggingInfoHasBeenSet = false;
455 bool m_nameHasBeenSet = false;
456 bool m_descriptionHasBeenSet = false;
457 bool m_replaceHasBeenSet = false;
458 bool m_cutoffBehaviorHasBeenSet = false;
459 bool m_alarmConfigurationHasBeenSet = false;
460};
461
462} // namespace Model
463} // namespace SSM
464} // namespace Aws
UpdateMaintenanceWindowTaskRequest & WithTaskInvocationParameters(TaskInvocationParametersT &&value)
UpdateMaintenanceWindowTaskRequest & AddTargets(TargetsT &&value)
const Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > & GetTaskParameters() const
void SetCutoffBehavior(MaintenanceWindowTaskCutoffBehavior value)
UpdateMaintenanceWindowTaskRequest & WithCutoffBehavior(MaintenanceWindowTaskCutoffBehavior value)
UpdateMaintenanceWindowTaskRequest & WithLoggingInfo(LoggingInfoT &&value)
UpdateMaintenanceWindowTaskRequest & WithTaskArn(TaskArnT &&value)
UpdateMaintenanceWindowTaskRequest & WithTaskParameters(TaskParametersT &&value)
UpdateMaintenanceWindowTaskRequest & WithAlarmConfiguration(AlarmConfigurationT &&value)
UpdateMaintenanceWindowTaskRequest & WithPriority(int value)
UpdateMaintenanceWindowTaskRequest & WithReplace(bool value)
UpdateMaintenanceWindowTaskRequest & WithName(NameT &&value)
UpdateMaintenanceWindowTaskRequest & WithServiceRoleArn(ServiceRoleArnT &&value)
UpdateMaintenanceWindowTaskRequest & WithMaxErrors(MaxErrorsT &&value)
UpdateMaintenanceWindowTaskRequest & WithDescription(DescriptionT &&value)
UpdateMaintenanceWindowTaskRequest & AddTaskParameters(TaskParametersKeyT &&key, TaskParametersValueT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateMaintenanceWindowTaskRequest & WithMaxConcurrency(MaxConcurrencyT &&value)
UpdateMaintenanceWindowTaskRequest & WithTargets(TargetsT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
const MaintenanceWindowTaskInvocationParameters & GetTaskInvocationParameters() const
UpdateMaintenanceWindowTaskRequest & WithWindowId(WindowIdT &&value)
UpdateMaintenanceWindowTaskRequest & WithWindowTaskId(WindowTaskIdT &&value)
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