7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/ssm/model/AssociationStatus.h>
11#include <aws/ssm/model/AssociationOverview.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ssm/model/InstanceAssociationOutputLocation.h>
15#include <aws/ssm/model/AssociationComplianceSeverity.h>
16#include <aws/ssm/model/AssociationSyncCompliance.h>
17#include <aws/ssm/model/AlarmConfiguration.h>
18#include <aws/ssm/model/Target.h>
19#include <aws/ssm/model/TargetLocation.h>
20#include <aws/ssm/model/AlarmStateInformation.h>
58 template<
typename NameT = Aws::String>
59 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
60 template<
typename NameT = Aws::String>
70 template<
typename InstanceIdT = Aws::String>
71 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet =
true; m_instanceId = std::forward<InstanceIdT>(value); }
72 template<
typename InstanceIdT = Aws::String>
82 template<
typename AssociationVersionT = Aws::String>
83 void SetAssociationVersion(AssociationVersionT&& value) { m_associationVersionHasBeenSet =
true; m_associationVersion = std::forward<AssociationVersionT>(value); }
84 template<
typename AssociationVersionT = Aws::String>
94 template<
typename DateT = Aws::Utils::DateTime>
95 void SetDate(DateT&& value) { m_dateHasBeenSet =
true; m_date = std::forward<DateT>(value); }
96 template<
typename DateT = Aws::Utils::DateTime>
106 template<
typename LastUpdateAssociationDateT = Aws::Utils::DateTime>
107 void SetLastUpdateAssociationDate(LastUpdateAssociationDateT&& value) { m_lastUpdateAssociationDateHasBeenSet =
true; m_lastUpdateAssociationDate = std::forward<LastUpdateAssociationDateT>(value); }
108 template<
typename LastUpdateAssociationDateT = Aws::Utils::DateTime>
118 template<
typename StatusT = AssociationStatus>
119 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
120 template<
typename StatusT = AssociationStatus>
130 template<
typename OverviewT = AssociationOverview>
131 void SetOverview(OverviewT&& value) { m_overviewHasBeenSet =
true; m_overview = std::forward<OverviewT>(value); }
132 template<
typename OverviewT = AssociationOverview>
142 template<
typename DocumentVersionT = Aws::String>
143 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet =
true; m_documentVersion = std::forward<DocumentVersionT>(value); }
144 template<
typename DocumentVersionT = Aws::String>
157 template<
typename AutomationTargetParameterNameT = Aws::String>
158 void SetAutomationTargetParameterName(AutomationTargetParameterNameT&& value) { m_automationTargetParameterNameHasBeenSet =
true; m_automationTargetParameterName = std::forward<AutomationTargetParameterNameT>(value); }
159 template<
typename AutomationTargetParameterNameT = Aws::String>
169 template<
typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
170 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet =
true; m_parameters = std::forward<ParametersT>(value); }
171 template<
typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
173 template<
typename ParametersKeyT = Aws::String,
typename ParametersValueT = Aws::Vector<Aws::String>>
175 m_parametersHasBeenSet =
true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
return *
this;
185 template<
typename AssociationIdT = Aws::String>
186 void SetAssociationId(AssociationIdT&& value) { m_associationIdHasBeenSet =
true; m_associationId = std::forward<AssociationIdT>(value); }
187 template<
typename AssociationIdT = Aws::String>
197 template<
typename TargetsT = Aws::Vector<Target>>
198 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet =
true; m_targets = std::forward<TargetsT>(value); }
199 template<
typename TargetsT = Aws::Vector<Target>>
201 template<
typename TargetsT = Target>
211 template<
typename ScheduleExpressionT = Aws::String>
212 void SetScheduleExpression(ScheduleExpressionT&& value) { m_scheduleExpressionHasBeenSet =
true; m_scheduleExpression = std::forward<ScheduleExpressionT>(value); }
213 template<
typename ScheduleExpressionT = Aws::String>
223 template<
typename OutputLocationT = InstanceAssociationOutputLocation>
224 void SetOutputLocation(OutputLocationT&& value) { m_outputLocationHasBeenSet =
true; m_outputLocation = std::forward<OutputLocationT>(value); }
225 template<
typename OutputLocationT = InstanceAssociationOutputLocation>
235 template<
typename LastExecutionDateT = Aws::Utils::DateTime>
236 void SetLastExecutionDate(LastExecutionDateT&& value) { m_lastExecutionDateHasBeenSet =
true; m_lastExecutionDate = std::forward<LastExecutionDateT>(value); }
237 template<
typename LastExecutionDateT = Aws::Utils::DateTime>
247 template<
typename LastSuccessfulExecutionDateT = Aws::Utils::DateTime>
248 void SetLastSuccessfulExecutionDate(LastSuccessfulExecutionDateT&& value) { m_lastSuccessfulExecutionDateHasBeenSet =
true; m_lastSuccessfulExecutionDate = std::forward<LastSuccessfulExecutionDateT>(value); }
249 template<
typename LastSuccessfulExecutionDateT = Aws::Utils::DateTime>
259 template<
typename AssociationNameT = Aws::String>
260 void SetAssociationName(AssociationNameT&& value) { m_associationNameHasBeenSet =
true; m_associationName = std::forward<AssociationNameT>(value); }
261 template<
typename AssociationNameT = Aws::String>
283 template<
typename MaxErrorsT = Aws::String>
284 void SetMaxErrors(MaxErrorsT&& value) { m_maxErrorsHasBeenSet =
true; m_maxErrors = std::forward<MaxErrorsT>(value); }
285 template<
typename MaxErrorsT = Aws::String>
302 template<
typename MaxConcurrencyT = Aws::String>
303 void SetMaxConcurrency(MaxConcurrencyT&& value) { m_maxConcurrencyHasBeenSet =
true; m_maxConcurrency = std::forward<MaxConcurrencyT>(value); }
304 template<
typename MaxConcurrencyT = Aws::String>
363 template<
typename CalendarNamesT = Aws::Vector<Aws::String>>
364 void SetCalendarNames(CalendarNamesT&& value) { m_calendarNamesHasBeenSet =
true; m_calendarNames = std::forward<CalendarNamesT>(value); }
365 template<
typename CalendarNamesT = Aws::Vector<Aws::String>>
367 template<
typename CalendarNamesT = Aws::String>
378 template<
typename TargetLocationsT = Aws::Vector<TargetLocation>>
379 void SetTargetLocations(TargetLocationsT&& value) { m_targetLocationsHasBeenSet =
true; m_targetLocations = std::forward<TargetLocationsT>(value); }
380 template<
typename TargetLocationsT = Aws::Vector<TargetLocation>>
382 template<
typename TargetLocationsT = TargetLocation>
392 inline void SetScheduleOffset(
int value) { m_scheduleOffsetHasBeenSet =
true; m_scheduleOffset = value; }
404 inline void SetDuration(
int value) { m_durationHasBeenSet =
true; m_duration = value; }
415 template<
typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
416 void SetTargetMaps(TargetMapsT&& value) { m_targetMapsHasBeenSet =
true; m_targetMaps = std::forward<TargetMapsT>(value); }
417 template<
typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
419 template<
typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
427 template<
typename AlarmConfigurationT = AlarmConfiguration>
428 void SetAlarmConfiguration(AlarmConfigurationT&& value) { m_alarmConfigurationHasBeenSet =
true; m_alarmConfiguration = std::forward<AlarmConfigurationT>(value); }
429 template<
typename AlarmConfigurationT = AlarmConfiguration>
439 template<
typename TriggeredAlarmsT = Aws::Vector<AlarmStateInformation>>
440 void SetTriggeredAlarms(TriggeredAlarmsT&& value) { m_triggeredAlarmsHasBeenSet =
true; m_triggeredAlarms = std::forward<TriggeredAlarmsT>(value); }
441 template<
typename TriggeredAlarmsT = Aws::Vector<AlarmStateInformation>>
443 template<
typename TriggeredAlarmsT = AlarmStateInformation>
449 bool m_nameHasBeenSet =
false;
452 bool m_instanceIdHasBeenSet =
false;
455 bool m_associationVersionHasBeenSet =
false;
458 bool m_dateHasBeenSet =
false;
461 bool m_lastUpdateAssociationDateHasBeenSet =
false;
463 AssociationStatus m_status;
464 bool m_statusHasBeenSet =
false;
466 AssociationOverview m_overview;
467 bool m_overviewHasBeenSet =
false;
470 bool m_documentVersionHasBeenSet =
false;
473 bool m_automationTargetParameterNameHasBeenSet =
false;
476 bool m_parametersHasBeenSet =
false;
479 bool m_associationIdHasBeenSet =
false;
482 bool m_targetsHasBeenSet =
false;
485 bool m_scheduleExpressionHasBeenSet =
false;
487 InstanceAssociationOutputLocation m_outputLocation;
488 bool m_outputLocationHasBeenSet =
false;
491 bool m_lastExecutionDateHasBeenSet =
false;
494 bool m_lastSuccessfulExecutionDateHasBeenSet =
false;
497 bool m_associationNameHasBeenSet =
false;
500 bool m_maxErrorsHasBeenSet =
false;
503 bool m_maxConcurrencyHasBeenSet =
false;
506 bool m_complianceSeverityHasBeenSet =
false;
509 bool m_syncComplianceHasBeenSet =
false;
511 bool m_applyOnlyAtCronInterval{
false};
512 bool m_applyOnlyAtCronIntervalHasBeenSet =
false;
515 bool m_calendarNamesHasBeenSet =
false;
518 bool m_targetLocationsHasBeenSet =
false;
520 int m_scheduleOffset{0};
521 bool m_scheduleOffsetHasBeenSet =
false;
524 bool m_durationHasBeenSet =
false;
527 bool m_targetMapsHasBeenSet =
false;
529 AlarmConfiguration m_alarmConfiguration;
530 bool m_alarmConfigurationHasBeenSet =
false;
533 bool m_triggeredAlarmsHasBeenSet =
false;
const AlarmConfiguration & GetAlarmConfiguration() const
bool DurationHasBeenSet() const
AssociationDescription & WithParameters(ParametersT &&value)
const Aws::String & GetInstanceId() const
AssociationDescription & WithAssociationVersion(AssociationVersionT &&value)
AssociationDescription & WithAlarmConfiguration(AlarmConfigurationT &&value)
AssociationDescription & WithTargetLocations(TargetLocationsT &&value)
void SetLastUpdateAssociationDate(LastUpdateAssociationDateT &&value)
AssociationDescription & WithApplyOnlyAtCronInterval(bool value)
const Aws::String & GetAssociationId() const
const Aws::String & GetScheduleExpression() const
const Aws::String & GetMaxConcurrency() const
void SetTargetLocations(TargetLocationsT &&value)
AssociationDescription & WithTargetMaps(TargetMapsT &&value)
bool ApplyOnlyAtCronIntervalHasBeenSet() const
AWS_SSM_API AssociationDescription(Aws::Utils::Json::JsonView jsonValue)
bool OverviewHasBeenSet() const
AssociationDescription & WithOutputLocation(OutputLocationT &&value)
AssociationDescription & WithDuration(int value)
void SetAssociationName(AssociationNameT &&value)
const Aws::String & GetAssociationName() const
void SetMaxErrors(MaxErrorsT &&value)
bool MaxConcurrencyHasBeenSet() const
void SetAssociationVersion(AssociationVersionT &&value)
AssociationDescription & WithCalendarNames(CalendarNamesT &&value)
AssociationDescription & AddCalendarNames(CalendarNamesT &&value)
bool AssociationVersionHasBeenSet() const
AssociationDescription & WithMaxErrors(MaxErrorsT &&value)
void SetDate(DateT &&value)
AssociationDescription & WithMaxConcurrency(MaxConcurrencyT &&value)
void SetMaxConcurrency(MaxConcurrencyT &&value)
void SetInstanceId(InstanceIdT &&value)
AssociationDescription & WithName(NameT &&value)
AssociationDescription & WithStatus(StatusT &&value)
AssociationDescription & WithTargets(TargetsT &&value)
bool OutputLocationHasBeenSet() const
bool AutomationTargetParameterNameHasBeenSet() const
bool NameHasBeenSet() const
int GetScheduleOffset() const
void SetApplyOnlyAtCronInterval(bool value)
void SetCalendarNames(CalendarNamesT &&value)
void SetAlarmConfiguration(AlarmConfigurationT &&value)
const Aws::Vector< Target > & GetTargets() const
AssociationDescription & WithDocumentVersion(DocumentVersionT &&value)
const AssociationOverview & GetOverview() const
bool DateHasBeenSet() const
AssociationDescription & WithLastExecutionDate(LastExecutionDateT &&value)
void SetDocumentVersion(DocumentVersionT &&value)
void SetTargetMaps(TargetMapsT &&value)
bool ComplianceSeverityHasBeenSet() const
AWS_SSM_API AssociationDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastExecutionDate(LastExecutionDateT &&value)
void SetAssociationId(AssociationIdT &&value)
bool InstanceIdHasBeenSet() const
bool CalendarNamesHasBeenSet() const
void SetDuration(int value)
AssociationDescription & WithInstanceId(InstanceIdT &&value)
bool AssociationNameHasBeenSet() const
bool TargetLocationsHasBeenSet() const
void SetComplianceSeverity(AssociationComplianceSeverity value)
AssociationComplianceSeverity GetComplianceSeverity() const
AssociationDescription & AddTriggeredAlarms(TriggeredAlarmsT &&value)
const Aws::Utils::DateTime & GetLastSuccessfulExecutionDate() const
bool SyncComplianceHasBeenSet() const
bool MaxErrorsHasBeenSet() const
const Aws::Utils::DateTime & GetLastExecutionDate() const
AssociationDescription & AddTargetLocations(TargetLocationsT &&value)
bool TriggeredAlarmsHasBeenSet() const
bool ScheduleExpressionHasBeenSet() const
const Aws::String & GetAutomationTargetParameterName() const
AssociationSyncCompliance GetSyncCompliance() const
bool ParametersHasBeenSet() const
AssociationDescription & WithScheduleExpression(ScheduleExpressionT &&value)
void SetOutputLocation(OutputLocationT &&value)
const Aws::Vector< Aws::String > & GetCalendarNames() const
AssociationDescription & WithDate(DateT &&value)
void SetName(NameT &&value)
bool LastExecutionDateHasBeenSet() const
AssociationDescription & AddTargets(TargetsT &&value)
AWS_SSM_API AssociationDescription()=default
bool LastUpdateAssociationDateHasBeenSet() const
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
const Aws::String & GetDocumentVersion() const
AssociationDescription & WithSyncCompliance(AssociationSyncCompliance value)
AssociationDescription & WithTriggeredAlarms(TriggeredAlarmsT &&value)
void SetSyncCompliance(AssociationSyncCompliance value)
AssociationDescription & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
AssociationDescription & WithOverview(OverviewT &&value)
bool AssociationIdHasBeenSet() const
bool GetApplyOnlyAtCronInterval() const
AssociationDescription & AddTargetMaps(TargetMapsT &&value)
const AssociationStatus & GetStatus() const
bool StatusHasBeenSet() const
void SetScheduleExpression(ScheduleExpressionT &&value)
void SetTriggeredAlarms(TriggeredAlarmsT &&value)
void SetScheduleOffset(int value)
AssociationDescription & WithLastSuccessfulExecutionDate(LastSuccessfulExecutionDateT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AssociationDescription & WithScheduleOffset(int value)
AssociationDescription & WithAssociationName(AssociationNameT &&value)
void SetParameters(ParametersT &&value)
AssociationDescription & WithAssociationId(AssociationIdT &&value)
const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > & GetTargetMaps() const
bool ScheduleOffsetHasBeenSet() const
void SetLastSuccessfulExecutionDate(LastSuccessfulExecutionDateT &&value)
const Aws::String & GetMaxErrors() const
const Aws::Utils::DateTime & GetDate() const
bool TargetMapsHasBeenSet() const
const Aws::Vector< TargetLocation > & GetTargetLocations() const
bool DocumentVersionHasBeenSet() const
const Aws::String & GetName() const
const InstanceAssociationOutputLocation & GetOutputLocation() const
bool LastSuccessfulExecutionDateHasBeenSet() const
void SetTargets(TargetsT &&value)
void SetAutomationTargetParameterName(AutomationTargetParameterNameT &&value)
bool AlarmConfigurationHasBeenSet() const
AssociationDescription & WithAutomationTargetParameterName(AutomationTargetParameterNameT &&value)
void SetStatus(StatusT &&value)
void SetOverview(OverviewT &&value)
const Aws::Vector< AlarmStateInformation > & GetTriggeredAlarms() const
AssociationDescription & WithLastUpdateAssociationDate(LastUpdateAssociationDateT &&value)
const Aws::String & GetAssociationVersion() const
const Aws::Utils::DateTime & GetLastUpdateAssociationDate() const
AssociationDescription & WithComplianceSeverity(AssociationComplianceSeverity value)
bool TargetsHasBeenSet() const
AssociationSyncCompliance
AssociationComplianceSeverity
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