AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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 template<typename WindowIdT = Aws::String>
54 void SetWindowId(WindowIdT&& value) { m_windowIdHasBeenSet = true; m_windowId = std::forward<WindowIdT>(value); }
55 template<typename WindowIdT = Aws::String>
56 RegisterTaskWithMaintenanceWindowRequest& WithWindowId(WindowIdT&& value) { SetWindowId(std::forward<WindowIdT>(value)); return *this;}
58
60
75 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
76 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
77 template<typename TargetsT = Aws::Vector<Target>>
78 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
79 template<typename TargetsT = Aws::Vector<Target>>
80 RegisterTaskWithMaintenanceWindowRequest& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
81 template<typename TargetsT = Target>
82 RegisterTaskWithMaintenanceWindowRequest& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
84
86
89 inline const Aws::String& GetTaskArn() const { return m_taskArn; }
90 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
91 template<typename TaskArnT = Aws::String>
92 void SetTaskArn(TaskArnT&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::forward<TaskArnT>(value); }
93 template<typename TaskArnT = Aws::String>
94 RegisterTaskWithMaintenanceWindowRequest& WithTaskArn(TaskArnT&& value) { SetTaskArn(std::forward<TaskArnT>(value)); return *this;}
96
98
113 inline const Aws::String& GetServiceRoleArn() const { return m_serviceRoleArn; }
114 inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; }
115 template<typename ServiceRoleArnT = Aws::String>
116 void SetServiceRoleArn(ServiceRoleArnT&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = std::forward<ServiceRoleArnT>(value); }
117 template<typename ServiceRoleArnT = Aws::String>
118 RegisterTaskWithMaintenanceWindowRequest& WithServiceRoleArn(ServiceRoleArnT&& value) { SetServiceRoleArn(std::forward<ServiceRoleArnT>(value)); return *this;}
120
122
125 inline MaintenanceWindowTaskType GetTaskType() const { return m_taskType; }
126 inline bool TaskTypeHasBeenSet() const { return m_taskTypeHasBeenSet; }
127 inline void SetTaskType(MaintenanceWindowTaskType value) { m_taskTypeHasBeenSet = true; m_taskType = value; }
130
132
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 RegisterTaskWithMaintenanceWindowRequest& WithTaskParameters(TaskParametersT&& value) { SetTaskParameters(std::forward<TaskParametersT>(value)); return *this;}
146 template<typename TaskParametersKeyT = Aws::String, typename TaskParametersValueT = MaintenanceWindowTaskParameterValueExpression>
147 RegisterTaskWithMaintenanceWindowRequest& 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
157 inline const MaintenanceWindowTaskInvocationParameters& GetTaskInvocationParameters() const { return m_taskInvocationParameters; }
158 inline bool TaskInvocationParametersHasBeenSet() const { return m_taskInvocationParametersHasBeenSet; }
159 template<typename TaskInvocationParametersT = MaintenanceWindowTaskInvocationParameters>
160 void SetTaskInvocationParameters(TaskInvocationParametersT&& value) { m_taskInvocationParametersHasBeenSet = true; m_taskInvocationParameters = std::forward<TaskInvocationParametersT>(value); }
161 template<typename TaskInvocationParametersT = MaintenanceWindowTaskInvocationParameters>
162 RegisterTaskWithMaintenanceWindowRequest& WithTaskInvocationParameters(TaskInvocationParametersT&& value) { SetTaskInvocationParameters(std::forward<TaskInvocationParametersT>(value)); return *this;}
164
166
171 inline int GetPriority() const { return m_priority; }
172 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
173 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
174 inline RegisterTaskWithMaintenanceWindowRequest& WithPriority(int value) { SetPriority(value); return *this;}
176
178
188 inline const Aws::String& GetMaxConcurrency() const { return m_maxConcurrency; }
189 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
190 template<typename MaxConcurrencyT = Aws::String>
191 void SetMaxConcurrency(MaxConcurrencyT&& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = std::forward<MaxConcurrencyT>(value); }
192 template<typename MaxConcurrencyT = Aws::String>
193 RegisterTaskWithMaintenanceWindowRequest& WithMaxConcurrency(MaxConcurrencyT&& value) { SetMaxConcurrency(std::forward<MaxConcurrencyT>(value)); return *this;}
195
197
207 inline const Aws::String& GetMaxErrors() const { return m_maxErrors; }
208 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
209 template<typename MaxErrorsT = Aws::String>
210 void SetMaxErrors(MaxErrorsT&& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = std::forward<MaxErrorsT>(value); }
211 template<typename MaxErrorsT = Aws::String>
212 RegisterTaskWithMaintenanceWindowRequest& WithMaxErrors(MaxErrorsT&& value) { SetMaxErrors(std::forward<MaxErrorsT>(value)); return *this;}
214
216
227 inline const LoggingInfo& GetLoggingInfo() const { return m_loggingInfo; }
228 inline bool LoggingInfoHasBeenSet() const { return m_loggingInfoHasBeenSet; }
229 template<typename LoggingInfoT = LoggingInfo>
230 void SetLoggingInfo(LoggingInfoT&& value) { m_loggingInfoHasBeenSet = true; m_loggingInfo = std::forward<LoggingInfoT>(value); }
231 template<typename LoggingInfoT = LoggingInfo>
232 RegisterTaskWithMaintenanceWindowRequest& WithLoggingInfo(LoggingInfoT&& value) { SetLoggingInfo(std::forward<LoggingInfoT>(value)); return *this;}
234
236
239 inline const Aws::String& GetName() const { return m_name; }
240 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
241 template<typename NameT = Aws::String>
242 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
243 template<typename NameT = Aws::String>
244 RegisterTaskWithMaintenanceWindowRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
246
248
251 inline const Aws::String& GetDescription() const { return m_description; }
252 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
253 template<typename DescriptionT = Aws::String>
254 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
255 template<typename DescriptionT = Aws::String>
256 RegisterTaskWithMaintenanceWindowRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
258
260
263 inline const Aws::String& GetClientToken() const { return m_clientToken; }
264 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
265 template<typename ClientTokenT = Aws::String>
266 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
267 template<typename ClientTokenT = Aws::String>
268 RegisterTaskWithMaintenanceWindowRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
270
272
286 inline MaintenanceWindowTaskCutoffBehavior GetCutoffBehavior() const { return m_cutoffBehavior; }
287 inline bool CutoffBehaviorHasBeenSet() const { return m_cutoffBehaviorHasBeenSet; }
288 inline void SetCutoffBehavior(MaintenanceWindowTaskCutoffBehavior value) { m_cutoffBehaviorHasBeenSet = true; m_cutoffBehavior = value; }
291
293
296 inline const AlarmConfiguration& GetAlarmConfiguration() const { return m_alarmConfiguration; }
297 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
298 template<typename AlarmConfigurationT = AlarmConfiguration>
299 void SetAlarmConfiguration(AlarmConfigurationT&& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = std::forward<AlarmConfigurationT>(value); }
300 template<typename AlarmConfigurationT = AlarmConfiguration>
301 RegisterTaskWithMaintenanceWindowRequest& WithAlarmConfiguration(AlarmConfigurationT&& value) { SetAlarmConfiguration(std::forward<AlarmConfigurationT>(value)); return *this;}
303 private:
304
305 Aws::String m_windowId;
306 bool m_windowIdHasBeenSet = false;
307
308 Aws::Vector<Target> m_targets;
309 bool m_targetsHasBeenSet = false;
310
311 Aws::String m_taskArn;
312 bool m_taskArnHasBeenSet = false;
313
314 Aws::String m_serviceRoleArn;
315 bool m_serviceRoleArnHasBeenSet = false;
316
318 bool m_taskTypeHasBeenSet = false;
319
321 bool m_taskParametersHasBeenSet = false;
322
323 MaintenanceWindowTaskInvocationParameters m_taskInvocationParameters;
324 bool m_taskInvocationParametersHasBeenSet = false;
325
326 int m_priority{0};
327 bool m_priorityHasBeenSet = false;
328
329 Aws::String m_maxConcurrency;
330 bool m_maxConcurrencyHasBeenSet = false;
331
332 Aws::String m_maxErrors;
333 bool m_maxErrorsHasBeenSet = false;
334
335 LoggingInfo m_loggingInfo;
336 bool m_loggingInfoHasBeenSet = false;
337
338 Aws::String m_name;
339 bool m_nameHasBeenSet = false;
340
341 Aws::String m_description;
342 bool m_descriptionHasBeenSet = false;
343
345 bool m_clientTokenHasBeenSet = true;
346
348 bool m_cutoffBehaviorHasBeenSet = false;
349
350 AlarmConfiguration m_alarmConfiguration;
351 bool m_alarmConfigurationHasBeenSet = false;
352 };
353
354} // namespace Model
355} // namespace SSM
356} // namespace Aws
RegisterTaskWithMaintenanceWindowRequest & WithName(NameT &&value)
RegisterTaskWithMaintenanceWindowRequest & WithWindowId(WindowIdT &&value)
RegisterTaskWithMaintenanceWindowRequest & AddTargets(TargetsT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
RegisterTaskWithMaintenanceWindowRequest & WithAlarmConfiguration(AlarmConfigurationT &&value)
RegisterTaskWithMaintenanceWindowRequest & WithClientToken(ClientTokenT &&value)
const MaintenanceWindowTaskInvocationParameters & GetTaskInvocationParameters() const
RegisterTaskWithMaintenanceWindowRequest & WithMaxErrors(MaxErrorsT &&value)
RegisterTaskWithMaintenanceWindowRequest & WithTaskArn(TaskArnT &&value)
RegisterTaskWithMaintenanceWindowRequest & WithCutoffBehavior(MaintenanceWindowTaskCutoffBehavior value)
RegisterTaskWithMaintenanceWindowRequest & WithTaskInvocationParameters(TaskInvocationParametersT &&value)
RegisterTaskWithMaintenanceWindowRequest & WithDescription(DescriptionT &&value)
RegisterTaskWithMaintenanceWindowRequest & WithTaskParameters(TaskParametersT &&value)
RegisterTaskWithMaintenanceWindowRequest & WithTaskType(MaintenanceWindowTaskType value)
const Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > & GetTaskParameters() const
RegisterTaskWithMaintenanceWindowRequest & AddTaskParameters(TaskParametersKeyT &&key, TaskParametersValueT &&value)
RegisterTaskWithMaintenanceWindowRequest & WithServiceRoleArn(ServiceRoleArnT &&value)
RegisterTaskWithMaintenanceWindowRequest & WithLoggingInfo(LoggingInfoT &&value)
RegisterTaskWithMaintenanceWindowRequest & WithTargets(TargetsT &&value)
RegisterTaskWithMaintenanceWindowRequest & WithMaxConcurrency(MaxConcurrencyT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
static Aws::Utils::UUID PseudoRandomUUID()
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