AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Association.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/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ssm/model/AssociationOverview.h>
12#include <aws/ssm/model/Target.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SSM
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_SSM_API Association();
44
45
47
50 inline const Aws::String& GetName() const{ return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline Association& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline Association& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline Association& WithName(const char* value) { SetName(value); return *this;}
59
61
64 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
65 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
66 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
67 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
68 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
69 inline Association& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
70 inline Association& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
71 inline Association& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
73
75
79 inline const Aws::String& GetAssociationId() const{ return m_associationId; }
80 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
81 inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
82 inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
83 inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
84 inline Association& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
85 inline Association& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
86 inline Association& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
88
90
93 inline const Aws::String& GetAssociationVersion() const{ return m_associationVersion; }
94 inline bool AssociationVersionHasBeenSet() const { return m_associationVersionHasBeenSet; }
95 inline void SetAssociationVersion(const Aws::String& value) { m_associationVersionHasBeenSet = true; m_associationVersion = value; }
96 inline void SetAssociationVersion(Aws::String&& value) { m_associationVersionHasBeenSet = true; m_associationVersion = std::move(value); }
97 inline void SetAssociationVersion(const char* value) { m_associationVersionHasBeenSet = true; m_associationVersion.assign(value); }
98 inline Association& WithAssociationVersion(const Aws::String& value) { SetAssociationVersion(value); return *this;}
99 inline Association& WithAssociationVersion(Aws::String&& value) { SetAssociationVersion(std::move(value)); return *this;}
100 inline Association& WithAssociationVersion(const char* value) { SetAssociationVersion(value); return *this;}
102
104
117 inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; }
118 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
119 inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; }
120 inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); }
121 inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); }
122 inline Association& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;}
123 inline Association& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;}
124 inline Association& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;}
126
128
133 inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
134 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
135 inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
136 inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
137 inline Association& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
138 inline Association& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
139 inline Association& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
140 inline Association& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
142
144
147 inline const Aws::Utils::DateTime& GetLastExecutionDate() const{ return m_lastExecutionDate; }
148 inline bool LastExecutionDateHasBeenSet() const { return m_lastExecutionDateHasBeenSet; }
149 inline void SetLastExecutionDate(const Aws::Utils::DateTime& value) { m_lastExecutionDateHasBeenSet = true; m_lastExecutionDate = value; }
150 inline void SetLastExecutionDate(Aws::Utils::DateTime&& value) { m_lastExecutionDateHasBeenSet = true; m_lastExecutionDate = std::move(value); }
151 inline Association& WithLastExecutionDate(const Aws::Utils::DateTime& value) { SetLastExecutionDate(value); return *this;}
152 inline Association& WithLastExecutionDate(Aws::Utils::DateTime&& value) { SetLastExecutionDate(std::move(value)); return *this;}
154
156
159 inline const AssociationOverview& GetOverview() const{ return m_overview; }
160 inline bool OverviewHasBeenSet() const { return m_overviewHasBeenSet; }
161 inline void SetOverview(const AssociationOverview& value) { m_overviewHasBeenSet = true; m_overview = value; }
162 inline void SetOverview(AssociationOverview&& value) { m_overviewHasBeenSet = true; m_overview = std::move(value); }
163 inline Association& WithOverview(const AssociationOverview& value) { SetOverview(value); return *this;}
164 inline Association& WithOverview(AssociationOverview&& value) { SetOverview(std::move(value)); return *this;}
166
168
172 inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
173 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
174 inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
175 inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); }
176 inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); }
177 inline Association& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;}
178 inline Association& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
179 inline Association& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
181
183
186 inline const Aws::String& GetAssociationName() const{ return m_associationName; }
187 inline bool AssociationNameHasBeenSet() const { return m_associationNameHasBeenSet; }
188 inline void SetAssociationName(const Aws::String& value) { m_associationNameHasBeenSet = true; m_associationName = value; }
189 inline void SetAssociationName(Aws::String&& value) { m_associationNameHasBeenSet = true; m_associationName = std::move(value); }
190 inline void SetAssociationName(const char* value) { m_associationNameHasBeenSet = true; m_associationName.assign(value); }
191 inline Association& WithAssociationName(const Aws::String& value) { SetAssociationName(value); return *this;}
192 inline Association& WithAssociationName(Aws::String&& value) { SetAssociationName(std::move(value)); return *this;}
193 inline Association& WithAssociationName(const char* value) { SetAssociationName(value); return *this;}
195
197
200 inline int GetScheduleOffset() const{ return m_scheduleOffset; }
201 inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
202 inline void SetScheduleOffset(int value) { m_scheduleOffsetHasBeenSet = true; m_scheduleOffset = value; }
203 inline Association& WithScheduleOffset(int value) { SetScheduleOffset(value); return *this;}
205
207
212 inline int GetDuration() const{ return m_duration; }
213 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
214 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
215 inline Association& WithDuration(int value) { SetDuration(value); return *this;}
217
219
223 inline const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& GetTargetMaps() const{ return m_targetMaps; }
224 inline bool TargetMapsHasBeenSet() const { return m_targetMapsHasBeenSet; }
225 inline void SetTargetMaps(const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& value) { m_targetMapsHasBeenSet = true; m_targetMaps = value; }
226 inline void SetTargetMaps(Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>&& value) { m_targetMapsHasBeenSet = true; m_targetMaps = std::move(value); }
229 inline Association& AddTargetMaps(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_targetMapsHasBeenSet = true; m_targetMaps.push_back(value); return *this; }
230 inline Association& AddTargetMaps(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_targetMapsHasBeenSet = true; m_targetMaps.push_back(std::move(value)); return *this; }
232 private:
233
234 Aws::String m_name;
235 bool m_nameHasBeenSet = false;
236
237 Aws::String m_instanceId;
238 bool m_instanceIdHasBeenSet = false;
239
240 Aws::String m_associationId;
241 bool m_associationIdHasBeenSet = false;
242
243 Aws::String m_associationVersion;
244 bool m_associationVersionHasBeenSet = false;
245
246 Aws::String m_documentVersion;
247 bool m_documentVersionHasBeenSet = false;
248
249 Aws::Vector<Target> m_targets;
250 bool m_targetsHasBeenSet = false;
251
252 Aws::Utils::DateTime m_lastExecutionDate;
253 bool m_lastExecutionDateHasBeenSet = false;
254
255 AssociationOverview m_overview;
256 bool m_overviewHasBeenSet = false;
257
258 Aws::String m_scheduleExpression;
259 bool m_scheduleExpressionHasBeenSet = false;
260
261 Aws::String m_associationName;
262 bool m_associationNameHasBeenSet = false;
263
264 int m_scheduleOffset;
265 bool m_scheduleOffsetHasBeenSet = false;
266
267 int m_duration;
268 bool m_durationHasBeenSet = false;
269
271 bool m_targetMapsHasBeenSet = false;
272 };
273
274} // namespace Model
275} // namespace SSM
276} // namespace Aws
Association & AddTargetMaps(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
void SetTargetMaps(Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > &&value)
bool ScheduleExpressionHasBeenSet() const
void SetScheduleExpression(const char *value)
Association & AddTargetMaps(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
Association & WithAssociationName(const char *value)
void SetAssociationName(const char *value)
Association & WithAssociationName(Aws::String &&value)
void SetAssociationVersion(const Aws::String &value)
Definition Association.h:95
Association & WithAssociationId(const Aws::String &value)
Definition Association.h:84
void SetAssociationName(const Aws::String &value)
const Aws::String & GetDocumentVersion() const
bool AssociationIdHasBeenSet() const
Definition Association.h:80
Association & WithAssociationVersion(const Aws::String &value)
Definition Association.h:98
void SetScheduleOffset(int value)
Association & WithTargetMaps(Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > &&value)
Association & WithScheduleExpression(const Aws::String &value)
bool LastExecutionDateHasBeenSet() const
bool ScheduleOffsetHasBeenSet() const
void SetLastExecutionDate(const Aws::Utils::DateTime &value)
AWS_SSM_API Association(Aws::Utils::Json::JsonView jsonValue)
Association & WithName(const char *value)
Definition Association.h:57
void SetInstanceId(const char *value)
Definition Association.h:68
Association & WithOverview(const AssociationOverview &value)
void SetAssociationId(const Aws::String &value)
Definition Association.h:81
Association & WithLastExecutionDate(const Aws::Utils::DateTime &value)
void SetAssociationVersion(const char *value)
Definition Association.h:97
AWS_SSM_API Association & operator=(Aws::Utils::Json::JsonView jsonValue)
Association & WithDocumentVersion(Aws::String &&value)
const Aws::String & GetScheduleExpression() const
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOverview(const AssociationOverview &value)
Association & WithTargets(Aws::Vector< Target > &&value)
bool AssociationNameHasBeenSet() const
const Aws::String & GetInstanceId() const
Definition Association.h:64
const Aws::String & GetAssociationName() const
void SetDocumentVersion(const Aws::String &value)
void SetName(Aws::String &&value)
Definition Association.h:53
Association & WithDocumentVersion(const Aws::String &value)
Association & AddTargets(const Target &value)
Association & WithInstanceId(const Aws::String &value)
Definition Association.h:69
void SetAssociationName(Aws::String &&value)
Association & WithTargetMaps(const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > &value)
Association & WithInstanceId(Aws::String &&value)
Definition Association.h:70
Association & WithName(Aws::String &&value)
Definition Association.h:56
const Aws::Utils::DateTime & GetLastExecutionDate() const
void SetName(const char *value)
Definition Association.h:54
void SetTargets(Aws::Vector< Target > &&value)
bool AssociationVersionHasBeenSet() const
Definition Association.h:94
Association & WithScheduleExpression(const char *value)
void SetScheduleExpression(Aws::String &&value)
Association & WithAssociationName(const Aws::String &value)
void SetDocumentVersion(Aws::String &&value)
void SetName(const Aws::String &value)
Definition Association.h:52
Association & WithName(const Aws::String &value)
Definition Association.h:55
void SetTargetMaps(const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > &value)
Association & WithDuration(int value)
Association & WithAssociationId(Aws::String &&value)
Definition Association.h:85
Association & WithTargets(const Aws::Vector< Target > &value)
const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > & GetTargetMaps() const
void SetScheduleExpression(const Aws::String &value)
const Aws::Vector< Target > & GetTargets() const
void SetInstanceId(const Aws::String &value)
Definition Association.h:66
const AssociationOverview & GetOverview() const
void SetAssociationId(const char *value)
Definition Association.h:83
bool InstanceIdHasBeenSet() const
Definition Association.h:65
const Aws::String & GetAssociationVersion() const
Definition Association.h:93
void SetOverview(AssociationOverview &&value)
Association & AddTargets(Target &&value)
Association & WithOverview(AssociationOverview &&value)
Association & WithLastExecutionDate(Aws::Utils::DateTime &&value)
Association & WithAssociationVersion(Aws::String &&value)
Definition Association.h:99
Association & WithAssociationVersion(const char *value)
Association & WithScheduleExpression(Aws::String &&value)
Association & WithAssociationId(const char *value)
Definition Association.h:86
void SetAssociationId(Aws::String &&value)
Definition Association.h:82
const Aws::String & GetAssociationId() const
Definition Association.h:79
Association & WithInstanceId(const char *value)
Definition Association.h:71
bool DocumentVersionHasBeenSet() const
void SetTargets(const Aws::Vector< Target > &value)
Association & WithDocumentVersion(const char *value)
void SetDocumentVersion(const char *value)
void SetAssociationVersion(Aws::String &&value)
Definition Association.h:96
void SetInstanceId(Aws::String &&value)
Definition Association.h:67
void SetLastExecutionDate(Aws::Utils::DateTime &&value)
Association & WithScheduleOffset(int value)
const Aws::String & GetName() const
Definition Association.h:50
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