7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm/model/InstanceAssociationOutputLocation.h>
12#include <aws/ssm/model/AssociationComplianceSeverity.h>
13#include <aws/ssm/model/AssociationSyncCompliance.h>
14#include <aws/ssm/model/AlarmConfiguration.h>
15#include <aws/ssm/model/Target.h>
16#include <aws/ssm/model/TargetLocation.h>
66 template<
typename NameT = Aws::String>
67 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
68 template<
typename NameT = Aws::String>
87 template<
typename InstanceIdT = Aws::String>
88 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet =
true; m_instanceId = std::forward<InstanceIdT>(value); }
89 template<
typename InstanceIdT = Aws::String>
99 template<
typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
100 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet =
true; m_parameters = std::forward<ParametersT>(value); }
101 template<
typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
103 template<
typename ParametersKeyT = Aws::String,
typename ParametersValueT = Aws::Vector<Aws::String>>
105 m_parametersHasBeenSet =
true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
return *
this;
117 template<
typename AutomationTargetParameterNameT = Aws::String>
118 void SetAutomationTargetParameterName(AutomationTargetParameterNameT&& value) { m_automationTargetParameterNameHasBeenSet =
true; m_automationTargetParameterName = std::forward<AutomationTargetParameterNameT>(value); }
119 template<
typename AutomationTargetParameterNameT = Aws::String>
129 template<
typename DocumentVersionT = Aws::String>
130 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet =
true; m_documentVersion = std::forward<DocumentVersionT>(value); }
131 template<
typename DocumentVersionT = Aws::String>
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>
167 template<
typename OutputLocationT = InstanceAssociationOutputLocation>
168 void SetOutputLocation(OutputLocationT&& value) { m_outputLocationHasBeenSet =
true; m_outputLocation = std::forward<OutputLocationT>(value); }
169 template<
typename OutputLocationT = InstanceAssociationOutputLocation>
179 template<
typename AssociationNameT = Aws::String>
180 void SetAssociationName(AssociationNameT&& value) { m_associationNameHasBeenSet =
true; m_associationName = std::forward<AssociationNameT>(value); }
181 template<
typename AssociationNameT = Aws::String>
203 template<
typename MaxErrorsT = Aws::String>
204 void SetMaxErrors(MaxErrorsT&& value) { m_maxErrorsHasBeenSet =
true; m_maxErrors = std::forward<MaxErrorsT>(value); }
205 template<
typename MaxErrorsT = Aws::String>
222 template<
typename MaxConcurrencyT = Aws::String>
223 void SetMaxConcurrency(MaxConcurrencyT&& value) { m_maxConcurrencyHasBeenSet =
true; m_maxConcurrency = std::forward<MaxConcurrencyT>(value); }
224 template<
typename MaxConcurrencyT = Aws::String>
289 template<
typename CalendarNamesT = Aws::Vector<Aws::String>>
290 void SetCalendarNames(CalendarNamesT&& value) { m_calendarNamesHasBeenSet =
true; m_calendarNames = std::forward<CalendarNamesT>(value); }
291 template<
typename CalendarNamesT = Aws::Vector<Aws::String>>
293 template<
typename CalendarNamesT = Aws::String>
304 template<
typename TargetLocationsT = Aws::Vector<TargetLocation>>
305 void SetTargetLocations(TargetLocationsT&& value) { m_targetLocationsHasBeenSet =
true; m_targetLocations = std::forward<TargetLocationsT>(value); }
306 template<
typename TargetLocationsT = Aws::Vector<TargetLocation>>
308 template<
typename TargetLocationsT = TargetLocation>
318 inline void SetScheduleOffset(
int value) { m_scheduleOffsetHasBeenSet =
true; m_scheduleOffset = value; }
340 inline void SetDuration(
int value) { m_durationHasBeenSet =
true; m_duration = value; }
351 template<
typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
352 void SetTargetMaps(TargetMapsT&& value) { m_targetMapsHasBeenSet =
true; m_targetMaps = std::forward<TargetMapsT>(value); }
353 template<
typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
355 template<
typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
363 template<
typename AlarmConfigurationT = AlarmConfiguration>
364 void SetAlarmConfiguration(AlarmConfigurationT&& value) { m_alarmConfigurationHasBeenSet =
true; m_alarmConfiguration = std::forward<AlarmConfigurationT>(value); }
365 template<
typename AlarmConfigurationT = AlarmConfiguration>
371 bool m_nameHasBeenSet =
false;
374 bool m_instanceIdHasBeenSet =
false;
377 bool m_parametersHasBeenSet =
false;
380 bool m_automationTargetParameterNameHasBeenSet =
false;
383 bool m_documentVersionHasBeenSet =
false;
386 bool m_targetsHasBeenSet =
false;
389 bool m_scheduleExpressionHasBeenSet =
false;
392 bool m_outputLocationHasBeenSet =
false;
395 bool m_associationNameHasBeenSet =
false;
398 bool m_maxErrorsHasBeenSet =
false;
401 bool m_maxConcurrencyHasBeenSet =
false;
404 bool m_complianceSeverityHasBeenSet =
false;
407 bool m_syncComplianceHasBeenSet =
false;
409 bool m_applyOnlyAtCronInterval{
false};
410 bool m_applyOnlyAtCronIntervalHasBeenSet =
false;
413 bool m_calendarNamesHasBeenSet =
false;
416 bool m_targetLocationsHasBeenSet =
false;
418 int m_scheduleOffset{0};
419 bool m_scheduleOffsetHasBeenSet =
false;
422 bool m_durationHasBeenSet =
false;
425 bool m_targetMapsHasBeenSet =
false;
427 AlarmConfiguration m_alarmConfiguration;
428 bool m_alarmConfigurationHasBeenSet =
false;
bool ApplyOnlyAtCronIntervalHasBeenSet() const
void SetMaxConcurrency(MaxConcurrencyT &&value)
bool GetApplyOnlyAtCronInterval() const
bool AssociationNameHasBeenSet() const
void SetSyncCompliance(AssociationSyncCompliance value)
CreateAssociationBatchRequestEntry & WithName(NameT &&value)
AssociationSyncCompliance GetSyncCompliance() const
void SetAssociationName(AssociationNameT &&value)
CreateAssociationBatchRequestEntry & WithParameters(ParametersT &&value)
CreateAssociationBatchRequestEntry & WithInstanceId(InstanceIdT &&value)
void SetTargets(TargetsT &&value)
CreateAssociationBatchRequestEntry & WithOutputLocation(OutputLocationT &&value)
bool AlarmConfigurationHasBeenSet() const
bool OutputLocationHasBeenSet() const
CreateAssociationBatchRequestEntry & WithApplyOnlyAtCronInterval(bool value)
bool MaxConcurrencyHasBeenSet() const
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetScheduleExpression(ScheduleExpressionT &&value)
CreateAssociationBatchRequestEntry & AddTargetLocations(TargetLocationsT &&value)
CreateAssociationBatchRequestEntry & WithScheduleExpression(ScheduleExpressionT &&value)
CreateAssociationBatchRequestEntry & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
CreateAssociationBatchRequestEntry & WithAutomationTargetParameterName(AutomationTargetParameterNameT &&value)
bool SyncComplianceHasBeenSet() const
void SetDocumentVersion(DocumentVersionT &&value)
bool ComplianceSeverityHasBeenSet() const
void SetDuration(int value)
CreateAssociationBatchRequestEntry & WithTargets(TargetsT &&value)
CreateAssociationBatchRequestEntry & WithScheduleOffset(int value)
void SetMaxErrors(MaxErrorsT &&value)
const Aws::String & GetScheduleExpression() const
bool MaxErrorsHasBeenSet() const
CreateAssociationBatchRequestEntry & AddTargets(TargetsT &&value)
const Aws::String & GetAssociationName() const
void SetName(NameT &&value)
bool DocumentVersionHasBeenSet() const
AssociationComplianceSeverity GetComplianceSeverity() const
void SetAlarmConfiguration(AlarmConfigurationT &&value)
bool AutomationTargetParameterNameHasBeenSet() const
void SetCalendarNames(CalendarNamesT &&value)
CreateAssociationBatchRequestEntry & WithComplianceSeverity(AssociationComplianceSeverity value)
const AlarmConfiguration & GetAlarmConfiguration() const
void SetInstanceId(InstanceIdT &&value)
CreateAssociationBatchRequestEntry & WithTargetMaps(TargetMapsT &&value)
const InstanceAssociationOutputLocation & GetOutputLocation() const
void SetComplianceSeverity(AssociationComplianceSeverity value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
AWS_SSM_API CreateAssociationBatchRequestEntry(Aws::Utils::Json::JsonView jsonValue)
void SetTargetMaps(TargetMapsT &&value)
bool ScheduleOffsetHasBeenSet() const
CreateAssociationBatchRequestEntry & WithMaxErrors(MaxErrorsT &&value)
CreateAssociationBatchRequestEntry & WithAlarmConfiguration(AlarmConfigurationT &&value)
CreateAssociationBatchRequestEntry & WithDocumentVersion(DocumentVersionT &&value)
CreateAssociationBatchRequestEntry & WithTargetLocations(TargetLocationsT &&value)
CreateAssociationBatchRequestEntry & WithCalendarNames(CalendarNamesT &&value)
int GetScheduleOffset() const
bool ParametersHasBeenSet() const
bool InstanceIdHasBeenSet() const
void SetApplyOnlyAtCronInterval(bool value)
const Aws::String & GetName() const
bool ScheduleExpressionHasBeenSet() const
const Aws::String & GetInstanceId() const
bool TargetsHasBeenSet() const
bool TargetLocationsHasBeenSet() const
void SetScheduleOffset(int value)
bool NameHasBeenSet() const
AWS_SSM_API CreateAssociationBatchRequestEntry()=default
const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > & GetTargetMaps() const
const Aws::Vector< Target > & GetTargets() const
CreateAssociationBatchRequestEntry & WithAssociationName(AssociationNameT &&value)
void SetOutputLocation(OutputLocationT &&value)
bool TargetMapsHasBeenSet() const
bool DurationHasBeenSet() const
void SetParameters(ParametersT &&value)
void SetAutomationTargetParameterName(AutomationTargetParameterNameT &&value)
const Aws::String & GetAutomationTargetParameterName() const
bool CalendarNamesHasBeenSet() const
AWS_SSM_API CreateAssociationBatchRequestEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDocumentVersion() const
CreateAssociationBatchRequestEntry & WithMaxConcurrency(MaxConcurrencyT &&value)
CreateAssociationBatchRequestEntry & WithDuration(int value)
const Aws::Vector< Aws::String > & GetCalendarNames() const
const Aws::String & GetMaxConcurrency() const
CreateAssociationBatchRequestEntry & WithSyncCompliance(AssociationSyncCompliance value)
CreateAssociationBatchRequestEntry & AddCalendarNames(CalendarNamesT &&value)
const Aws::Vector< TargetLocation > & GetTargetLocations() const
void SetTargetLocations(TargetLocationsT &&value)
CreateAssociationBatchRequestEntry & AddTargetMaps(TargetMapsT &&value)
const Aws::String & GetMaxErrors() const
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
Aws::Utils::Json::JsonValue JsonValue