AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegisterTaskWithMaintenanceWindowRequest.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/ssm/model/MaintenanceWindowTaskType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/ssm/model/MaintenanceWindowTaskInvocationParameters.h>
14#include <aws/ssm/model/LoggingInfo.h>
15#include <aws/ssm/model/MaintenanceWindowTaskCutoffBehavior.h>
16#include <aws/ssm/model/AlarmConfiguration.h>
17#include <aws/ssm/model/Target.h>
18#include <aws/ssm/model/MaintenanceWindowTaskParameterValueExpression.h>
19#include <utility>
20#include <aws/core/utils/UUID.h>
21
22namespace Aws
23{
24namespace SSM
25{
26namespace Model
27{
28
32 {
33 public:
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "RegisterTaskWithMaintenanceWindow"; }
41
42 AWS_SSM_API Aws::String SerializePayload() const override;
43
45
46
48
51 inline const Aws::String& GetWindowId() const{ return m_windowId; }
52 inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; }
53 inline void SetWindowId(const Aws::String& value) { m_windowIdHasBeenSet = true; m_windowId = value; }
54 inline void SetWindowId(Aws::String&& value) { m_windowIdHasBeenSet = true; m_windowId = std::move(value); }
55 inline void SetWindowId(const char* value) { m_windowIdHasBeenSet = true; m_windowId.assign(value); }
57 inline RegisterTaskWithMaintenanceWindowRequest& WithWindowId(Aws::String&& value) { SetWindowId(std::move(value)); return *this;}
58 inline RegisterTaskWithMaintenanceWindowRequest& WithWindowId(const char* value) { SetWindowId(value); return *this;}
60
62
77 inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
78 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
79 inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
80 inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
82 inline RegisterTaskWithMaintenanceWindowRequest& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
83 inline RegisterTaskWithMaintenanceWindowRequest& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
84 inline RegisterTaskWithMaintenanceWindowRequest& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
86
88
91 inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
92 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
93 inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; }
94 inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); }
95 inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); }
96 inline RegisterTaskWithMaintenanceWindowRequest& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
97 inline RegisterTaskWithMaintenanceWindowRequest& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
98 inline RegisterTaskWithMaintenanceWindowRequest& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
100
102
117 inline const Aws::String& GetServiceRoleArn() const{ return m_serviceRoleArn; }
118 inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; }
119 inline void SetServiceRoleArn(const Aws::String& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = value; }
120 inline void SetServiceRoleArn(Aws::String&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = std::move(value); }
121 inline void SetServiceRoleArn(const char* value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn.assign(value); }
124 inline RegisterTaskWithMaintenanceWindowRequest& WithServiceRoleArn(const char* value) { SetServiceRoleArn(value); return *this;}
126
128
131 inline const MaintenanceWindowTaskType& GetTaskType() const{ return m_taskType; }
132 inline bool TaskTypeHasBeenSet() const { return m_taskTypeHasBeenSet; }
133 inline void SetTaskType(const MaintenanceWindowTaskType& value) { m_taskTypeHasBeenSet = true; m_taskType = value; }
134 inline void SetTaskType(MaintenanceWindowTaskType&& value) { m_taskTypeHasBeenSet = true; m_taskType = std::move(value); }
138
140
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 RegisterTaskWithMaintenanceWindowRequest& AddTaskParameters(const Aws::String& key, const MaintenanceWindowTaskParameterValueExpression& value) { m_taskParametersHasBeenSet = true; m_taskParameters.emplace(key, value); return *this; }
155 inline RegisterTaskWithMaintenanceWindowRequest& AddTaskParameters(Aws::String&& key, const MaintenanceWindowTaskParameterValueExpression& value) { m_taskParametersHasBeenSet = true; m_taskParameters.emplace(std::move(key), value); return *this; }
156 inline RegisterTaskWithMaintenanceWindowRequest& AddTaskParameters(const Aws::String& key, MaintenanceWindowTaskParameterValueExpression&& value) { m_taskParametersHasBeenSet = true; m_taskParameters.emplace(key, std::move(value)); return *this; }
157 inline RegisterTaskWithMaintenanceWindowRequest& AddTaskParameters(Aws::String&& key, MaintenanceWindowTaskParameterValueExpression&& value) { m_taskParametersHasBeenSet = true; m_taskParameters.emplace(std::move(key), std::move(value)); return *this; }
158 inline RegisterTaskWithMaintenanceWindowRequest& AddTaskParameters(const char* key, MaintenanceWindowTaskParameterValueExpression&& value) { m_taskParametersHasBeenSet = true; m_taskParameters.emplace(key, std::move(value)); return *this; }
159 inline RegisterTaskWithMaintenanceWindowRequest& AddTaskParameters(const char* key, const MaintenanceWindowTaskParameterValueExpression& value) { m_taskParametersHasBeenSet = true; m_taskParameters.emplace(key, value); return *this; }
161
163
167 inline const MaintenanceWindowTaskInvocationParameters& GetTaskInvocationParameters() const{ return m_taskInvocationParameters; }
168 inline bool TaskInvocationParametersHasBeenSet() const { return m_taskInvocationParametersHasBeenSet; }
169 inline void SetTaskInvocationParameters(const MaintenanceWindowTaskInvocationParameters& value) { m_taskInvocationParametersHasBeenSet = true; m_taskInvocationParameters = value; }
170 inline void SetTaskInvocationParameters(MaintenanceWindowTaskInvocationParameters&& value) { m_taskInvocationParametersHasBeenSet = true; m_taskInvocationParameters = std::move(value); }
174
176
181 inline int GetPriority() const{ return m_priority; }
182 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
183 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
184 inline RegisterTaskWithMaintenanceWindowRequest& WithPriority(int value) { SetPriority(value); return *this;}
186
188
198 inline const Aws::String& GetMaxConcurrency() const{ return m_maxConcurrency; }
199 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
200 inline void SetMaxConcurrency(const Aws::String& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = value; }
201 inline void SetMaxConcurrency(Aws::String&& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = std::move(value); }
202 inline void SetMaxConcurrency(const char* value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency.assign(value); }
205 inline RegisterTaskWithMaintenanceWindowRequest& WithMaxConcurrency(const char* value) { SetMaxConcurrency(value); return *this;}
207
209
219 inline const Aws::String& GetMaxErrors() const{ return m_maxErrors; }
220 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
221 inline void SetMaxErrors(const Aws::String& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = value; }
222 inline void SetMaxErrors(Aws::String&& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = std::move(value); }
223 inline void SetMaxErrors(const char* value) { m_maxErrorsHasBeenSet = true; m_maxErrors.assign(value); }
225 inline RegisterTaskWithMaintenanceWindowRequest& WithMaxErrors(Aws::String&& value) { SetMaxErrors(std::move(value)); return *this;}
226 inline RegisterTaskWithMaintenanceWindowRequest& WithMaxErrors(const char* value) { SetMaxErrors(value); return *this;}
228
230
241 inline const LoggingInfo& GetLoggingInfo() const{ return m_loggingInfo; }
242 inline bool LoggingInfoHasBeenSet() const { return m_loggingInfoHasBeenSet; }
243 inline void SetLoggingInfo(const LoggingInfo& value) { m_loggingInfoHasBeenSet = true; m_loggingInfo = value; }
244 inline void SetLoggingInfo(LoggingInfo&& value) { m_loggingInfoHasBeenSet = true; m_loggingInfo = std::move(value); }
246 inline RegisterTaskWithMaintenanceWindowRequest& WithLoggingInfo(LoggingInfo&& value) { SetLoggingInfo(std::move(value)); return *this;}
248
250
253 inline const Aws::String& GetName() const{ return m_name; }
254 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
255 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
256 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
257 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
258 inline RegisterTaskWithMaintenanceWindowRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
259 inline RegisterTaskWithMaintenanceWindowRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
260 inline RegisterTaskWithMaintenanceWindowRequest& WithName(const char* value) { SetName(value); return *this;}
262
264
267 inline const Aws::String& GetDescription() const{ return m_description; }
268 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
269 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
270 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
271 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
273 inline RegisterTaskWithMaintenanceWindowRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
274 inline RegisterTaskWithMaintenanceWindowRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
276
278
281 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
282 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
283 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
284 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
285 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
287 inline RegisterTaskWithMaintenanceWindowRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
288 inline RegisterTaskWithMaintenanceWindowRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
290
292
306 inline const MaintenanceWindowTaskCutoffBehavior& GetCutoffBehavior() const{ return m_cutoffBehavior; }
307 inline bool CutoffBehaviorHasBeenSet() const { return m_cutoffBehaviorHasBeenSet; }
308 inline void SetCutoffBehavior(const MaintenanceWindowTaskCutoffBehavior& value) { m_cutoffBehaviorHasBeenSet = true; m_cutoffBehavior = value; }
309 inline void SetCutoffBehavior(MaintenanceWindowTaskCutoffBehavior&& value) { m_cutoffBehaviorHasBeenSet = true; m_cutoffBehavior = std::move(value); }
313
315
318 inline const AlarmConfiguration& GetAlarmConfiguration() const{ return m_alarmConfiguration; }
319 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
320 inline void SetAlarmConfiguration(const AlarmConfiguration& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = value; }
321 inline void SetAlarmConfiguration(AlarmConfiguration&& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = std::move(value); }
325 private:
326
327 Aws::String m_windowId;
328 bool m_windowIdHasBeenSet = false;
329
330 Aws::Vector<Target> m_targets;
331 bool m_targetsHasBeenSet = false;
332
333 Aws::String m_taskArn;
334 bool m_taskArnHasBeenSet = false;
335
336 Aws::String m_serviceRoleArn;
337 bool m_serviceRoleArnHasBeenSet = false;
338
339 MaintenanceWindowTaskType m_taskType;
340 bool m_taskTypeHasBeenSet = false;
341
343 bool m_taskParametersHasBeenSet = false;
344
345 MaintenanceWindowTaskInvocationParameters m_taskInvocationParameters;
346 bool m_taskInvocationParametersHasBeenSet = false;
347
348 int m_priority;
349 bool m_priorityHasBeenSet = false;
350
351 Aws::String m_maxConcurrency;
352 bool m_maxConcurrencyHasBeenSet = false;
353
354 Aws::String m_maxErrors;
355 bool m_maxErrorsHasBeenSet = false;
356
357 LoggingInfo m_loggingInfo;
358 bool m_loggingInfoHasBeenSet = false;
359
360 Aws::String m_name;
361 bool m_nameHasBeenSet = false;
362
363 Aws::String m_description;
364 bool m_descriptionHasBeenSet = false;
365
366 Aws::String m_clientToken;
367 bool m_clientTokenHasBeenSet = false;
368
370 bool m_cutoffBehaviorHasBeenSet = false;
371
372 AlarmConfiguration m_alarmConfiguration;
373 bool m_alarmConfigurationHasBeenSet = false;
374 };
375
376} // namespace Model
377} // namespace SSM
378} // namespace Aws
void SetTaskInvocationParameters(const MaintenanceWindowTaskInvocationParameters &value)
RegisterTaskWithMaintenanceWindowRequest & WithWindowId(Aws::String &&value)
RegisterTaskWithMaintenanceWindowRequest & WithTaskInvocationParameters(const MaintenanceWindowTaskInvocationParameters &value)
RegisterTaskWithMaintenanceWindowRequest & WithLoggingInfo(LoggingInfo &&value)
RegisterTaskWithMaintenanceWindowRequest & WithTargets(Aws::Vector< Target > &&value)
RegisterTaskWithMaintenanceWindowRequest & WithTaskType(MaintenanceWindowTaskType &&value)
AWS_SSM_API Aws::String SerializePayload() const override
RegisterTaskWithMaintenanceWindowRequest & WithTaskArn(Aws::String &&value)
RegisterTaskWithMaintenanceWindowRequest & WithLoggingInfo(const LoggingInfo &value)
RegisterTaskWithMaintenanceWindowRequest & WithName(Aws::String &&value)
RegisterTaskWithMaintenanceWindowRequest & AddTaskParameters(const char *key, const MaintenanceWindowTaskParameterValueExpression &value)
RegisterTaskWithMaintenanceWindowRequest & WithServiceRoleArn(const char *value)
RegisterTaskWithMaintenanceWindowRequest & WithMaxConcurrency(const char *value)
RegisterTaskWithMaintenanceWindowRequest & WithTaskParameters(const Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > &value)
const MaintenanceWindowTaskInvocationParameters & GetTaskInvocationParameters() const
RegisterTaskWithMaintenanceWindowRequest & WithAlarmConfiguration(AlarmConfiguration &&value)
RegisterTaskWithMaintenanceWindowRequest & WithAlarmConfiguration(const AlarmConfiguration &value)
void SetCutoffBehavior(const MaintenanceWindowTaskCutoffBehavior &value)
RegisterTaskWithMaintenanceWindowRequest & WithDescription(const char *value)
RegisterTaskWithMaintenanceWindowRequest & WithClientToken(const Aws::String &value)
RegisterTaskWithMaintenanceWindowRequest & WithWindowId(const char *value)
RegisterTaskWithMaintenanceWindowRequest & WithMaxErrors(Aws::String &&value)
RegisterTaskWithMaintenanceWindowRequest & WithWindowId(const Aws::String &value)
RegisterTaskWithMaintenanceWindowRequest & WithMaxConcurrency(const Aws::String &value)
RegisterTaskWithMaintenanceWindowRequest & WithCutoffBehavior(MaintenanceWindowTaskCutoffBehavior &&value)
RegisterTaskWithMaintenanceWindowRequest & WithCutoffBehavior(const MaintenanceWindowTaskCutoffBehavior &value)
RegisterTaskWithMaintenanceWindowRequest & WithName(const char *value)
RegisterTaskWithMaintenanceWindowRequest & WithDescription(const Aws::String &value)
RegisterTaskWithMaintenanceWindowRequest & WithTaskParameters(Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > &&value)
RegisterTaskWithMaintenanceWindowRequest & WithClientToken(const char *value)
RegisterTaskWithMaintenanceWindowRequest & AddTaskParameters(const Aws::String &key, const MaintenanceWindowTaskParameterValueExpression &value)
RegisterTaskWithMaintenanceWindowRequest & WithName(const Aws::String &value)
RegisterTaskWithMaintenanceWindowRequest & WithTaskInvocationParameters(MaintenanceWindowTaskInvocationParameters &&value)
RegisterTaskWithMaintenanceWindowRequest & WithTaskType(const MaintenanceWindowTaskType &value)
RegisterTaskWithMaintenanceWindowRequest & WithMaxConcurrency(Aws::String &&value)
RegisterTaskWithMaintenanceWindowRequest & AddTargets(Target &&value)
RegisterTaskWithMaintenanceWindowRequest & AddTaskParameters(Aws::String &&key, const MaintenanceWindowTaskParameterValueExpression &value)
const Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > & GetTaskParameters() const
void SetTaskParameters(Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > &&value)
RegisterTaskWithMaintenanceWindowRequest & AddTargets(const Target &value)
RegisterTaskWithMaintenanceWindowRequest & AddTaskParameters(const Aws::String &key, MaintenanceWindowTaskParameterValueExpression &&value)
RegisterTaskWithMaintenanceWindowRequest & WithServiceRoleArn(Aws::String &&value)
RegisterTaskWithMaintenanceWindowRequest & AddTaskParameters(const char *key, MaintenanceWindowTaskParameterValueExpression &&value)
RegisterTaskWithMaintenanceWindowRequest & WithMaxErrors(const Aws::String &value)
RegisterTaskWithMaintenanceWindowRequest & WithTargets(const Aws::Vector< Target > &value)
RegisterTaskWithMaintenanceWindowRequest & WithTaskArn(const char *value)
void SetTaskParameters(const Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > &value)
void SetTaskInvocationParameters(MaintenanceWindowTaskInvocationParameters &&value)
RegisterTaskWithMaintenanceWindowRequest & AddTaskParameters(Aws::String &&key, MaintenanceWindowTaskParameterValueExpression &&value)
RegisterTaskWithMaintenanceWindowRequest & WithServiceRoleArn(const Aws::String &value)
RegisterTaskWithMaintenanceWindowRequest & WithTaskArn(const Aws::String &value)
RegisterTaskWithMaintenanceWindowRequest & WithMaxErrors(const char *value)
RegisterTaskWithMaintenanceWindowRequest & WithDescription(Aws::String &&value)
RegisterTaskWithMaintenanceWindowRequest & WithClientToken(Aws::String &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() 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