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>
46 template <
typename NameT = Aws::String>
48 m_nameHasBeenSet =
true;
49 m_name = std::forward<NameT>(value);
51 template <
typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
64 template <
typename InstanceIdT = Aws::String>
66 m_instanceIdHasBeenSet =
true;
67 m_instanceId = std::forward<InstanceIdT>(value);
69 template <
typename InstanceIdT = Aws::String>
83 template <
typename AssociationIdT = Aws::String>
85 m_associationIdHasBeenSet =
true;
86 m_associationId = std::forward<AssociationIdT>(value);
88 template <
typename AssociationIdT = Aws::String>
101 template <
typename AssociationVersionT = Aws::String>
103 m_associationVersionHasBeenSet =
true;
104 m_associationVersion = std::forward<AssociationVersionT>(value);
106 template <
typename AssociationVersionT = Aws::String>
129 template <
typename DocumentVersionT = Aws::String>
131 m_documentVersionHasBeenSet =
true;
132 m_documentVersion = std::forward<DocumentVersionT>(value);
134 template <
typename DocumentVersionT = Aws::String>
149 template <
typename TargetsT = Aws::Vector<Target>>
151 m_targetsHasBeenSet =
true;
152 m_targets = std::forward<TargetsT>(value);
154 template <
typename TargetsT = Aws::Vector<Target>>
159 template <
typename TargetsT = Target>
161 m_targetsHasBeenSet =
true;
162 m_targets.emplace_back(std::forward<TargetsT>(value));
173 template <
typename LastExecutionDateT = Aws::Utils::DateTime>
175 m_lastExecutionDateHasBeenSet =
true;
176 m_lastExecutionDate = std::forward<LastExecutionDateT>(value);
178 template <
typename LastExecutionDateT = Aws::Utils::DateTime>
191 template <
typename OverviewT = AssociationOverview>
193 m_overviewHasBeenSet =
true;
194 m_overview = std::forward<OverviewT>(value);
196 template <
typename OverviewT = AssociationOverview>
210 template <
typename ScheduleExpressionT = Aws::String>
212 m_scheduleExpressionHasBeenSet =
true;
213 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
215 template <
typename ScheduleExpressionT = Aws::String>
228 template <
typename AssociationNameT = Aws::String>
230 m_associationNameHasBeenSet =
true;
231 m_associationName = std::forward<AssociationNameT>(value);
233 template <
typename AssociationNameT = Aws::String>
247 m_scheduleOffsetHasBeenSet =
true;
248 m_scheduleOffset = value;
265 m_durationHasBeenSet =
true;
281 template <
typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
283 m_targetMapsHasBeenSet =
true;
284 m_targetMaps = std::forward<TargetMapsT>(value);
286 template <
typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
291 template <
typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
293 m_targetMapsHasBeenSet =
true;
294 m_targetMaps.emplace_back(std::forward<TargetMapsT>(value));
313 AssociationOverview m_overview;
319 int m_scheduleOffset{0};
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;
Association & WithName(NameT &&value)
int GetScheduleOffset() const
void SetName(NameT &&value)
bool ScheduleExpressionHasBeenSet() const
void SetAssociationName(AssociationNameT &&value)
bool TargetMapsHasBeenSet() const
void SetDuration(int value)
Association & AddTargets(TargetsT &&value)
const Aws::String & GetDocumentVersion() const
bool AssociationIdHasBeenSet() const
Association & WithAssociationName(AssociationNameT &&value)
bool TargetsHasBeenSet() const
void SetScheduleOffset(int value)
Association & WithInstanceId(InstanceIdT &&value)
bool LastExecutionDateHasBeenSet() const
bool ScheduleOffsetHasBeenSet() const
AWS_SSM_API Association(Aws::Utils::Json::JsonView jsonValue)
Association & WithScheduleExpression(ScheduleExpressionT &&value)
void SetAssociationId(AssociationIdT &&value)
bool DurationHasBeenSet() const
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
const Aws::String & GetAssociationName() const
bool NameHasBeenSet() 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)
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
const Aws::String & GetAssociationVersion() const
Association & WithLastExecutionDate(LastExecutionDateT &&value)
Association & WithAssociationId(AssociationIdT &&value)
bool OverviewHasBeenSet() const
const Aws::String & GetAssociationId() const
bool DocumentVersionHasBeenSet() const
void SetScheduleExpression(ScheduleExpressionT &&value)
Association & WithScheduleOffset(int value)
void SetAssociationVersion(AssociationVersionT &&value)
const Aws::String & GetName() const
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