AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetWindowId(const Aws::String& value) { m_windowIdHasBeenSet = true; m_windowId = value; }
52 inline void SetWindowId(Aws::String&& value) { m_windowIdHasBeenSet = true; m_windowId = std::move(value); }
53 inline void SetWindowId(const char* value) { m_windowIdHasBeenSet = true; m_windowId.assign(value); }
54 inline UpdateMaintenanceWindowTaskRequest& WithWindowId(const Aws::String& value) { SetWindowId(value); return *this;}
55 inline UpdateMaintenanceWindowTaskRequest& WithWindowId(Aws::String&& value) { SetWindowId(std::move(value)); return *this;}
56 inline UpdateMaintenanceWindowTaskRequest& WithWindowId(const char* value) { SetWindowId(value); return *this;}
58
60
63 inline const Aws::String& GetWindowTaskId() const{ return m_windowTaskId; }
64 inline bool WindowTaskIdHasBeenSet() const { return m_windowTaskIdHasBeenSet; }
65 inline void SetWindowTaskId(const Aws::String& value) { m_windowTaskIdHasBeenSet = true; m_windowTaskId = value; }
66 inline void SetWindowTaskId(Aws::String&& value) { m_windowTaskIdHasBeenSet = true; m_windowTaskId = std::move(value); }
67 inline void SetWindowTaskId(const char* value) { m_windowTaskIdHasBeenSet = true; m_windowTaskId.assign(value); }
69 inline UpdateMaintenanceWindowTaskRequest& WithWindowTaskId(Aws::String&& value) { SetWindowTaskId(std::move(value)); return *this;}
70 inline UpdateMaintenanceWindowTaskRequest& WithWindowTaskId(const char* value) { SetWindowTaskId(value); return *this;}
72
74
87 inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
88 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
89 inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
90 inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
92 inline UpdateMaintenanceWindowTaskRequest& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
93 inline UpdateMaintenanceWindowTaskRequest& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
94 inline UpdateMaintenanceWindowTaskRequest& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
96
98
101 inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
102 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
103 inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; }
104 inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); }
105 inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); }
106 inline UpdateMaintenanceWindowTaskRequest& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
107 inline UpdateMaintenanceWindowTaskRequest& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
108 inline UpdateMaintenanceWindowTaskRequest& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
110
112
127 inline const Aws::String& GetServiceRoleArn() const{ return m_serviceRoleArn; }
128 inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; }
129 inline void SetServiceRoleArn(const Aws::String& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = value; }
130 inline void SetServiceRoleArn(Aws::String&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = std::move(value); }
131 inline void SetServiceRoleArn(const char* value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn.assign(value); }
133 inline UpdateMaintenanceWindowTaskRequest& WithServiceRoleArn(Aws::String&& value) { SetServiceRoleArn(std::move(value)); return *this;}
134 inline UpdateMaintenanceWindowTaskRequest& WithServiceRoleArn(const char* value) { SetServiceRoleArn(value); return *this;}
136
138
149 inline bool TaskParametersHasBeenSet() const { return m_taskParametersHasBeenSet; }
150 inline void SetTaskParameters(const Aws::Map<Aws::String, MaintenanceWindowTaskParameterValueExpression>& value) { m_taskParametersHasBeenSet = true; m_taskParameters = value; }
151 inline void SetTaskParameters(Aws::Map<Aws::String, MaintenanceWindowTaskParameterValueExpression>&& value) { m_taskParametersHasBeenSet = true; m_taskParameters = std::move(value); }
154 inline UpdateMaintenanceWindowTaskRequest& AddTaskParameters(const Aws::String& key, const MaintenanceWindowTaskParameterValueExpression& value) { m_taskParametersHasBeenSet = true; m_taskParameters.emplace(key, value); return *this; }
155 inline UpdateMaintenanceWindowTaskRequest& AddTaskParameters(Aws::String&& key, const MaintenanceWindowTaskParameterValueExpression& value) { m_taskParametersHasBeenSet = true; m_taskParameters.emplace(std::move(key), value); return *this; }
156 inline UpdateMaintenanceWindowTaskRequest& AddTaskParameters(const Aws::String& key, MaintenanceWindowTaskParameterValueExpression&& value) { m_taskParametersHasBeenSet = true; m_taskParameters.emplace(key, std::move(value)); return *this; }
157 inline UpdateMaintenanceWindowTaskRequest& AddTaskParameters(Aws::String&& key, MaintenanceWindowTaskParameterValueExpression&& value) { m_taskParametersHasBeenSet = true; m_taskParameters.emplace(std::move(key), std::move(value)); return *this; }
158 inline UpdateMaintenanceWindowTaskRequest& AddTaskParameters(const char* key, MaintenanceWindowTaskParameterValueExpression&& value) { m_taskParametersHasBeenSet = true; m_taskParameters.emplace(key, std::move(value)); return *this; }
159 inline UpdateMaintenanceWindowTaskRequest& AddTaskParameters(const char* key, const MaintenanceWindowTaskParameterValueExpression& value) { m_taskParametersHasBeenSet = true; m_taskParameters.emplace(key, value); return *this; }
161
163
177 inline const MaintenanceWindowTaskInvocationParameters& GetTaskInvocationParameters() const{ return m_taskInvocationParameters; }
178 inline bool TaskInvocationParametersHasBeenSet() const { return m_taskInvocationParametersHasBeenSet; }
179 inline void SetTaskInvocationParameters(const MaintenanceWindowTaskInvocationParameters& value) { m_taskInvocationParametersHasBeenSet = true; m_taskInvocationParameters = value; }
180 inline void SetTaskInvocationParameters(MaintenanceWindowTaskInvocationParameters&& value) { m_taskInvocationParametersHasBeenSet = true; m_taskInvocationParameters = std::move(value); }
184
186
190 inline int GetPriority() const{ return m_priority; }
191 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
192 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
193 inline UpdateMaintenanceWindowTaskRequest& WithPriority(int value) { SetPriority(value); return *this;}
195
197
209 inline const Aws::String& GetMaxConcurrency() const{ return m_maxConcurrency; }
210 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
211 inline void SetMaxConcurrency(const Aws::String& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = value; }
212 inline void SetMaxConcurrency(Aws::String&& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = std::move(value); }
213 inline void SetMaxConcurrency(const char* value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency.assign(value); }
215 inline UpdateMaintenanceWindowTaskRequest& WithMaxConcurrency(Aws::String&& value) { SetMaxConcurrency(std::move(value)); return *this;}
216 inline UpdateMaintenanceWindowTaskRequest& WithMaxConcurrency(const char* value) { SetMaxConcurrency(value); return *this;}
218
220
231 inline const Aws::String& GetMaxErrors() const{ return m_maxErrors; }
232 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
233 inline void SetMaxErrors(const Aws::String& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = value; }
234 inline void SetMaxErrors(Aws::String&& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = std::move(value); }
235 inline void SetMaxErrors(const char* value) { m_maxErrorsHasBeenSet = true; m_maxErrors.assign(value); }
236 inline UpdateMaintenanceWindowTaskRequest& WithMaxErrors(const Aws::String& value) { SetMaxErrors(value); return *this;}
237 inline UpdateMaintenanceWindowTaskRequest& WithMaxErrors(Aws::String&& value) { SetMaxErrors(std::move(value)); return *this;}
238 inline UpdateMaintenanceWindowTaskRequest& WithMaxErrors(const char* value) { SetMaxErrors(value); return *this;}
240
242
252 inline const LoggingInfo& GetLoggingInfo() const{ return m_loggingInfo; }
253 inline bool LoggingInfoHasBeenSet() const { return m_loggingInfoHasBeenSet; }
254 inline void SetLoggingInfo(const LoggingInfo& value) { m_loggingInfoHasBeenSet = true; m_loggingInfo = value; }
255 inline void SetLoggingInfo(LoggingInfo&& value) { m_loggingInfoHasBeenSet = true; m_loggingInfo = std::move(value); }
257 inline UpdateMaintenanceWindowTaskRequest& WithLoggingInfo(LoggingInfo&& value) { SetLoggingInfo(std::move(value)); return *this;}
259
261
264 inline const Aws::String& GetName() const{ return m_name; }
265 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
266 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
267 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
268 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
269 inline UpdateMaintenanceWindowTaskRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
270 inline UpdateMaintenanceWindowTaskRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
271 inline UpdateMaintenanceWindowTaskRequest& WithName(const char* value) { SetName(value); return *this;}
273
275
278 inline const Aws::String& GetDescription() const{ return m_description; }
279 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
280 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
281 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
282 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
284 inline UpdateMaintenanceWindowTaskRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
285 inline UpdateMaintenanceWindowTaskRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
287
289
294 inline bool GetReplace() const{ return m_replace; }
295 inline bool ReplaceHasBeenSet() const { return m_replaceHasBeenSet; }
296 inline void SetReplace(bool value) { m_replaceHasBeenSet = true; m_replace = value; }
297 inline UpdateMaintenanceWindowTaskRequest& WithReplace(bool value) { SetReplace(value); return *this;}
299
301
315 inline const MaintenanceWindowTaskCutoffBehavior& GetCutoffBehavior() const{ return m_cutoffBehavior; }
316 inline bool CutoffBehaviorHasBeenSet() const { return m_cutoffBehaviorHasBeenSet; }
317 inline void SetCutoffBehavior(const MaintenanceWindowTaskCutoffBehavior& value) { m_cutoffBehaviorHasBeenSet = true; m_cutoffBehavior = value; }
318 inline void SetCutoffBehavior(MaintenanceWindowTaskCutoffBehavior&& value) { m_cutoffBehaviorHasBeenSet = true; m_cutoffBehavior = std::move(value); }
322
324
327 inline const AlarmConfiguration& GetAlarmConfiguration() const{ return m_alarmConfiguration; }
328 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
329 inline void SetAlarmConfiguration(const AlarmConfiguration& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = value; }
330 inline void SetAlarmConfiguration(AlarmConfiguration&& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = std::move(value); }
334 private:
335
336 Aws::String m_windowId;
337 bool m_windowIdHasBeenSet = false;
338
339 Aws::String m_windowTaskId;
340 bool m_windowTaskIdHasBeenSet = false;
341
342 Aws::Vector<Target> m_targets;
343 bool m_targetsHasBeenSet = false;
344
345 Aws::String m_taskArn;
346 bool m_taskArnHasBeenSet = false;
347
348 Aws::String m_serviceRoleArn;
349 bool m_serviceRoleArnHasBeenSet = false;
350
352 bool m_taskParametersHasBeenSet = false;
353
354 MaintenanceWindowTaskInvocationParameters m_taskInvocationParameters;
355 bool m_taskInvocationParametersHasBeenSet = false;
356
357 int m_priority;
358 bool m_priorityHasBeenSet = false;
359
360 Aws::String m_maxConcurrency;
361 bool m_maxConcurrencyHasBeenSet = false;
362
363 Aws::String m_maxErrors;
364 bool m_maxErrorsHasBeenSet = false;
365
366 LoggingInfo m_loggingInfo;
367 bool m_loggingInfoHasBeenSet = false;
368
369 Aws::String m_name;
370 bool m_nameHasBeenSet = false;
371
372 Aws::String m_description;
373 bool m_descriptionHasBeenSet = false;
374
375 bool m_replace;
376 bool m_replaceHasBeenSet = false;
377
379 bool m_cutoffBehaviorHasBeenSet = false;
380
381 AlarmConfiguration m_alarmConfiguration;
382 bool m_alarmConfigurationHasBeenSet = false;
383 };
384
385} // namespace Model
386} // namespace SSM
387} // namespace Aws
const MaintenanceWindowTaskCutoffBehavior & GetCutoffBehavior() const
UpdateMaintenanceWindowTaskRequest & AddTaskParameters(const Aws::String &key, const MaintenanceWindowTaskParameterValueExpression &value)
void SetTaskParameters(Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > &&value)
UpdateMaintenanceWindowTaskRequest & AddTaskParameters(const char *key, const MaintenanceWindowTaskParameterValueExpression &value)
const Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > & GetTaskParameters() const
UpdateMaintenanceWindowTaskRequest & WithCutoffBehavior(const MaintenanceWindowTaskCutoffBehavior &value)
UpdateMaintenanceWindowTaskRequest & AddTaskParameters(const char *key, MaintenanceWindowTaskParameterValueExpression &&value)
UpdateMaintenanceWindowTaskRequest & WithWindowId(const Aws::String &value)
UpdateMaintenanceWindowTaskRequest & WithTaskInvocationParameters(const MaintenanceWindowTaskInvocationParameters &value)
UpdateMaintenanceWindowTaskRequest & WithWindowTaskId(const Aws::String &value)
UpdateMaintenanceWindowTaskRequest & WithMaxErrors(Aws::String &&value)
UpdateMaintenanceWindowTaskRequest & WithWindowTaskId(Aws::String &&value)
UpdateMaintenanceWindowTaskRequest & WithTaskArn(const Aws::String &value)
UpdateMaintenanceWindowTaskRequest & WithMaxErrors(const char *value)
UpdateMaintenanceWindowTaskRequest & WithCutoffBehavior(MaintenanceWindowTaskCutoffBehavior &&value)
UpdateMaintenanceWindowTaskRequest & WithServiceRoleArn(const Aws::String &value)
void SetCutoffBehavior(MaintenanceWindowTaskCutoffBehavior &&value)
UpdateMaintenanceWindowTaskRequest & WithServiceRoleArn(Aws::String &&value)
UpdateMaintenanceWindowTaskRequest & AddTaskParameters(Aws::String &&key, const MaintenanceWindowTaskParameterValueExpression &value)
UpdateMaintenanceWindowTaskRequest & WithTaskArn(Aws::String &&value)
UpdateMaintenanceWindowTaskRequest & WithPriority(int value)
void SetTaskInvocationParameters(MaintenanceWindowTaskInvocationParameters &&value)
UpdateMaintenanceWindowTaskRequest & AddTargets(const Target &value)
UpdateMaintenanceWindowTaskRequest & WithName(const Aws::String &value)
UpdateMaintenanceWindowTaskRequest & WithWindowId(Aws::String &&value)
UpdateMaintenanceWindowTaskRequest & WithReplace(bool value)
UpdateMaintenanceWindowTaskRequest & WithDescription(Aws::String &&value)
UpdateMaintenanceWindowTaskRequest & WithAlarmConfiguration(AlarmConfiguration &&value)
void SetTaskInvocationParameters(const MaintenanceWindowTaskInvocationParameters &value)
void SetTaskParameters(const Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > &value)
UpdateMaintenanceWindowTaskRequest & WithMaxConcurrency(const char *value)
UpdateMaintenanceWindowTaskRequest & WithWindowId(const char *value)
UpdateMaintenanceWindowTaskRequest & WithMaxErrors(const Aws::String &value)
UpdateMaintenanceWindowTaskRequest & AddTargets(Target &&value)
UpdateMaintenanceWindowTaskRequest & WithTargets(const Aws::Vector< Target > &value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateMaintenanceWindowTaskRequest & WithName(const char *value)
UpdateMaintenanceWindowTaskRequest & WithAlarmConfiguration(const AlarmConfiguration &value)
AWS_SSM_API Aws::String SerializePayload() const override
UpdateMaintenanceWindowTaskRequest & WithWindowTaskId(const char *value)
UpdateMaintenanceWindowTaskRequest & WithTaskParameters(const Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > &value)
UpdateMaintenanceWindowTaskRequest & AddTaskParameters(const Aws::String &key, MaintenanceWindowTaskParameterValueExpression &&value)
UpdateMaintenanceWindowTaskRequest & WithName(Aws::String &&value)
UpdateMaintenanceWindowTaskRequest & WithTargets(Aws::Vector< Target > &&value)
const MaintenanceWindowTaskInvocationParameters & GetTaskInvocationParameters() const
UpdateMaintenanceWindowTaskRequest & WithServiceRoleArn(const char *value)
UpdateMaintenanceWindowTaskRequest & WithLoggingInfo(LoggingInfo &&value)
UpdateMaintenanceWindowTaskRequest & WithMaxConcurrency(Aws::String &&value)
UpdateMaintenanceWindowTaskRequest & WithTaskArn(const char *value)
UpdateMaintenanceWindowTaskRequest & WithLoggingInfo(const LoggingInfo &value)
void SetCutoffBehavior(const MaintenanceWindowTaskCutoffBehavior &value)
UpdateMaintenanceWindowTaskRequest & WithTaskParameters(Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > &&value)
UpdateMaintenanceWindowTaskRequest & AddTaskParameters(Aws::String &&key, MaintenanceWindowTaskParameterValueExpression &&value)
UpdateMaintenanceWindowTaskRequest & WithMaxConcurrency(const Aws::String &value)
UpdateMaintenanceWindowTaskRequest & WithDescription(const char *value)
UpdateMaintenanceWindowTaskRequest & WithDescription(const Aws::String &value)
UpdateMaintenanceWindowTaskRequest & WithTaskInvocationParameters(MaintenanceWindowTaskInvocationParameters &&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