AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateAssociationBatchRequestEntry.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/SSM_EXPORTS.h>
11#include <aws/ssm/model/AlarmConfiguration.h>
12#include <aws/ssm/model/AssociationComplianceSeverity.h>
13#include <aws/ssm/model/AssociationSyncCompliance.h>
14#include <aws/ssm/model/InstanceAssociationOutputLocation.h>
15#include <aws/ssm/model/Target.h>
16#include <aws/ssm/model/TargetLocation.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SSM {
28namespace Model {
29
37 public:
38 AWS_SSM_API CreateAssociationBatchRequestEntry() = default;
42
44
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
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) {
89 m_instanceIdHasBeenSet = true;
90 m_instanceId = std::forward<InstanceIdT>(value);
91 }
92 template <typename InstanceIdT = Aws::String>
94 SetInstanceId(std::forward<InstanceIdT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const { return m_parameters; }
104 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
105 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
106 void SetParameters(ParametersT&& value) {
107 m_parametersHasBeenSet = true;
108 m_parameters = std::forward<ParametersT>(value);
109 }
110 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
112 SetParameters(std::forward<ParametersT>(value));
113 return *this;
114 }
115 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
116 CreateAssociationBatchRequestEntry& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
117 m_parametersHasBeenSet = true;
118 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
119 return *this;
120 }
122
124
129 inline const Aws::String& GetAutomationTargetParameterName() const { return m_automationTargetParameterName; }
130 inline bool AutomationTargetParameterNameHasBeenSet() const { return m_automationTargetParameterNameHasBeenSet; }
131 template <typename AutomationTargetParameterNameT = Aws::String>
132 void SetAutomationTargetParameterName(AutomationTargetParameterNameT&& value) {
133 m_automationTargetParameterNameHasBeenSet = true;
134 m_automationTargetParameterName = std::forward<AutomationTargetParameterNameT>(value);
135 }
136 template <typename AutomationTargetParameterNameT = Aws::String>
138 SetAutomationTargetParameterName(std::forward<AutomationTargetParameterNameT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
148 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
149 template <typename DocumentVersionT = Aws::String>
150 void SetDocumentVersion(DocumentVersionT&& value) {
151 m_documentVersionHasBeenSet = true;
152 m_documentVersion = std::forward<DocumentVersionT>(value);
153 }
154 template <typename DocumentVersionT = Aws::String>
156 SetDocumentVersion(std::forward<DocumentVersionT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
166 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
167 template <typename TargetsT = Aws::Vector<Target>>
168 void SetTargets(TargetsT&& value) {
169 m_targetsHasBeenSet = true;
170 m_targets = std::forward<TargetsT>(value);
171 }
172 template <typename TargetsT = Aws::Vector<Target>>
174 SetTargets(std::forward<TargetsT>(value));
175 return *this;
176 }
177 template <typename TargetsT = Target>
179 m_targetsHasBeenSet = true;
180 m_targets.emplace_back(std::forward<TargetsT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
190 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
191 template <typename ScheduleExpressionT = Aws::String>
192 void SetScheduleExpression(ScheduleExpressionT&& value) {
193 m_scheduleExpressionHasBeenSet = true;
194 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
195 }
196 template <typename ScheduleExpressionT = Aws::String>
198 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
199 return *this;
200 }
202
204
207 inline const InstanceAssociationOutputLocation& GetOutputLocation() const { return m_outputLocation; }
208 inline bool OutputLocationHasBeenSet() const { return m_outputLocationHasBeenSet; }
209 template <typename OutputLocationT = InstanceAssociationOutputLocation>
210 void SetOutputLocation(OutputLocationT&& value) {
211 m_outputLocationHasBeenSet = true;
212 m_outputLocation = std::forward<OutputLocationT>(value);
213 }
214 template <typename OutputLocationT = InstanceAssociationOutputLocation>
216 SetOutputLocation(std::forward<OutputLocationT>(value));
217 return *this;
218 }
220
222
225 inline const Aws::String& GetAssociationName() const { return m_associationName; }
226 inline bool AssociationNameHasBeenSet() const { return m_associationNameHasBeenSet; }
227 template <typename AssociationNameT = Aws::String>
228 void SetAssociationName(AssociationNameT&& value) {
229 m_associationNameHasBeenSet = true;
230 m_associationName = std::forward<AssociationNameT>(value);
231 }
232 template <typename AssociationNameT = Aws::String>
234 SetAssociationName(std::forward<AssociationNameT>(value));
235 return *this;
236 }
238
240
255 inline const Aws::String& GetMaxErrors() const { return m_maxErrors; }
256 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
257 template <typename MaxErrorsT = Aws::String>
258 void SetMaxErrors(MaxErrorsT&& value) {
259 m_maxErrorsHasBeenSet = true;
260 m_maxErrors = std::forward<MaxErrorsT>(value);
261 }
262 template <typename MaxErrorsT = Aws::String>
264 SetMaxErrors(std::forward<MaxErrorsT>(value));
265 return *this;
266 }
268
270
280 inline const Aws::String& GetMaxConcurrency() const { return m_maxConcurrency; }
281 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
282 template <typename MaxConcurrencyT = Aws::String>
283 void SetMaxConcurrency(MaxConcurrencyT&& value) {
284 m_maxConcurrencyHasBeenSet = true;
285 m_maxConcurrency = std::forward<MaxConcurrencyT>(value);
286 }
287 template <typename MaxConcurrencyT = Aws::String>
289 SetMaxConcurrency(std::forward<MaxConcurrencyT>(value));
290 return *this;
291 }
293
295
298 inline AssociationComplianceSeverity GetComplianceSeverity() const { return m_complianceSeverity; }
299 inline bool ComplianceSeverityHasBeenSet() const { return m_complianceSeverityHasBeenSet; }
301 m_complianceSeverityHasBeenSet = true;
302 m_complianceSeverity = value;
303 }
306 return *this;
307 }
309
311
324 inline AssociationSyncCompliance GetSyncCompliance() const { return m_syncCompliance; }
325 inline bool SyncComplianceHasBeenSet() const { return m_syncComplianceHasBeenSet; }
327 m_syncComplianceHasBeenSet = true;
328 m_syncCompliance = value;
329 }
331 SetSyncCompliance(value);
332 return *this;
333 }
335
337
350 inline bool GetApplyOnlyAtCronInterval() const { return m_applyOnlyAtCronInterval; }
351 inline bool ApplyOnlyAtCronIntervalHasBeenSet() const { return m_applyOnlyAtCronIntervalHasBeenSet; }
352 inline void SetApplyOnlyAtCronInterval(bool value) {
353 m_applyOnlyAtCronIntervalHasBeenSet = true;
354 m_applyOnlyAtCronInterval = value;
355 }
358 return *this;
359 }
361
363
371 inline const Aws::Vector<Aws::String>& GetCalendarNames() const { return m_calendarNames; }
372 inline bool CalendarNamesHasBeenSet() const { return m_calendarNamesHasBeenSet; }
373 template <typename CalendarNamesT = Aws::Vector<Aws::String>>
374 void SetCalendarNames(CalendarNamesT&& value) {
375 m_calendarNamesHasBeenSet = true;
376 m_calendarNames = std::forward<CalendarNamesT>(value);
377 }
378 template <typename CalendarNamesT = Aws::Vector<Aws::String>>
380 SetCalendarNames(std::forward<CalendarNamesT>(value));
381 return *this;
382 }
383 template <typename CalendarNamesT = Aws::String>
385 m_calendarNamesHasBeenSet = true;
386 m_calendarNames.emplace_back(std::forward<CalendarNamesT>(value));
387 return *this;
388 }
390
392
396 inline const Aws::Vector<TargetLocation>& GetTargetLocations() const { return m_targetLocations; }
397 inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; }
398 template <typename TargetLocationsT = Aws::Vector<TargetLocation>>
399 void SetTargetLocations(TargetLocationsT&& value) {
400 m_targetLocationsHasBeenSet = true;
401 m_targetLocations = std::forward<TargetLocationsT>(value);
402 }
403 template <typename TargetLocationsT = Aws::Vector<TargetLocation>>
405 SetTargetLocations(std::forward<TargetLocationsT>(value));
406 return *this;
407 }
408 template <typename TargetLocationsT = TargetLocation>
410 m_targetLocationsHasBeenSet = true;
411 m_targetLocations.emplace_back(std::forward<TargetLocationsT>(value));
412 return *this;
413 }
415
417
420 inline int GetScheduleOffset() const { return m_scheduleOffset; }
421 inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
422 inline void SetScheduleOffset(int value) {
423 m_scheduleOffsetHasBeenSet = true;
424 m_scheduleOffset = value;
425 }
427 SetScheduleOffset(value);
428 return *this;
429 }
431
433
448 inline int GetDuration() const { return m_duration; }
449 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
450 inline void SetDuration(int value) {
451 m_durationHasBeenSet = true;
452 m_duration = value;
453 }
455 SetDuration(value);
456 return *this;
457 }
459
461
465 inline const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& GetTargetMaps() const { return m_targetMaps; }
466 inline bool TargetMapsHasBeenSet() const { return m_targetMapsHasBeenSet; }
467 template <typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
468 void SetTargetMaps(TargetMapsT&& value) {
469 m_targetMapsHasBeenSet = true;
470 m_targetMaps = std::forward<TargetMapsT>(value);
471 }
472 template <typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
474 SetTargetMaps(std::forward<TargetMapsT>(value));
475 return *this;
476 }
477 template <typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
479 m_targetMapsHasBeenSet = true;
480 m_targetMaps.emplace_back(std::forward<TargetMapsT>(value));
481 return *this;
482 }
484
486
487 inline const AlarmConfiguration& GetAlarmConfiguration() const { return m_alarmConfiguration; }
488 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
489 template <typename AlarmConfigurationT = AlarmConfiguration>
490 void SetAlarmConfiguration(AlarmConfigurationT&& value) {
491 m_alarmConfigurationHasBeenSet = true;
492 m_alarmConfiguration = std::forward<AlarmConfigurationT>(value);
493 }
494 template <typename AlarmConfigurationT = AlarmConfiguration>
496 SetAlarmConfiguration(std::forward<AlarmConfigurationT>(value));
497 return *this;
498 }
500 private:
501 Aws::String m_name;
502
503 Aws::String m_instanceId;
504
506
507 Aws::String m_automationTargetParameterName;
508
509 Aws::String m_documentVersion;
510
511 Aws::Vector<Target> m_targets;
512
513 Aws::String m_scheduleExpression;
514
515 InstanceAssociationOutputLocation m_outputLocation;
516
517 Aws::String m_associationName;
518
519 Aws::String m_maxErrors;
520
521 Aws::String m_maxConcurrency;
522
524
526
527 bool m_applyOnlyAtCronInterval{false};
528
529 Aws::Vector<Aws::String> m_calendarNames;
530
531 Aws::Vector<TargetLocation> m_targetLocations;
532
533 int m_scheduleOffset{0};
534
535 int m_duration{0};
536
538
539 AlarmConfiguration m_alarmConfiguration;
540 bool m_nameHasBeenSet = false;
541 bool m_instanceIdHasBeenSet = false;
542 bool m_parametersHasBeenSet = false;
543 bool m_automationTargetParameterNameHasBeenSet = false;
544 bool m_documentVersionHasBeenSet = false;
545 bool m_targetsHasBeenSet = false;
546 bool m_scheduleExpressionHasBeenSet = false;
547 bool m_outputLocationHasBeenSet = false;
548 bool m_associationNameHasBeenSet = false;
549 bool m_maxErrorsHasBeenSet = false;
550 bool m_maxConcurrencyHasBeenSet = false;
551 bool m_complianceSeverityHasBeenSet = false;
552 bool m_syncComplianceHasBeenSet = false;
553 bool m_applyOnlyAtCronIntervalHasBeenSet = false;
554 bool m_calendarNamesHasBeenSet = false;
555 bool m_targetLocationsHasBeenSet = false;
556 bool m_scheduleOffsetHasBeenSet = false;
557 bool m_durationHasBeenSet = false;
558 bool m_targetMapsHasBeenSet = false;
559 bool m_alarmConfigurationHasBeenSet = false;
560};
561
562} // namespace Model
563} // namespace SSM
564} // 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