AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
42
43
45
48 inline const Aws::String& GetWindowId() const{ return m_windowId; }
49 inline void SetWindowId(const Aws::String& value) { m_windowId = value; }
50 inline void SetWindowId(Aws::String&& value) { m_windowId = std::move(value); }
51 inline void SetWindowId(const char* value) { m_windowId.assign(value); }
52 inline GetMaintenanceWindowTaskResult& WithWindowId(const Aws::String& value) { SetWindowId(value); return *this;}
53 inline GetMaintenanceWindowTaskResult& WithWindowId(Aws::String&& value) { SetWindowId(std::move(value)); return *this;}
54 inline GetMaintenanceWindowTaskResult& WithWindowId(const char* value) { SetWindowId(value); return *this;}
56
58
61 inline const Aws::String& GetWindowTaskId() const{ return m_windowTaskId; }
62 inline void SetWindowTaskId(const Aws::String& value) { m_windowTaskId = value; }
63 inline void SetWindowTaskId(Aws::String&& value) { m_windowTaskId = std::move(value); }
64 inline void SetWindowTaskId(const char* value) { m_windowTaskId.assign(value); }
65 inline GetMaintenanceWindowTaskResult& WithWindowTaskId(const Aws::String& value) { SetWindowTaskId(value); return *this;}
66 inline GetMaintenanceWindowTaskResult& WithWindowTaskId(Aws::String&& value) { SetWindowTaskId(std::move(value)); return *this;}
67 inline GetMaintenanceWindowTaskResult& WithWindowTaskId(const char* value) { SetWindowTaskId(value); return *this;}
69
71
74 inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
75 inline void SetTargets(const Aws::Vector<Target>& value) { m_targets = value; }
76 inline void SetTargets(Aws::Vector<Target>&& value) { m_targets = std::move(value); }
77 inline GetMaintenanceWindowTaskResult& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
78 inline GetMaintenanceWindowTaskResult& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
79 inline GetMaintenanceWindowTaskResult& AddTargets(const Target& value) { m_targets.push_back(value); return *this; }
80 inline GetMaintenanceWindowTaskResult& AddTargets(Target&& value) { m_targets.push_back(std::move(value)); return *this; }
82
84
91 inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
92 inline void SetTaskArn(const Aws::String& value) { m_taskArn = value; }
93 inline void SetTaskArn(Aws::String&& value) { m_taskArn = std::move(value); }
94 inline void SetTaskArn(const char* value) { m_taskArn.assign(value); }
95 inline GetMaintenanceWindowTaskResult& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
96 inline GetMaintenanceWindowTaskResult& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
97 inline GetMaintenanceWindowTaskResult& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
99
101
116 inline const Aws::String& GetServiceRoleArn() const{ return m_serviceRoleArn; }
117 inline void SetServiceRoleArn(const Aws::String& value) { m_serviceRoleArn = value; }
118 inline void SetServiceRoleArn(Aws::String&& value) { m_serviceRoleArn = std::move(value); }
119 inline void SetServiceRoleArn(const char* value) { m_serviceRoleArn.assign(value); }
121 inline GetMaintenanceWindowTaskResult& WithServiceRoleArn(Aws::String&& value) { SetServiceRoleArn(std::move(value)); return *this;}
122 inline GetMaintenanceWindowTaskResult& WithServiceRoleArn(const char* value) { SetServiceRoleArn(value); return *this;}
124
126
129 inline const MaintenanceWindowTaskType& GetTaskType() const{ return m_taskType; }
130 inline void SetTaskType(const MaintenanceWindowTaskType& value) { m_taskType = value; }
131 inline void SetTaskType(MaintenanceWindowTaskType&& value) { m_taskType = std::move(value); }
133 inline GetMaintenanceWindowTaskResult& WithTaskType(MaintenanceWindowTaskType&& value) { SetTaskType(std::move(value)); return *this;}
135
137
147 inline void SetTaskParameters(Aws::Map<Aws::String, MaintenanceWindowTaskParameterValueExpression>&& value) { m_taskParameters = std::move(value); }
150 inline GetMaintenanceWindowTaskResult& AddTaskParameters(const Aws::String& key, const MaintenanceWindowTaskParameterValueExpression& value) { m_taskParameters.emplace(key, value); return *this; }
151 inline GetMaintenanceWindowTaskResult& AddTaskParameters(Aws::String&& key, const MaintenanceWindowTaskParameterValueExpression& value) { m_taskParameters.emplace(std::move(key), value); return *this; }
152 inline GetMaintenanceWindowTaskResult& AddTaskParameters(const Aws::String& key, MaintenanceWindowTaskParameterValueExpression&& value) { m_taskParameters.emplace(key, std::move(value)); return *this; }
153 inline GetMaintenanceWindowTaskResult& AddTaskParameters(Aws::String&& key, MaintenanceWindowTaskParameterValueExpression&& value) { m_taskParameters.emplace(std::move(key), std::move(value)); return *this; }
154 inline GetMaintenanceWindowTaskResult& AddTaskParameters(const char* key, MaintenanceWindowTaskParameterValueExpression&& value) { m_taskParameters.emplace(key, std::move(value)); return *this; }
155 inline GetMaintenanceWindowTaskResult& AddTaskParameters(const char* key, const MaintenanceWindowTaskParameterValueExpression& value) { m_taskParameters.emplace(key, value); return *this; }
157
159
162 inline const MaintenanceWindowTaskInvocationParameters& GetTaskInvocationParameters() const{ return m_taskInvocationParameters; }
163 inline void SetTaskInvocationParameters(const MaintenanceWindowTaskInvocationParameters& value) { m_taskInvocationParameters = value; }
164 inline void SetTaskInvocationParameters(MaintenanceWindowTaskInvocationParameters&& value) { m_taskInvocationParameters = std::move(value); }
168
170
174 inline int GetPriority() const{ return m_priority; }
175 inline void SetPriority(int value) { m_priority = value; }
176 inline GetMaintenanceWindowTaskResult& WithPriority(int value) { SetPriority(value); return *this;}
178
180
187 inline const Aws::String& GetMaxConcurrency() const{ return m_maxConcurrency; }
188 inline void SetMaxConcurrency(const Aws::String& value) { m_maxConcurrency = value; }
189 inline void SetMaxConcurrency(Aws::String&& value) { m_maxConcurrency = std::move(value); }
190 inline void SetMaxConcurrency(const char* value) { m_maxConcurrency.assign(value); }
192 inline GetMaintenanceWindowTaskResult& WithMaxConcurrency(Aws::String&& value) { SetMaxConcurrency(std::move(value)); return *this;}
193 inline GetMaintenanceWindowTaskResult& WithMaxConcurrency(const char* value) { SetMaxConcurrency(value); return *this;}
195
197
205 inline const Aws::String& GetMaxErrors() const{ return m_maxErrors; }
206 inline void SetMaxErrors(const Aws::String& value) { m_maxErrors = value; }
207 inline void SetMaxErrors(Aws::String&& value) { m_maxErrors = std::move(value); }
208 inline void SetMaxErrors(const char* value) { m_maxErrors.assign(value); }
209 inline GetMaintenanceWindowTaskResult& WithMaxErrors(const Aws::String& value) { SetMaxErrors(value); return *this;}
210 inline GetMaintenanceWindowTaskResult& WithMaxErrors(Aws::String&& value) { SetMaxErrors(std::move(value)); return *this;}
211 inline GetMaintenanceWindowTaskResult& WithMaxErrors(const char* value) { SetMaxErrors(value); return *this;}
213
215
226 inline const LoggingInfo& GetLoggingInfo() const{ return m_loggingInfo; }
227 inline void SetLoggingInfo(const LoggingInfo& value) { m_loggingInfo = value; }
228 inline void SetLoggingInfo(LoggingInfo&& value) { m_loggingInfo = std::move(value); }
229 inline GetMaintenanceWindowTaskResult& WithLoggingInfo(const LoggingInfo& value) { SetLoggingInfo(value); return *this;}
230 inline GetMaintenanceWindowTaskResult& WithLoggingInfo(LoggingInfo&& value) { SetLoggingInfo(std::move(value)); return *this;}
232
234
237 inline const Aws::String& GetName() const{ return m_name; }
238 inline void SetName(const Aws::String& value) { m_name = value; }
239 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
240 inline void SetName(const char* value) { m_name.assign(value); }
241 inline GetMaintenanceWindowTaskResult& WithName(const Aws::String& value) { SetName(value); return *this;}
242 inline GetMaintenanceWindowTaskResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
243 inline GetMaintenanceWindowTaskResult& WithName(const char* value) { SetName(value); return *this;}
245
247
250 inline const Aws::String& GetDescription() const{ return m_description; }
251 inline void SetDescription(const Aws::String& value) { m_description = value; }
252 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
253 inline void SetDescription(const char* value) { m_description.assign(value); }
254 inline GetMaintenanceWindowTaskResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
255 inline GetMaintenanceWindowTaskResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
256 inline GetMaintenanceWindowTaskResult& WithDescription(const char* value) { SetDescription(value); return *this;}
258
260
268 inline const MaintenanceWindowTaskCutoffBehavior& GetCutoffBehavior() const{ return m_cutoffBehavior; }
269 inline void SetCutoffBehavior(const MaintenanceWindowTaskCutoffBehavior& value) { m_cutoffBehavior = value; }
270 inline void SetCutoffBehavior(MaintenanceWindowTaskCutoffBehavior&& value) { m_cutoffBehavior = std::move(value); }
274
276
280 inline const AlarmConfiguration& GetAlarmConfiguration() const{ return m_alarmConfiguration; }
281 inline void SetAlarmConfiguration(const AlarmConfiguration& value) { m_alarmConfiguration = value; }
282 inline void SetAlarmConfiguration(AlarmConfiguration&& value) { m_alarmConfiguration = std::move(value); }
286
288
289 inline const Aws::String& GetRequestId() const{ return m_requestId; }
290 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
291 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
292 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
293 inline GetMaintenanceWindowTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
294 inline GetMaintenanceWindowTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
295 inline GetMaintenanceWindowTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
297 private:
298
299 Aws::String m_windowId;
300
301 Aws::String m_windowTaskId;
302
303 Aws::Vector<Target> m_targets;
304
305 Aws::String m_taskArn;
306
307 Aws::String m_serviceRoleArn;
308
309 MaintenanceWindowTaskType m_taskType;
310
312
313 MaintenanceWindowTaskInvocationParameters m_taskInvocationParameters;
314
315 int m_priority;
316
317 Aws::String m_maxConcurrency;
318
319 Aws::String m_maxErrors;
320
321 LoggingInfo m_loggingInfo;
322
323 Aws::String m_name;
324
325 Aws::String m_description;
326
328
329 AlarmConfiguration m_alarmConfiguration;
330
331 Aws::String m_requestId;
332 };
333
334} // namespace Model
335} // namespace SSM
336} // namespace Aws
GetMaintenanceWindowTaskResult & AddTaskParameters(const char *key, MaintenanceWindowTaskParameterValueExpression &&value)
GetMaintenanceWindowTaskResult & WithCutoffBehavior(MaintenanceWindowTaskCutoffBehavior &&value)
GetMaintenanceWindowTaskResult & WithWindowId(Aws::String &&value)
GetMaintenanceWindowTaskResult & WithDescription(Aws::String &&value)
GetMaintenanceWindowTaskResult & AddTaskParameters(const Aws::String &key, const MaintenanceWindowTaskParameterValueExpression &value)
GetMaintenanceWindowTaskResult & AddTaskParameters(const char *key, const MaintenanceWindowTaskParameterValueExpression &value)
GetMaintenanceWindowTaskResult & WithRequestId(const char *value)
GetMaintenanceWindowTaskResult & WithAlarmConfiguration(const AlarmConfiguration &value)
const MaintenanceWindowTaskCutoffBehavior & GetCutoffBehavior() const
GetMaintenanceWindowTaskResult & WithServiceRoleArn(Aws::String &&value)
GetMaintenanceWindowTaskResult & WithTaskArn(const Aws::String &value)
GetMaintenanceWindowTaskResult & WithWindowId(const Aws::String &value)
const Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > & GetTaskParameters() const
GetMaintenanceWindowTaskResult & WithWindowTaskId(Aws::String &&value)
void SetTaskInvocationParameters(const MaintenanceWindowTaskInvocationParameters &value)
AWS_SSM_API GetMaintenanceWindowTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMaintenanceWindowTaskResult & WithServiceRoleArn(const Aws::String &value)
void SetTaskInvocationParameters(MaintenanceWindowTaskInvocationParameters &&value)
GetMaintenanceWindowTaskResult & WithTaskInvocationParameters(const MaintenanceWindowTaskInvocationParameters &value)
GetMaintenanceWindowTaskResult & WithTaskInvocationParameters(MaintenanceWindowTaskInvocationParameters &&value)
void SetTaskParameters(Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > &&value)
GetMaintenanceWindowTaskResult & WithName(const char *value)
GetMaintenanceWindowTaskResult & WithDescription(const Aws::String &value)
GetMaintenanceWindowTaskResult & WithTaskParameters(const Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > &value)
GetMaintenanceWindowTaskResult & WithAlarmConfiguration(AlarmConfiguration &&value)
GetMaintenanceWindowTaskResult & WithLoggingInfo(LoggingInfo &&value)
GetMaintenanceWindowTaskResult & WithWindowTaskId(const char *value)
AWS_SSM_API GetMaintenanceWindowTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetTaskParameters(const Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > &value)
GetMaintenanceWindowTaskResult & WithName(Aws::String &&value)
GetMaintenanceWindowTaskResult & WithTaskArn(const char *value)
GetMaintenanceWindowTaskResult & WithLoggingInfo(const LoggingInfo &value)
GetMaintenanceWindowTaskResult & WithTargets(const Aws::Vector< Target > &value)
GetMaintenanceWindowTaskResult & AddTaskParameters(const Aws::String &key, MaintenanceWindowTaskParameterValueExpression &&value)
GetMaintenanceWindowTaskResult & WithPriority(int value)
GetMaintenanceWindowTaskResult & WithTaskParameters(Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > &&value)
GetMaintenanceWindowTaskResult & WithMaxErrors(Aws::String &&value)
void SetTaskType(const MaintenanceWindowTaskType &value)
GetMaintenanceWindowTaskResult & WithMaxConcurrency(const char *value)
GetMaintenanceWindowTaskResult & WithName(const Aws::String &value)
GetMaintenanceWindowTaskResult & WithRequestId(const Aws::String &value)
GetMaintenanceWindowTaskResult & WithTaskType(MaintenanceWindowTaskType &&value)
GetMaintenanceWindowTaskResult & WithMaxConcurrency(const Aws::String &value)
GetMaintenanceWindowTaskResult & WithCutoffBehavior(const MaintenanceWindowTaskCutoffBehavior &value)
void SetCutoffBehavior(const MaintenanceWindowTaskCutoffBehavior &value)
GetMaintenanceWindowTaskResult & WithDescription(const char *value)
GetMaintenanceWindowTaskResult & WithTaskArn(Aws::String &&value)
GetMaintenanceWindowTaskResult & AddTaskParameters(Aws::String &&key, MaintenanceWindowTaskParameterValueExpression &&value)
void SetCutoffBehavior(MaintenanceWindowTaskCutoffBehavior &&value)
GetMaintenanceWindowTaskResult & WithWindowTaskId(const Aws::String &value)
GetMaintenanceWindowTaskResult & WithRequestId(Aws::String &&value)
GetMaintenanceWindowTaskResult & AddTargets(Target &&value)
GetMaintenanceWindowTaskResult & WithWindowId(const char *value)
GetMaintenanceWindowTaskResult & AddTargets(const Target &value)
const MaintenanceWindowTaskType & GetTaskType() const
GetMaintenanceWindowTaskResult & WithTaskType(const MaintenanceWindowTaskType &value)
const MaintenanceWindowTaskInvocationParameters & GetTaskInvocationParameters() const
GetMaintenanceWindowTaskResult & WithMaxErrors(const char *value)
GetMaintenanceWindowTaskResult & WithTargets(Aws::Vector< Target > &&value)
GetMaintenanceWindowTaskResult & AddTaskParameters(Aws::String &&key, const MaintenanceWindowTaskParameterValueExpression &value)
GetMaintenanceWindowTaskResult & WithServiceRoleArn(const char *value)
GetMaintenanceWindowTaskResult & WithMaxErrors(const Aws::String &value)
GetMaintenanceWindowTaskResult & WithMaxConcurrency(Aws::String &&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