AWS SDK for C++

AWS SDK for C++ Version 1.11.555

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
UpdateMaintenanceWindowTaskRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/ssm/model/MaintenanceWindowTaskInvocationParameters.h>
13#include <aws/ssm/model/LoggingInfo.h>
14#include <aws/ssm/model/MaintenanceWindowTaskCutoffBehavior.h>
15#include <aws/ssm/model/AlarmConfiguration.h>
16#include <aws/ssm/model/Target.h>
17#include <aws/ssm/model/MaintenanceWindowTaskParameterValueExpression.h>
18#include <utility>
19
20namespace Aws
21{
22namespace SSM
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_SSM_API UpdateMaintenanceWindowTaskRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "UpdateMaintenanceWindowTask"; }
39
40 AWS_SSM_API Aws::String SerializePayload() const override;
41
43
44
46
49 inline const Aws::String& GetWindowId() const { return m_windowId; }
50 inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; }
51 template<typename WindowIdT = Aws::String>
52 void SetWindowId(WindowIdT&& value) { m_windowIdHasBeenSet = true; m_windowId = std::forward<WindowIdT>(value); }
53 template<typename WindowIdT = Aws::String>
54 UpdateMaintenanceWindowTaskRequest& WithWindowId(WindowIdT&& value) { SetWindowId(std::forward<WindowIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetWindowTaskId() const { return m_windowTaskId; }
62 inline bool WindowTaskIdHasBeenSet() const { return m_windowTaskIdHasBeenSet; }
63 template<typename WindowTaskIdT = Aws::String>
64 void SetWindowTaskId(WindowTaskIdT&& value) { m_windowTaskIdHasBeenSet = true; m_windowTaskId = std::forward<WindowTaskIdT>(value); }
65 template<typename WindowTaskIdT = Aws::String>
66 UpdateMaintenanceWindowTaskRequest& WithWindowTaskId(WindowTaskIdT&& value) { SetWindowTaskId(std::forward<WindowTaskIdT>(value)); return *this;}
68
70
83 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
84 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
85 template<typename TargetsT = Aws::Vector<Target>>
86 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
87 template<typename TargetsT = Aws::Vector<Target>>
88 UpdateMaintenanceWindowTaskRequest& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
89 template<typename TargetsT = Target>
90 UpdateMaintenanceWindowTaskRequest& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
92
94
97 inline const Aws::String& GetTaskArn() const { return m_taskArn; }
98 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
99 template<typename TaskArnT = Aws::String>
100 void SetTaskArn(TaskArnT&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::forward<TaskArnT>(value); }
101 template<typename TaskArnT = Aws::String>
102 UpdateMaintenanceWindowTaskRequest& WithTaskArn(TaskArnT&& value) { SetTaskArn(std::forward<TaskArnT>(value)); return *this;}
104
106
121 inline const Aws::String& GetServiceRoleArn() const { return m_serviceRoleArn; }
122 inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; }
123 template<typename ServiceRoleArnT = Aws::String>
124 void SetServiceRoleArn(ServiceRoleArnT&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = std::forward<ServiceRoleArnT>(value); }
125 template<typename ServiceRoleArnT = Aws::String>
126 UpdateMaintenanceWindowTaskRequest& WithServiceRoleArn(ServiceRoleArnT&& value) { SetServiceRoleArn(std::forward<ServiceRoleArnT>(value)); return *this;}
128
130
141 inline bool TaskParametersHasBeenSet() const { return m_taskParametersHasBeenSet; }
142 template<typename TaskParametersT = Aws::Map<Aws::String, MaintenanceWindowTaskParameterValueExpression>>
143 void SetTaskParameters(TaskParametersT&& value) { m_taskParametersHasBeenSet = true; m_taskParameters = std::forward<TaskParametersT>(value); }
144 template<typename TaskParametersT = Aws::Map<Aws::String, MaintenanceWindowTaskParameterValueExpression>>
145 UpdateMaintenanceWindowTaskRequest& WithTaskParameters(TaskParametersT&& value) { SetTaskParameters(std::forward<TaskParametersT>(value)); return *this;}
146 template<typename TaskParametersKeyT = Aws::String, typename TaskParametersValueT = MaintenanceWindowTaskParameterValueExpression>
147 UpdateMaintenanceWindowTaskRequest& AddTaskParameters(TaskParametersKeyT&& key, TaskParametersValueT&& value) {
148 m_taskParametersHasBeenSet = true; m_taskParameters.emplace(std::forward<TaskParametersKeyT>(key), std::forward<TaskParametersValueT>(value)); return *this;
149 }
151
153
167 inline const MaintenanceWindowTaskInvocationParameters& GetTaskInvocationParameters() const { return m_taskInvocationParameters; }
168 inline bool TaskInvocationParametersHasBeenSet() const { return m_taskInvocationParametersHasBeenSet; }
169 template<typename TaskInvocationParametersT = MaintenanceWindowTaskInvocationParameters>
170 void SetTaskInvocationParameters(TaskInvocationParametersT&& value) { m_taskInvocationParametersHasBeenSet = true; m_taskInvocationParameters = std::forward<TaskInvocationParametersT>(value); }
171 template<typename TaskInvocationParametersT = MaintenanceWindowTaskInvocationParameters>
172 UpdateMaintenanceWindowTaskRequest& WithTaskInvocationParameters(TaskInvocationParametersT&& value) { SetTaskInvocationParameters(std::forward<TaskInvocationParametersT>(value)); return *this;}
174
176
180 inline int GetPriority() const { return m_priority; }
181 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
182 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
183 inline UpdateMaintenanceWindowTaskRequest& WithPriority(int value) { SetPriority(value); return *this;}
185
187
199 inline const Aws::String& GetMaxConcurrency() const { return m_maxConcurrency; }
200 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
201 template<typename MaxConcurrencyT = Aws::String>
202 void SetMaxConcurrency(MaxConcurrencyT&& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = std::forward<MaxConcurrencyT>(value); }
203 template<typename MaxConcurrencyT = Aws::String>
204 UpdateMaintenanceWindowTaskRequest& WithMaxConcurrency(MaxConcurrencyT&& value) { SetMaxConcurrency(std::forward<MaxConcurrencyT>(value)); return *this;}
206
208
219 inline const Aws::String& GetMaxErrors() const { return m_maxErrors; }
220 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
221 template<typename MaxErrorsT = Aws::String>
222 void SetMaxErrors(MaxErrorsT&& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = std::forward<MaxErrorsT>(value); }
223 template<typename MaxErrorsT = Aws::String>
224 UpdateMaintenanceWindowTaskRequest& WithMaxErrors(MaxErrorsT&& value) { SetMaxErrors(std::forward<MaxErrorsT>(value)); return *this;}
226
228
238 inline const LoggingInfo& GetLoggingInfo() const { return m_loggingInfo; }
239 inline bool LoggingInfoHasBeenSet() const { return m_loggingInfoHasBeenSet; }
240 template<typename LoggingInfoT = LoggingInfo>
241 void SetLoggingInfo(LoggingInfoT&& value) { m_loggingInfoHasBeenSet = true; m_loggingInfo = std::forward<LoggingInfoT>(value); }
242 template<typename LoggingInfoT = LoggingInfo>
243 UpdateMaintenanceWindowTaskRequest& WithLoggingInfo(LoggingInfoT&& value) { SetLoggingInfo(std::forward<LoggingInfoT>(value)); return *this;}
245
247
250 inline const Aws::String& GetName() const { return m_name; }
251 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
252 template<typename NameT = Aws::String>
253 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
254 template<typename NameT = Aws::String>
255 UpdateMaintenanceWindowTaskRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
257
259
262 inline const Aws::String& GetDescription() const { return m_description; }
263 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
264 template<typename DescriptionT = Aws::String>
265 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
266 template<typename DescriptionT = Aws::String>
267 UpdateMaintenanceWindowTaskRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
269
271
276 inline bool GetReplace() const { return m_replace; }
277 inline bool ReplaceHasBeenSet() const { return m_replaceHasBeenSet; }
278 inline void SetReplace(bool value) { m_replaceHasBeenSet = true; m_replace = value; }
279 inline UpdateMaintenanceWindowTaskRequest& WithReplace(bool value) { SetReplace(value); return *this;}
281
283
297 inline MaintenanceWindowTaskCutoffBehavior GetCutoffBehavior() const { return m_cutoffBehavior; }
298 inline bool CutoffBehaviorHasBeenSet() const { return m_cutoffBehaviorHasBeenSet; }
299 inline void SetCutoffBehavior(MaintenanceWindowTaskCutoffBehavior value) { m_cutoffBehaviorHasBeenSet = true; m_cutoffBehavior = value; }
302
304
307 inline const AlarmConfiguration& GetAlarmConfiguration() const { return m_alarmConfiguration; }
308 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
309 template<typename AlarmConfigurationT = AlarmConfiguration>
310 void SetAlarmConfiguration(AlarmConfigurationT&& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = std::forward<AlarmConfigurationT>(value); }
311 template<typename AlarmConfigurationT = AlarmConfiguration>
312 UpdateMaintenanceWindowTaskRequest& WithAlarmConfiguration(AlarmConfigurationT&& value) { SetAlarmConfiguration(std::forward<AlarmConfigurationT>(value)); return *this;}
314 private:
315
316 Aws::String m_windowId;
317 bool m_windowIdHasBeenSet = false;
318
319 Aws::String m_windowTaskId;
320 bool m_windowTaskIdHasBeenSet = false;
321
322 Aws::Vector<Target> m_targets;
323 bool m_targetsHasBeenSet = false;
324
325 Aws::String m_taskArn;
326 bool m_taskArnHasBeenSet = false;
327
328 Aws::String m_serviceRoleArn;
329 bool m_serviceRoleArnHasBeenSet = false;
330
332 bool m_taskParametersHasBeenSet = false;
333
334 MaintenanceWindowTaskInvocationParameters m_taskInvocationParameters;
335 bool m_taskInvocationParametersHasBeenSet = false;
336
337 int m_priority{0};
338 bool m_priorityHasBeenSet = false;
339
340 Aws::String m_maxConcurrency;
341 bool m_maxConcurrencyHasBeenSet = false;
342
343 Aws::String m_maxErrors;
344 bool m_maxErrorsHasBeenSet = false;
345
346 LoggingInfo m_loggingInfo;
347 bool m_loggingInfoHasBeenSet = false;
348
349 Aws::String m_name;
350 bool m_nameHasBeenSet = false;
351
352 Aws::String m_description;
353 bool m_descriptionHasBeenSet = false;
354
355 bool m_replace{false};
356 bool m_replaceHasBeenSet = false;
357
359 bool m_cutoffBehaviorHasBeenSet = false;
360
361 AlarmConfiguration m_alarmConfiguration;
362 bool m_alarmConfigurationHasBeenSet = false;
363 };
364
365} // namespace Model
366} // namespace SSM
367} // 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