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
CreateAssociationRequest.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/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>
19#include <utility>
20
21namespace Aws
22{
23namespace SSM
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_SSM_API CreateAssociationRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateAssociation"; }
40
41 AWS_SSM_API Aws::String SerializePayload() const override;
42
44
45
47
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
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>
67 CreateAssociationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
82 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
83 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
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>
87 CreateAssociationRequest& WithDocumentVersion(DocumentVersionT&& value) { SetDocumentVersion(std::forward<DocumentVersionT>(value)); return *this;}
89
91
103 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
104 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
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>
108 CreateAssociationRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
110
112
115 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const { return m_parameters; }
116 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
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>>>
120 CreateAssociationRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
121 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
122 CreateAssociationRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
123 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
124 }
126
128
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 CreateAssociationRequest& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
145 template<typename TargetsT = Target>
146 CreateAssociationRequest& 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 CreateAssociationRequest& WithScheduleExpression(ScheduleExpressionT&& value) { SetScheduleExpression(std::forward<ScheduleExpressionT>(value)); return *this;}
160
162
166 inline const InstanceAssociationOutputLocation& GetOutputLocation() const { return m_outputLocation; }
167 inline bool OutputLocationHasBeenSet() const { return m_outputLocationHasBeenSet; }
168 template<typename OutputLocationT = InstanceAssociationOutputLocation>
169 void SetOutputLocation(OutputLocationT&& value) { m_outputLocationHasBeenSet = true; m_outputLocation = std::forward<OutputLocationT>(value); }
170 template<typename OutputLocationT = InstanceAssociationOutputLocation>
171 CreateAssociationRequest& WithOutputLocation(OutputLocationT&& value) { SetOutputLocation(std::forward<OutputLocationT>(value)); return *this;}
173
175
178 inline const Aws::String& GetAssociationName() const { return m_associationName; }
179 inline bool AssociationNameHasBeenSet() const { return m_associationNameHasBeenSet; }
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>
183 CreateAssociationRequest& WithAssociationName(AssociationNameT&& value) { SetAssociationName(std::forward<AssociationNameT>(value)); return *this;}
185
187
193 inline const Aws::String& GetAutomationTargetParameterName() const { return m_automationTargetParameterName; }
194 inline bool AutomationTargetParameterNameHasBeenSet() const { return m_automationTargetParameterNameHasBeenSet; }
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>
198 CreateAssociationRequest& WithAutomationTargetParameterName(AutomationTargetParameterNameT&& value) { SetAutomationTargetParameterName(std::forward<AutomationTargetParameterNameT>(value)); return *this;}
200
202
217 inline const Aws::String& GetMaxErrors() const { return m_maxErrors; }
218 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
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>
222 CreateAssociationRequest& WithMaxErrors(MaxErrorsT&& value) { SetMaxErrors(std::forward<MaxErrorsT>(value)); return *this;}
224
226
236 inline const Aws::String& GetMaxConcurrency() const { return m_maxConcurrency; }
237 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
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>
241 CreateAssociationRequest& WithMaxConcurrency(MaxConcurrencyT&& value) { SetMaxConcurrency(std::forward<MaxConcurrencyT>(value)); return *this;}
243
245
248 inline AssociationComplianceSeverity GetComplianceSeverity() const { return m_complianceSeverity; }
249 inline bool ComplianceSeverityHasBeenSet() const { return m_complianceSeverityHasBeenSet; }
250 inline void SetComplianceSeverity(AssociationComplianceSeverity value) { m_complianceSeverityHasBeenSet = true; m_complianceSeverity = value; }
253
255
268 inline AssociationSyncCompliance GetSyncCompliance() const { return m_syncCompliance; }
269 inline bool SyncComplianceHasBeenSet() const { return m_syncComplianceHasBeenSet; }
270 inline void SetSyncCompliance(AssociationSyncCompliance value) { m_syncComplianceHasBeenSet = true; m_syncCompliance = value; }
273
275
288 inline bool GetApplyOnlyAtCronInterval() const { return m_applyOnlyAtCronInterval; }
289 inline bool ApplyOnlyAtCronIntervalHasBeenSet() const { return m_applyOnlyAtCronIntervalHasBeenSet; }
290 inline void SetApplyOnlyAtCronInterval(bool value) { m_applyOnlyAtCronIntervalHasBeenSet = true; m_applyOnlyAtCronInterval = value; }
293
295
303 inline const Aws::Vector<Aws::String>& GetCalendarNames() const { return m_calendarNames; }
304 inline bool CalendarNamesHasBeenSet() const { return m_calendarNamesHasBeenSet; }
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>>
308 CreateAssociationRequest& WithCalendarNames(CalendarNamesT&& value) { SetCalendarNames(std::forward<CalendarNamesT>(value)); return *this;}
309 template<typename CalendarNamesT = Aws::String>
310 CreateAssociationRequest& AddCalendarNames(CalendarNamesT&& value) { m_calendarNamesHasBeenSet = true; m_calendarNames.emplace_back(std::forward<CalendarNamesT>(value)); return *this; }
312
314
319 inline const Aws::Vector<TargetLocation>& GetTargetLocations() const { return m_targetLocations; }
320 inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; }
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>>
324 CreateAssociationRequest& WithTargetLocations(TargetLocationsT&& value) { SetTargetLocations(std::forward<TargetLocationsT>(value)); return *this;}
325 template<typename TargetLocationsT = TargetLocation>
326 CreateAssociationRequest& AddTargetLocations(TargetLocationsT&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.emplace_back(std::forward<TargetLocationsT>(value)); return *this; }
328
330
342 inline int GetScheduleOffset() const { return m_scheduleOffset; }
343 inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
344 inline void SetScheduleOffset(int value) { m_scheduleOffsetHasBeenSet = true; m_scheduleOffset = value; }
345 inline CreateAssociationRequest& WithScheduleOffset(int value) { SetScheduleOffset(value); return *this;}
347
349
364 inline int GetDuration() const { return m_duration; }
365 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
366 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
367 inline CreateAssociationRequest& WithDuration(int value) { SetDuration(value); return *this;}
369
371
375 inline const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& GetTargetMaps() const { return m_targetMaps; }
376 inline bool TargetMapsHasBeenSet() const { return m_targetMapsHasBeenSet; }
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>>>>
380 CreateAssociationRequest& WithTargetMaps(TargetMapsT&& value) { SetTargetMaps(std::forward<TargetMapsT>(value)); return *this;}
381 template<typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
382 CreateAssociationRequest& AddTargetMaps(TargetMapsT&& value) { m_targetMapsHasBeenSet = true; m_targetMaps.emplace_back(std::forward<TargetMapsT>(value)); return *this; }
384
386
393 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
394 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
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>>
398 CreateAssociationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
399 template<typename TagsT = Tag>
400 CreateAssociationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
402
404
405 inline const AlarmConfiguration& GetAlarmConfiguration() const { return m_alarmConfiguration; }
406 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
407 template<typename AlarmConfigurationT = AlarmConfiguration>
408 void SetAlarmConfiguration(AlarmConfigurationT&& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = std::forward<AlarmConfigurationT>(value); }
409 template<typename AlarmConfigurationT = AlarmConfiguration>
410 CreateAssociationRequest& WithAlarmConfiguration(AlarmConfigurationT&& value) { SetAlarmConfiguration(std::forward<AlarmConfigurationT>(value)); return *this;}
412 private:
413
414 Aws::String m_name;
415 bool m_nameHasBeenSet = false;
416
417 Aws::String m_documentVersion;
418 bool m_documentVersionHasBeenSet = false;
419
420 Aws::String m_instanceId;
421 bool m_instanceIdHasBeenSet = false;
422
424 bool m_parametersHasBeenSet = false;
425
426 Aws::Vector<Target> m_targets;
427 bool m_targetsHasBeenSet = false;
428
429 Aws::String m_scheduleExpression;
430 bool m_scheduleExpressionHasBeenSet = false;
431
432 InstanceAssociationOutputLocation m_outputLocation;
433 bool m_outputLocationHasBeenSet = false;
434
435 Aws::String m_associationName;
436 bool m_associationNameHasBeenSet = false;
437
438 Aws::String m_automationTargetParameterName;
439 bool m_automationTargetParameterNameHasBeenSet = false;
440
441 Aws::String m_maxErrors;
442 bool m_maxErrorsHasBeenSet = false;
443
444 Aws::String m_maxConcurrency;
445 bool m_maxConcurrencyHasBeenSet = false;
446
448 bool m_complianceSeverityHasBeenSet = false;
449
451 bool m_syncComplianceHasBeenSet = false;
452
453 bool m_applyOnlyAtCronInterval{false};
454 bool m_applyOnlyAtCronIntervalHasBeenSet = false;
455
456 Aws::Vector<Aws::String> m_calendarNames;
457 bool m_calendarNamesHasBeenSet = false;
458
459 Aws::Vector<TargetLocation> m_targetLocations;
460 bool m_targetLocationsHasBeenSet = false;
461
462 int m_scheduleOffset{0};
463 bool m_scheduleOffsetHasBeenSet = false;
464
465 int m_duration{0};
466 bool m_durationHasBeenSet = false;
467
469 bool m_targetMapsHasBeenSet = false;
470
471 Aws::Vector<Tag> m_tags;
472 bool m_tagsHasBeenSet = false;
473
474 AlarmConfiguration m_alarmConfiguration;
475 bool m_alarmConfigurationHasBeenSet = false;
476 };
477
478} // namespace Model
479} // namespace SSM
480} // namespace Aws
CreateAssociationRequest & WithMaxErrors(MaxErrorsT &&value)
const InstanceAssociationOutputLocation & GetOutputLocation() const
CreateAssociationRequest & WithAssociationName(AssociationNameT &&value)
const Aws::Vector< TargetLocation > & GetTargetLocations() const
CreateAssociationRequest & WithDocumentVersion(DocumentVersionT &&value)
const Aws::Vector< Target > & GetTargets() const
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetCalendarNames() const
CreateAssociationRequest & WithComplianceSeverity(AssociationComplianceSeverity value)
CreateAssociationRequest & WithParameters(ParametersT &&value)
CreateAssociationRequest & AddTargetMaps(TargetMapsT &&value)
const Aws::String & GetAutomationTargetParameterName() const
CreateAssociationRequest & WithDuration(int value)
void SetSyncCompliance(AssociationSyncCompliance value)
CreateAssociationRequest & WithOutputLocation(OutputLocationT &&value)
void SetScheduleExpression(ScheduleExpressionT &&value)
const AlarmConfiguration & GetAlarmConfiguration() const
CreateAssociationRequest & WithInstanceId(InstanceIdT &&value)
CreateAssociationRequest & WithApplyOnlyAtCronInterval(bool value)
CreateAssociationRequest & WithScheduleExpression(ScheduleExpressionT &&value)
CreateAssociationRequest & WithMaxConcurrency(MaxConcurrencyT &&value)
CreateAssociationRequest & WithTargets(TargetsT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
void SetAutomationTargetParameterName(AutomationTargetParameterNameT &&value)
CreateAssociationRequest & WithTargetMaps(TargetMapsT &&value)
CreateAssociationRequest & AddTargetLocations(TargetLocationsT &&value)
CreateAssociationRequest & WithName(NameT &&value)
CreateAssociationRequest & WithAutomationTargetParameterName(AutomationTargetParameterNameT &&value)
CreateAssociationRequest & AddCalendarNames(CalendarNamesT &&value)
CreateAssociationRequest & WithScheduleOffset(int value)
CreateAssociationRequest & WithAlarmConfiguration(AlarmConfigurationT &&value)
CreateAssociationRequest & WithTags(TagsT &&value)
void SetComplianceSeverity(AssociationComplianceSeverity value)
CreateAssociationRequest & AddTags(TagsT &&value)
AssociationComplianceSeverity GetComplianceSeverity() const
AWS_SSM_API CreateAssociationRequest()=default
CreateAssociationRequest & WithCalendarNames(CalendarNamesT &&value)
CreateAssociationRequest & WithTargetLocations(TargetLocationsT &&value)
void SetAlarmConfiguration(AlarmConfigurationT &&value)
const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > & GetTargetMaps() const
void SetDocumentVersion(DocumentVersionT &&value)
virtual const char * GetServiceRequestName() const override
CreateAssociationRequest & WithSyncCompliance(AssociationSyncCompliance value)
AssociationSyncCompliance GetSyncCompliance() const
CreateAssociationRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
CreateAssociationRequest & AddTargets(TargetsT &&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