7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ssm/model/InstanceAssociationOutputLocation.h>
13#include <aws/ssm/model/AssociationComplianceSeverity.h>
14#include <aws/ssm/model/AssociationSyncCompliance.h>
15#include <aws/ssm/model/AlarmConfiguration.h>
16#include <aws/ssm/model/Target.h>
17#include <aws/ssm/model/TargetLocation.h>
18#include <aws/ssm/model/Tag.h>
66 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
88 inline void SetDocumentVersion(
const char* value) { m_documentVersionHasBeenSet =
true; m_documentVersion.assign(value); }
111 inline void SetInstanceId(
const char* value) { m_instanceIdHasBeenSet =
true; m_instanceId.assign(value); }
165 inline void SetScheduleExpression(
const char* value) { m_scheduleExpressionHasBeenSet =
true; m_scheduleExpression.assign(value); }
192 inline void SetAssociationName(
const char* value) { m_associationNameHasBeenSet =
true; m_associationName.assign(value); }
235 inline void SetMaxErrors(
const char* value) { m_maxErrorsHasBeenSet =
true; m_maxErrors.assign(value); }
256 inline void SetMaxConcurrency(
const char* value) { m_maxConcurrencyHasBeenSet =
true; m_maxConcurrency.assign(value); }
359 inline void SetScheduleOffset(
int value) { m_scheduleOffsetHasBeenSet =
true; m_scheduleOffset = value; }
381 inline void SetDuration(
int value) { m_durationHasBeenSet =
true; m_duration = value; }
430 bool m_nameHasBeenSet =
false;
433 bool m_documentVersionHasBeenSet =
false;
436 bool m_instanceIdHasBeenSet =
false;
439 bool m_parametersHasBeenSet =
false;
442 bool m_targetsHasBeenSet =
false;
445 bool m_scheduleExpressionHasBeenSet =
false;
448 bool m_outputLocationHasBeenSet =
false;
451 bool m_associationNameHasBeenSet =
false;
454 bool m_automationTargetParameterNameHasBeenSet =
false;
457 bool m_maxErrorsHasBeenSet =
false;
460 bool m_maxConcurrencyHasBeenSet =
false;
463 bool m_complianceSeverityHasBeenSet =
false;
466 bool m_syncComplianceHasBeenSet =
false;
468 bool m_applyOnlyAtCronInterval;
469 bool m_applyOnlyAtCronIntervalHasBeenSet =
false;
472 bool m_calendarNamesHasBeenSet =
false;
475 bool m_targetLocationsHasBeenSet =
false;
477 int m_scheduleOffset;
478 bool m_scheduleOffsetHasBeenSet =
false;
481 bool m_durationHasBeenSet =
false;
484 bool m_targetMapsHasBeenSet =
false;
487 bool m_tagsHasBeenSet =
false;
490 bool m_alarmConfigurationHasBeenSet =
false;
CreateAssociationRequest & AddCalendarNames(Aws::String &&value)
CreateAssociationRequest & WithMaxConcurrency(const Aws::String &value)
void SetOutputLocation(InstanceAssociationOutputLocation &&value)
CreateAssociationRequest & WithAutomationTargetParameterName(const Aws::String &value)
void SetSyncCompliance(const AssociationSyncCompliance &value)
bool CalendarNamesHasBeenSet() const
const InstanceAssociationOutputLocation & GetOutputLocation() const
CreateAssociationRequest & WithAlarmConfiguration(AlarmConfiguration &&value)
void SetDocumentVersion(const Aws::String &value)
const Aws::Vector< TargetLocation > & GetTargetLocations() const
const Aws::Vector< Target > & GetTargets() const
CreateAssociationRequest & WithDocumentVersion(const Aws::String &value)
bool InstanceIdHasBeenSet() const
const Aws::String & GetName() const
void SetName(Aws::String &&value)
bool ScheduleOffsetHasBeenSet() const
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAssociationRequest & WithParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
bool NameHasBeenSet() const
CreateAssociationRequest & WithName(const char *value)
const Aws::Vector< Aws::String > & GetCalendarNames() const
bool ComplianceSeverityHasBeenSet() const
CreateAssociationRequest & WithMaxConcurrency(const char *value)
CreateAssociationRequest & WithScheduleExpression(Aws::String &&value)
const AssociationComplianceSeverity & GetComplianceSeverity() const
const Aws::String & GetAutomationTargetParameterName() const
bool SyncComplianceHasBeenSet() const
CreateAssociationRequest & AddParameters(Aws::String &&key, const Aws::Vector< Aws::String > &value)
CreateAssociationRequest & WithDuration(int value)
const Aws::Vector< Tag > & GetTags() const
void SetTags(Aws::Vector< Tag > &&value)
void SetTargetMaps(const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > &value)
bool ParametersHasBeenSet() const
CreateAssociationRequest & WithParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
void SetDuration(int value)
bool DurationHasBeenSet() const
void SetAlarmConfiguration(AlarmConfiguration &&value)
CreateAssociationRequest & WithName(Aws::String &&value)
const Aws::String & GetMaxConcurrency() const
void SetInstanceId(Aws::String &&value)
CreateAssociationRequest & WithOutputLocation(InstanceAssociationOutputLocation &&value)
CreateAssociationRequest & WithScheduleExpression(const char *value)
CreateAssociationRequest & WithCalendarNames(Aws::Vector< Aws::String > &&value)
const AlarmConfiguration & GetAlarmConfiguration() const
void SetMaxErrors(Aws::String &&value)
CreateAssociationRequest & WithTargetMaps(Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > &&value)
CreateAssociationRequest & WithTargets(const Aws::Vector< Target > &value)
CreateAssociationRequest & WithDocumentVersion(const char *value)
CreateAssociationRequest & WithApplyOnlyAtCronInterval(bool value)
CreateAssociationRequest & AddTargetLocations(const TargetLocation &value)
void SetMaxConcurrency(const char *value)
CreateAssociationRequest & AddCalendarNames(const Aws::String &value)
bool ScheduleExpressionHasBeenSet() const
void SetCalendarNames(Aws::Vector< Aws::String > &&value)
CreateAssociationRequest & WithOutputLocation(const InstanceAssociationOutputLocation &value)
const Aws::String & GetDocumentVersion() const
void SetOutputLocation(const InstanceAssociationOutputLocation &value)
CreateAssociationRequest & AddTargets(Target &&value)
void SetInstanceId(const Aws::String &value)
const Aws::String & GetInstanceId() const
CreateAssociationRequest & WithMaxErrors(const char *value)
CreateAssociationRequest & AddTags(Tag &&value)
CreateAssociationRequest & WithTargetMaps(const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > &value)
CreateAssociationRequest & WithMaxErrors(const Aws::String &value)
void SetName(const Aws::String &value)
CreateAssociationRequest & AddTargetLocations(TargetLocation &&value)
void SetTags(const Aws::Vector< Tag > &value)
void SetTargetLocations(const Aws::Vector< TargetLocation > &value)
bool GetApplyOnlyAtCronInterval() const
void SetScheduleOffset(int value)
CreateAssociationRequest & WithAssociationName(Aws::String &&value)
void SetParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
void SetScheduleExpression(Aws::String &&value)
CreateAssociationRequest & WithAutomationTargetParameterName(Aws::String &&value)
CreateAssociationRequest & WithMaxConcurrency(Aws::String &&value)
void SetAutomationTargetParameterName(const char *value)
CreateAssociationRequest & WithTargetLocations(const Aws::Vector< TargetLocation > &value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
bool AssociationNameHasBeenSet() const
CreateAssociationRequest & AddTargets(const Target &value)
void SetTargetMaps(Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > &&value)
void SetInstanceId(const char *value)
CreateAssociationRequest & AddTags(const Tag &value)
void SetCalendarNames(const Aws::Vector< Aws::String > &value)
const Aws::String & GetScheduleExpression() const
CreateAssociationRequest & WithInstanceId(const Aws::String &value)
CreateAssociationRequest & WithSyncCompliance(AssociationSyncCompliance &&value)
void SetSyncCompliance(AssociationSyncCompliance &&value)
CreateAssociationRequest & AddParameters(const char *key, const Aws::Vector< Aws::String > &value)
void SetComplianceSeverity(const AssociationComplianceSeverity &value)
CreateAssociationRequest & AddParameters(const char *key, Aws::Vector< Aws::String > &&value)
void SetDocumentVersion(Aws::String &&value)
CreateAssociationRequest & WithDocumentVersion(Aws::String &&value)
void SetMaxConcurrency(const Aws::String &value)
bool TagsHasBeenSet() const
CreateAssociationRequest & WithMaxErrors(Aws::String &&value)
void SetParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
void SetMaxConcurrency(Aws::String &&value)
CreateAssociationRequest & AddCalendarNames(const char *value)
bool OutputLocationHasBeenSet() const
CreateAssociationRequest & WithAlarmConfiguration(const AlarmConfiguration &value)
void SetAutomationTargetParameterName(const Aws::String &value)
void SetScheduleExpression(const char *value)
CreateAssociationRequest & WithScheduleOffset(int value)
bool ApplyOnlyAtCronIntervalHasBeenSet() const
void SetMaxErrors(const char *value)
const Aws::String & GetAssociationName() const
CreateAssociationRequest & WithCalendarNames(const Aws::Vector< Aws::String > &value)
CreateAssociationRequest & AddTargetMaps(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
void SetMaxErrors(const Aws::String &value)
void SetScheduleExpression(const Aws::String &value)
CreateAssociationRequest & WithName(const Aws::String &value)
CreateAssociationRequest & AddTargetMaps(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
CreateAssociationRequest & AddParameters(Aws::String &&key, Aws::Vector< Aws::String > &&value)
CreateAssociationRequest & WithAssociationName(const Aws::String &value)
bool MaxConcurrencyHasBeenSet() const
CreateAssociationRequest & AddParameters(const Aws::String &key, Aws::Vector< Aws::String > &&value)
CreateAssociationRequest & WithInstanceId(const char *value)
CreateAssociationRequest & WithAssociationName(const char *value)
CreateAssociationRequest & WithAutomationTargetParameterName(const char *value)
void SetAssociationName(Aws::String &&value)
CreateAssociationRequest & WithTags(Aws::Vector< Tag > &&value)
CreateAssociationRequest & WithScheduleExpression(const Aws::String &value)
bool TargetsHasBeenSet() const
void SetTargets(const Aws::Vector< Target > &value)
CreateAssociationRequest & WithInstanceId(Aws::String &&value)
CreateAssociationRequest & WithComplianceSeverity(const AssociationComplianceSeverity &value)
void SetName(const char *value)
void SetTargetLocations(Aws::Vector< TargetLocation > &&value)
CreateAssociationRequest & WithTargets(Aws::Vector< Target > &&value)
bool AutomationTargetParameterNameHasBeenSet() const
const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > & GetTargetMaps() const
void SetAlarmConfiguration(const AlarmConfiguration &value)
void SetDocumentVersion(const char *value)
bool AlarmConfigurationHasBeenSet() const
bool DocumentVersionHasBeenSet() const
const AssociationSyncCompliance & GetSyncCompliance() const
const Aws::String & GetMaxErrors() const
CreateAssociationRequest & WithTags(const Aws::Vector< Tag > &value)
CreateAssociationRequest & WithSyncCompliance(const AssociationSyncCompliance &value)
int GetScheduleOffset() const
CreateAssociationRequest & AddParameters(const Aws::String &key, const Aws::Vector< Aws::String > &value)
void SetComplianceSeverity(AssociationComplianceSeverity &&value)
void SetTargets(Aws::Vector< Target > &&value)
bool MaxErrorsHasBeenSet() const
virtual const char * GetServiceRequestName() const override
AWS_SSM_API CreateAssociationRequest()
CreateAssociationRequest & WithTargetLocations(Aws::Vector< TargetLocation > &&value)
void SetApplyOnlyAtCronInterval(bool value)
void SetAssociationName(const Aws::String &value)
void SetAutomationTargetParameterName(Aws::String &&value)
void SetAssociationName(const char *value)
bool TargetMapsHasBeenSet() const
AWS_SSM_API Aws::String SerializePayload() const override
CreateAssociationRequest & WithComplianceSeverity(AssociationComplianceSeverity &&value)
bool TargetLocationsHasBeenSet() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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