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/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ssm/model/InstanceAssociationOutputLocation.h>
13#include <aws/ssm/model/AssociationComplianceSeverity.h>
14#include <aws/ssm/model/AssociationSyncCompliance.h>
15#include <aws/ssm/model/AlarmConfiguration.h>
16#include <aws/ssm/model/Target.h>
17#include <aws/ssm/model/TargetLocation.h>
18#include <aws/ssm/model/Tag.h>
64 template<
typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
66 template<
typename NameT = Aws::String>
84 template<
typename DocumentVersionT = Aws::String>
85 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet =
true; m_documentVersion = std::forward<DocumentVersionT>(value); }
86 template<
typename DocumentVersionT = Aws::String>
105 template<
typename InstanceIdT = Aws::String>
106 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet =
true; m_instanceId = std::forward<InstanceIdT>(value); }
107 template<
typename InstanceIdT = Aws::String>
117 template<
typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
118 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet =
true; m_parameters = std::forward<ParametersT>(value); }
119 template<
typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
121 template<
typename ParametersKeyT = Aws::String,
typename ParametersValueT = Aws::Vector<Aws::String>>
123 m_parametersHasBeenSet =
true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
return *
this;
141 template<
typename TargetsT = Aws::Vector<Target>>
142 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet =
true; m_targets = std::forward<TargetsT>(value); }
143 template<
typename TargetsT = Aws::Vector<Target>>
145 template<
typename TargetsT = Target>
155 template<
typename ScheduleExpressionT = Aws::String>
156 void SetScheduleExpression(ScheduleExpressionT&& value) { m_scheduleExpressionHasBeenSet =
true; m_scheduleExpression = std::forward<ScheduleExpressionT>(value); }
157 template<
typename ScheduleExpressionT = Aws::String>
168 template<
typename OutputLocationT = InstanceAssociationOutputLocation>
169 void SetOutputLocation(OutputLocationT&& value) { m_outputLocationHasBeenSet =
true; m_outputLocation = std::forward<OutputLocationT>(value); }
170 template<
typename OutputLocationT = InstanceAssociationOutputLocation>
180 template<
typename AssociationNameT = Aws::String>
181 void SetAssociationName(AssociationNameT&& value) { m_associationNameHasBeenSet =
true; m_associationName = std::forward<AssociationNameT>(value); }
182 template<
typename AssociationNameT = Aws::String>
195 template<
typename AutomationTargetParameterNameT = Aws::String>
196 void SetAutomationTargetParameterName(AutomationTargetParameterNameT&& value) { m_automationTargetParameterNameHasBeenSet =
true; m_automationTargetParameterName = std::forward<AutomationTargetParameterNameT>(value); }
197 template<
typename AutomationTargetParameterNameT = Aws::String>
219 template<
typename MaxErrorsT = Aws::String>
220 void SetMaxErrors(MaxErrorsT&& value) { m_maxErrorsHasBeenSet =
true; m_maxErrors = std::forward<MaxErrorsT>(value); }
221 template<
typename MaxErrorsT = Aws::String>
238 template<
typename MaxConcurrencyT = Aws::String>
239 void SetMaxConcurrency(MaxConcurrencyT&& value) { m_maxConcurrencyHasBeenSet =
true; m_maxConcurrency = std::forward<MaxConcurrencyT>(value); }
240 template<
typename MaxConcurrencyT = Aws::String>
305 template<
typename CalendarNamesT = Aws::Vector<Aws::String>>
306 void SetCalendarNames(CalendarNamesT&& value) { m_calendarNamesHasBeenSet =
true; m_calendarNames = std::forward<CalendarNamesT>(value); }
307 template<
typename CalendarNamesT = Aws::Vector<Aws::String>>
309 template<
typename CalendarNamesT = Aws::String>
321 template<
typename TargetLocationsT = Aws::Vector<TargetLocation>>
322 void SetTargetLocations(TargetLocationsT&& value) { m_targetLocationsHasBeenSet =
true; m_targetLocations = std::forward<TargetLocationsT>(value); }
323 template<
typename TargetLocationsT = Aws::Vector<TargetLocation>>
325 template<
typename TargetLocationsT = TargetLocation>
344 inline void SetScheduleOffset(
int value) { m_scheduleOffsetHasBeenSet =
true; m_scheduleOffset = value; }
366 inline void SetDuration(
int value) { m_durationHasBeenSet =
true; m_duration = value; }
377 template<
typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
378 void SetTargetMaps(TargetMapsT&& value) { m_targetMapsHasBeenSet =
true; m_targetMaps = std::forward<TargetMapsT>(value); }
379 template<
typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
381 template<
typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
395 template<
typename TagsT = Aws::Vector<Tag>>
396 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
397 template<
typename TagsT = Aws::Vector<Tag>>
399 template<
typename TagsT = Tag>
407 template<
typename AlarmConfigurationT = AlarmConfiguration>
408 void SetAlarmConfiguration(AlarmConfigurationT&& value) { m_alarmConfigurationHasBeenSet =
true; m_alarmConfiguration = std::forward<AlarmConfigurationT>(value); }
409 template<
typename AlarmConfigurationT = AlarmConfiguration>
415 bool m_nameHasBeenSet =
false;
418 bool m_documentVersionHasBeenSet =
false;
421 bool m_instanceIdHasBeenSet =
false;
424 bool m_parametersHasBeenSet =
false;
427 bool m_targetsHasBeenSet =
false;
430 bool m_scheduleExpressionHasBeenSet =
false;
433 bool m_outputLocationHasBeenSet =
false;
436 bool m_associationNameHasBeenSet =
false;
439 bool m_automationTargetParameterNameHasBeenSet =
false;
442 bool m_maxErrorsHasBeenSet =
false;
445 bool m_maxConcurrencyHasBeenSet =
false;
448 bool m_complianceSeverityHasBeenSet =
false;
451 bool m_syncComplianceHasBeenSet =
false;
453 bool m_applyOnlyAtCronInterval{
false};
454 bool m_applyOnlyAtCronIntervalHasBeenSet =
false;
457 bool m_calendarNamesHasBeenSet =
false;
460 bool m_targetLocationsHasBeenSet =
false;
462 int m_scheduleOffset{0};
463 bool m_scheduleOffsetHasBeenSet =
false;
466 bool m_durationHasBeenSet =
false;
469 bool m_targetMapsHasBeenSet =
false;
472 bool m_tagsHasBeenSet =
false;
474 AlarmConfiguration m_alarmConfiguration;
475 bool m_alarmConfigurationHasBeenSet =
false;
void SetOutputLocation(OutputLocationT &&value)
CreateAssociationRequest & WithMaxErrors(MaxErrorsT &&value)
void SetTags(TagsT &&value)
bool CalendarNamesHasBeenSet() const
const InstanceAssociationOutputLocation & GetOutputLocation() const
CreateAssociationRequest & WithAssociationName(AssociationNameT &&value)
void SetInstanceId(InstanceIdT &&value)
void SetParameters(ParametersT &&value)
const Aws::Vector< TargetLocation > & GetTargetLocations() const
void SetTargetLocations(TargetLocationsT &&value)
CreateAssociationRequest & WithDocumentVersion(DocumentVersionT &&value)
const Aws::Vector< Target > & GetTargets() const
bool InstanceIdHasBeenSet() const
const Aws::String & GetName() const
bool ScheduleOffsetHasBeenSet() const
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
bool NameHasBeenSet() const
const Aws::Vector< Aws::String > & GetCalendarNames() const
bool ComplianceSeverityHasBeenSet() const
CreateAssociationRequest & WithComplianceSeverity(AssociationComplianceSeverity value)
CreateAssociationRequest & WithParameters(ParametersT &&value)
CreateAssociationRequest & AddTargetMaps(TargetMapsT &&value)
const Aws::String & GetAutomationTargetParameterName() const
bool SyncComplianceHasBeenSet() const
CreateAssociationRequest & WithDuration(int value)
const Aws::Vector< Tag > & GetTags() const
void SetSyncCompliance(AssociationSyncCompliance value)
CreateAssociationRequest & WithOutputLocation(OutputLocationT &&value)
void SetTargets(TargetsT &&value)
bool ParametersHasBeenSet() const
void SetScheduleExpression(ScheduleExpressionT &&value)
void SetDuration(int value)
bool DurationHasBeenSet() const
const Aws::String & GetMaxConcurrency() const
const AlarmConfiguration & GetAlarmConfiguration() const
CreateAssociationRequest & WithInstanceId(InstanceIdT &&value)
CreateAssociationRequest & WithApplyOnlyAtCronInterval(bool value)
CreateAssociationRequest & WithScheduleExpression(ScheduleExpressionT &&value)
bool ScheduleExpressionHasBeenSet() const
const Aws::String & GetDocumentVersion() const
const Aws::String & GetInstanceId() const
void SetTargetMaps(TargetMapsT &&value)
bool GetApplyOnlyAtCronInterval() const
CreateAssociationRequest & WithMaxConcurrency(MaxConcurrencyT &&value)
void SetScheduleOffset(int value)
CreateAssociationRequest & WithTargets(TargetsT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
bool AssociationNameHasBeenSet() const
void SetAutomationTargetParameterName(AutomationTargetParameterNameT &&value)
const Aws::String & GetScheduleExpression() const
CreateAssociationRequest & WithTargetMaps(TargetMapsT &&value)
CreateAssociationRequest & AddTargetLocations(TargetLocationsT &&value)
CreateAssociationRequest & WithName(NameT &&value)
CreateAssociationRequest & WithAutomationTargetParameterName(AutomationTargetParameterNameT &&value)
bool TagsHasBeenSet() const
bool OutputLocationHasBeenSet() const
CreateAssociationRequest & AddCalendarNames(CalendarNamesT &&value)
CreateAssociationRequest & WithScheduleOffset(int value)
bool ApplyOnlyAtCronIntervalHasBeenSet() const
CreateAssociationRequest & WithAlarmConfiguration(AlarmConfigurationT &&value)
const Aws::String & GetAssociationName() const
CreateAssociationRequest & WithTags(TagsT &&value)
void SetComplianceSeverity(AssociationComplianceSeverity value)
CreateAssociationRequest & AddTags(TagsT &&value)
AssociationComplianceSeverity GetComplianceSeverity() const
AWS_SSM_API CreateAssociationRequest()=default
void SetAssociationName(AssociationNameT &&value)
bool MaxConcurrencyHasBeenSet() const
void SetMaxConcurrency(MaxConcurrencyT &&value)
CreateAssociationRequest & WithCalendarNames(CalendarNamesT &&value)
CreateAssociationRequest & WithTargetLocations(TargetLocationsT &&value)
void SetCalendarNames(CalendarNamesT &&value)
bool TargetsHasBeenSet() const
void SetAlarmConfiguration(AlarmConfigurationT &&value)
bool AutomationTargetParameterNameHasBeenSet() const
const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > & GetTargetMaps() const
void SetMaxErrors(MaxErrorsT &&value)
bool AlarmConfigurationHasBeenSet() const
bool DocumentVersionHasBeenSet() const
const Aws::String & GetMaxErrors() const
int GetScheduleOffset() const
void SetDocumentVersion(DocumentVersionT &&value)
bool MaxErrorsHasBeenSet() const
virtual const char * GetServiceRequestName() const override
void SetApplyOnlyAtCronInterval(bool value)
void SetName(NameT &&value)
CreateAssociationRequest & WithSyncCompliance(AssociationSyncCompliance value)
AssociationSyncCompliance GetSyncCompliance() const
bool TargetMapsHasBeenSet() const
CreateAssociationRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
CreateAssociationRequest & AddTargets(TargetsT &&value)
bool TargetLocationsHasBeenSet() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
AssociationSyncCompliance
AssociationComplianceSeverity
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