AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAssociationBatchRequestEntry.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/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>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace SSM
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_SSM_API CreateAssociationBatchRequestEntry() = default;
47
48
50
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
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>
69 CreateAssociationBatchRequestEntry& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
71
73
85 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
86 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
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>
90 CreateAssociationBatchRequestEntry& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
92
94
97 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const { return m_parameters; }
98 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
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>>>
102 CreateAssociationBatchRequestEntry& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
103 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
104 CreateAssociationBatchRequestEntry& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
105 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
106 }
108
110
115 inline const Aws::String& GetAutomationTargetParameterName() const { return m_automationTargetParameterName; }
116 inline bool AutomationTargetParameterNameHasBeenSet() const { return m_automationTargetParameterNameHasBeenSet; }
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>
120 CreateAssociationBatchRequestEntry& WithAutomationTargetParameterName(AutomationTargetParameterNameT&& value) { SetAutomationTargetParameterName(std::forward<AutomationTargetParameterNameT>(value)); return *this;}
122
124
127 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
128 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
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>
132 CreateAssociationBatchRequestEntry& WithDocumentVersion(DocumentVersionT&& value) { SetDocumentVersion(std::forward<DocumentVersionT>(value)); return *this;}
134
136
139 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
140 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
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>>
144 CreateAssociationBatchRequestEntry& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
145 template<typename TargetsT = Target>
146 CreateAssociationBatchRequestEntry& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
148
150
153 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
154 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
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>
158 CreateAssociationBatchRequestEntry& WithScheduleExpression(ScheduleExpressionT&& value) { SetScheduleExpression(std::forward<ScheduleExpressionT>(value)); return *this;}
160
162
165 inline const InstanceAssociationOutputLocation& GetOutputLocation() const { return m_outputLocation; }
166 inline bool OutputLocationHasBeenSet() const { return m_outputLocationHasBeenSet; }
167 template<typename OutputLocationT = InstanceAssociationOutputLocation>
168 void SetOutputLocation(OutputLocationT&& value) { m_outputLocationHasBeenSet = true; m_outputLocation = std::forward<OutputLocationT>(value); }
169 template<typename OutputLocationT = InstanceAssociationOutputLocation>
170 CreateAssociationBatchRequestEntry& WithOutputLocation(OutputLocationT&& value) { SetOutputLocation(std::forward<OutputLocationT>(value)); return *this;}
172
174
177 inline const Aws::String& GetAssociationName() const { return m_associationName; }
178 inline bool AssociationNameHasBeenSet() const { return m_associationNameHasBeenSet; }
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>
182 CreateAssociationBatchRequestEntry& WithAssociationName(AssociationNameT&& value) { SetAssociationName(std::forward<AssociationNameT>(value)); return *this;}
184
186
201 inline const Aws::String& GetMaxErrors() const { return m_maxErrors; }
202 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
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>
206 CreateAssociationBatchRequestEntry& WithMaxErrors(MaxErrorsT&& value) { SetMaxErrors(std::forward<MaxErrorsT>(value)); return *this;}
208
210
220 inline const Aws::String& GetMaxConcurrency() const { return m_maxConcurrency; }
221 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
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>
225 CreateAssociationBatchRequestEntry& WithMaxConcurrency(MaxConcurrencyT&& value) { SetMaxConcurrency(std::forward<MaxConcurrencyT>(value)); return *this;}
227
229
232 inline AssociationComplianceSeverity GetComplianceSeverity() const { return m_complianceSeverity; }
233 inline bool ComplianceSeverityHasBeenSet() const { return m_complianceSeverityHasBeenSet; }
234 inline void SetComplianceSeverity(AssociationComplianceSeverity value) { m_complianceSeverityHasBeenSet = true; m_complianceSeverity = value; }
237
239
252 inline AssociationSyncCompliance GetSyncCompliance() const { return m_syncCompliance; }
253 inline bool SyncComplianceHasBeenSet() const { return m_syncComplianceHasBeenSet; }
254 inline void SetSyncCompliance(AssociationSyncCompliance value) { m_syncComplianceHasBeenSet = true; m_syncCompliance = value; }
257
259
272 inline bool GetApplyOnlyAtCronInterval() const { return m_applyOnlyAtCronInterval; }
273 inline bool ApplyOnlyAtCronIntervalHasBeenSet() const { return m_applyOnlyAtCronIntervalHasBeenSet; }
274 inline void SetApplyOnlyAtCronInterval(bool value) { m_applyOnlyAtCronIntervalHasBeenSet = true; m_applyOnlyAtCronInterval = value; }
277
279
287 inline const Aws::Vector<Aws::String>& GetCalendarNames() const { return m_calendarNames; }
288 inline bool CalendarNamesHasBeenSet() const { return m_calendarNamesHasBeenSet; }
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>>
292 CreateAssociationBatchRequestEntry& WithCalendarNames(CalendarNamesT&& value) { SetCalendarNames(std::forward<CalendarNamesT>(value)); return *this;}
293 template<typename CalendarNamesT = Aws::String>
294 CreateAssociationBatchRequestEntry& AddCalendarNames(CalendarNamesT&& value) { m_calendarNamesHasBeenSet = true; m_calendarNames.emplace_back(std::forward<CalendarNamesT>(value)); return *this; }
296
298
302 inline const Aws::Vector<TargetLocation>& GetTargetLocations() const { return m_targetLocations; }
303 inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; }
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>>
307 CreateAssociationBatchRequestEntry& WithTargetLocations(TargetLocationsT&& value) { SetTargetLocations(std::forward<TargetLocationsT>(value)); return *this;}
308 template<typename TargetLocationsT = TargetLocation>
309 CreateAssociationBatchRequestEntry& AddTargetLocations(TargetLocationsT&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.emplace_back(std::forward<TargetLocationsT>(value)); return *this; }
311
313
316 inline int GetScheduleOffset() const { return m_scheduleOffset; }
317 inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
318 inline void SetScheduleOffset(int value) { m_scheduleOffsetHasBeenSet = true; m_scheduleOffset = value; }
321
323
338 inline int GetDuration() const { return m_duration; }
339 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
340 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
341 inline CreateAssociationBatchRequestEntry& WithDuration(int value) { SetDuration(value); return *this;}
343
345
349 inline const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& GetTargetMaps() const { return m_targetMaps; }
350 inline bool TargetMapsHasBeenSet() const { return m_targetMapsHasBeenSet; }
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>>>>
354 CreateAssociationBatchRequestEntry& WithTargetMaps(TargetMapsT&& value) { SetTargetMaps(std::forward<TargetMapsT>(value)); return *this;}
355 template<typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
356 CreateAssociationBatchRequestEntry& AddTargetMaps(TargetMapsT&& value) { m_targetMapsHasBeenSet = true; m_targetMaps.emplace_back(std::forward<TargetMapsT>(value)); return *this; }
358
360
361 inline const AlarmConfiguration& GetAlarmConfiguration() const { return m_alarmConfiguration; }
362 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
363 template<typename AlarmConfigurationT = AlarmConfiguration>
364 void SetAlarmConfiguration(AlarmConfigurationT&& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = std::forward<AlarmConfigurationT>(value); }
365 template<typename AlarmConfigurationT = AlarmConfiguration>
366 CreateAssociationBatchRequestEntry& WithAlarmConfiguration(AlarmConfigurationT&& value) { SetAlarmConfiguration(std::forward<AlarmConfigurationT>(value)); return *this;}
368 private:
369
370 Aws::String m_name;
371 bool m_nameHasBeenSet = false;
372
373 Aws::String m_instanceId;
374 bool m_instanceIdHasBeenSet = false;
375
377 bool m_parametersHasBeenSet = false;
378
379 Aws::String m_automationTargetParameterName;
380 bool m_automationTargetParameterNameHasBeenSet = false;
381
382 Aws::String m_documentVersion;
383 bool m_documentVersionHasBeenSet = false;
384
385 Aws::Vector<Target> m_targets;
386 bool m_targetsHasBeenSet = false;
387
388 Aws::String m_scheduleExpression;
389 bool m_scheduleExpressionHasBeenSet = false;
390
391 InstanceAssociationOutputLocation m_outputLocation;
392 bool m_outputLocationHasBeenSet = false;
393
394 Aws::String m_associationName;
395 bool m_associationNameHasBeenSet = false;
396
397 Aws::String m_maxErrors;
398 bool m_maxErrorsHasBeenSet = false;
399
400 Aws::String m_maxConcurrency;
401 bool m_maxConcurrencyHasBeenSet = false;
402
404 bool m_complianceSeverityHasBeenSet = false;
405
407 bool m_syncComplianceHasBeenSet = false;
408
409 bool m_applyOnlyAtCronInterval{false};
410 bool m_applyOnlyAtCronIntervalHasBeenSet = false;
411
412 Aws::Vector<Aws::String> m_calendarNames;
413 bool m_calendarNamesHasBeenSet = false;
414
415 Aws::Vector<TargetLocation> m_targetLocations;
416 bool m_targetLocationsHasBeenSet = false;
417
418 int m_scheduleOffset{0};
419 bool m_scheduleOffsetHasBeenSet = false;
420
421 int m_duration{0};
422 bool m_durationHasBeenSet = false;
423
425 bool m_targetMapsHasBeenSet = false;
426
427 AlarmConfiguration m_alarmConfiguration;
428 bool m_alarmConfigurationHasBeenSet = false;
429 };
430
431} // namespace Model
432} // namespace SSM
433} // namespace Aws
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
int GetDuration() 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
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