AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Association.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/AssociationOverview.h>
13#include <aws/ssm/model/Target.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SSM {
25namespace Model {
26
34 public:
35 AWS_SSM_API Association() = default;
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
52 Association& WithName(NameT&& value) {
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
63 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
64 template <typename InstanceIdT = Aws::String>
65 void SetInstanceId(InstanceIdT&& value) {
66 m_instanceIdHasBeenSet = true;
67 m_instanceId = std::forward<InstanceIdT>(value);
68 }
69 template <typename InstanceIdT = Aws::String>
70 Association& WithInstanceId(InstanceIdT&& value) {
71 SetInstanceId(std::forward<InstanceIdT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetAssociationId() const { return m_associationId; }
82 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
83 template <typename AssociationIdT = Aws::String>
84 void SetAssociationId(AssociationIdT&& value) {
85 m_associationIdHasBeenSet = true;
86 m_associationId = std::forward<AssociationIdT>(value);
87 }
88 template <typename AssociationIdT = Aws::String>
89 Association& WithAssociationId(AssociationIdT&& value) {
90 SetAssociationId(std::forward<AssociationIdT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetAssociationVersion() const { return m_associationVersion; }
100 inline bool AssociationVersionHasBeenSet() const { return m_associationVersionHasBeenSet; }
101 template <typename AssociationVersionT = Aws::String>
102 void SetAssociationVersion(AssociationVersionT&& value) {
103 m_associationVersionHasBeenSet = true;
104 m_associationVersion = std::forward<AssociationVersionT>(value);
105 }
106 template <typename AssociationVersionT = Aws::String>
107 Association& WithAssociationVersion(AssociationVersionT&& value) {
108 SetAssociationVersion(std::forward<AssociationVersionT>(value));
109 return *this;
110 }
112
114
127 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
128 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
129 template <typename DocumentVersionT = Aws::String>
130 void SetDocumentVersion(DocumentVersionT&& value) {
131 m_documentVersionHasBeenSet = true;
132 m_documentVersion = std::forward<DocumentVersionT>(value);
133 }
134 template <typename DocumentVersionT = Aws::String>
135 Association& WithDocumentVersion(DocumentVersionT&& value) {
136 SetDocumentVersion(std::forward<DocumentVersionT>(value));
137 return *this;
138 }
140
142
147 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
148 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
149 template <typename TargetsT = Aws::Vector<Target>>
150 void SetTargets(TargetsT&& value) {
151 m_targetsHasBeenSet = true;
152 m_targets = std::forward<TargetsT>(value);
153 }
154 template <typename TargetsT = Aws::Vector<Target>>
155 Association& WithTargets(TargetsT&& value) {
156 SetTargets(std::forward<TargetsT>(value));
157 return *this;
158 }
159 template <typename TargetsT = Target>
160 Association& AddTargets(TargetsT&& value) {
161 m_targetsHasBeenSet = true;
162 m_targets.emplace_back(std::forward<TargetsT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Utils::DateTime& GetLastExecutionDate() const { return m_lastExecutionDate; }
172 inline bool LastExecutionDateHasBeenSet() const { return m_lastExecutionDateHasBeenSet; }
173 template <typename LastExecutionDateT = Aws::Utils::DateTime>
174 void SetLastExecutionDate(LastExecutionDateT&& value) {
175 m_lastExecutionDateHasBeenSet = true;
176 m_lastExecutionDate = std::forward<LastExecutionDateT>(value);
177 }
178 template <typename LastExecutionDateT = Aws::Utils::DateTime>
179 Association& WithLastExecutionDate(LastExecutionDateT&& value) {
180 SetLastExecutionDate(std::forward<LastExecutionDateT>(value));
181 return *this;
182 }
184
186
189 inline const AssociationOverview& GetOverview() const { return m_overview; }
190 inline bool OverviewHasBeenSet() const { return m_overviewHasBeenSet; }
191 template <typename OverviewT = AssociationOverview>
192 void SetOverview(OverviewT&& value) {
193 m_overviewHasBeenSet = true;
194 m_overview = std::forward<OverviewT>(value);
195 }
196 template <typename OverviewT = AssociationOverview>
197 Association& WithOverview(OverviewT&& value) {
198 SetOverview(std::forward<OverviewT>(value));
199 return *this;
200 }
202
204
208 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
209 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
210 template <typename ScheduleExpressionT = Aws::String>
211 void SetScheduleExpression(ScheduleExpressionT&& value) {
212 m_scheduleExpressionHasBeenSet = true;
213 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
214 }
215 template <typename ScheduleExpressionT = Aws::String>
216 Association& WithScheduleExpression(ScheduleExpressionT&& value) {
217 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::String& GetAssociationName() const { return m_associationName; }
227 inline bool AssociationNameHasBeenSet() const { return m_associationNameHasBeenSet; }
228 template <typename AssociationNameT = Aws::String>
229 void SetAssociationName(AssociationNameT&& value) {
230 m_associationNameHasBeenSet = true;
231 m_associationName = std::forward<AssociationNameT>(value);
232 }
233 template <typename AssociationNameT = Aws::String>
234 Association& WithAssociationName(AssociationNameT&& value) {
235 SetAssociationName(std::forward<AssociationNameT>(value));
236 return *this;
237 }
239
241
244 inline int GetScheduleOffset() const { return m_scheduleOffset; }
245 inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
246 inline void SetScheduleOffset(int value) {
247 m_scheduleOffsetHasBeenSet = true;
248 m_scheduleOffset = value;
249 }
250 inline Association& WithScheduleOffset(int value) {
251 SetScheduleOffset(value);
252 return *this;
253 }
255
257
262 inline int GetDuration() const { return m_duration; }
263 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
264 inline void SetDuration(int value) {
265 m_durationHasBeenSet = true;
266 m_duration = value;
267 }
268 inline Association& WithDuration(int value) {
269 SetDuration(value);
270 return *this;
271 }
273
275
279 inline const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& GetTargetMaps() const { return m_targetMaps; }
280 inline bool TargetMapsHasBeenSet() const { return m_targetMapsHasBeenSet; }
281 template <typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
282 void SetTargetMaps(TargetMapsT&& value) {
283 m_targetMapsHasBeenSet = true;
284 m_targetMaps = std::forward<TargetMapsT>(value);
285 }
286 template <typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
287 Association& WithTargetMaps(TargetMapsT&& value) {
288 SetTargetMaps(std::forward<TargetMapsT>(value));
289 return *this;
290 }
291 template <typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
292 Association& AddTargetMaps(TargetMapsT&& value) {
293 m_targetMapsHasBeenSet = true;
294 m_targetMaps.emplace_back(std::forward<TargetMapsT>(value));
295 return *this;
296 }
298 private:
299 Aws::String m_name;
300
301 Aws::String m_instanceId;
302
303 Aws::String m_associationId;
304
305 Aws::String m_associationVersion;
306
307 Aws::String m_documentVersion;
308
309 Aws::Vector<Target> m_targets;
310
311 Aws::Utils::DateTime m_lastExecutionDate{};
312
313 AssociationOverview m_overview;
314
315 Aws::String m_scheduleExpression;
316
317 Aws::String m_associationName;
318
319 int m_scheduleOffset{0};
320
321 int m_duration{0};
322
324 bool m_nameHasBeenSet = false;
325 bool m_instanceIdHasBeenSet = false;
326 bool m_associationIdHasBeenSet = false;
327 bool m_associationVersionHasBeenSet = false;
328 bool m_documentVersionHasBeenSet = false;
329 bool m_targetsHasBeenSet = false;
330 bool m_lastExecutionDateHasBeenSet = false;
331 bool m_overviewHasBeenSet = false;
332 bool m_scheduleExpressionHasBeenSet = false;
333 bool m_associationNameHasBeenSet = false;
334 bool m_scheduleOffsetHasBeenSet = false;
335 bool m_durationHasBeenSet = false;
336 bool m_targetMapsHasBeenSet = false;
337};
338
339} // namespace Model
340} // namespace SSM
341} // namespace Aws
Association & WithName(NameT &&value)
Definition Association.h:52
void SetName(NameT &&value)
Definition Association.h:47
bool ScheduleExpressionHasBeenSet() const
void SetAssociationName(AssociationNameT &&value)
Association & AddTargets(TargetsT &&value)
const Aws::String & GetDocumentVersion() const
bool AssociationIdHasBeenSet() const
Definition Association.h:82
Association & WithAssociationName(AssociationNameT &&value)
void SetScheduleOffset(int value)
Association & WithInstanceId(InstanceIdT &&value)
Definition Association.h:70
bool LastExecutionDateHasBeenSet() const
bool ScheduleOffsetHasBeenSet() const
AWS_SSM_API Association(Aws::Utils::Json::JsonView jsonValue)
Association & WithScheduleExpression(ScheduleExpressionT &&value)
void SetAssociationId(AssociationIdT &&value)
Definition Association.h:84
AWS_SSM_API Association & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetScheduleExpression() const
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
Association & WithAssociationVersion(AssociationVersionT &&value)
bool AssociationNameHasBeenSet() const
Association & AddTargetMaps(TargetMapsT &&value)
const Aws::String & GetInstanceId() const
Definition Association.h:62
const Aws::String & GetAssociationName() const
void SetTargets(TargetsT &&value)
Association & WithDocumentVersion(DocumentVersionT &&value)
const Aws::Utils::DateTime & GetLastExecutionDate() const
void SetTargetMaps(TargetMapsT &&value)
AWS_SSM_API Association()=default
bool AssociationVersionHasBeenSet() const
Association & WithTargetMaps(TargetMapsT &&value)
void SetInstanceId(InstanceIdT &&value)
Definition Association.h:65
void SetLastExecutionDate(LastExecutionDateT &&value)
void SetOverview(OverviewT &&value)
void SetDocumentVersion(DocumentVersionT &&value)
Association & WithDuration(int value)
const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > & GetTargetMaps() const
const Aws::Vector< Target > & GetTargets() const
const AssociationOverview & GetOverview() const
Association & WithTargets(TargetsT &&value)
bool InstanceIdHasBeenSet() const
Definition Association.h:63
const Aws::String & GetAssociationVersion() const
Definition Association.h:99
Association & WithLastExecutionDate(LastExecutionDateT &&value)
Association & WithAssociationId(AssociationIdT &&value)
Definition Association.h:89
const Aws::String & GetAssociationId() const
Definition Association.h:81
bool DocumentVersionHasBeenSet() const
void SetScheduleExpression(ScheduleExpressionT &&value)
Association & WithScheduleOffset(int value)
void SetAssociationVersion(AssociationVersionT &&value)
const Aws::String & GetName() const
Definition Association.h:44
Association & WithOverview(OverviewT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue