AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AssociationVersionInfo.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm/SSM_EXPORTS.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
36 public:
37 AWS_SSM_API AssociationVersionInfo() = default;
41
43
46 inline const Aws::String& GetAssociationId() const { return m_associationId; }
47 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
48 template <typename AssociationIdT = Aws::String>
49 void SetAssociationId(AssociationIdT&& value) {
50 m_associationIdHasBeenSet = true;
51 m_associationId = std::forward<AssociationIdT>(value);
52 }
53 template <typename AssociationIdT = Aws::String>
54 AssociationVersionInfo& WithAssociationId(AssociationIdT&& value) {
55 SetAssociationId(std::forward<AssociationIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetAssociationVersion() const { return m_associationVersion; }
65 inline bool AssociationVersionHasBeenSet() const { return m_associationVersionHasBeenSet; }
66 template <typename AssociationVersionT = Aws::String>
67 void SetAssociationVersion(AssociationVersionT&& value) {
68 m_associationVersionHasBeenSet = true;
69 m_associationVersion = std::forward<AssociationVersionT>(value);
70 }
71 template <typename AssociationVersionT = Aws::String>
72 AssociationVersionInfo& WithAssociationVersion(AssociationVersionT&& value) {
73 SetAssociationVersion(std::forward<AssociationVersionT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
83 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
84 template <typename CreatedDateT = Aws::Utils::DateTime>
85 void SetCreatedDate(CreatedDateT&& value) {
86 m_createdDateHasBeenSet = true;
87 m_createdDate = std::forward<CreatedDateT>(value);
88 }
89 template <typename CreatedDateT = Aws::Utils::DateTime>
90 AssociationVersionInfo& WithCreatedDate(CreatedDateT&& value) {
91 SetCreatedDate(std::forward<CreatedDateT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetName() const { return m_name; }
101 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
102 template <typename NameT = Aws::String>
103 void SetName(NameT&& value) {
104 m_nameHasBeenSet = true;
105 m_name = std::forward<NameT>(value);
106 }
107 template <typename NameT = Aws::String>
109 SetName(std::forward<NameT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
120 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
121 template <typename DocumentVersionT = Aws::String>
122 void SetDocumentVersion(DocumentVersionT&& value) {
123 m_documentVersionHasBeenSet = true;
124 m_documentVersion = std::forward<DocumentVersionT>(value);
125 }
126 template <typename DocumentVersionT = Aws::String>
127 AssociationVersionInfo& WithDocumentVersion(DocumentVersionT&& value) {
128 SetDocumentVersion(std::forward<DocumentVersionT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const { return m_parameters; }
138 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
139 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
140 void SetParameters(ParametersT&& value) {
141 m_parametersHasBeenSet = true;
142 m_parameters = std::forward<ParametersT>(value);
143 }
144 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
146 SetParameters(std::forward<ParametersT>(value));
147 return *this;
148 }
149 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
150 AssociationVersionInfo& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
151 m_parametersHasBeenSet = true;
152 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
153 return *this;
154 }
156
158
162 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
163 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
164 template <typename TargetsT = Aws::Vector<Target>>
165 void SetTargets(TargetsT&& value) {
166 m_targetsHasBeenSet = true;
167 m_targets = std::forward<TargetsT>(value);
168 }
169 template <typename TargetsT = Aws::Vector<Target>>
171 SetTargets(std::forward<TargetsT>(value));
172 return *this;
173 }
174 template <typename TargetsT = Target>
176 m_targetsHasBeenSet = true;
177 m_targets.emplace_back(std::forward<TargetsT>(value));
178 return *this;
179 }
181
183
187 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
188 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
189 template <typename ScheduleExpressionT = Aws::String>
190 void SetScheduleExpression(ScheduleExpressionT&& value) {
191 m_scheduleExpressionHasBeenSet = true;
192 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
193 }
194 template <typename ScheduleExpressionT = Aws::String>
195 AssociationVersionInfo& WithScheduleExpression(ScheduleExpressionT&& value) {
196 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
197 return *this;
198 }
200
202
206 inline const InstanceAssociationOutputLocation& GetOutputLocation() const { return m_outputLocation; }
207 inline bool OutputLocationHasBeenSet() const { return m_outputLocationHasBeenSet; }
208 template <typename OutputLocationT = InstanceAssociationOutputLocation>
209 void SetOutputLocation(OutputLocationT&& value) {
210 m_outputLocationHasBeenSet = true;
211 m_outputLocation = std::forward<OutputLocationT>(value);
212 }
213 template <typename OutputLocationT = InstanceAssociationOutputLocation>
214 AssociationVersionInfo& WithOutputLocation(OutputLocationT&& value) {
215 SetOutputLocation(std::forward<OutputLocationT>(value));
216 return *this;
217 }
219
221
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>
233 AssociationVersionInfo& WithAssociationName(AssociationNameT&& value) {
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>
288 AssociationVersionInfo& WithMaxConcurrency(MaxConcurrencyT&& value) {
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
343 inline bool GetApplyOnlyAtCronInterval() const { return m_applyOnlyAtCronInterval; }
344 inline bool ApplyOnlyAtCronIntervalHasBeenSet() const { return m_applyOnlyAtCronIntervalHasBeenSet; }
345 inline void SetApplyOnlyAtCronInterval(bool value) {
346 m_applyOnlyAtCronIntervalHasBeenSet = true;
347 m_applyOnlyAtCronInterval = value;
348 }
351 return *this;
352 }
354
356
364 inline const Aws::Vector<Aws::String>& GetCalendarNames() const { return m_calendarNames; }
365 inline bool CalendarNamesHasBeenSet() const { return m_calendarNamesHasBeenSet; }
366 template <typename CalendarNamesT = Aws::Vector<Aws::String>>
367 void SetCalendarNames(CalendarNamesT&& value) {
368 m_calendarNamesHasBeenSet = true;
369 m_calendarNames = std::forward<CalendarNamesT>(value);
370 }
371 template <typename CalendarNamesT = Aws::Vector<Aws::String>>
372 AssociationVersionInfo& WithCalendarNames(CalendarNamesT&& value) {
373 SetCalendarNames(std::forward<CalendarNamesT>(value));
374 return *this;
375 }
376 template <typename CalendarNamesT = Aws::String>
377 AssociationVersionInfo& AddCalendarNames(CalendarNamesT&& value) {
378 m_calendarNamesHasBeenSet = true;
379 m_calendarNames.emplace_back(std::forward<CalendarNamesT>(value));
380 return *this;
381 }
383
385
390 inline const Aws::Vector<TargetLocation>& GetTargetLocations() const { return m_targetLocations; }
391 inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; }
392 template <typename TargetLocationsT = Aws::Vector<TargetLocation>>
393 void SetTargetLocations(TargetLocationsT&& value) {
394 m_targetLocationsHasBeenSet = true;
395 m_targetLocations = std::forward<TargetLocationsT>(value);
396 }
397 template <typename TargetLocationsT = Aws::Vector<TargetLocation>>
398 AssociationVersionInfo& WithTargetLocations(TargetLocationsT&& value) {
399 SetTargetLocations(std::forward<TargetLocationsT>(value));
400 return *this;
401 }
402 template <typename TargetLocationsT = TargetLocation>
403 AssociationVersionInfo& AddTargetLocations(TargetLocationsT&& value) {
404 m_targetLocationsHasBeenSet = true;
405 m_targetLocations.emplace_back(std::forward<TargetLocationsT>(value));
406 return *this;
407 }
409
411
414 inline int GetScheduleOffset() const { return m_scheduleOffset; }
415 inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
416 inline void SetScheduleOffset(int value) {
417 m_scheduleOffsetHasBeenSet = true;
418 m_scheduleOffset = value;
419 }
421 SetScheduleOffset(value);
422 return *this;
423 }
425
427
432 inline int GetDuration() const { return m_duration; }
433 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
434 inline void SetDuration(int value) {
435 m_durationHasBeenSet = true;
436 m_duration = value;
437 }
439 SetDuration(value);
440 return *this;
441 }
443
445
449 inline const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& GetTargetMaps() const { return m_targetMaps; }
450 inline bool TargetMapsHasBeenSet() const { return m_targetMapsHasBeenSet; }
451 template <typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
452 void SetTargetMaps(TargetMapsT&& value) {
453 m_targetMapsHasBeenSet = true;
454 m_targetMaps = std::forward<TargetMapsT>(value);
455 }
456 template <typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
458 SetTargetMaps(std::forward<TargetMapsT>(value));
459 return *this;
460 }
461 template <typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
462 AssociationVersionInfo& AddTargetMaps(TargetMapsT&& value) {
463 m_targetMapsHasBeenSet = true;
464 m_targetMaps.emplace_back(std::forward<TargetMapsT>(value));
465 return *this;
466 }
468 private:
469 Aws::String m_associationId;
470
471 Aws::String m_associationVersion;
472
473 Aws::Utils::DateTime m_createdDate{};
474
475 Aws::String m_name;
476
477 Aws::String m_documentVersion;
478
480
481 Aws::Vector<Target> m_targets;
482
483 Aws::String m_scheduleExpression;
484
485 InstanceAssociationOutputLocation m_outputLocation;
486
487 Aws::String m_associationName;
488
489 Aws::String m_maxErrors;
490
491 Aws::String m_maxConcurrency;
492
494
496
497 bool m_applyOnlyAtCronInterval{false};
498
499 Aws::Vector<Aws::String> m_calendarNames;
500
501 Aws::Vector<TargetLocation> m_targetLocations;
502
503 int m_scheduleOffset{0};
504
505 int m_duration{0};
506
508 bool m_associationIdHasBeenSet = false;
509 bool m_associationVersionHasBeenSet = false;
510 bool m_createdDateHasBeenSet = false;
511 bool m_nameHasBeenSet = false;
512 bool m_documentVersionHasBeenSet = false;
513 bool m_parametersHasBeenSet = false;
514 bool m_targetsHasBeenSet = false;
515 bool m_scheduleExpressionHasBeenSet = false;
516 bool m_outputLocationHasBeenSet = false;
517 bool m_associationNameHasBeenSet = false;
518 bool m_maxErrorsHasBeenSet = false;
519 bool m_maxConcurrencyHasBeenSet = false;
520 bool m_complianceSeverityHasBeenSet = false;
521 bool m_syncComplianceHasBeenSet = false;
522 bool m_applyOnlyAtCronIntervalHasBeenSet = false;
523 bool m_calendarNamesHasBeenSet = false;
524 bool m_targetLocationsHasBeenSet = false;
525 bool m_scheduleOffsetHasBeenSet = false;
526 bool m_durationHasBeenSet = false;
527 bool m_targetMapsHasBeenSet = false;
528};
529
530} // namespace Model
531} // namespace SSM
532} // namespace Aws
AssociationVersionInfo & WithApplyOnlyAtCronInterval(bool value)
AssociationVersionInfo & WithParameters(ParametersT &&value)
AssociationVersionInfo & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
void SetOutputLocation(OutputLocationT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
const Aws::Vector< TargetLocation > & GetTargetLocations() const
AssociationVersionInfo & WithName(NameT &&value)
AssociationVersionInfo & AddTargets(TargetsT &&value)
const Aws::String & GetAssociationVersion() const
AssociationVersionInfo & WithMaxErrors(MaxErrorsT &&value)
void SetAssociationVersion(AssociationVersionT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AssociationComplianceSeverity GetComplianceSeverity() const
const Aws::Vector< Aws::String > & GetCalendarNames() const
const Aws::Vector< Target > & GetTargets() const
AssociationVersionInfo & WithAssociationVersion(AssociationVersionT &&value)
AssociationVersionInfo & WithMaxConcurrency(MaxConcurrencyT &&value)
AssociationVersionInfo & WithTargets(TargetsT &&value)
AssociationVersionInfo & WithScheduleOffset(int value)
AssociationVersionInfo & WithCreatedDate(CreatedDateT &&value)
void SetTargetLocations(TargetLocationsT &&value)
AssociationVersionInfo & WithTargetMaps(TargetMapsT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
AssociationVersionInfo & WithScheduleExpression(ScheduleExpressionT &&value)
AssociationVersionInfo & WithDocumentVersion(DocumentVersionT &&value)
AssociationVersionInfo & AddCalendarNames(CalendarNamesT &&value)
AssociationVersionInfo & AddTargetMaps(TargetMapsT &&value)
AssociationVersionInfo & AddTargetLocations(TargetLocationsT &&value)
void SetAssociationName(AssociationNameT &&value)
const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > & GetTargetMaps() const
AssociationVersionInfo & WithTargetLocations(TargetLocationsT &&value)
AssociationVersionInfo & WithAssociationName(AssociationNameT &&value)
AssociationVersionInfo & WithSyncCompliance(AssociationSyncCompliance value)
AWS_SSM_API AssociationVersionInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDocumentVersion(DocumentVersionT &&value)
const Aws::String & GetScheduleExpression() const
AssociationVersionInfo & WithComplianceSeverity(AssociationComplianceSeverity value)
void SetComplianceSeverity(AssociationComplianceSeverity value)
AssociationVersionInfo & WithAssociationId(AssociationIdT &&value)
AWS_SSM_API AssociationVersionInfo()=default
AssociationVersionInfo & WithOutputLocation(OutputLocationT &&value)
AWS_SSM_API AssociationVersionInfo(Aws::Utils::Json::JsonView jsonValue)
void SetScheduleExpression(ScheduleExpressionT &&value)
AssociationSyncCompliance GetSyncCompliance() const
AssociationVersionInfo & WithCalendarNames(CalendarNamesT &&value)
void SetAssociationId(AssociationIdT &&value)
const InstanceAssociationOutputLocation & GetOutputLocation() const
void SetSyncCompliance(AssociationSyncCompliance value)
void SetMaxConcurrency(MaxConcurrencyT &&value)
AssociationVersionInfo & WithDuration(int value)
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