AWS SDK for C++

AWS SDK for C++ Version 1.11.552

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
UpdateAssociationRequest.h
1
6#pragma once
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/ssm/model/InstanceAssociationOutputLocation.h>
12#include <aws/core/utils/memory/stl/AWSVector.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 <utility>
19
20namespace Aws
21{
22namespace SSM
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_SSM_API UpdateAssociationRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "UpdateAssociation"; }
39
40 AWS_SSM_API Aws::String SerializePayload() const override;
41
43
44
46
49 inline const Aws::String& GetAssociationId() const { return m_associationId; }
50 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
51 template<typename AssociationIdT = Aws::String>
52 void SetAssociationId(AssociationIdT&& value) { m_associationIdHasBeenSet = true; m_associationId = std::forward<AssociationIdT>(value); }
53 template<typename AssociationIdT = Aws::String>
54 UpdateAssociationRequest& WithAssociationId(AssociationIdT&& value) { SetAssociationId(std::forward<AssociationIdT>(value)); return *this;}
56
58
63 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const { return m_parameters; }
64 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
65 template<typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
66 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
67 template<typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
68 UpdateAssociationRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
69 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
70 UpdateAssociationRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
71 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
72 }
74
76
86 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
87 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
88 template<typename DocumentVersionT = Aws::String>
89 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::forward<DocumentVersionT>(value); }
90 template<typename DocumentVersionT = Aws::String>
91 UpdateAssociationRequest& WithDocumentVersion(DocumentVersionT&& value) { SetDocumentVersion(std::forward<DocumentVersionT>(value)); return *this;}
93
95
99 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
100 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
101 template<typename ScheduleExpressionT = Aws::String>
102 void SetScheduleExpression(ScheduleExpressionT&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::forward<ScheduleExpressionT>(value); }
103 template<typename ScheduleExpressionT = Aws::String>
104 UpdateAssociationRequest& WithScheduleExpression(ScheduleExpressionT&& value) { SetScheduleExpression(std::forward<ScheduleExpressionT>(value)); return *this;}
106
108
111 inline const InstanceAssociationOutputLocation& GetOutputLocation() const { return m_outputLocation; }
112 inline bool OutputLocationHasBeenSet() const { return m_outputLocationHasBeenSet; }
113 template<typename OutputLocationT = InstanceAssociationOutputLocation>
114 void SetOutputLocation(OutputLocationT&& value) { m_outputLocationHasBeenSet = true; m_outputLocation = std::forward<OutputLocationT>(value); }
115 template<typename OutputLocationT = InstanceAssociationOutputLocation>
116 UpdateAssociationRequest& WithOutputLocation(OutputLocationT&& value) { SetOutputLocation(std::forward<OutputLocationT>(value)); return *this;}
118
120
134 inline const Aws::String& GetName() const { return m_name; }
135 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
136 template<typename NameT = Aws::String>
137 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
138 template<typename NameT = Aws::String>
139 UpdateAssociationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
141
143
146 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
147 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
148 template<typename TargetsT = Aws::Vector<Target>>
149 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
150 template<typename TargetsT = Aws::Vector<Target>>
151 UpdateAssociationRequest& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
152 template<typename TargetsT = Target>
153 UpdateAssociationRequest& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
155
157
160 inline const Aws::String& GetAssociationName() const { return m_associationName; }
161 inline bool AssociationNameHasBeenSet() const { return m_associationNameHasBeenSet; }
162 template<typename AssociationNameT = Aws::String>
163 void SetAssociationName(AssociationNameT&& value) { m_associationNameHasBeenSet = true; m_associationName = std::forward<AssociationNameT>(value); }
164 template<typename AssociationNameT = Aws::String>
165 UpdateAssociationRequest& WithAssociationName(AssociationNameT&& value) { SetAssociationName(std::forward<AssociationNameT>(value)); return *this;}
167
169
175 inline const Aws::String& GetAssociationVersion() const { return m_associationVersion; }
176 inline bool AssociationVersionHasBeenSet() const { return m_associationVersionHasBeenSet; }
177 template<typename AssociationVersionT = Aws::String>
178 void SetAssociationVersion(AssociationVersionT&& value) { m_associationVersionHasBeenSet = true; m_associationVersion = std::forward<AssociationVersionT>(value); }
179 template<typename AssociationVersionT = Aws::String>
180 UpdateAssociationRequest& WithAssociationVersion(AssociationVersionT&& value) { SetAssociationVersion(std::forward<AssociationVersionT>(value)); return *this;}
182
184
190 inline const Aws::String& GetAutomationTargetParameterName() const { return m_automationTargetParameterName; }
191 inline bool AutomationTargetParameterNameHasBeenSet() const { return m_automationTargetParameterNameHasBeenSet; }
192 template<typename AutomationTargetParameterNameT = Aws::String>
193 void SetAutomationTargetParameterName(AutomationTargetParameterNameT&& value) { m_automationTargetParameterNameHasBeenSet = true; m_automationTargetParameterName = std::forward<AutomationTargetParameterNameT>(value); }
194 template<typename AutomationTargetParameterNameT = Aws::String>
195 UpdateAssociationRequest& WithAutomationTargetParameterName(AutomationTargetParameterNameT&& value) { SetAutomationTargetParameterName(std::forward<AutomationTargetParameterNameT>(value)); return *this;}
197
199
214 inline const Aws::String& GetMaxErrors() const { return m_maxErrors; }
215 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
216 template<typename MaxErrorsT = Aws::String>
217 void SetMaxErrors(MaxErrorsT&& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = std::forward<MaxErrorsT>(value); }
218 template<typename MaxErrorsT = Aws::String>
219 UpdateAssociationRequest& WithMaxErrors(MaxErrorsT&& value) { SetMaxErrors(std::forward<MaxErrorsT>(value)); return *this;}
221
223
233 inline const Aws::String& GetMaxConcurrency() const { return m_maxConcurrency; }
234 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
235 template<typename MaxConcurrencyT = Aws::String>
236 void SetMaxConcurrency(MaxConcurrencyT&& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = std::forward<MaxConcurrencyT>(value); }
237 template<typename MaxConcurrencyT = Aws::String>
238 UpdateAssociationRequest& WithMaxConcurrency(MaxConcurrencyT&& value) { SetMaxConcurrency(std::forward<MaxConcurrencyT>(value)); return *this;}
240
242
245 inline AssociationComplianceSeverity GetComplianceSeverity() const { return m_complianceSeverity; }
246 inline bool ComplianceSeverityHasBeenSet() const { return m_complianceSeverityHasBeenSet; }
247 inline void SetComplianceSeverity(AssociationComplianceSeverity value) { m_complianceSeverityHasBeenSet = true; m_complianceSeverity = value; }
250
252
265 inline AssociationSyncCompliance GetSyncCompliance() const { return m_syncCompliance; }
266 inline bool SyncComplianceHasBeenSet() const { return m_syncComplianceHasBeenSet; }
267 inline void SetSyncCompliance(AssociationSyncCompliance value) { m_syncComplianceHasBeenSet = true; m_syncCompliance = value; }
270
272
297 inline bool GetApplyOnlyAtCronInterval() const { return m_applyOnlyAtCronInterval; }
298 inline bool ApplyOnlyAtCronIntervalHasBeenSet() const { return m_applyOnlyAtCronIntervalHasBeenSet; }
299 inline void SetApplyOnlyAtCronInterval(bool value) { m_applyOnlyAtCronIntervalHasBeenSet = true; m_applyOnlyAtCronInterval = value; }
302
304
312 inline const Aws::Vector<Aws::String>& GetCalendarNames() const { return m_calendarNames; }
313 inline bool CalendarNamesHasBeenSet() const { return m_calendarNamesHasBeenSet; }
314 template<typename CalendarNamesT = Aws::Vector<Aws::String>>
315 void SetCalendarNames(CalendarNamesT&& value) { m_calendarNamesHasBeenSet = true; m_calendarNames = std::forward<CalendarNamesT>(value); }
316 template<typename CalendarNamesT = Aws::Vector<Aws::String>>
317 UpdateAssociationRequest& WithCalendarNames(CalendarNamesT&& value) { SetCalendarNames(std::forward<CalendarNamesT>(value)); return *this;}
318 template<typename CalendarNamesT = Aws::String>
319 UpdateAssociationRequest& AddCalendarNames(CalendarNamesT&& value) { m_calendarNamesHasBeenSet = true; m_calendarNames.emplace_back(std::forward<CalendarNamesT>(value)); return *this; }
321
323
328 inline const Aws::Vector<TargetLocation>& GetTargetLocations() const { return m_targetLocations; }
329 inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; }
330 template<typename TargetLocationsT = Aws::Vector<TargetLocation>>
331 void SetTargetLocations(TargetLocationsT&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = std::forward<TargetLocationsT>(value); }
332 template<typename TargetLocationsT = Aws::Vector<TargetLocation>>
333 UpdateAssociationRequest& WithTargetLocations(TargetLocationsT&& value) { SetTargetLocations(std::forward<TargetLocationsT>(value)); return *this;}
334 template<typename TargetLocationsT = TargetLocation>
335 UpdateAssociationRequest& AddTargetLocations(TargetLocationsT&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.emplace_back(std::forward<TargetLocationsT>(value)); return *this; }
337
339
351 inline int GetScheduleOffset() const { return m_scheduleOffset; }
352 inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
353 inline void SetScheduleOffset(int value) { m_scheduleOffsetHasBeenSet = true; m_scheduleOffset = value; }
354 inline UpdateAssociationRequest& WithScheduleOffset(int value) { SetScheduleOffset(value); return *this;}
356
358
373 inline int GetDuration() const { return m_duration; }
374 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
375 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
376 inline UpdateAssociationRequest& WithDuration(int value) { SetDuration(value); return *this;}
378
380
384 inline const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& GetTargetMaps() const { return m_targetMaps; }
385 inline bool TargetMapsHasBeenSet() const { return m_targetMapsHasBeenSet; }
386 template<typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
387 void SetTargetMaps(TargetMapsT&& value) { m_targetMapsHasBeenSet = true; m_targetMaps = std::forward<TargetMapsT>(value); }
388 template<typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
389 UpdateAssociationRequest& WithTargetMaps(TargetMapsT&& value) { SetTargetMaps(std::forward<TargetMapsT>(value)); return *this;}
390 template<typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
391 UpdateAssociationRequest& AddTargetMaps(TargetMapsT&& value) { m_targetMapsHasBeenSet = true; m_targetMaps.emplace_back(std::forward<TargetMapsT>(value)); return *this; }
393
395
396 inline const AlarmConfiguration& GetAlarmConfiguration() const { return m_alarmConfiguration; }
397 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
398 template<typename AlarmConfigurationT = AlarmConfiguration>
399 void SetAlarmConfiguration(AlarmConfigurationT&& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = std::forward<AlarmConfigurationT>(value); }
400 template<typename AlarmConfigurationT = AlarmConfiguration>
401 UpdateAssociationRequest& WithAlarmConfiguration(AlarmConfigurationT&& value) { SetAlarmConfiguration(std::forward<AlarmConfigurationT>(value)); return *this;}
403 private:
404
405 Aws::String m_associationId;
406 bool m_associationIdHasBeenSet = false;
407
409 bool m_parametersHasBeenSet = false;
410
411 Aws::String m_documentVersion;
412 bool m_documentVersionHasBeenSet = false;
413
414 Aws::String m_scheduleExpression;
415 bool m_scheduleExpressionHasBeenSet = false;
416
417 InstanceAssociationOutputLocation m_outputLocation;
418 bool m_outputLocationHasBeenSet = false;
419
420 Aws::String m_name;
421 bool m_nameHasBeenSet = false;
422
423 Aws::Vector<Target> m_targets;
424 bool m_targetsHasBeenSet = false;
425
426 Aws::String m_associationName;
427 bool m_associationNameHasBeenSet = false;
428
429 Aws::String m_associationVersion;
430 bool m_associationVersionHasBeenSet = false;
431
432 Aws::String m_automationTargetParameterName;
433 bool m_automationTargetParameterNameHasBeenSet = false;
434
435 Aws::String m_maxErrors;
436 bool m_maxErrorsHasBeenSet = false;
437
438 Aws::String m_maxConcurrency;
439 bool m_maxConcurrencyHasBeenSet = false;
440
442 bool m_complianceSeverityHasBeenSet = false;
443
445 bool m_syncComplianceHasBeenSet = false;
446
447 bool m_applyOnlyAtCronInterval{false};
448 bool m_applyOnlyAtCronIntervalHasBeenSet = false;
449
450 Aws::Vector<Aws::String> m_calendarNames;
451 bool m_calendarNamesHasBeenSet = false;
452
453 Aws::Vector<TargetLocation> m_targetLocations;
454 bool m_targetLocationsHasBeenSet = false;
455
456 int m_scheduleOffset{0};
457 bool m_scheduleOffsetHasBeenSet = false;
458
459 int m_duration{0};
460 bool m_durationHasBeenSet = false;
461
463 bool m_targetMapsHasBeenSet = false;
464
465 AlarmConfiguration m_alarmConfiguration;
466 bool m_alarmConfigurationHasBeenSet = false;
467 };
468
469} // namespace Model
470} // namespace SSM
471} // namespace Aws
const AlarmConfiguration & GetAlarmConfiguration() const
AssociationComplianceSeverity GetComplianceSeverity() const
UpdateAssociationRequest & WithScheduleOffset(int value)
const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > & GetTargetMaps() const
UpdateAssociationRequest & WithApplyOnlyAtCronInterval(bool value)
UpdateAssociationRequest & WithAssociationVersion(AssociationVersionT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
UpdateAssociationRequest & WithTargetLocations(TargetLocationsT &&value)
UpdateAssociationRequest & WithDocumentVersion(DocumentVersionT &&value)
UpdateAssociationRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
const Aws::Vector< Target > & GetTargets() const
const InstanceAssociationOutputLocation & GetOutputLocation() const
UpdateAssociationRequest & WithOutputLocation(OutputLocationT &&value)
void SetSyncCompliance(AssociationSyncCompliance value)
UpdateAssociationRequest & AddCalendarNames(CalendarNamesT &&value)
UpdateAssociationRequest & WithDuration(int value)
AWS_SSM_API UpdateAssociationRequest()=default
void SetDocumentVersion(DocumentVersionT &&value)
const Aws::Vector< Aws::String > & GetCalendarNames() const
UpdateAssociationRequest & WithScheduleExpression(ScheduleExpressionT &&value)
void SetScheduleExpression(ScheduleExpressionT &&value)
UpdateAssociationRequest & WithMaxErrors(MaxErrorsT &&value)
UpdateAssociationRequest & WithTargets(TargetsT &&value)
UpdateAssociationRequest & WithComplianceSeverity(AssociationComplianceSeverity value)
void SetComplianceSeverity(AssociationComplianceSeverity value)
UpdateAssociationRequest & WithName(NameT &&value)
UpdateAssociationRequest & WithAssociationId(AssociationIdT &&value)
void SetAutomationTargetParameterName(AutomationTargetParameterNameT &&value)
const Aws::Vector< TargetLocation > & GetTargetLocations() const
UpdateAssociationRequest & WithParameters(ParametersT &&value)
AssociationSyncCompliance GetSyncCompliance() const
UpdateAssociationRequest & AddTargetLocations(TargetLocationsT &&value)
void SetAlarmConfiguration(AlarmConfigurationT &&value)
const Aws::String & GetAutomationTargetParameterName() const
AWS_SSM_API Aws::String SerializePayload() const override
UpdateAssociationRequest & WithMaxConcurrency(MaxConcurrencyT &&value)
void SetAssociationVersion(AssociationVersionT &&value)
UpdateAssociationRequest & WithCalendarNames(CalendarNamesT &&value)
UpdateAssociationRequest & WithAutomationTargetParameterName(AutomationTargetParameterNameT &&value)
UpdateAssociationRequest & AddTargets(TargetsT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateAssociationRequest & AddTargetMaps(TargetMapsT &&value)
UpdateAssociationRequest & WithTargetMaps(TargetMapsT &&value)
UpdateAssociationRequest & WithAssociationName(AssociationNameT &&value)
UpdateAssociationRequest & WithAlarmConfiguration(AlarmConfigurationT &&value)
UpdateAssociationRequest & WithSyncCompliance(AssociationSyncCompliance value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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