AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetMaintenanceWindowTaskResult.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/model/MaintenanceWindowTaskType.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{
22template<typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils
26{
27namespace Json
28{
29 class JsonValue;
30} // namespace Json
31} // namespace Utils
32namespace SSM
33{
34namespace Model
35{
37 {
38 public:
39 AWS_SSM_API GetMaintenanceWindowTaskResult() = default;
42
43
45
48 inline const Aws::String& GetWindowId() const { return m_windowId; }
49 template<typename WindowIdT = Aws::String>
50 void SetWindowId(WindowIdT&& value) { m_windowIdHasBeenSet = true; m_windowId = std::forward<WindowIdT>(value); }
51 template<typename WindowIdT = Aws::String>
52 GetMaintenanceWindowTaskResult& WithWindowId(WindowIdT&& value) { SetWindowId(std::forward<WindowIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetWindowTaskId() const { return m_windowTaskId; }
60 template<typename WindowTaskIdT = Aws::String>
61 void SetWindowTaskId(WindowTaskIdT&& value) { m_windowTaskIdHasBeenSet = true; m_windowTaskId = std::forward<WindowTaskIdT>(value); }
62 template<typename WindowTaskIdT = Aws::String>
63 GetMaintenanceWindowTaskResult& WithWindowTaskId(WindowTaskIdT&& value) { SetWindowTaskId(std::forward<WindowTaskIdT>(value)); return *this;}
65
67
70 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
71 template<typename TargetsT = Aws::Vector<Target>>
72 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
73 template<typename TargetsT = Aws::Vector<Target>>
74 GetMaintenanceWindowTaskResult& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
75 template<typename TargetsT = Target>
76 GetMaintenanceWindowTaskResult& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
78
80
87 inline const Aws::String& GetTaskArn() const { return m_taskArn; }
88 template<typename TaskArnT = Aws::String>
89 void SetTaskArn(TaskArnT&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::forward<TaskArnT>(value); }
90 template<typename TaskArnT = Aws::String>
91 GetMaintenanceWindowTaskResult& WithTaskArn(TaskArnT&& value) { SetTaskArn(std::forward<TaskArnT>(value)); return *this;}
93
95
110 inline const Aws::String& GetServiceRoleArn() const { return m_serviceRoleArn; }
111 template<typename ServiceRoleArnT = Aws::String>
112 void SetServiceRoleArn(ServiceRoleArnT&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = std::forward<ServiceRoleArnT>(value); }
113 template<typename ServiceRoleArnT = Aws::String>
114 GetMaintenanceWindowTaskResult& WithServiceRoleArn(ServiceRoleArnT&& value) { SetServiceRoleArn(std::forward<ServiceRoleArnT>(value)); return *this;}
116
118
121 inline MaintenanceWindowTaskType GetTaskType() const { return m_taskType; }
122 inline void SetTaskType(MaintenanceWindowTaskType value) { m_taskTypeHasBeenSet = true; m_taskType = value; }
125
127
136 template<typename TaskParametersT = Aws::Map<Aws::String, MaintenanceWindowTaskParameterValueExpression>>
137 void SetTaskParameters(TaskParametersT&& value) { m_taskParametersHasBeenSet = true; m_taskParameters = std::forward<TaskParametersT>(value); }
138 template<typename TaskParametersT = Aws::Map<Aws::String, MaintenanceWindowTaskParameterValueExpression>>
139 GetMaintenanceWindowTaskResult& WithTaskParameters(TaskParametersT&& value) { SetTaskParameters(std::forward<TaskParametersT>(value)); return *this;}
140 template<typename TaskParametersKeyT = Aws::String, typename TaskParametersValueT = MaintenanceWindowTaskParameterValueExpression>
141 GetMaintenanceWindowTaskResult& AddTaskParameters(TaskParametersKeyT&& key, TaskParametersValueT&& value) {
142 m_taskParametersHasBeenSet = true; m_taskParameters.emplace(std::forward<TaskParametersKeyT>(key), std::forward<TaskParametersValueT>(value)); return *this;
143 }
145
147
150 inline const MaintenanceWindowTaskInvocationParameters& GetTaskInvocationParameters() const { return m_taskInvocationParameters; }
151 template<typename TaskInvocationParametersT = MaintenanceWindowTaskInvocationParameters>
152 void SetTaskInvocationParameters(TaskInvocationParametersT&& value) { m_taskInvocationParametersHasBeenSet = true; m_taskInvocationParameters = std::forward<TaskInvocationParametersT>(value); }
153 template<typename TaskInvocationParametersT = MaintenanceWindowTaskInvocationParameters>
154 GetMaintenanceWindowTaskResult& WithTaskInvocationParameters(TaskInvocationParametersT&& value) { SetTaskInvocationParameters(std::forward<TaskInvocationParametersT>(value)); return *this;}
156
158
162 inline int GetPriority() const { return m_priority; }
163 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
164 inline GetMaintenanceWindowTaskResult& WithPriority(int value) { SetPriority(value); return *this;}
166
168
175 inline const Aws::String& GetMaxConcurrency() const { return m_maxConcurrency; }
176 template<typename MaxConcurrencyT = Aws::String>
177 void SetMaxConcurrency(MaxConcurrencyT&& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = std::forward<MaxConcurrencyT>(value); }
178 template<typename MaxConcurrencyT = Aws::String>
179 GetMaintenanceWindowTaskResult& WithMaxConcurrency(MaxConcurrencyT&& value) { SetMaxConcurrency(std::forward<MaxConcurrencyT>(value)); return *this;}
181
183
191 inline const Aws::String& GetMaxErrors() const { return m_maxErrors; }
192 template<typename MaxErrorsT = Aws::String>
193 void SetMaxErrors(MaxErrorsT&& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = std::forward<MaxErrorsT>(value); }
194 template<typename MaxErrorsT = Aws::String>
195 GetMaintenanceWindowTaskResult& WithMaxErrors(MaxErrorsT&& value) { SetMaxErrors(std::forward<MaxErrorsT>(value)); return *this;}
197
199
210 inline const LoggingInfo& GetLoggingInfo() const { return m_loggingInfo; }
211 template<typename LoggingInfoT = LoggingInfo>
212 void SetLoggingInfo(LoggingInfoT&& value) { m_loggingInfoHasBeenSet = true; m_loggingInfo = std::forward<LoggingInfoT>(value); }
213 template<typename LoggingInfoT = LoggingInfo>
214 GetMaintenanceWindowTaskResult& WithLoggingInfo(LoggingInfoT&& value) { SetLoggingInfo(std::forward<LoggingInfoT>(value)); return *this;}
216
218
221 inline const Aws::String& GetName() const { return m_name; }
222 template<typename NameT = Aws::String>
223 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
224 template<typename NameT = Aws::String>
225 GetMaintenanceWindowTaskResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
227
229
232 inline const Aws::String& GetDescription() const { return m_description; }
233 template<typename DescriptionT = Aws::String>
234 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
235 template<typename DescriptionT = Aws::String>
236 GetMaintenanceWindowTaskResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
238
240
248 inline MaintenanceWindowTaskCutoffBehavior GetCutoffBehavior() const { return m_cutoffBehavior; }
249 inline void SetCutoffBehavior(MaintenanceWindowTaskCutoffBehavior value) { m_cutoffBehaviorHasBeenSet = true; m_cutoffBehavior = value; }
252
254
258 inline const AlarmConfiguration& GetAlarmConfiguration() const { return m_alarmConfiguration; }
259 template<typename AlarmConfigurationT = AlarmConfiguration>
260 void SetAlarmConfiguration(AlarmConfigurationT&& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = std::forward<AlarmConfigurationT>(value); }
261 template<typename AlarmConfigurationT = AlarmConfiguration>
262 GetMaintenanceWindowTaskResult& WithAlarmConfiguration(AlarmConfigurationT&& value) { SetAlarmConfiguration(std::forward<AlarmConfigurationT>(value)); return *this;}
264
266
267 inline const Aws::String& GetRequestId() const { return m_requestId; }
268 template<typename RequestIdT = Aws::String>
269 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
270 template<typename RequestIdT = Aws::String>
271 GetMaintenanceWindowTaskResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
273 private:
274
275 Aws::String m_windowId;
276 bool m_windowIdHasBeenSet = false;
277
278 Aws::String m_windowTaskId;
279 bool m_windowTaskIdHasBeenSet = false;
280
281 Aws::Vector<Target> m_targets;
282 bool m_targetsHasBeenSet = false;
283
284 Aws::String m_taskArn;
285 bool m_taskArnHasBeenSet = false;
286
287 Aws::String m_serviceRoleArn;
288 bool m_serviceRoleArnHasBeenSet = false;
289
291 bool m_taskTypeHasBeenSet = false;
292
294 bool m_taskParametersHasBeenSet = false;
295
296 MaintenanceWindowTaskInvocationParameters m_taskInvocationParameters;
297 bool m_taskInvocationParametersHasBeenSet = false;
298
299 int m_priority{0};
300 bool m_priorityHasBeenSet = false;
301
302 Aws::String m_maxConcurrency;
303 bool m_maxConcurrencyHasBeenSet = false;
304
305 Aws::String m_maxErrors;
306 bool m_maxErrorsHasBeenSet = false;
307
308 LoggingInfo m_loggingInfo;
309 bool m_loggingInfoHasBeenSet = false;
310
311 Aws::String m_name;
312 bool m_nameHasBeenSet = false;
313
314 Aws::String m_description;
315 bool m_descriptionHasBeenSet = false;
316
318 bool m_cutoffBehaviorHasBeenSet = false;
319
320 AlarmConfiguration m_alarmConfiguration;
321 bool m_alarmConfigurationHasBeenSet = false;
322
323 Aws::String m_requestId;
324 bool m_requestIdHasBeenSet = false;
325 };
326
327} // namespace Model
328} // namespace SSM
329} // namespace Aws
GetMaintenanceWindowTaskResult & WithName(NameT &&value)
MaintenanceWindowTaskCutoffBehavior GetCutoffBehavior() const
GetMaintenanceWindowTaskResult & WithMaxErrors(MaxErrorsT &&value)
GetMaintenanceWindowTaskResult & WithWindowTaskId(WindowTaskIdT &&value)
GetMaintenanceWindowTaskResult & WithTaskArn(TaskArnT &&value)
GetMaintenanceWindowTaskResult & AddTaskParameters(TaskParametersKeyT &&key, TaskParametersValueT &&value)
GetMaintenanceWindowTaskResult & WithTaskParameters(TaskParametersT &&value)
const Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > & GetTaskParameters() const
GetMaintenanceWindowTaskResult & WithLoggingInfo(LoggingInfoT &&value)
GetMaintenanceWindowTaskResult & WithAlarmConfiguration(AlarmConfigurationT &&value)
GetMaintenanceWindowTaskResult & WithTaskInvocationParameters(TaskInvocationParametersT &&value)
AWS_SSM_API GetMaintenanceWindowTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMaintenanceWindowTaskResult & WithRequestId(RequestIdT &&value)
AWS_SSM_API GetMaintenanceWindowTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMaintenanceWindowTaskResult & WithCutoffBehavior(MaintenanceWindowTaskCutoffBehavior value)
GetMaintenanceWindowTaskResult & WithPriority(int value)
GetMaintenanceWindowTaskResult & AddTargets(TargetsT &&value)
void SetTaskInvocationParameters(TaskInvocationParametersT &&value)
GetMaintenanceWindowTaskResult & WithTargets(TargetsT &&value)
GetMaintenanceWindowTaskResult & WithWindowId(WindowIdT &&value)
GetMaintenanceWindowTaskResult & WithMaxConcurrency(MaxConcurrencyT &&value)
GetMaintenanceWindowTaskResult & WithTaskType(MaintenanceWindowTaskType value)
void SetCutoffBehavior(MaintenanceWindowTaskCutoffBehavior value)
GetMaintenanceWindowTaskResult & WithDescription(DescriptionT &&value)
GetMaintenanceWindowTaskResult & WithServiceRoleArn(ServiceRoleArnT &&value)
const MaintenanceWindowTaskInvocationParameters & GetTaskInvocationParameters() const
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