AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
44
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 template<typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
54 template<typename NameT = Aws::String>
55 Association& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
66 template<typename InstanceIdT = Aws::String>
67 Association& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
69
71
75 inline const Aws::String& GetAssociationId() const { return m_associationId; }
76 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
77 template<typename AssociationIdT = Aws::String>
78 void SetAssociationId(AssociationIdT&& value) { m_associationIdHasBeenSet = true; m_associationId = std::forward<AssociationIdT>(value); }
79 template<typename AssociationIdT = Aws::String>
80 Association& WithAssociationId(AssociationIdT&& value) { SetAssociationId(std::forward<AssociationIdT>(value)); return *this;}
82
84
87 inline const Aws::String& GetAssociationVersion() const { return m_associationVersion; }
88 inline bool AssociationVersionHasBeenSet() const { return m_associationVersionHasBeenSet; }
89 template<typename AssociationVersionT = Aws::String>
90 void SetAssociationVersion(AssociationVersionT&& value) { m_associationVersionHasBeenSet = true; m_associationVersion = std::forward<AssociationVersionT>(value); }
91 template<typename AssociationVersionT = Aws::String>
92 Association& WithAssociationVersion(AssociationVersionT&& value) { SetAssociationVersion(std::forward<AssociationVersionT>(value)); return *this;}
94
96
109 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
110 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
111 template<typename DocumentVersionT = Aws::String>
112 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::forward<DocumentVersionT>(value); }
113 template<typename DocumentVersionT = Aws::String>
114 Association& WithDocumentVersion(DocumentVersionT&& value) { SetDocumentVersion(std::forward<DocumentVersionT>(value)); return *this;}
116
118
123 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
124 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
125 template<typename TargetsT = Aws::Vector<Target>>
126 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
127 template<typename TargetsT = Aws::Vector<Target>>
128 Association& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
129 template<typename TargetsT = Target>
130 Association& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
132
134
137 inline const Aws::Utils::DateTime& GetLastExecutionDate() const { return m_lastExecutionDate; }
138 inline bool LastExecutionDateHasBeenSet() const { return m_lastExecutionDateHasBeenSet; }
139 template<typename LastExecutionDateT = Aws::Utils::DateTime>
140 void SetLastExecutionDate(LastExecutionDateT&& value) { m_lastExecutionDateHasBeenSet = true; m_lastExecutionDate = std::forward<LastExecutionDateT>(value); }
141 template<typename LastExecutionDateT = Aws::Utils::DateTime>
142 Association& WithLastExecutionDate(LastExecutionDateT&& value) { SetLastExecutionDate(std::forward<LastExecutionDateT>(value)); return *this;}
144
146
149 inline const AssociationOverview& GetOverview() const { return m_overview; }
150 inline bool OverviewHasBeenSet() const { return m_overviewHasBeenSet; }
151 template<typename OverviewT = AssociationOverview>
152 void SetOverview(OverviewT&& value) { m_overviewHasBeenSet = true; m_overview = std::forward<OverviewT>(value); }
153 template<typename OverviewT = AssociationOverview>
154 Association& WithOverview(OverviewT&& value) { SetOverview(std::forward<OverviewT>(value)); return *this;}
156
158
162 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
163 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
164 template<typename ScheduleExpressionT = Aws::String>
165 void SetScheduleExpression(ScheduleExpressionT&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::forward<ScheduleExpressionT>(value); }
166 template<typename ScheduleExpressionT = Aws::String>
167 Association& WithScheduleExpression(ScheduleExpressionT&& value) { SetScheduleExpression(std::forward<ScheduleExpressionT>(value)); return *this;}
169
171
174 inline const Aws::String& GetAssociationName() const { return m_associationName; }
175 inline bool AssociationNameHasBeenSet() const { return m_associationNameHasBeenSet; }
176 template<typename AssociationNameT = Aws::String>
177 void SetAssociationName(AssociationNameT&& value) { m_associationNameHasBeenSet = true; m_associationName = std::forward<AssociationNameT>(value); }
178 template<typename AssociationNameT = Aws::String>
179 Association& WithAssociationName(AssociationNameT&& value) { SetAssociationName(std::forward<AssociationNameT>(value)); return *this;}
181
183
186 inline int GetScheduleOffset() const { return m_scheduleOffset; }
187 inline bool ScheduleOffsetHasBeenSet() const { return m_scheduleOffsetHasBeenSet; }
188 inline void SetScheduleOffset(int value) { m_scheduleOffsetHasBeenSet = true; m_scheduleOffset = value; }
189 inline Association& WithScheduleOffset(int value) { SetScheduleOffset(value); return *this;}
191
193
198 inline int GetDuration() const { return m_duration; }
199 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
200 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
201 inline Association& WithDuration(int value) { SetDuration(value); return *this;}
203
205
209 inline const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& GetTargetMaps() const { return m_targetMaps; }
210 inline bool TargetMapsHasBeenSet() const { return m_targetMapsHasBeenSet; }
211 template<typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
212 void SetTargetMaps(TargetMapsT&& value) { m_targetMapsHasBeenSet = true; m_targetMaps = std::forward<TargetMapsT>(value); }
213 template<typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
214 Association& WithTargetMaps(TargetMapsT&& value) { SetTargetMaps(std::forward<TargetMapsT>(value)); return *this;}
215 template<typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
216 Association& AddTargetMaps(TargetMapsT&& value) { m_targetMapsHasBeenSet = true; m_targetMaps.emplace_back(std::forward<TargetMapsT>(value)); return *this; }
218 private:
219
220 Aws::String m_name;
221 bool m_nameHasBeenSet = false;
222
223 Aws::String m_instanceId;
224 bool m_instanceIdHasBeenSet = false;
225
226 Aws::String m_associationId;
227 bool m_associationIdHasBeenSet = false;
228
229 Aws::String m_associationVersion;
230 bool m_associationVersionHasBeenSet = false;
231
232 Aws::String m_documentVersion;
233 bool m_documentVersionHasBeenSet = false;
234
235 Aws::Vector<Target> m_targets;
236 bool m_targetsHasBeenSet = false;
237
238 Aws::Utils::DateTime m_lastExecutionDate{};
239 bool m_lastExecutionDateHasBeenSet = false;
240
241 AssociationOverview m_overview;
242 bool m_overviewHasBeenSet = false;
243
244 Aws::String m_scheduleExpression;
245 bool m_scheduleExpressionHasBeenSet = false;
246
247 Aws::String m_associationName;
248 bool m_associationNameHasBeenSet = false;
249
250 int m_scheduleOffset{0};
251 bool m_scheduleOffsetHasBeenSet = false;
252
253 int m_duration{0};
254 bool m_durationHasBeenSet = false;
255
257 bool m_targetMapsHasBeenSet = false;
258 };
259
260} // namespace Model
261} // namespace SSM
262} // namespace Aws
Association & WithName(NameT &&value)
Definition Association.h:55
void SetName(NameT &&value)
Definition Association.h:53
bool ScheduleExpressionHasBeenSet() const
void SetAssociationName(AssociationNameT &&value)
Association & AddTargets(TargetsT &&value)
const Aws::String & GetDocumentVersion() const
bool AssociationIdHasBeenSet() const
Definition Association.h:76
Association & WithAssociationName(AssociationNameT &&value)
void SetScheduleOffset(int value)
Association & WithInstanceId(InstanceIdT &&value)
Definition Association.h:67
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:78
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)
Definition Association.h:92
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
Definition Association.h:88
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:87
Association & WithLastExecutionDate(LastExecutionDateT &&value)
Association & WithAssociationId(AssociationIdT &&value)
Definition Association.h:80
const Aws::String & GetAssociationId() const
Definition Association.h:75
bool DocumentVersionHasBeenSet() const
void SetScheduleExpression(ScheduleExpressionT &&value)
Association & WithScheduleOffset(int value)
void SetAssociationVersion(AssociationVersionT &&value)
Definition Association.h:90
const Aws::String & GetName() const
Definition Association.h:50
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