AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateAssociationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/SSMRequest.h>
11#include <aws/ssm/SSM_EXPORTS.h>
12#include <aws/ssm/model/AlarmConfiguration.h>
13#include <aws/ssm/model/AssociationComplianceSeverity.h>
14#include <aws/ssm/model/AssociationSyncCompliance.h>
15#include <aws/ssm/model/InstanceAssociationOutputLocation.h>
16#include <aws/ssm/model/Target.h>
17#include <aws/ssm/model/TargetLocation.h>
18
19#include <utility>
20
21namespace Aws {
22namespace SSM {
23namespace Model {
24
28 public:
29 AWS_SSM_API UpdateAssociationRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateAssociation"; }
36
37 AWS_SSM_API Aws::String SerializePayload() const override;
38
40
42
45 inline const Aws::String& GetAssociationId() const { return m_associationId; }
46 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
47 template <typename AssociationIdT = Aws::String>
48 void SetAssociationId(AssociationIdT&& value) {
49 m_associationIdHasBeenSet = true;
50 m_associationId = std::forward<AssociationIdT>(value);
51 }
52 template <typename AssociationIdT = Aws::String>
54 SetAssociationId(std::forward<AssociationIdT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const { return m_parameters; }
66 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
67 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
68 void SetParameters(ParametersT&& value) {
69 m_parametersHasBeenSet = true;
70 m_parameters = std::forward<ParametersT>(value);
71 }
72 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
74 SetParameters(std::forward<ParametersT>(value));
75 return *this;
76 }
77 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
78 UpdateAssociationRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
79 m_parametersHasBeenSet = true;
80 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
81 return *this;
82 }
84
86
96 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
97 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
98 template <typename DocumentVersionT = Aws::String>
99 void SetDocumentVersion(DocumentVersionT&& value) {
100 m_documentVersionHasBeenSet = true;
101 m_documentVersion = std::forward<DocumentVersionT>(value);
102 }
103 template <typename DocumentVersionT = Aws::String>
105 SetDocumentVersion(std::forward<DocumentVersionT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
116 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
117 template <typename ScheduleExpressionT = Aws::String>
118 void SetScheduleExpression(ScheduleExpressionT&& value) {
119 m_scheduleExpressionHasBeenSet = true;
120 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
121 }
122 template <typename ScheduleExpressionT = Aws::String>
123 UpdateAssociationRequest& WithScheduleExpression(ScheduleExpressionT&& value) {
124 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
125 return *this;
126 }
128
130
133 inline const InstanceAssociationOutputLocation& GetOutputLocation() const { return m_outputLocation; }
134 inline bool OutputLocationHasBeenSet() const { return m_outputLocationHasBeenSet; }
135 template <typename OutputLocationT = InstanceAssociationOutputLocation>
136 void SetOutputLocation(OutputLocationT&& value) {
137 m_outputLocationHasBeenSet = true;
138 m_outputLocation = std::forward<OutputLocationT>(value);
139 }
140 template <typename OutputLocationT = InstanceAssociationOutputLocation>
142 SetOutputLocation(std::forward<OutputLocationT>(value));
143 return *this;
144 }
146
148
162 inline const Aws::String& GetName() const { return m_name; }
163 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
164 template <typename NameT = Aws::String>
165 void SetName(NameT&& value) {
166 m_nameHasBeenSet = true;
167 m_name = std::forward<NameT>(value);
168 }
169 template <typename NameT = Aws::String>
171 SetName(std::forward<NameT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
181 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
182 template <typename TargetsT = Aws::Vector<Target>>
183 void SetTargets(TargetsT&& value) {
184 m_targetsHasBeenSet = true;
185 m_targets = std::forward<TargetsT>(value);
186 }
187 template <typename TargetsT = Aws::Vector<Target>>
189 SetTargets(std::forward<TargetsT>(value));
190 return *this;
191 }
192 template <typename TargetsT = Target>
194 m_targetsHasBeenSet = true;
195 m_targets.emplace_back(std::forward<TargetsT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::String& GetAssociationName() const { return m_associationName; }
205 inline bool AssociationNameHasBeenSet() const { return m_associationNameHasBeenSet; }
206 template <typename AssociationNameT = Aws::String>
207 void SetAssociationName(AssociationNameT&& value) {
208 m_associationNameHasBeenSet = true;
209 m_associationName = std::forward<AssociationNameT>(value);
210 }
211 template <typename AssociationNameT = Aws::String>
213 SetAssociationName(std::forward<AssociationNameT>(value));
214 return *this;
215 }
217
219
225 inline const Aws::String& GetAssociationVersion() const { return m_associationVersion; }
226 inline bool AssociationVersionHasBeenSet() const { return m_associationVersionHasBeenSet; }
227 template <typename AssociationVersionT = Aws::String>
228 void SetAssociationVersion(AssociationVersionT&& value) {
229 m_associationVersionHasBeenSet = true;
230 m_associationVersion = std::forward<AssociationVersionT>(value);
231 }
232 template <typename AssociationVersionT = Aws::String>
233 UpdateAssociationRequest& WithAssociationVersion(AssociationVersionT&& value) {
234 SetAssociationVersion(std::forward<AssociationVersionT>(value));
235 return *this;
236 }
238
240
246 inline const Aws::String& GetAutomationTargetParameterName() const { return m_automationTargetParameterName; }
247 inline bool AutomationTargetParameterNameHasBeenSet() const { return m_automationTargetParameterNameHasBeenSet; }
248 template <typename AutomationTargetParameterNameT = Aws::String>
249 void SetAutomationTargetParameterName(AutomationTargetParameterNameT&& value) {
250 m_automationTargetParameterNameHasBeenSet = true;
251 m_automationTargetParameterName = std::forward<AutomationTargetParameterNameT>(value);
252 }
253 template <typename AutomationTargetParameterNameT = Aws::String>
254 UpdateAssociationRequest& WithAutomationTargetParameterName(AutomationTargetParameterNameT&& value) {
255 SetAutomationTargetParameterName(std::forward<AutomationTargetParameterNameT>(value));
256 return *this;
257 }
259
261
276 inline const Aws::String& GetMaxErrors() const { return m_maxErrors; }
277 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
278 template <typename MaxErrorsT = Aws::String>
279 void SetMaxErrors(MaxErrorsT&& value) {
280 m_maxErrorsHasBeenSet = true;
281 m_maxErrors = std::forward<MaxErrorsT>(value);
282 }
283 template <typename MaxErrorsT = Aws::String>
285 SetMaxErrors(std::forward<MaxErrorsT>(value));
286 return *this;
287 }
289
291
301 inline const Aws::String& GetMaxConcurrency() const { return m_maxConcurrency; }
302 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
303 template <typename MaxConcurrencyT = Aws::String>
304 void SetMaxConcurrency(MaxConcurrencyT&& value) {
305 m_maxConcurrencyHasBeenSet = true;
306 m_maxConcurrency = std::forward<MaxConcurrencyT>(value);
307 }
308 template <typename MaxConcurrencyT = Aws::String>
310 SetMaxConcurrency(std::forward<MaxConcurrencyT>(value));
311 return *this;
312 }
314
316
319 inline AssociationComplianceSeverity GetComplianceSeverity() const { return m_complianceSeverity; }
320 inline bool ComplianceSeverityHasBeenSet() const { return m_complianceSeverityHasBeenSet; }
322 m_complianceSeverityHasBeenSet = true;
323 m_complianceSeverity = value;
324 }
327 return *this;
328 }
330
332
345 inline AssociationSyncCompliance GetSyncCompliance() const { return m_syncCompliance; }
346 inline bool SyncComplianceHasBeenSet() const { return m_syncComplianceHasBeenSet; }
348 m_syncComplianceHasBeenSet = true;
349 m_syncCompliance = value;
350 }
352 SetSyncCompliance(value);
353 return *this;
354 }
356
358
383 inline bool GetApplyOnlyAtCronInterval() const { return m_applyOnlyAtCronInterval; }
384 inline bool ApplyOnlyAtCronIntervalHasBeenSet() const { return m_applyOnlyAtCronIntervalHasBeenSet; }
385 inline void SetApplyOnlyAtCronInterval(bool value) {
386 m_applyOnlyAtCronIntervalHasBeenSet = true;
387 m_applyOnlyAtCronInterval = value;
388 }
391 return *this;
392 }
394
396
404 inline const Aws::Vector<Aws::String>& GetCalendarNames() const { return m_calendarNames; }
405 inline bool CalendarNamesHasBeenSet() const { return m_calendarNamesHasBeenSet; }
406 template <typename CalendarNamesT = Aws::Vector<Aws::String>>
407 void SetCalendarNames(CalendarNamesT&& value) {
408 m_calendarNamesHasBeenSet = true;
409 m_calendarNames = std::forward<CalendarNamesT>(value);
410 }
411 template <typename CalendarNamesT = Aws::Vector<Aws::String>>
413 SetCalendarNames(std::forward<CalendarNamesT>(value));
414 return *this;
415 }
416 template <typename CalendarNamesT = Aws::String>
418 m_calendarNamesHasBeenSet = true;
419 m_calendarNames.emplace_back(std::forward<CalendarNamesT>(value));
420 return *this;
421 }
423
425
432 inline const Aws::Vector<TargetLocation>& GetTargetLocations() const { return m_targetLocations; }
433 inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; }
434 template <typename TargetLocationsT = Aws::Vector<TargetLocation>>
435 void SetTargetLocations(TargetLocationsT&& value) {
436 m_targetLocationsHasBeenSet = true;
437 m_targetLocations = std::forward<TargetLocationsT>(value);
438 }
439 template <typename TargetLocationsT = Aws::Vector<TargetLocation>>
441 SetTargetLocations(std::forward<TargetLocationsT>(value));
442 return *this;
443 }
444 template <typename TargetLocationsT = TargetLocation>
445 UpdateAssociationRequest& AddTargetLocations(TargetLocationsT&& value) {
446 m_targetLocationsHasBeenSet = true;
447 m_targetLocations.emplace_back(std::forward<TargetLocationsT>(value));
448 return *this;
449 }
451
453
465 inline int GetScheduleOffset() const { return m_scheduleOffset; }
466 inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
467 inline void SetScheduleOffset(int value) {
468 m_scheduleOffsetHasBeenSet = true;
469 m_scheduleOffset = value;
470 }
472 SetScheduleOffset(value);
473 return *this;
474 }
476
478
493 inline int GetDuration() const { return m_duration; }
494 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
495 inline void SetDuration(int value) {
496 m_durationHasBeenSet = true;
497 m_duration = value;
498 }
500 SetDuration(value);
501 return *this;
502 }
504
506
510 inline const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& GetTargetMaps() const { return m_targetMaps; }
511 inline bool TargetMapsHasBeenSet() const { return m_targetMapsHasBeenSet; }
512 template <typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
513 void SetTargetMaps(TargetMapsT&& value) {
514 m_targetMapsHasBeenSet = true;
515 m_targetMaps = std::forward<TargetMapsT>(value);
516 }
517 template <typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
519 SetTargetMaps(std::forward<TargetMapsT>(value));
520 return *this;
521 }
522 template <typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
524 m_targetMapsHasBeenSet = true;
525 m_targetMaps.emplace_back(std::forward<TargetMapsT>(value));
526 return *this;
527 }
529
531
532 inline const AlarmConfiguration& GetAlarmConfiguration() const { return m_alarmConfiguration; }
533 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
534 template <typename AlarmConfigurationT = AlarmConfiguration>
535 void SetAlarmConfiguration(AlarmConfigurationT&& value) {
536 m_alarmConfigurationHasBeenSet = true;
537 m_alarmConfiguration = std::forward<AlarmConfigurationT>(value);
538 }
539 template <typename AlarmConfigurationT = AlarmConfiguration>
540 UpdateAssociationRequest& WithAlarmConfiguration(AlarmConfigurationT&& value) {
541 SetAlarmConfiguration(std::forward<AlarmConfigurationT>(value));
542 return *this;
543 }
545 private:
546 Aws::String m_associationId;
547
549
550 Aws::String m_documentVersion;
551
552 Aws::String m_scheduleExpression;
553
554 InstanceAssociationOutputLocation m_outputLocation;
555
556 Aws::String m_name;
557
558 Aws::Vector<Target> m_targets;
559
560 Aws::String m_associationName;
561
562 Aws::String m_associationVersion;
563
564 Aws::String m_automationTargetParameterName;
565
566 Aws::String m_maxErrors;
567
568 Aws::String m_maxConcurrency;
569
571
573
574 bool m_applyOnlyAtCronInterval{false};
575
576 Aws::Vector<Aws::String> m_calendarNames;
577
578 Aws::Vector<TargetLocation> m_targetLocations;
579
580 int m_scheduleOffset{0};
581
582 int m_duration{0};
583
585
586 AlarmConfiguration m_alarmConfiguration;
587 bool m_associationIdHasBeenSet = false;
588 bool m_parametersHasBeenSet = false;
589 bool m_documentVersionHasBeenSet = false;
590 bool m_scheduleExpressionHasBeenSet = false;
591 bool m_outputLocationHasBeenSet = false;
592 bool m_nameHasBeenSet = false;
593 bool m_targetsHasBeenSet = false;
594 bool m_associationNameHasBeenSet = false;
595 bool m_associationVersionHasBeenSet = false;
596 bool m_automationTargetParameterNameHasBeenSet = false;
597 bool m_maxErrorsHasBeenSet = false;
598 bool m_maxConcurrencyHasBeenSet = false;
599 bool m_complianceSeverityHasBeenSet = false;
600 bool m_syncComplianceHasBeenSet = false;
601 bool m_applyOnlyAtCronIntervalHasBeenSet = false;
602 bool m_calendarNamesHasBeenSet = false;
603 bool m_targetLocationsHasBeenSet = false;
604 bool m_scheduleOffsetHasBeenSet = false;
605 bool m_durationHasBeenSet = false;
606 bool m_targetMapsHasBeenSet = false;
607 bool m_alarmConfigurationHasBeenSet = false;
608};
609
610} // namespace Model
611} // namespace SSM
612} // 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