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/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ssm/model/CommandStatus.h>
13#include <aws/ssm/model/NotificationConfig.h>
14#include <aws/ssm/model/CloudWatchOutputConfig.h>
15#include <aws/ssm/model/AlarmConfiguration.h>
16#include <aws/ssm/model/Target.h>
17#include <aws/ssm/model/AlarmStateInformation.h>
55 template<
typename CommandIdT = Aws::String>
56 void SetCommandId(CommandIdT&& value) { m_commandIdHasBeenSet =
true; m_commandId = std::forward<CommandIdT>(value); }
57 template<
typename CommandIdT = Aws::String>
67 template<
typename DocumentNameT = Aws::String>
68 void SetDocumentName(DocumentNameT&& value) { m_documentNameHasBeenSet =
true; m_documentName = std::forward<DocumentNameT>(value); }
69 template<
typename DocumentNameT = Aws::String>
79 template<
typename DocumentVersionT = Aws::String>
80 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet =
true; m_documentVersion = std::forward<DocumentVersionT>(value); }
81 template<
typename DocumentVersionT = Aws::String>
92 template<
typename CommentT = Aws::String>
93 void SetComment(CommentT&& value) { m_commentHasBeenSet =
true; m_comment = std::forward<CommentT>(value); }
94 template<
typename CommentT = Aws::String>
111 template<
typename ExpiresAfterT = Aws::Utils::DateTime>
112 void SetExpiresAfter(ExpiresAfterT&& value) { m_expiresAfterHasBeenSet =
true; m_expiresAfter = std::forward<ExpiresAfterT>(value); }
113 template<
typename ExpiresAfterT = Aws::Utils::DateTime>
124 template<
typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
125 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet =
true; m_parameters = std::forward<ParametersT>(value); }
126 template<
typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
128 template<
typename ParametersKeyT = Aws::String,
typename ParametersValueT = Aws::Vector<Aws::String>>
130 m_parametersHasBeenSet =
true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
return *
this;
140 template<
typename InstanceIdsT = Aws::Vector<Aws::String>>
141 void SetInstanceIds(InstanceIdsT&& value) { m_instanceIdsHasBeenSet =
true; m_instanceIds = std::forward<InstanceIdsT>(value); }
142 template<
typename InstanceIdsT = Aws::Vector<Aws::String>>
144 template<
typename InstanceIdsT = Aws::String>
145 Command&
AddInstanceIds(InstanceIdsT&& value) { m_instanceIdsHasBeenSet =
true; m_instanceIds.emplace_back(std::forward<InstanceIdsT>(value));
return *
this; }
156 template<
typename TargetsT = Aws::Vector<Target>>
157 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet =
true; m_targets = std::forward<TargetsT>(value); }
158 template<
typename TargetsT = Aws::Vector<Target>>
160 template<
typename TargetsT = Target>
161 Command&
AddTargets(TargetsT&& value) { m_targetsHasBeenSet =
true; m_targets.emplace_back(std::forward<TargetsT>(value));
return *
this; }
170 template<
typename RequestedDateTimeT = Aws::Utils::DateTime>
171 void SetRequestedDateTime(RequestedDateTimeT&& value) { m_requestedDateTimeHasBeenSet =
true; m_requestedDateTime = std::forward<RequestedDateTimeT>(value); }
172 template<
typename RequestedDateTimeT = Aws::Utils::DateTime>
218 template<
typename StatusDetailsT = Aws::String>
219 void SetStatusDetails(StatusDetailsT&& value) { m_statusDetailsHasBeenSet =
true; m_statusDetails = std::forward<StatusDetailsT>(value); }
220 template<
typename StatusDetailsT = Aws::String>
232 template<
typename OutputS3RegionT = Aws::String>
233 void SetOutputS3Region(OutputS3RegionT&& value) { m_outputS3RegionHasBeenSet =
true; m_outputS3Region = std::forward<OutputS3RegionT>(value); }
234 template<
typename OutputS3RegionT = Aws::String>
245 template<
typename OutputS3BucketNameT = Aws::String>
246 void SetOutputS3BucketName(OutputS3BucketNameT&& value) { m_outputS3BucketNameHasBeenSet =
true; m_outputS3BucketName = std::forward<OutputS3BucketNameT>(value); }
247 template<
typename OutputS3BucketNameT = Aws::String>
258 template<
typename OutputS3KeyPrefixT = Aws::String>
259 void SetOutputS3KeyPrefix(OutputS3KeyPrefixT&& value) { m_outputS3KeyPrefixHasBeenSet =
true; m_outputS3KeyPrefix = std::forward<OutputS3KeyPrefixT>(value); }
260 template<
typename OutputS3KeyPrefixT = Aws::String>
276 template<
typename MaxConcurrencyT = Aws::String>
277 void SetMaxConcurrency(MaxConcurrencyT&& value) { m_maxConcurrencyHasBeenSet =
true; m_maxConcurrency = std::forward<MaxConcurrencyT>(value); }
278 template<
typename MaxConcurrencyT = Aws::String>
294 template<
typename MaxErrorsT = Aws::String>
295 void SetMaxErrors(MaxErrorsT&& value) { m_maxErrorsHasBeenSet =
true; m_maxErrors = std::forward<MaxErrorsT>(value); }
296 template<
typename MaxErrorsT = Aws::String>
306 inline void SetTargetCount(
int value) { m_targetCountHasBeenSet =
true; m_targetCount = value; }
318 inline void SetCompletedCount(
int value) { m_completedCountHasBeenSet =
true; m_completedCount = value; }
329 inline void SetErrorCount(
int value) { m_errorCountHasBeenSet =
true; m_errorCount = value; }
351 template<
typename ServiceRoleT = Aws::String>
352 void SetServiceRole(ServiceRoleT&& value) { m_serviceRoleHasBeenSet =
true; m_serviceRole = std::forward<ServiceRoleT>(value); }
353 template<
typename ServiceRoleT = Aws::String>
363 template<
typename NotificationConfigT = NotificationConfig>
364 void SetNotificationConfig(NotificationConfigT&& value) { m_notificationConfigHasBeenSet =
true; m_notificationConfig = std::forward<NotificationConfigT>(value); }
365 template<
typename NotificationConfigT = NotificationConfig>
376 template<
typename CloudWatchOutputConfigT = CloudWatchOutputConfig>
377 void SetCloudWatchOutputConfig(CloudWatchOutputConfigT&& value) { m_cloudWatchOutputConfigHasBeenSet =
true; m_cloudWatchOutputConfig = std::forward<CloudWatchOutputConfigT>(value); }
378 template<
typename CloudWatchOutputConfigT = CloudWatchOutputConfig>
388 inline void SetTimeoutSeconds(
int value) { m_timeoutSecondsHasBeenSet =
true; m_timeoutSeconds = value; }
398 template<
typename AlarmConfigurationT = AlarmConfiguration>
399 void SetAlarmConfiguration(AlarmConfigurationT&& value) { m_alarmConfigurationHasBeenSet =
true; m_alarmConfiguration = std::forward<AlarmConfigurationT>(value); }
400 template<
typename AlarmConfigurationT = AlarmConfiguration>
410 template<
typename TriggeredAlarmsT = Aws::Vector<AlarmStateInformation>>
411 void SetTriggeredAlarms(TriggeredAlarmsT&& value) { m_triggeredAlarmsHasBeenSet =
true; m_triggeredAlarms = std::forward<TriggeredAlarmsT>(value); }
412 template<
typename TriggeredAlarmsT = Aws::Vector<AlarmStateInformation>>
414 template<
typename TriggeredAlarmsT = AlarmStateInformation>
415 Command&
AddTriggeredAlarms(TriggeredAlarmsT&& value) { m_triggeredAlarmsHasBeenSet =
true; m_triggeredAlarms.emplace_back(std::forward<TriggeredAlarmsT>(value));
return *
this; }
420 bool m_commandIdHasBeenSet =
false;
423 bool m_documentNameHasBeenSet =
false;
426 bool m_documentVersionHasBeenSet =
false;
429 bool m_commentHasBeenSet =
false;
432 bool m_expiresAfterHasBeenSet =
false;
435 bool m_parametersHasBeenSet =
false;
438 bool m_instanceIdsHasBeenSet =
false;
441 bool m_targetsHasBeenSet =
false;
444 bool m_requestedDateTimeHasBeenSet =
false;
447 bool m_statusHasBeenSet =
false;
450 bool m_statusDetailsHasBeenSet =
false;
453 bool m_outputS3RegionHasBeenSet =
false;
456 bool m_outputS3BucketNameHasBeenSet =
false;
459 bool m_outputS3KeyPrefixHasBeenSet =
false;
462 bool m_maxConcurrencyHasBeenSet =
false;
465 bool m_maxErrorsHasBeenSet =
false;
467 int m_targetCount{0};
468 bool m_targetCountHasBeenSet =
false;
470 int m_completedCount{0};
471 bool m_completedCountHasBeenSet =
false;
474 bool m_errorCountHasBeenSet =
false;
476 int m_deliveryTimedOutCount{0};
477 bool m_deliveryTimedOutCountHasBeenSet =
false;
480 bool m_serviceRoleHasBeenSet =
false;
482 NotificationConfig m_notificationConfig;
483 bool m_notificationConfigHasBeenSet =
false;
485 CloudWatchOutputConfig m_cloudWatchOutputConfig;
486 bool m_cloudWatchOutputConfigHasBeenSet =
false;
488 int m_timeoutSeconds{0};
489 bool m_timeoutSecondsHasBeenSet =
false;
491 AlarmConfiguration m_alarmConfiguration;
492 bool m_alarmConfigurationHasBeenSet =
false;
495 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