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>
20#include <aws/core/utils/UUID.h>
40 inline virtual const char*
GetServiceRequestName()
const override {
return "RegisterTaskWithMaintenanceWindow"; }
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>
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>>
81 template<
typename TargetsT = Target>
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>
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>
142 template<
typename TaskParametersT = Aws::Map<Aws::String, Ma
intenanceWindowTaskParameterValueExpression>>
143 void SetTaskParameters(TaskParametersT&& value) { m_taskParametersHasBeenSet =
true; m_taskParameters = std::forward<TaskParametersT>(value); }
144 template<
typename TaskParametersT = Aws::Map<Aws::String, Ma
intenanceWindowTaskParameterValueExpression>>
146 template<
typename TaskParametersKeyT = Aws::String,
typename TaskParametersValueT = Ma
intenanceWindowTaskParameterValueExpression>
148 m_taskParametersHasBeenSet =
true; m_taskParameters.emplace(std::forward<TaskParametersKeyT>(key), std::forward<TaskParametersValueT>(value));
return *
this;
159 template<
typename TaskInvocationParametersT = Ma
intenanceWindowTaskInvocationParameters>
160 void SetTaskInvocationParameters(TaskInvocationParametersT&& value) { m_taskInvocationParametersHasBeenSet =
true; m_taskInvocationParameters = std::forward<TaskInvocationParametersT>(value); }
161 template<
typename TaskInvocationParametersT = Ma
intenanceWindowTaskInvocationParameters>
173 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
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>
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>
229 template<
typename LoggingInfoT = LoggingInfo>
230 void SetLoggingInfo(LoggingInfoT&& value) { m_loggingInfoHasBeenSet =
true; m_loggingInfo = std::forward<LoggingInfoT>(value); }
231 template<
typename LoggingInfoT = LoggingInfo>
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>
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>
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>
298 template<
typename AlarmConfigurationT = AlarmConfiguration>
299 void SetAlarmConfiguration(AlarmConfigurationT&& value) { m_alarmConfigurationHasBeenSet =
true; m_alarmConfiguration = std::forward<AlarmConfigurationT>(value); }
300 template<
typename AlarmConfigurationT = AlarmConfiguration>
306 bool m_windowIdHasBeenSet =
false;
309 bool m_targetsHasBeenSet =
false;
312 bool m_taskArnHasBeenSet =
false;
315 bool m_serviceRoleArnHasBeenSet =
false;
318 bool m_taskTypeHasBeenSet =
false;
321 bool m_taskParametersHasBeenSet =
false;
323 MaintenanceWindowTaskInvocationParameters m_taskInvocationParameters;
324 bool m_taskInvocationParametersHasBeenSet =
false;
327 bool m_priorityHasBeenSet =
false;
330 bool m_maxConcurrencyHasBeenSet =
false;
333 bool m_maxErrorsHasBeenSet =
false;
335 LoggingInfo m_loggingInfo;
336 bool m_loggingInfoHasBeenSet =
false;
339 bool m_nameHasBeenSet =
false;
342 bool m_descriptionHasBeenSet =
false;
345 bool m_clientTokenHasBeenSet =
true;
348 bool m_cutoffBehaviorHasBeenSet =
false;
350 AlarmConfiguration m_alarmConfiguration;
351 bool m_alarmConfigurationHasBeenSet =
false;
RegisterTaskWithMaintenanceWindowRequest & WithName(NameT &&value)
bool MaxConcurrencyHasBeenSet() const
const Aws::String & GetName() const
RegisterTaskWithMaintenanceWindowRequest & WithWindowId(WindowIdT &&value)
const Aws::Vector< Target > & GetTargets() const
RegisterTaskWithMaintenanceWindowRequest & AddTargets(TargetsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SSM_API Aws::String SerializePayload() const override
bool DescriptionHasBeenSet() const
RegisterTaskWithMaintenanceWindowRequest & WithAlarmConfiguration(AlarmConfigurationT &&value)
RegisterTaskWithMaintenanceWindowRequest & WithClientToken(ClientTokenT &&value)
void SetDescription(DescriptionT &&value)
const LoggingInfo & GetLoggingInfo() const
bool AlarmConfigurationHasBeenSet() const
const MaintenanceWindowTaskInvocationParameters & GetTaskInvocationParameters() const
void SetLoggingInfo(LoggingInfoT &&value)
RegisterTaskWithMaintenanceWindowRequest & WithMaxErrors(MaxErrorsT &&value)
RegisterTaskWithMaintenanceWindowRequest & WithTaskArn(TaskArnT &&value)
void SetAlarmConfiguration(AlarmConfigurationT &&value)
bool TaskArnHasBeenSet() const
const Aws::String & GetDescription() const
bool ServiceRoleArnHasBeenSet() const
void SetServiceRoleArn(ServiceRoleArnT &&value)
RegisterTaskWithMaintenanceWindowRequest & WithCutoffBehavior(MaintenanceWindowTaskCutoffBehavior value)
bool WindowIdHasBeenSet() const
void SetTaskType(MaintenanceWindowTaskType value)
MaintenanceWindowTaskCutoffBehavior GetCutoffBehavior() const
bool MaxErrorsHasBeenSet() const
MaintenanceWindowTaskType GetTaskType() const
void SetTaskArn(TaskArnT &&value)
const Aws::String & GetWindowId() const
void SetWindowId(WindowIdT &&value)
void SetCutoffBehavior(MaintenanceWindowTaskCutoffBehavior value)
bool PriorityHasBeenSet() const
bool ClientTokenHasBeenSet() const
void SetTargets(TargetsT &&value)
RegisterTaskWithMaintenanceWindowRequest & WithTaskInvocationParameters(TaskInvocationParametersT &&value)
const Aws::String & GetServiceRoleArn() const
RegisterTaskWithMaintenanceWindowRequest & WithDescription(DescriptionT &&value)
void SetMaxConcurrency(MaxConcurrencyT &&value)
AWS_SSM_API RegisterTaskWithMaintenanceWindowRequest()=default
RegisterTaskWithMaintenanceWindowRequest & WithTaskParameters(TaskParametersT &&value)
RegisterTaskWithMaintenanceWindowRequest & WithTaskType(MaintenanceWindowTaskType value)
const Aws::String & GetMaxConcurrency() const
const Aws::Map< Aws::String, MaintenanceWindowTaskParameterValueExpression > & GetTaskParameters() const
RegisterTaskWithMaintenanceWindowRequest & AddTaskParameters(TaskParametersKeyT &&key, TaskParametersValueT &&value)
const Aws::String & GetTaskArn() const
bool TaskTypeHasBeenSet() const
bool TaskParametersHasBeenSet() const
RegisterTaskWithMaintenanceWindowRequest & WithServiceRoleArn(ServiceRoleArnT &&value)
const AlarmConfiguration & GetAlarmConfiguration() const
void SetPriority(int value)
RegisterTaskWithMaintenanceWindowRequest & WithLoggingInfo(LoggingInfoT &&value)
void SetTaskParameters(TaskParametersT &&value)
bool CutoffBehaviorHasBeenSet() const
RegisterTaskWithMaintenanceWindowRequest & WithTargets(TargetsT &&value)
void SetMaxErrors(MaxErrorsT &&value)
const Aws::String & GetMaxErrors() const
void SetTaskInvocationParameters(TaskInvocationParametersT &&value)
bool TargetsHasBeenSet() const
RegisterTaskWithMaintenanceWindowRequest & WithMaxConcurrency(MaxConcurrencyT &&value)
void SetClientToken(ClientTokenT &&value)
RegisterTaskWithMaintenanceWindowRequest & WithPriority(int value)
bool NameHasBeenSet() const
bool TaskInvocationParametersHasBeenSet() const
const Aws::String & GetClientToken() const
void SetName(NameT &&value)
bool LoggingInfoHasBeenSet() const
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
MaintenanceWindowTaskCutoffBehavior
MaintenanceWindowTaskType
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