AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MaintenanceWindowTask.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/model/MaintenanceWindowTaskType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/ssm/model/LoggingInfo.h>
13#include <aws/ssm/model/MaintenanceWindowTaskCutoffBehavior.h>
14#include <aws/ssm/model/AlarmConfiguration.h>
15#include <aws/ssm/model/Target.h>
16#include <aws/ssm/model/MaintenanceWindowTaskParameterValueExpression.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace SSM
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_SSM_API MaintenanceWindowTask();
47
48
50
53 inline const Aws::String& GetWindowId() const{ return m_windowId; }
54 inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; }
55 inline void SetWindowId(const Aws::String& value) { m_windowIdHasBeenSet = true; m_windowId = value; }
56 inline void SetWindowId(Aws::String&& value) { m_windowIdHasBeenSet = true; m_windowId = std::move(value); }
57 inline void SetWindowId(const char* value) { m_windowIdHasBeenSet = true; m_windowId.assign(value); }
58 inline MaintenanceWindowTask& WithWindowId(const Aws::String& value) { SetWindowId(value); return *this;}
59 inline MaintenanceWindowTask& WithWindowId(Aws::String&& value) { SetWindowId(std::move(value)); return *this;}
60 inline MaintenanceWindowTask& WithWindowId(const char* value) { SetWindowId(value); return *this;}
62
64
67 inline const Aws::String& GetWindowTaskId() const{ return m_windowTaskId; }
68 inline bool WindowTaskIdHasBeenSet() const { return m_windowTaskIdHasBeenSet; }
69 inline void SetWindowTaskId(const Aws::String& value) { m_windowTaskIdHasBeenSet = true; m_windowTaskId = value; }
70 inline void SetWindowTaskId(Aws::String&& value) { m_windowTaskIdHasBeenSet = true; m_windowTaskId = std::move(value); }
71 inline void SetWindowTaskId(const char* value) { m_windowTaskIdHasBeenSet = true; m_windowTaskId.assign(value); }
72 inline MaintenanceWindowTask& WithWindowTaskId(const Aws::String& value) { SetWindowTaskId(value); return *this;}
73 inline MaintenanceWindowTask& WithWindowTaskId(Aws::String&& value) { SetWindowTaskId(std::move(value)); return *this;}
74 inline MaintenanceWindowTask& WithWindowTaskId(const char* value) { SetWindowTaskId(value); return *this;}
76
78
85 inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
86 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
87 inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; }
88 inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); }
89 inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); }
90 inline MaintenanceWindowTask& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
91 inline MaintenanceWindowTask& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
92 inline MaintenanceWindowTask& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
94
96
99 inline const MaintenanceWindowTaskType& GetType() const{ return m_type; }
100 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
101 inline void SetType(const MaintenanceWindowTaskType& value) { m_typeHasBeenSet = true; m_type = value; }
102 inline void SetType(MaintenanceWindowTaskType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
103 inline MaintenanceWindowTask& WithType(const MaintenanceWindowTaskType& value) { SetType(value); return *this;}
104 inline MaintenanceWindowTask& WithType(MaintenanceWindowTaskType&& value) { SetType(std::move(value)); return *this;}
106
108
114 inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
115 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
116 inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
117 inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
118 inline MaintenanceWindowTask& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
119 inline MaintenanceWindowTask& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
120 inline MaintenanceWindowTask& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
121 inline MaintenanceWindowTask& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
123
125
134 inline bool TaskParametersHasBeenSet() const { return m_taskParametersHasBeenSet; }
135 inline void SetTaskParameters(const Aws::Map<Aws::String, MaintenanceWindowTaskParameterValueExpression>& value) { m_taskParametersHasBeenSet = true; m_taskParameters = value; }
136 inline void SetTaskParameters(Aws::Map<Aws::String, MaintenanceWindowTaskParameterValueExpression>&& value) { m_taskParametersHasBeenSet = true; m_taskParameters = std::move(value); }
139 inline MaintenanceWindowTask& AddTaskParameters(const Aws::String& key, const MaintenanceWindowTaskParameterValueExpression& value) { m_taskParametersHasBeenSet = true; m_taskParameters.emplace(key, value); return *this; }
140 inline MaintenanceWindowTask& AddTaskParameters(Aws::String&& key, const MaintenanceWindowTaskParameterValueExpression& value) { m_taskParametersHasBeenSet = true; m_taskParameters.emplace(std::move(key), value); return *this; }
141 inline MaintenanceWindowTask& AddTaskParameters(const Aws::String& key, MaintenanceWindowTaskParameterValueExpression&& value) { m_taskParametersHasBeenSet = true; m_taskParameters.emplace(key, std::move(value)); return *this; }
142 inline MaintenanceWindowTask& AddTaskParameters(Aws::String&& key, MaintenanceWindowTaskParameterValueExpression&& value) { m_taskParametersHasBeenSet = true; m_taskParameters.emplace(std::move(key), std::move(value)); return *this; }
143 inline MaintenanceWindowTask& AddTaskParameters(const char* key, MaintenanceWindowTaskParameterValueExpression&& value) { m_taskParametersHasBeenSet = true; m_taskParameters.emplace(key, std::move(value)); return *this; }
144 inline MaintenanceWindowTask& AddTaskParameters(const char* key, const MaintenanceWindowTaskParameterValueExpression& value) { m_taskParametersHasBeenSet = true; m_taskParameters.emplace(key, value); return *this; }
146
148
153 inline int GetPriority() const{ return m_priority; }
154 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
155 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
156 inline MaintenanceWindowTask& WithPriority(int value) { SetPriority(value); return *this;}
158
160
170 inline const LoggingInfo& GetLoggingInfo() const{ return m_loggingInfo; }
171 inline bool LoggingInfoHasBeenSet() const { return m_loggingInfoHasBeenSet; }
172 inline void SetLoggingInfo(const LoggingInfo& value) { m_loggingInfoHasBeenSet = true; m_loggingInfo = value; }
173 inline void SetLoggingInfo(LoggingInfo&& value) { m_loggingInfoHasBeenSet = true; m_loggingInfo = std::move(value); }
174 inline MaintenanceWindowTask& WithLoggingInfo(const LoggingInfo& value) { SetLoggingInfo(value); return *this;}
175 inline MaintenanceWindowTask& WithLoggingInfo(LoggingInfo&& value) { SetLoggingInfo(std::move(value)); return *this;}
177
179
194 inline const Aws::String& GetServiceRoleArn() const{ return m_serviceRoleArn; }
195 inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; }
196 inline void SetServiceRoleArn(const Aws::String& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = value; }
197 inline void SetServiceRoleArn(Aws::String&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = std::move(value); }
198 inline void SetServiceRoleArn(const char* value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn.assign(value); }
199 inline MaintenanceWindowTask& WithServiceRoleArn(const Aws::String& value) { SetServiceRoleArn(value); return *this;}
200 inline MaintenanceWindowTask& WithServiceRoleArn(Aws::String&& value) { SetServiceRoleArn(std::move(value)); return *this;}
201 inline MaintenanceWindowTask& WithServiceRoleArn(const char* value) { SetServiceRoleArn(value); return *this;}
203
205
215 inline const Aws::String& GetMaxConcurrency() const{ return m_maxConcurrency; }
216 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
217 inline void SetMaxConcurrency(const Aws::String& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = value; }
218 inline void SetMaxConcurrency(Aws::String&& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = std::move(value); }
219 inline void SetMaxConcurrency(const char* value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency.assign(value); }
220 inline MaintenanceWindowTask& WithMaxConcurrency(const Aws::String& value) { SetMaxConcurrency(value); return *this;}
221 inline MaintenanceWindowTask& WithMaxConcurrency(Aws::String&& value) { SetMaxConcurrency(std::move(value)); return *this;}
222 inline MaintenanceWindowTask& WithMaxConcurrency(const char* value) { SetMaxConcurrency(value); return *this;}
224
226
236 inline const Aws::String& GetMaxErrors() const{ return m_maxErrors; }
237 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
238 inline void SetMaxErrors(const Aws::String& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = value; }
239 inline void SetMaxErrors(Aws::String&& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = std::move(value); }
240 inline void SetMaxErrors(const char* value) { m_maxErrorsHasBeenSet = true; m_maxErrors.assign(value); }
241 inline MaintenanceWindowTask& WithMaxErrors(const Aws::String& value) { SetMaxErrors(value); return *this;}
242 inline MaintenanceWindowTask& WithMaxErrors(Aws::String&& value) { SetMaxErrors(std::move(value)); return *this;}
243 inline MaintenanceWindowTask& WithMaxErrors(const char* value) { SetMaxErrors(value); return *this;}
245
247
250 inline const Aws::String& GetName() const{ return m_name; }
251 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
252 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
253 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
254 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
255 inline MaintenanceWindowTask& WithName(const Aws::String& value) { SetName(value); return *this;}
256 inline MaintenanceWindowTask& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
257 inline MaintenanceWindowTask& WithName(const char* value) { SetName(value); return *this;}
259
261
264 inline const Aws::String& GetDescription() const{ return m_description; }
265 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
266 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
267 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
268 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
269 inline MaintenanceWindowTask& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
270 inline MaintenanceWindowTask& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
271 inline MaintenanceWindowTask& WithDescription(const char* value) { SetDescription(value); return *this;}
273
275
279 inline const MaintenanceWindowTaskCutoffBehavior& GetCutoffBehavior() const{ return m_cutoffBehavior; }
280 inline bool CutoffBehaviorHasBeenSet() const { return m_cutoffBehaviorHasBeenSet; }
281 inline void SetCutoffBehavior(const MaintenanceWindowTaskCutoffBehavior& value) { m_cutoffBehaviorHasBeenSet = true; m_cutoffBehavior = value; }
282 inline void SetCutoffBehavior(MaintenanceWindowTaskCutoffBehavior&& value) { m_cutoffBehaviorHasBeenSet = true; m_cutoffBehavior = std::move(value); }
286
288
292 inline const AlarmConfiguration& GetAlarmConfiguration() const{ return m_alarmConfiguration; }
293 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
294 inline void SetAlarmConfiguration(const AlarmConfiguration& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = value; }
295 inline void SetAlarmConfiguration(AlarmConfiguration&& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = std::move(value); }
299 private:
300
301 Aws::String m_windowId;
302 bool m_windowIdHasBeenSet = false;
303
304 Aws::String m_windowTaskId;
305 bool m_windowTaskIdHasBeenSet = false;
306
307 Aws::String m_taskArn;
308 bool m_taskArnHasBeenSet = false;
309
311 bool m_typeHasBeenSet = false;
312
313 Aws::Vector<Target> m_targets;
314 bool m_targetsHasBeenSet = false;
315
317 bool m_taskParametersHasBeenSet = false;
318
319 int m_priority;
320 bool m_priorityHasBeenSet = false;
321
322 LoggingInfo m_loggingInfo;
323 bool m_loggingInfoHasBeenSet = false;
324
325 Aws::String m_serviceRoleArn;
326 bool m_serviceRoleArnHasBeenSet = false;
327
328 Aws::String m_maxConcurrency;
329 bool m_maxConcurrencyHasBeenSet = false;
330
331 Aws::String m_maxErrors;
332 bool m_maxErrorsHasBeenSet = false;
333
334 Aws::String m_name;
335 bool m_nameHasBeenSet = false;
336
337 Aws::String m_description;
338 bool m_descriptionHasBeenSet = false;
339
341 bool m_cutoffBehaviorHasBeenSet = false;
342
343 AlarmConfiguration m_alarmConfiguration;
344 bool m_alarmConfigurationHasBeenSet = false;
345 };
346
347} // namespace Model
348} // namespace SSM
349} // namespace Aws
MaintenanceWindowTask & WithType(const MaintenanceWindowTaskType &value)
AWS_SSM_API MaintenanceWindowTask(Aws::Utils::Json::JsonView jsonValue)
MaintenanceWindowTask & AddTaskParameters(const Aws::String &key, MaintenanceWindowTaskParameterValueExpression &&value)
MaintenanceWindowTask & WithServiceRoleArn(Aws::String &&value)
const Aws::String & GetMaxConcurrency() const
MaintenanceWindowTask & WithTaskArn(const Aws::String &value)
MaintenanceWindowTask & WithMaxErrors(const Aws::String &value)
void SetTargets(Aws::Vector< Target > &&value)
MaintenanceWindowTask & WithTaskParameters(Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > &&value)
MaintenanceWindowTask & AddTaskParameters(const char *key, MaintenanceWindowTaskParameterValueExpression &&value)
MaintenanceWindowTask & WithTaskArn(Aws::String &&value)
MaintenanceWindowTask & WithCutoffBehavior(MaintenanceWindowTaskCutoffBehavior &&value)
MaintenanceWindowTask & WithType(MaintenanceWindowTaskType &&value)
MaintenanceWindowTask & WithMaxErrors(Aws::String &&value)
AWS_SSM_API MaintenanceWindowTask & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTaskParameters(const Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > &value)
void SetLoggingInfo(const LoggingInfo &value)
const MaintenanceWindowTaskCutoffBehavior & GetCutoffBehavior() const
void SetAlarmConfiguration(const AlarmConfiguration &value)
MaintenanceWindowTask & WithLoggingInfo(LoggingInfo &&value)
MaintenanceWindowTask & WithWindowId(const Aws::String &value)
MaintenanceWindowTask & WithLoggingInfo(const LoggingInfo &value)
MaintenanceWindowTask & WithAlarmConfiguration(AlarmConfiguration &&value)
MaintenanceWindowTask & WithTaskParameters(const Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > &value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
MaintenanceWindowTask & AddTaskParameters(Aws::String &&key, MaintenanceWindowTaskParameterValueExpression &&value)
const Aws::String & GetServiceRoleArn() const
MaintenanceWindowTask & WithWindowTaskId(const char *value)
void SetCutoffBehavior(const MaintenanceWindowTaskCutoffBehavior &value)
void SetWindowId(const Aws::String &value)
MaintenanceWindowTask & AddTaskParameters(Aws::String &&key, const MaintenanceWindowTaskParameterValueExpression &value)
MaintenanceWindowTask & WithName(const Aws::String &value)
MaintenanceWindowTask & AddTaskParameters(const char *key, const MaintenanceWindowTaskParameterValueExpression &value)
MaintenanceWindowTask & WithTaskArn(const char *value)
void SetTargets(const Aws::Vector< Target > &value)
MaintenanceWindowTask & WithPriority(int value)
const Aws::String & GetWindowTaskId() const
MaintenanceWindowTask & WithWindowTaskId(Aws::String &&value)
void SetTaskArn(const Aws::String &value)
MaintenanceWindowTask & WithServiceRoleArn(const Aws::String &value)
MaintenanceWindowTask & WithTargets(const Aws::Vector< Target > &value)
void SetType(MaintenanceWindowTaskType &&value)
const AlarmConfiguration & GetAlarmConfiguration() const
void SetDescription(const Aws::String &value)
MaintenanceWindowTask & WithMaxConcurrency(const char *value)
void SetCutoffBehavior(MaintenanceWindowTaskCutoffBehavior &&value)
MaintenanceWindowTask & WithName(const char *value)
MaintenanceWindowTask & WithWindowId(Aws::String &&value)
MaintenanceWindowTask & AddTargets(Target &&value)
MaintenanceWindowTask & WithDescription(const char *value)
MaintenanceWindowTask & WithWindowTaskId(const Aws::String &value)
void SetAlarmConfiguration(AlarmConfiguration &&value)
MaintenanceWindowTask & WithServiceRoleArn(const char *value)
MaintenanceWindowTask & WithWindowId(const char *value)
MaintenanceWindowTask & WithDescription(Aws::String &&value)
MaintenanceWindowTask & WithDescription(const Aws::String &value)
MaintenanceWindowTask & WithName(Aws::String &&value)
MaintenanceWindowTask & WithCutoffBehavior(const MaintenanceWindowTaskCutoffBehavior &value)
MaintenanceWindowTask & WithMaxConcurrency(const Aws::String &value)
const MaintenanceWindowTaskType & GetType() const
const Aws::Vector< Target > & GetTargets() const
void SetTaskParameters(Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > &&value)
void SetMaxConcurrency(const Aws::String &value)
void SetServiceRoleArn(const Aws::String &value)
MaintenanceWindowTask & AddTargets(const Target &value)
void SetWindowTaskId(const Aws::String &value)
void SetType(const MaintenanceWindowTaskType &value)
void SetMaxErrors(const Aws::String &value)
MaintenanceWindowTask & WithTargets(Aws::Vector< Target > &&value)
const Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > & GetTaskParameters() const
MaintenanceWindowTask & WithMaxConcurrency(Aws::String &&value)
MaintenanceWindowTask & WithAlarmConfiguration(const AlarmConfiguration &value)
MaintenanceWindowTask & WithMaxErrors(const char *value)
MaintenanceWindowTask & AddTaskParameters(const Aws::String &key, const MaintenanceWindowTaskParameterValueExpression &value)
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
Aws::Utils::Json::JsonValue JsonValue