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/AlarmConfiguration.h>
13#include <aws/ssm/model/AlarmStateInformation.h>
14#include <aws/ssm/model/CloudWatchOutputConfig.h>
15#include <aws/ssm/model/CommandStatus.h>
16#include <aws/ssm/model/NotificationConfig.h>
17#include <aws/ssm/model/Target.h>
49 template <
typename CommandIdT = Aws::String>
51 m_commandIdHasBeenSet =
true;
52 m_commandId = std::forward<CommandIdT>(value);
54 template <
typename CommandIdT = Aws::String>
67 template <
typename DocumentNameT = Aws::String>
69 m_documentNameHasBeenSet =
true;
70 m_documentName = std::forward<DocumentNameT>(value);
72 template <
typename DocumentNameT = Aws::String>
85 template <
typename DocumentVersionT = Aws::String>
87 m_documentVersionHasBeenSet =
true;
88 m_documentVersion = std::forward<DocumentVersionT>(value);
90 template <
typename DocumentVersionT = Aws::String>
104 template <
typename CommentT = Aws::String>
106 m_commentHasBeenSet =
true;
107 m_comment = std::forward<CommentT>(value);
109 template <
typename CommentT = Aws::String>
129 template <
typename ExpiresAfterT = Aws::Utils::DateTime>
131 m_expiresAfterHasBeenSet =
true;
132 m_expiresAfter = std::forward<ExpiresAfterT>(value);
134 template <
typename ExpiresAfterT = Aws::Utils::DateTime>
148 template <
typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
150 m_parametersHasBeenSet =
true;
151 m_parameters = std::forward<ParametersT>(value);
153 template <
typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
158 template <
typename ParametersKeyT = Aws::String,
typename ParametersValueT = Aws::Vector<Aws::String>>
160 m_parametersHasBeenSet =
true;
161 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
172 template <
typename InstanceIdsT = Aws::Vector<Aws::String>>
174 m_instanceIdsHasBeenSet =
true;
175 m_instanceIds = std::forward<InstanceIdsT>(value);
177 template <
typename InstanceIdsT = Aws::Vector<Aws::String>>
182 template <
typename InstanceIdsT = Aws::String>
184 m_instanceIdsHasBeenSet =
true;
185 m_instanceIds.emplace_back(std::forward<InstanceIdsT>(value));
198 template <
typename TargetsT = Aws::Vector<Target>>
200 m_targetsHasBeenSet =
true;
201 m_targets = std::forward<TargetsT>(value);
203 template <
typename TargetsT = Aws::Vector<Target>>
208 template <
typename TargetsT = Target>
210 m_targetsHasBeenSet =
true;
211 m_targets.emplace_back(std::forward<TargetsT>(value));
222 template <
typename RequestedDateTimeT = Aws::Utils::DateTime>
224 m_requestedDateTimeHasBeenSet =
true;
225 m_requestedDateTime = std::forward<RequestedDateTimeT>(value);
227 template <
typename RequestedDateTimeT = Aws::Utils::DateTime>
241 m_statusHasBeenSet =
true;
282 template <
typename StatusDetailsT = Aws::String>
284 m_statusDetailsHasBeenSet =
true;
285 m_statusDetails = std::forward<StatusDetailsT>(value);
287 template <
typename StatusDetailsT = Aws::String>
302 template <
typename OutputS3RegionT = Aws::String>
304 m_outputS3RegionHasBeenSet =
true;
305 m_outputS3Region = std::forward<OutputS3RegionT>(value);
307 template <
typename OutputS3RegionT = Aws::String>
321 template <
typename OutputS3BucketNameT = Aws::String>
323 m_outputS3BucketNameHasBeenSet =
true;
324 m_outputS3BucketName = std::forward<OutputS3BucketNameT>(value);
326 template <
typename OutputS3BucketNameT = Aws::String>
340 template <
typename OutputS3KeyPrefixT = Aws::String>
342 m_outputS3KeyPrefixHasBeenSet =
true;
343 m_outputS3KeyPrefix = std::forward<OutputS3KeyPrefixT>(value);
345 template <
typename OutputS3KeyPrefixT = Aws::String>
364 template <
typename MaxConcurrencyT = Aws::String>
366 m_maxConcurrencyHasBeenSet =
true;
367 m_maxConcurrency = std::forward<MaxConcurrencyT>(value);
369 template <
typename MaxConcurrencyT = Aws::String>
388 template <
typename MaxErrorsT = Aws::String>
390 m_maxErrorsHasBeenSet =
true;
391 m_maxErrors = std::forward<MaxErrorsT>(value);
393 template <
typename MaxErrorsT = Aws::String>
407 m_targetCountHasBeenSet =
true;
408 m_targetCount = value;
425 m_completedCountHasBeenSet =
true;
426 m_completedCount = value;
442 m_errorCountHasBeenSet =
true;
443 m_errorCount = value;
458 m_deliveryTimedOutCountHasBeenSet =
true;
459 m_deliveryTimedOutCount = value;
475 template <
typename ServiceRoleT = Aws::String>
477 m_serviceRoleHasBeenSet =
true;
478 m_serviceRole = std::forward<ServiceRoleT>(value);
480 template <
typename ServiceRoleT = Aws::String>
493 template <
typename NotificationConfigT = NotificationConfig>
495 m_notificationConfigHasBeenSet =
true;
496 m_notificationConfig = std::forward<NotificationConfigT>(value);
498 template <
typename NotificationConfigT = NotificationConfig>
512 template <
typename CloudWatchOutputConfigT = CloudWatchOutputConfig>
514 m_cloudWatchOutputConfigHasBeenSet =
true;
515 m_cloudWatchOutputConfig = std::forward<CloudWatchOutputConfigT>(value);
517 template <
typename CloudWatchOutputConfigT = CloudWatchOutputConfig>
531 m_timeoutSecondsHasBeenSet =
true;
532 m_timeoutSeconds = value;
546 template <
typename AlarmConfigurationT = AlarmConfiguration>
548 m_alarmConfigurationHasBeenSet =
true;
549 m_alarmConfiguration = std::forward<AlarmConfigurationT>(value);
551 template <
typename AlarmConfigurationT = AlarmConfiguration>
564 template <
typename TriggeredAlarmsT = Aws::Vector<AlarmStateInformation>>
566 m_triggeredAlarmsHasBeenSet =
true;
567 m_triggeredAlarms = std::forward<TriggeredAlarmsT>(value);
569 template <
typename TriggeredAlarmsT = Aws::Vector<AlarmStateInformation>>
574 template <
typename TriggeredAlarmsT = AlarmStateInformation>
576 m_triggeredAlarmsHasBeenSet =
true;
577 m_triggeredAlarms.emplace_back(std::forward<TriggeredAlarmsT>(value));
614 int m_targetCount{0};
616 int m_completedCount{0};
620 int m_deliveryTimedOutCount{0};
624 NotificationConfig m_notificationConfig;
626 CloudWatchOutputConfig m_cloudWatchOutputConfig;
628 int m_timeoutSeconds{0};
630 AlarmConfiguration m_alarmConfiguration;
633 bool m_commandIdHasBeenSet =
false;
634 bool m_documentNameHasBeenSet =
false;
635 bool m_documentVersionHasBeenSet =
false;
636 bool m_commentHasBeenSet =
false;
637 bool m_expiresAfterHasBeenSet =
false;
638 bool m_parametersHasBeenSet =
false;
639 bool m_instanceIdsHasBeenSet =
false;
640 bool m_targetsHasBeenSet =
false;
641 bool m_requestedDateTimeHasBeenSet =
false;
642 bool m_statusHasBeenSet =
false;
643 bool m_statusDetailsHasBeenSet =
false;
644 bool m_outputS3RegionHasBeenSet =
false;
645 bool m_outputS3BucketNameHasBeenSet =
false;
646 bool m_outputS3KeyPrefixHasBeenSet =
false;
647 bool m_maxConcurrencyHasBeenSet =
false;
648 bool m_maxErrorsHasBeenSet =
false;
649 bool m_targetCountHasBeenSet =
false;
650 bool m_completedCountHasBeenSet =
false;
651 bool m_errorCountHasBeenSet =
false;
652 bool m_deliveryTimedOutCountHasBeenSet =
false;
653 bool m_serviceRoleHasBeenSet =
false;
654 bool m_notificationConfigHasBeenSet =
false;
655 bool m_cloudWatchOutputConfigHasBeenSet =
false;
656 bool m_timeoutSecondsHasBeenSet =
false;
657 bool m_alarmConfigurationHasBeenSet =
false;
658 bool m_triggeredAlarmsHasBeenSet =
false;
int GetTimeoutSeconds() const
bool CommandIdHasBeenSet() const
bool CompletedCountHasBeenSet() const
bool DeliveryTimedOutCountHasBeenSet() const
Command & WithOutputS3Region(OutputS3RegionT &&value)
Command & WithExpiresAfter(ExpiresAfterT &&value)
Command & WithParameters(ParametersT &&value)
Command & WithRequestedDateTime(RequestedDateTimeT &&value)
bool NotificationConfigHasBeenSet() const
const Aws::Utils::DateTime & GetRequestedDateTime() const
const Aws::String & GetCommandId() const
void SetStatusDetails(StatusDetailsT &&value)
Command & WithAlarmConfiguration(AlarmConfigurationT &&value)
Command & WithCompletedCount(int value)
void SetTimeoutSeconds(int value)
void SetTargets(TargetsT &&value)
void SetNotificationConfig(NotificationConfigT &&value)
void SetCloudWatchOutputConfig(CloudWatchOutputConfigT &&value)
Command & WithOutputS3BucketName(OutputS3BucketNameT &&value)
Command & WithInstanceIds(InstanceIdsT &&value)
void SetOutputS3BucketName(OutputS3BucketNameT &&value)
void SetDeliveryTimedOutCount(int value)
Command & AddTriggeredAlarms(TriggeredAlarmsT &&value)
bool OutputS3RegionHasBeenSet() const
void SetCompletedCount(int value)
Command & WithTargets(TargetsT &&value)
bool CloudWatchOutputConfigHasBeenSet() const
bool DocumentVersionHasBeenSet() const
Command & WithStatus(CommandStatus value)
bool CommentHasBeenSet() const
bool ParametersHasBeenSet() const
void SetOutputS3KeyPrefix(OutputS3KeyPrefixT &&value)
const Aws::Vector< AlarmStateInformation > & GetTriggeredAlarms() const
AWS_SSM_API Command & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCommandId(CommandIdT &&value)
void SetStatus(CommandStatus value)
const Aws::Utils::DateTime & GetExpiresAfter() const
const NotificationConfig & GetNotificationConfig() const
void SetDocumentVersion(DocumentVersionT &&value)
const Aws::String & GetServiceRole() const
AWS_SSM_API Command(Aws::Utils::Json::JsonView jsonValue)
void SetExpiresAfter(ExpiresAfterT &&value)
int GetDeliveryTimedOutCount() const
void SetErrorCount(int value)
const Aws::String & GetOutputS3KeyPrefix() const
bool InstanceIdsHasBeenSet() const
Command & WithMaxConcurrency(MaxConcurrencyT &&value)
const Aws::Vector< Target > & GetTargets() const
bool MaxErrorsHasBeenSet() const
Command & WithCommandId(CommandIdT &&value)
void SetRequestedDateTime(RequestedDateTimeT &&value)
const Aws::String & GetMaxErrors() const
AWS_SSM_API Command()=default
Command & WithTimeoutSeconds(int value)
Command & WithErrorCount(int value)
Command & WithNotificationConfig(NotificationConfigT &&value)
bool TargetCountHasBeenSet() const
Command & WithOutputS3KeyPrefix(OutputS3KeyPrefixT &&value)
void SetTriggeredAlarms(TriggeredAlarmsT &&value)
const Aws::String & GetOutputS3Region() const
Command & WithDocumentName(DocumentNameT &&value)
bool ExpiresAfterHasBeenSet() const
CommandStatus GetStatus() const
const CloudWatchOutputConfig & GetCloudWatchOutputConfig() const
bool TimeoutSecondsHasBeenSet() const
void SetInstanceIds(InstanceIdsT &&value)
int GetCompletedCount() const
void SetDocumentName(DocumentNameT &&value)
void SetMaxConcurrency(MaxConcurrencyT &&value)
bool StatusHasBeenSet() const
Command & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
const Aws::String & GetOutputS3BucketName() const
void SetParameters(ParametersT &&value)
bool AlarmConfigurationHasBeenSet() const
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
bool TargetsHasBeenSet() const
bool TriggeredAlarmsHasBeenSet() const
bool OutputS3KeyPrefixHasBeenSet() const
int GetErrorCount() const
Command & AddInstanceIds(InstanceIdsT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
Command & WithTargetCount(int value)
Command & WithTriggeredAlarms(TriggeredAlarmsT &&value)
void SetMaxErrors(MaxErrorsT &&value)
int GetTargetCount() const
const Aws::String & GetDocumentVersion() const
Command & WithStatusDetails(StatusDetailsT &&value)
Command & WithServiceRole(ServiceRoleT &&value)
void SetComment(CommentT &&value)
const Aws::String & GetDocumentName() const
void SetOutputS3Region(OutputS3RegionT &&value)
bool ServiceRoleHasBeenSet() const
const Aws::Vector< Aws::String > & GetInstanceIds() const
Command & WithMaxErrors(MaxErrorsT &&value)
bool ErrorCountHasBeenSet() const
Command & AddTargets(TargetsT &&value)
const AlarmConfiguration & GetAlarmConfiguration() const
Command & WithDeliveryTimedOutCount(int value)
const Aws::String & GetComment() const
Command & WithComment(CommentT &&value)
bool MaxConcurrencyHasBeenSet() const
bool RequestedDateTimeHasBeenSet() const
Command & WithCloudWatchOutputConfig(CloudWatchOutputConfigT &&value)
void SetTargetCount(int value)
void SetAlarmConfiguration(AlarmConfigurationT &&value)
void SetServiceRole(ServiceRoleT &&value)
bool OutputS3BucketNameHasBeenSet() const
bool DocumentNameHasBeenSet() const
const Aws::String & GetMaxConcurrency() const
const Aws::String & GetStatusDetails() const
bool StatusDetailsHasBeenSet() const
Command & WithDocumentVersion(DocumentVersionT &&value)
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