AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssociationVersionInfo.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.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/Target.h>
16#include <aws/ssm/model/TargetLocation.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace SSM
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_SSM_API AssociationVersionInfo() = default;
46
47
49
52 inline const Aws::String& GetAssociationId() const { return m_associationId; }
53 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
54 template<typename AssociationIdT = Aws::String>
55 void SetAssociationId(AssociationIdT&& value) { m_associationIdHasBeenSet = true; m_associationId = std::forward<AssociationIdT>(value); }
56 template<typename AssociationIdT = Aws::String>
57 AssociationVersionInfo& WithAssociationId(AssociationIdT&& value) { SetAssociationId(std::forward<AssociationIdT>(value)); return *this;}
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) { m_associationVersionHasBeenSet = true; m_associationVersion = std::forward<AssociationVersionT>(value); }
68 template<typename AssociationVersionT = Aws::String>
69 AssociationVersionInfo& WithAssociationVersion(AssociationVersionT&& value) { SetAssociationVersion(std::forward<AssociationVersionT>(value)); return *this;}
71
73
76 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
77 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
78 template<typename CreatedDateT = Aws::Utils::DateTime>
79 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
80 template<typename CreatedDateT = Aws::Utils::DateTime>
81 AssociationVersionInfo& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
83
85
88 inline const Aws::String& GetName() const { return m_name; }
89 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
90 template<typename NameT = Aws::String>
91 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
92 template<typename NameT = Aws::String>
93 AssociationVersionInfo& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
95
97
101 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
102 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
103 template<typename DocumentVersionT = Aws::String>
104 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::forward<DocumentVersionT>(value); }
105 template<typename DocumentVersionT = Aws::String>
106 AssociationVersionInfo& WithDocumentVersion(DocumentVersionT&& value) { SetDocumentVersion(std::forward<DocumentVersionT>(value)); return *this;}
108
110
113 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const { return m_parameters; }
114 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
115 template<typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
116 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
117 template<typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
118 AssociationVersionInfo& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
119 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
120 AssociationVersionInfo& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
121 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
122 }
124
126
130 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
131 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
132 template<typename TargetsT = Aws::Vector<Target>>
133 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
134 template<typename TargetsT = Aws::Vector<Target>>
135 AssociationVersionInfo& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
136 template<typename TargetsT = Target>
137 AssociationVersionInfo& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
139
141
145 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
146 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
147 template<typename ScheduleExpressionT = Aws::String>
148 void SetScheduleExpression(ScheduleExpressionT&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::forward<ScheduleExpressionT>(value); }
149 template<typename ScheduleExpressionT = Aws::String>
150 AssociationVersionInfo& WithScheduleExpression(ScheduleExpressionT&& value) { SetScheduleExpression(std::forward<ScheduleExpressionT>(value)); return *this;}
152
154
158 inline const InstanceAssociationOutputLocation& GetOutputLocation() const { return m_outputLocation; }
159 inline bool OutputLocationHasBeenSet() const { return m_outputLocationHasBeenSet; }
160 template<typename OutputLocationT = InstanceAssociationOutputLocation>
161 void SetOutputLocation(OutputLocationT&& value) { m_outputLocationHasBeenSet = true; m_outputLocation = std::forward<OutputLocationT>(value); }
162 template<typename OutputLocationT = InstanceAssociationOutputLocation>
163 AssociationVersionInfo& WithOutputLocation(OutputLocationT&& value) { SetOutputLocation(std::forward<OutputLocationT>(value)); return *this;}
165
167
171 inline const Aws::String& GetAssociationName() const { return m_associationName; }
172 inline bool AssociationNameHasBeenSet() const { return m_associationNameHasBeenSet; }
173 template<typename AssociationNameT = Aws::String>
174 void SetAssociationName(AssociationNameT&& value) { m_associationNameHasBeenSet = true; m_associationName = std::forward<AssociationNameT>(value); }
175 template<typename AssociationNameT = Aws::String>
176 AssociationVersionInfo& WithAssociationName(AssociationNameT&& value) { SetAssociationName(std::forward<AssociationNameT>(value)); return *this;}
178
180
195 inline const Aws::String& GetMaxErrors() const { return m_maxErrors; }
196 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
197 template<typename MaxErrorsT = Aws::String>
198 void SetMaxErrors(MaxErrorsT&& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = std::forward<MaxErrorsT>(value); }
199 template<typename MaxErrorsT = Aws::String>
200 AssociationVersionInfo& WithMaxErrors(MaxErrorsT&& value) { SetMaxErrors(std::forward<MaxErrorsT>(value)); return *this;}
202
204
214 inline const Aws::String& GetMaxConcurrency() const { return m_maxConcurrency; }
215 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
216 template<typename MaxConcurrencyT = Aws::String>
217 void SetMaxConcurrency(MaxConcurrencyT&& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = std::forward<MaxConcurrencyT>(value); }
218 template<typename MaxConcurrencyT = Aws::String>
219 AssociationVersionInfo& WithMaxConcurrency(MaxConcurrencyT&& value) { SetMaxConcurrency(std::forward<MaxConcurrencyT>(value)); return *this;}
221
223
226 inline AssociationComplianceSeverity GetComplianceSeverity() const { return m_complianceSeverity; }
227 inline bool ComplianceSeverityHasBeenSet() const { return m_complianceSeverityHasBeenSet; }
228 inline void SetComplianceSeverity(AssociationComplianceSeverity value) { m_complianceSeverityHasBeenSet = true; m_complianceSeverity = value; }
231
233
246 inline AssociationSyncCompliance GetSyncCompliance() const { return m_syncCompliance; }
247 inline bool SyncComplianceHasBeenSet() const { return m_syncComplianceHasBeenSet; }
248 inline void SetSyncCompliance(AssociationSyncCompliance value) { m_syncComplianceHasBeenSet = true; m_syncCompliance = value; }
251
253
259 inline bool GetApplyOnlyAtCronInterval() const { return m_applyOnlyAtCronInterval; }
260 inline bool ApplyOnlyAtCronIntervalHasBeenSet() const { return m_applyOnlyAtCronIntervalHasBeenSet; }
261 inline void SetApplyOnlyAtCronInterval(bool value) { m_applyOnlyAtCronIntervalHasBeenSet = true; m_applyOnlyAtCronInterval = value; }
264
266
274 inline const Aws::Vector<Aws::String>& GetCalendarNames() const { return m_calendarNames; }
275 inline bool CalendarNamesHasBeenSet() const { return m_calendarNamesHasBeenSet; }
276 template<typename CalendarNamesT = Aws::Vector<Aws::String>>
277 void SetCalendarNames(CalendarNamesT&& value) { m_calendarNamesHasBeenSet = true; m_calendarNames = std::forward<CalendarNamesT>(value); }
278 template<typename CalendarNamesT = Aws::Vector<Aws::String>>
279 AssociationVersionInfo& WithCalendarNames(CalendarNamesT&& value) { SetCalendarNames(std::forward<CalendarNamesT>(value)); return *this;}
280 template<typename CalendarNamesT = Aws::String>
281 AssociationVersionInfo& AddCalendarNames(CalendarNamesT&& value) { m_calendarNamesHasBeenSet = true; m_calendarNames.emplace_back(std::forward<CalendarNamesT>(value)); return *this; }
283
285
290 inline const Aws::Vector<TargetLocation>& GetTargetLocations() const { return m_targetLocations; }
291 inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; }
292 template<typename TargetLocationsT = Aws::Vector<TargetLocation>>
293 void SetTargetLocations(TargetLocationsT&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = std::forward<TargetLocationsT>(value); }
294 template<typename TargetLocationsT = Aws::Vector<TargetLocation>>
295 AssociationVersionInfo& WithTargetLocations(TargetLocationsT&& value) { SetTargetLocations(std::forward<TargetLocationsT>(value)); return *this;}
296 template<typename TargetLocationsT = TargetLocation>
297 AssociationVersionInfo& AddTargetLocations(TargetLocationsT&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.emplace_back(std::forward<TargetLocationsT>(value)); return *this; }
299
301
304 inline int GetScheduleOffset() const { return m_scheduleOffset; }
305 inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
306 inline void SetScheduleOffset(int value) { m_scheduleOffsetHasBeenSet = true; m_scheduleOffset = value; }
307 inline AssociationVersionInfo& WithScheduleOffset(int value) { SetScheduleOffset(value); return *this;}
309
311
316 inline int GetDuration() const { return m_duration; }
317 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
318 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
319 inline AssociationVersionInfo& WithDuration(int value) { SetDuration(value); return *this;}
321
323
327 inline const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& GetTargetMaps() const { return m_targetMaps; }
328 inline bool TargetMapsHasBeenSet() const { return m_targetMapsHasBeenSet; }
329 template<typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
330 void SetTargetMaps(TargetMapsT&& value) { m_targetMapsHasBeenSet = true; m_targetMaps = std::forward<TargetMapsT>(value); }
331 template<typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
332 AssociationVersionInfo& WithTargetMaps(TargetMapsT&& value) { SetTargetMaps(std::forward<TargetMapsT>(value)); return *this;}
333 template<typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
334 AssociationVersionInfo& AddTargetMaps(TargetMapsT&& value) { m_targetMapsHasBeenSet = true; m_targetMaps.emplace_back(std::forward<TargetMapsT>(value)); return *this; }
336 private:
337
338 Aws::String m_associationId;
339 bool m_associationIdHasBeenSet = false;
340
341 Aws::String m_associationVersion;
342 bool m_associationVersionHasBeenSet = false;
343
344 Aws::Utils::DateTime m_createdDate{};
345 bool m_createdDateHasBeenSet = false;
346
347 Aws::String m_name;
348 bool m_nameHasBeenSet = false;
349
350 Aws::String m_documentVersion;
351 bool m_documentVersionHasBeenSet = false;
352
354 bool m_parametersHasBeenSet = false;
355
356 Aws::Vector<Target> m_targets;
357 bool m_targetsHasBeenSet = false;
358
359 Aws::String m_scheduleExpression;
360 bool m_scheduleExpressionHasBeenSet = false;
361
362 InstanceAssociationOutputLocation m_outputLocation;
363 bool m_outputLocationHasBeenSet = false;
364
365 Aws::String m_associationName;
366 bool m_associationNameHasBeenSet = false;
367
368 Aws::String m_maxErrors;
369 bool m_maxErrorsHasBeenSet = false;
370
371 Aws::String m_maxConcurrency;
372 bool m_maxConcurrencyHasBeenSet = false;
373
375 bool m_complianceSeverityHasBeenSet = false;
376
378 bool m_syncComplianceHasBeenSet = false;
379
380 bool m_applyOnlyAtCronInterval{false};
381 bool m_applyOnlyAtCronIntervalHasBeenSet = false;
382
383 Aws::Vector<Aws::String> m_calendarNames;
384 bool m_calendarNamesHasBeenSet = false;
385
386 Aws::Vector<TargetLocation> m_targetLocations;
387 bool m_targetLocationsHasBeenSet = false;
388
389 int m_scheduleOffset{0};
390 bool m_scheduleOffsetHasBeenSet = false;
391
392 int m_duration{0};
393 bool m_durationHasBeenSet = false;
394
396 bool m_targetMapsHasBeenSet = false;
397 };
398
399} // namespace Model
400} // namespace SSM
401} // 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