AWS SDK for C++  1.8.95
AWS SDK for C++
Association.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
12 #include <aws/ssm/model/Target.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace SSM
26 {
27 namespace Model
28 {
29 
37  {
38  public:
39  Association();
41  Association& operator=(Aws::Utils::Json::JsonView jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
44 
48  inline const Aws::String& GetName() const{ return m_name; }
49 
53  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 
58  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 
63  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 
68  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 
73  inline Association& WithName(const Aws::String& value) { SetName(value); return *this;}
74 
78  inline Association& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 
83  inline Association& WithName(const char* value) { SetName(value); return *this;}
84 
85 
89  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
90 
94  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
95 
99  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
100 
104  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
105 
109  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
110 
114  inline Association& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
115 
119  inline Association& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
120 
124  inline Association& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
125 
126 
131  inline const Aws::String& GetAssociationId() const{ return m_associationId; }
132 
137  inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
138 
143  inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
144 
149  inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
150 
155  inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
156 
161  inline Association& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
162 
167  inline Association& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
168 
173  inline Association& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
174 
175 
179  inline const Aws::String& GetAssociationVersion() const{ return m_associationVersion; }
180 
184  inline bool AssociationVersionHasBeenSet() const { return m_associationVersionHasBeenSet; }
185 
189  inline void SetAssociationVersion(const Aws::String& value) { m_associationVersionHasBeenSet = true; m_associationVersion = value; }
190 
194  inline void SetAssociationVersion(Aws::String&& value) { m_associationVersionHasBeenSet = true; m_associationVersion = std::move(value); }
195 
199  inline void SetAssociationVersion(const char* value) { m_associationVersionHasBeenSet = true; m_associationVersion.assign(value); }
200 
204  inline Association& WithAssociationVersion(const Aws::String& value) { SetAssociationVersion(value); return *this;}
205 
209  inline Association& WithAssociationVersion(Aws::String&& value) { SetAssociationVersion(std::move(value)); return *this;}
210 
214  inline Association& WithAssociationVersion(const char* value) { SetAssociationVersion(value); return *this;}
215 
216 
220  inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; }
221 
225  inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
226 
230  inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; }
231 
235  inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); }
236 
240  inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); }
241 
245  inline Association& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;}
246 
250  inline Association& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;}
251 
255  inline Association& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;}
256 
257 
261  inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
262 
266  inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
267 
271  inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
272 
276  inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
277 
281  inline Association& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
282 
286  inline Association& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
287 
291  inline Association& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
292 
296  inline Association& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
297 
298 
302  inline const Aws::Utils::DateTime& GetLastExecutionDate() const{ return m_lastExecutionDate; }
303 
307  inline bool LastExecutionDateHasBeenSet() const { return m_lastExecutionDateHasBeenSet; }
308 
312  inline void SetLastExecutionDate(const Aws::Utils::DateTime& value) { m_lastExecutionDateHasBeenSet = true; m_lastExecutionDate = value; }
313 
317  inline void SetLastExecutionDate(Aws::Utils::DateTime&& value) { m_lastExecutionDateHasBeenSet = true; m_lastExecutionDate = std::move(value); }
318 
322  inline Association& WithLastExecutionDate(const Aws::Utils::DateTime& value) { SetLastExecutionDate(value); return *this;}
323 
327  inline Association& WithLastExecutionDate(Aws::Utils::DateTime&& value) { SetLastExecutionDate(std::move(value)); return *this;}
328 
329 
333  inline const AssociationOverview& GetOverview() const{ return m_overview; }
334 
338  inline bool OverviewHasBeenSet() const { return m_overviewHasBeenSet; }
339 
343  inline void SetOverview(const AssociationOverview& value) { m_overviewHasBeenSet = true; m_overview = value; }
344 
348  inline void SetOverview(AssociationOverview&& value) { m_overviewHasBeenSet = true; m_overview = std::move(value); }
349 
353  inline Association& WithOverview(const AssociationOverview& value) { SetOverview(value); return *this;}
354 
358  inline Association& WithOverview(AssociationOverview&& value) { SetOverview(std::move(value)); return *this;}
359 
360 
364  inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
365 
369  inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
370 
374  inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
375 
379  inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); }
380 
384  inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); }
385 
389  inline Association& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;}
390 
394  inline Association& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
395 
399  inline Association& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
400 
401 
405  inline const Aws::String& GetAssociationName() const{ return m_associationName; }
406 
410  inline bool AssociationNameHasBeenSet() const { return m_associationNameHasBeenSet; }
411 
415  inline void SetAssociationName(const Aws::String& value) { m_associationNameHasBeenSet = true; m_associationName = value; }
416 
420  inline void SetAssociationName(Aws::String&& value) { m_associationNameHasBeenSet = true; m_associationName = std::move(value); }
421 
425  inline void SetAssociationName(const char* value) { m_associationNameHasBeenSet = true; m_associationName.assign(value); }
426 
430  inline Association& WithAssociationName(const Aws::String& value) { SetAssociationName(value); return *this;}
431 
435  inline Association& WithAssociationName(Aws::String&& value) { SetAssociationName(std::move(value)); return *this;}
436 
440  inline Association& WithAssociationName(const char* value) { SetAssociationName(value); return *this;}
441 
442  private:
443 
444  Aws::String m_name;
445  bool m_nameHasBeenSet;
446 
447  Aws::String m_instanceId;
448  bool m_instanceIdHasBeenSet;
449 
450  Aws::String m_associationId;
451  bool m_associationIdHasBeenSet;
452 
453  Aws::String m_associationVersion;
454  bool m_associationVersionHasBeenSet;
455 
456  Aws::String m_documentVersion;
457  bool m_documentVersionHasBeenSet;
458 
459  Aws::Vector<Target> m_targets;
460  bool m_targetsHasBeenSet;
461 
462  Aws::Utils::DateTime m_lastExecutionDate;
463  bool m_lastExecutionDateHasBeenSet;
464 
465  AssociationOverview m_overview;
466  bool m_overviewHasBeenSet;
467 
468  Aws::String m_scheduleExpression;
469  bool m_scheduleExpressionHasBeenSet;
470 
471  Aws::String m_associationName;
472  bool m_associationNameHasBeenSet;
473  };
474 
475 } // namespace Model
476 } // namespace SSM
477 } // namespace Aws
void SetOverview(const AssociationOverview &value)
Definition: Association.h:343
Association & WithScheduleExpression(Aws::String &&value)
Definition: Association.h:394
void SetAssociationVersion(const Aws::String &value)
Definition: Association.h:189
Association & WithAssociationName(Aws::String &&value)
Definition: Association.h:435
const Aws::Utils::DateTime & GetLastExecutionDate() const
Definition: Association.h:302
Association & WithName(const char *value)
Definition: Association.h:83
void SetLastExecutionDate(Aws::Utils::DateTime &&value)
Definition: Association.h:317
Association & WithAssociationId(const Aws::String &value)
Definition: Association.h:161
void SetScheduleExpression(Aws::String &&value)
Definition: Association.h:379
void SetDocumentVersion(Aws::String &&value)
Definition: Association.h:235
const Aws::String & GetAssociationVersion() const
Definition: Association.h:179
bool ScheduleExpressionHasBeenSet() const
Definition: Association.h:369
const Aws::String & GetAssociationId() const
Definition: Association.h:131
Association & WithTargets(Aws::Vector< Target > &&value)
Definition: Association.h:286
void SetTargets(Aws::Vector< Target > &&value)
Definition: Association.h:276
Association & WithAssociationName(const char *value)
Definition: Association.h:440
Association & WithLastExecutionDate(Aws::Utils::DateTime &&value)
Definition: Association.h:327
Association & WithDocumentVersion(const char *value)
Definition: Association.h:255
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
bool DocumentVersionHasBeenSet() const
Definition: Association.h:225
const Aws::String & GetAssociationName() const
Definition: Association.h:405
const Aws::String & GetScheduleExpression() const
Definition: Association.h:364
Association & WithName(const Aws::String &value)
Definition: Association.h:73
const Aws::Vector< Target > & GetTargets() const
Definition: Association.h:261
void SetInstanceId(Aws::String &&value)
Definition: Association.h:104
Association & WithOverview(const AssociationOverview &value)
Definition: Association.h:353
const AssociationOverview & GetOverview() const
Definition: Association.h:333
Association & WithAssociationVersion(Aws::String &&value)
Definition: Association.h:209
Association & WithAssociationId(Aws::String &&value)
Definition: Association.h:167
Association & WithName(Aws::String &&value)
Definition: Association.h:78
bool LastExecutionDateHasBeenSet() const
Definition: Association.h:307
Association & WithInstanceId(const Aws::String &value)
Definition: Association.h:114
void SetAssociationName(const Aws::String &value)
Definition: Association.h:415
Association & WithDocumentVersion(Aws::String &&value)
Definition: Association.h:250
void SetAssociationName(Aws::String &&value)
Definition: Association.h:420
Association & WithDocumentVersion(const Aws::String &value)
Definition: Association.h:245
const Aws::String & GetName() const
Definition: Association.h:48
void SetScheduleExpression(const Aws::String &value)
Definition: Association.h:374
void SetOverview(AssociationOverview &&value)
Definition: Association.h:348
void SetLastExecutionDate(const Aws::Utils::DateTime &value)
Definition: Association.h:312
Association & WithAssociationVersion(const char *value)
Definition: Association.h:214
Association & WithInstanceId(const char *value)
Definition: Association.h:124
bool InstanceIdHasBeenSet() const
Definition: Association.h:94
void SetInstanceId(const Aws::String &value)
Definition: Association.h:99
bool AssociationVersionHasBeenSet() const
Definition: Association.h:184
void SetAssociationVersion(Aws::String &&value)
Definition: Association.h:194
const Aws::String & GetInstanceId() const
Definition: Association.h:89
Association & WithLastExecutionDate(const Aws::Utils::DateTime &value)
Definition: Association.h:322
void SetTargets(const Aws::Vector< Target > &value)
Definition: Association.h:271
Association & WithAssociationName(const Aws::String &value)
Definition: Association.h:430
bool AssociationIdHasBeenSet() const
Definition: Association.h:137
Association & WithAssociationId(const char *value)
Definition: Association.h:173
Association & WithInstanceId(Aws::String &&value)
Definition: Association.h:119
const Aws::String & GetDocumentVersion() const
Definition: Association.h:220
void SetScheduleExpression(const char *value)
Definition: Association.h:384
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Association & WithOverview(AssociationOverview &&value)
Definition: Association.h:358
void SetAssociationId(const Aws::String &value)
Definition: Association.h:143
Association & WithAssociationVersion(const Aws::String &value)
Definition: Association.h:204
void SetAssociationId(Aws::String &&value)
Definition: Association.h:149
Association & WithTargets(const Aws::Vector< Target > &value)
Definition: Association.h:281
void SetDocumentVersion(const Aws::String &value)
Definition: Association.h:230
Association & WithScheduleExpression(const char *value)
Definition: Association.h:399
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Association & AddTargets(Target &&value)
Definition: Association.h:296
void SetDocumentVersion(const char *value)
Definition: Association.h:240
Association & AddTargets(const Target &value)
Definition: Association.h:291
bool AssociationNameHasBeenSet() const
Definition: Association.h:410
void SetName(Aws::String &&value)
Definition: Association.h:63
void SetAssociationName(const char *value)
Definition: Association.h:425
void SetInstanceId(const char *value)
Definition: Association.h:109
void SetAssociationId(const char *value)
Definition: Association.h:155
Association & WithScheduleExpression(const Aws::String &value)
Definition: Association.h:389
void SetName(const Aws::String &value)
Definition: Association.h:58
void SetAssociationVersion(const char *value)
Definition: Association.h:199
void SetName(const char *value)
Definition: Association.h:68