AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Command.h
1
6#pragma once
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>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace SSM {
29namespace Model {
30
36class Command {
37 public:
38 AWS_SSM_API Command() = default;
39 AWS_SSM_API Command(Aws::Utils::Json::JsonView jsonValue);
42
44
47 inline const Aws::String& GetCommandId() const { return m_commandId; }
48 inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; }
49 template <typename CommandIdT = Aws::String>
50 void SetCommandId(CommandIdT&& value) {
51 m_commandIdHasBeenSet = true;
52 m_commandId = std::forward<CommandIdT>(value);
53 }
54 template <typename CommandIdT = Aws::String>
55 Command& WithCommandId(CommandIdT&& value) {
56 SetCommandId(std::forward<CommandIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetDocumentName() const { return m_documentName; }
66 inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; }
67 template <typename DocumentNameT = Aws::String>
68 void SetDocumentName(DocumentNameT&& value) {
69 m_documentNameHasBeenSet = true;
70 m_documentName = std::forward<DocumentNameT>(value);
71 }
72 template <typename DocumentNameT = Aws::String>
73 Command& WithDocumentName(DocumentNameT&& value) {
74 SetDocumentName(std::forward<DocumentNameT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
84 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
85 template <typename DocumentVersionT = Aws::String>
86 void SetDocumentVersion(DocumentVersionT&& value) {
87 m_documentVersionHasBeenSet = true;
88 m_documentVersion = std::forward<DocumentVersionT>(value);
89 }
90 template <typename DocumentVersionT = Aws::String>
91 Command& WithDocumentVersion(DocumentVersionT&& value) {
92 SetDocumentVersion(std::forward<DocumentVersionT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::String& GetComment() const { return m_comment; }
103 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
104 template <typename CommentT = Aws::String>
105 void SetComment(CommentT&& value) {
106 m_commentHasBeenSet = true;
107 m_comment = std::forward<CommentT>(value);
108 }
109 template <typename CommentT = Aws::String>
110 Command& WithComment(CommentT&& value) {
111 SetComment(std::forward<CommentT>(value));
112 return *this;
113 }
115
117
127 inline const Aws::Utils::DateTime& GetExpiresAfter() const { return m_expiresAfter; }
128 inline bool ExpiresAfterHasBeenSet() const { return m_expiresAfterHasBeenSet; }
129 template <typename ExpiresAfterT = Aws::Utils::DateTime>
130 void SetExpiresAfter(ExpiresAfterT&& value) {
131 m_expiresAfterHasBeenSet = true;
132 m_expiresAfter = std::forward<ExpiresAfterT>(value);
133 }
134 template <typename ExpiresAfterT = Aws::Utils::DateTime>
135 Command& WithExpiresAfter(ExpiresAfterT&& value) {
136 SetExpiresAfter(std::forward<ExpiresAfterT>(value));
137 return *this;
138 }
140
142
146 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const { return m_parameters; }
147 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
148 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
149 void SetParameters(ParametersT&& value) {
150 m_parametersHasBeenSet = true;
151 m_parameters = std::forward<ParametersT>(value);
152 }
153 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
154 Command& WithParameters(ParametersT&& value) {
155 SetParameters(std::forward<ParametersT>(value));
156 return *this;
157 }
158 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
159 Command& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
160 m_parametersHasBeenSet = true;
161 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::Vector<Aws::String>& GetInstanceIds() const { return m_instanceIds; }
171 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
172 template <typename InstanceIdsT = Aws::Vector<Aws::String>>
173 void SetInstanceIds(InstanceIdsT&& value) {
174 m_instanceIdsHasBeenSet = true;
175 m_instanceIds = std::forward<InstanceIdsT>(value);
176 }
177 template <typename InstanceIdsT = Aws::Vector<Aws::String>>
178 Command& WithInstanceIds(InstanceIdsT&& value) {
179 SetInstanceIds(std::forward<InstanceIdsT>(value));
180 return *this;
181 }
182 template <typename InstanceIdsT = Aws::String>
183 Command& AddInstanceIds(InstanceIdsT&& value) {
184 m_instanceIdsHasBeenSet = true;
185 m_instanceIds.emplace_back(std::forward<InstanceIdsT>(value));
186 return *this;
187 }
189
191
196 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
197 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
198 template <typename TargetsT = Aws::Vector<Target>>
199 void SetTargets(TargetsT&& value) {
200 m_targetsHasBeenSet = true;
201 m_targets = std::forward<TargetsT>(value);
202 }
203 template <typename TargetsT = Aws::Vector<Target>>
204 Command& WithTargets(TargetsT&& value) {
205 SetTargets(std::forward<TargetsT>(value));
206 return *this;
207 }
208 template <typename TargetsT = Target>
209 Command& AddTargets(TargetsT&& value) {
210 m_targetsHasBeenSet = true;
211 m_targets.emplace_back(std::forward<TargetsT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::Utils::DateTime& GetRequestedDateTime() const { return m_requestedDateTime; }
221 inline bool RequestedDateTimeHasBeenSet() const { return m_requestedDateTimeHasBeenSet; }
222 template <typename RequestedDateTimeT = Aws::Utils::DateTime>
223 void SetRequestedDateTime(RequestedDateTimeT&& value) {
224 m_requestedDateTimeHasBeenSet = true;
225 m_requestedDateTime = std::forward<RequestedDateTimeT>(value);
226 }
227 template <typename RequestedDateTimeT = Aws::Utils::DateTime>
228 Command& WithRequestedDateTime(RequestedDateTimeT&& value) {
229 SetRequestedDateTime(std::forward<RequestedDateTimeT>(value));
230 return *this;
231 }
233
235
238 inline CommandStatus GetStatus() const { return m_status; }
239 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
240 inline void SetStatus(CommandStatus value) {
241 m_statusHasBeenSet = true;
242 m_status = value;
243 }
245 SetStatus(value);
246 return *this;
247 }
249
251
280 inline const Aws::String& GetStatusDetails() const { return m_statusDetails; }
281 inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; }
282 template <typename StatusDetailsT = Aws::String>
283 void SetStatusDetails(StatusDetailsT&& value) {
284 m_statusDetailsHasBeenSet = true;
285 m_statusDetails = std::forward<StatusDetailsT>(value);
286 }
287 template <typename StatusDetailsT = Aws::String>
288 Command& WithStatusDetails(StatusDetailsT&& value) {
289 SetStatusDetails(std::forward<StatusDetailsT>(value));
290 return *this;
291 }
293
295
300 inline const Aws::String& GetOutputS3Region() const { return m_outputS3Region; }
301 inline bool OutputS3RegionHasBeenSet() const { return m_outputS3RegionHasBeenSet; }
302 template <typename OutputS3RegionT = Aws::String>
303 void SetOutputS3Region(OutputS3RegionT&& value) {
304 m_outputS3RegionHasBeenSet = true;
305 m_outputS3Region = std::forward<OutputS3RegionT>(value);
306 }
307 template <typename OutputS3RegionT = Aws::String>
308 Command& WithOutputS3Region(OutputS3RegionT&& value) {
309 SetOutputS3Region(std::forward<OutputS3RegionT>(value));
310 return *this;
311 }
313
315
319 inline const Aws::String& GetOutputS3BucketName() const { return m_outputS3BucketName; }
320 inline bool OutputS3BucketNameHasBeenSet() const { return m_outputS3BucketNameHasBeenSet; }
321 template <typename OutputS3BucketNameT = Aws::String>
322 void SetOutputS3BucketName(OutputS3BucketNameT&& value) {
323 m_outputS3BucketNameHasBeenSet = true;
324 m_outputS3BucketName = std::forward<OutputS3BucketNameT>(value);
325 }
326 template <typename OutputS3BucketNameT = Aws::String>
327 Command& WithOutputS3BucketName(OutputS3BucketNameT&& value) {
328 SetOutputS3BucketName(std::forward<OutputS3BucketNameT>(value));
329 return *this;
330 }
332
334
338 inline const Aws::String& GetOutputS3KeyPrefix() const { return m_outputS3KeyPrefix; }
339 inline bool OutputS3KeyPrefixHasBeenSet() const { return m_outputS3KeyPrefixHasBeenSet; }
340 template <typename OutputS3KeyPrefixT = Aws::String>
341 void SetOutputS3KeyPrefix(OutputS3KeyPrefixT&& value) {
342 m_outputS3KeyPrefixHasBeenSet = true;
343 m_outputS3KeyPrefix = std::forward<OutputS3KeyPrefixT>(value);
344 }
345 template <typename OutputS3KeyPrefixT = Aws::String>
346 Command& WithOutputS3KeyPrefix(OutputS3KeyPrefixT&& value) {
347 SetOutputS3KeyPrefix(std::forward<OutputS3KeyPrefixT>(value));
348 return *this;
349 }
351
353
362 inline const Aws::String& GetMaxConcurrency() const { return m_maxConcurrency; }
363 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
364 template <typename MaxConcurrencyT = Aws::String>
365 void SetMaxConcurrency(MaxConcurrencyT&& value) {
366 m_maxConcurrencyHasBeenSet = true;
367 m_maxConcurrency = std::forward<MaxConcurrencyT>(value);
368 }
369 template <typename MaxConcurrencyT = Aws::String>
370 Command& WithMaxConcurrency(MaxConcurrencyT&& value) {
371 SetMaxConcurrency(std::forward<MaxConcurrencyT>(value));
372 return *this;
373 }
375
377
386 inline const Aws::String& GetMaxErrors() const { return m_maxErrors; }
387 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
388 template <typename MaxErrorsT = Aws::String>
389 void SetMaxErrors(MaxErrorsT&& value) {
390 m_maxErrorsHasBeenSet = true;
391 m_maxErrors = std::forward<MaxErrorsT>(value);
392 }
393 template <typename MaxErrorsT = Aws::String>
394 Command& WithMaxErrors(MaxErrorsT&& value) {
395 SetMaxErrors(std::forward<MaxErrorsT>(value));
396 return *this;
397 }
399
401
404 inline int GetTargetCount() const { return m_targetCount; }
405 inline bool TargetCountHasBeenSet() const { return m_targetCountHasBeenSet; }
406 inline void SetTargetCount(int value) {
407 m_targetCountHasBeenSet = true;
408 m_targetCount = value;
409 }
410 inline Command& WithTargetCount(int value) {
411 SetTargetCount(value);
412 return *this;
413 }
415
417
422 inline int GetCompletedCount() const { return m_completedCount; }
423 inline bool CompletedCountHasBeenSet() const { return m_completedCountHasBeenSet; }
424 inline void SetCompletedCount(int value) {
425 m_completedCountHasBeenSet = true;
426 m_completedCount = value;
427 }
428 inline Command& WithCompletedCount(int value) {
429 SetCompletedCount(value);
430 return *this;
431 }
433
435
439 inline int GetErrorCount() const { return m_errorCount; }
440 inline bool ErrorCountHasBeenSet() const { return m_errorCountHasBeenSet; }
441 inline void SetErrorCount(int value) {
442 m_errorCountHasBeenSet = true;
443 m_errorCount = value;
444 }
445 inline Command& WithErrorCount(int value) {
446 SetErrorCount(value);
447 return *this;
448 }
450
452
455 inline int GetDeliveryTimedOutCount() const { return m_deliveryTimedOutCount; }
456 inline bool DeliveryTimedOutCountHasBeenSet() const { return m_deliveryTimedOutCountHasBeenSet; }
457 inline void SetDeliveryTimedOutCount(int value) {
458 m_deliveryTimedOutCountHasBeenSet = true;
459 m_deliveryTimedOutCount = value;
460 }
463 return *this;
464 }
466
468
473 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
474 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
475 template <typename ServiceRoleT = Aws::String>
476 void SetServiceRole(ServiceRoleT&& value) {
477 m_serviceRoleHasBeenSet = true;
478 m_serviceRole = std::forward<ServiceRoleT>(value);
479 }
480 template <typename ServiceRoleT = Aws::String>
481 Command& WithServiceRole(ServiceRoleT&& value) {
482 SetServiceRole(std::forward<ServiceRoleT>(value));
483 return *this;
484 }
486
488
491 inline const NotificationConfig& GetNotificationConfig() const { return m_notificationConfig; }
492 inline bool NotificationConfigHasBeenSet() const { return m_notificationConfigHasBeenSet; }
493 template <typename NotificationConfigT = NotificationConfig>
494 void SetNotificationConfig(NotificationConfigT&& value) {
495 m_notificationConfigHasBeenSet = true;
496 m_notificationConfig = std::forward<NotificationConfigT>(value);
497 }
498 template <typename NotificationConfigT = NotificationConfig>
499 Command& WithNotificationConfig(NotificationConfigT&& value) {
500 SetNotificationConfig(std::forward<NotificationConfigT>(value));
501 return *this;
502 }
504
506
510 inline const CloudWatchOutputConfig& GetCloudWatchOutputConfig() const { return m_cloudWatchOutputConfig; }
511 inline bool CloudWatchOutputConfigHasBeenSet() const { return m_cloudWatchOutputConfigHasBeenSet; }
512 template <typename CloudWatchOutputConfigT = CloudWatchOutputConfig>
513 void SetCloudWatchOutputConfig(CloudWatchOutputConfigT&& value) {
514 m_cloudWatchOutputConfigHasBeenSet = true;
515 m_cloudWatchOutputConfig = std::forward<CloudWatchOutputConfigT>(value);
516 }
517 template <typename CloudWatchOutputConfigT = CloudWatchOutputConfig>
518 Command& WithCloudWatchOutputConfig(CloudWatchOutputConfigT&& value) {
519 SetCloudWatchOutputConfig(std::forward<CloudWatchOutputConfigT>(value));
520 return *this;
521 }
523
525
528 inline int GetTimeoutSeconds() const { return m_timeoutSeconds; }
529 inline bool TimeoutSecondsHasBeenSet() const { return m_timeoutSecondsHasBeenSet; }
530 inline void SetTimeoutSeconds(int value) {
531 m_timeoutSecondsHasBeenSet = true;
532 m_timeoutSeconds = value;
533 }
534 inline Command& WithTimeoutSeconds(int value) {
535 SetTimeoutSeconds(value);
536 return *this;
537 }
539
541
544 inline const AlarmConfiguration& GetAlarmConfiguration() const { return m_alarmConfiguration; }
545 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
546 template <typename AlarmConfigurationT = AlarmConfiguration>
547 void SetAlarmConfiguration(AlarmConfigurationT&& value) {
548 m_alarmConfigurationHasBeenSet = true;
549 m_alarmConfiguration = std::forward<AlarmConfigurationT>(value);
550 }
551 template <typename AlarmConfigurationT = AlarmConfiguration>
552 Command& WithAlarmConfiguration(AlarmConfigurationT&& value) {
553 SetAlarmConfiguration(std::forward<AlarmConfigurationT>(value));
554 return *this;
555 }
557
559
562 inline const Aws::Vector<AlarmStateInformation>& GetTriggeredAlarms() const { return m_triggeredAlarms; }
563 inline bool TriggeredAlarmsHasBeenSet() const { return m_triggeredAlarmsHasBeenSet; }
564 template <typename TriggeredAlarmsT = Aws::Vector<AlarmStateInformation>>
565 void SetTriggeredAlarms(TriggeredAlarmsT&& value) {
566 m_triggeredAlarmsHasBeenSet = true;
567 m_triggeredAlarms = std::forward<TriggeredAlarmsT>(value);
568 }
569 template <typename TriggeredAlarmsT = Aws::Vector<AlarmStateInformation>>
570 Command& WithTriggeredAlarms(TriggeredAlarmsT&& value) {
571 SetTriggeredAlarms(std::forward<TriggeredAlarmsT>(value));
572 return *this;
573 }
574 template <typename TriggeredAlarmsT = AlarmStateInformation>
575 Command& AddTriggeredAlarms(TriggeredAlarmsT&& value) {
576 m_triggeredAlarmsHasBeenSet = true;
577 m_triggeredAlarms.emplace_back(std::forward<TriggeredAlarmsT>(value));
578 return *this;
579 }
581 private:
582 Aws::String m_commandId;
583
584 Aws::String m_documentName;
585
586 Aws::String m_documentVersion;
587
588 Aws::String m_comment;
589
590 Aws::Utils::DateTime m_expiresAfter{};
591
593
594 Aws::Vector<Aws::String> m_instanceIds;
595
596 Aws::Vector<Target> m_targets;
597
598 Aws::Utils::DateTime m_requestedDateTime{};
599
601
602 Aws::String m_statusDetails;
603
604 Aws::String m_outputS3Region;
605
606 Aws::String m_outputS3BucketName;
607
608 Aws::String m_outputS3KeyPrefix;
609
610 Aws::String m_maxConcurrency;
611
612 Aws::String m_maxErrors;
613
614 int m_targetCount{0};
615
616 int m_completedCount{0};
617
618 int m_errorCount{0};
619
620 int m_deliveryTimedOutCount{0};
621
622 Aws::String m_serviceRole;
623
624 NotificationConfig m_notificationConfig;
625
626 CloudWatchOutputConfig m_cloudWatchOutputConfig;
627
628 int m_timeoutSeconds{0};
629
630 AlarmConfiguration m_alarmConfiguration;
631
632 Aws::Vector<AlarmStateInformation> m_triggeredAlarms;
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;
659};
660
661} // namespace Model
662} // namespace SSM
663} // namespace Aws
int GetTimeoutSeconds() const
Definition Command.h:528
bool CommandIdHasBeenSet() const
Definition Command.h:48
bool CompletedCountHasBeenSet() const
Definition Command.h:423
bool DeliveryTimedOutCountHasBeenSet() const
Definition Command.h:456
Command & WithOutputS3Region(OutputS3RegionT &&value)
Definition Command.h:308
Command & WithExpiresAfter(ExpiresAfterT &&value)
Definition Command.h:135
Command & WithParameters(ParametersT &&value)
Definition Command.h:154
Command & WithRequestedDateTime(RequestedDateTimeT &&value)
Definition Command.h:228
bool NotificationConfigHasBeenSet() const
Definition Command.h:492
const Aws::Utils::DateTime & GetRequestedDateTime() const
Definition Command.h:220
const Aws::String & GetCommandId() const
Definition Command.h:47
void SetStatusDetails(StatusDetailsT &&value)
Definition Command.h:283
Command & WithAlarmConfiguration(AlarmConfigurationT &&value)
Definition Command.h:552
Command & WithCompletedCount(int value)
Definition Command.h:428
void SetTimeoutSeconds(int value)
Definition Command.h:530
void SetTargets(TargetsT &&value)
Definition Command.h:199
void SetNotificationConfig(NotificationConfigT &&value)
Definition Command.h:494
void SetCloudWatchOutputConfig(CloudWatchOutputConfigT &&value)
Definition Command.h:513
Command & WithOutputS3BucketName(OutputS3BucketNameT &&value)
Definition Command.h:327
Command & WithInstanceIds(InstanceIdsT &&value)
Definition Command.h:178
void SetOutputS3BucketName(OutputS3BucketNameT &&value)
Definition Command.h:322
void SetDeliveryTimedOutCount(int value)
Definition Command.h:457
Command & AddTriggeredAlarms(TriggeredAlarmsT &&value)
Definition Command.h:575
bool OutputS3RegionHasBeenSet() const
Definition Command.h:301
void SetCompletedCount(int value)
Definition Command.h:424
Command & WithTargets(TargetsT &&value)
Definition Command.h:204
bool CloudWatchOutputConfigHasBeenSet() const
Definition Command.h:511
bool DocumentVersionHasBeenSet() const
Definition Command.h:84
Command & WithStatus(CommandStatus value)
Definition Command.h:244
bool CommentHasBeenSet() const
Definition Command.h:103
bool ParametersHasBeenSet() const
Definition Command.h:147
void SetOutputS3KeyPrefix(OutputS3KeyPrefixT &&value)
Definition Command.h:341
const Aws::Vector< AlarmStateInformation > & GetTriggeredAlarms() const
Definition Command.h:562
AWS_SSM_API Command & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCommandId(CommandIdT &&value)
Definition Command.h:50
void SetStatus(CommandStatus value)
Definition Command.h:240
const Aws::Utils::DateTime & GetExpiresAfter() const
Definition Command.h:127
const NotificationConfig & GetNotificationConfig() const
Definition Command.h:491
void SetDocumentVersion(DocumentVersionT &&value)
Definition Command.h:86
const Aws::String & GetServiceRole() const
Definition Command.h:473
AWS_SSM_API Command(Aws::Utils::Json::JsonView jsonValue)
void SetExpiresAfter(ExpiresAfterT &&value)
Definition Command.h:130
int GetDeliveryTimedOutCount() const
Definition Command.h:455
void SetErrorCount(int value)
Definition Command.h:441
const Aws::String & GetOutputS3KeyPrefix() const
Definition Command.h:338
bool InstanceIdsHasBeenSet() const
Definition Command.h:171
Command & WithMaxConcurrency(MaxConcurrencyT &&value)
Definition Command.h:370
const Aws::Vector< Target > & GetTargets() const
Definition Command.h:196
bool MaxErrorsHasBeenSet() const
Definition Command.h:387
Command & WithCommandId(CommandIdT &&value)
Definition Command.h:55
void SetRequestedDateTime(RequestedDateTimeT &&value)
Definition Command.h:223
const Aws::String & GetMaxErrors() const
Definition Command.h:386
AWS_SSM_API Command()=default
Command & WithTimeoutSeconds(int value)
Definition Command.h:534
Command & WithErrorCount(int value)
Definition Command.h:445
Command & WithNotificationConfig(NotificationConfigT &&value)
Definition Command.h:499
bool TargetCountHasBeenSet() const
Definition Command.h:405
Command & WithOutputS3KeyPrefix(OutputS3KeyPrefixT &&value)
Definition Command.h:346
void SetTriggeredAlarms(TriggeredAlarmsT &&value)
Definition Command.h:565
const Aws::String & GetOutputS3Region() const
Definition Command.h:300
Command & WithDocumentName(DocumentNameT &&value)
Definition Command.h:73
bool ExpiresAfterHasBeenSet() const
Definition Command.h:128
CommandStatus GetStatus() const
Definition Command.h:238
const CloudWatchOutputConfig & GetCloudWatchOutputConfig() const
Definition Command.h:510
bool TimeoutSecondsHasBeenSet() const
Definition Command.h:529
void SetInstanceIds(InstanceIdsT &&value)
Definition Command.h:173
int GetCompletedCount() const
Definition Command.h:422
void SetDocumentName(DocumentNameT &&value)
Definition Command.h:68
void SetMaxConcurrency(MaxConcurrencyT &&value)
Definition Command.h:365
bool StatusHasBeenSet() const
Definition Command.h:239
Command & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
Definition Command.h:159
const Aws::String & GetOutputS3BucketName() const
Definition Command.h:319
void SetParameters(ParametersT &&value)
Definition Command.h:149
bool AlarmConfigurationHasBeenSet() const
Definition Command.h:545
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
Definition Command.h:146
bool TargetsHasBeenSet() const
Definition Command.h:197
bool TriggeredAlarmsHasBeenSet() const
Definition Command.h:563
bool OutputS3KeyPrefixHasBeenSet() const
Definition Command.h:339
int GetErrorCount() const
Definition Command.h:439
Command & AddInstanceIds(InstanceIdsT &&value)
Definition Command.h:183
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
Command & WithTargetCount(int value)
Definition Command.h:410
Command & WithTriggeredAlarms(TriggeredAlarmsT &&value)
Definition Command.h:570
void SetMaxErrors(MaxErrorsT &&value)
Definition Command.h:389
int GetTargetCount() const
Definition Command.h:404
const Aws::String & GetDocumentVersion() const
Definition Command.h:83
Command & WithStatusDetails(StatusDetailsT &&value)
Definition Command.h:288
Command & WithServiceRole(ServiceRoleT &&value)
Definition Command.h:481
void SetComment(CommentT &&value)
Definition Command.h:105
const Aws::String & GetDocumentName() const
Definition Command.h:65
void SetOutputS3Region(OutputS3RegionT &&value)
Definition Command.h:303
bool ServiceRoleHasBeenSet() const
Definition Command.h:474
const Aws::Vector< Aws::String > & GetInstanceIds() const
Definition Command.h:170
Command & WithMaxErrors(MaxErrorsT &&value)
Definition Command.h:394
bool ErrorCountHasBeenSet() const
Definition Command.h:440
Command & AddTargets(TargetsT &&value)
Definition Command.h:209
const AlarmConfiguration & GetAlarmConfiguration() const
Definition Command.h:544
Command & WithDeliveryTimedOutCount(int value)
Definition Command.h:461
const Aws::String & GetComment() const
Definition Command.h:102
Command & WithComment(CommentT &&value)
Definition Command.h:110
bool MaxConcurrencyHasBeenSet() const
Definition Command.h:363
bool RequestedDateTimeHasBeenSet() const
Definition Command.h:221
Command & WithCloudWatchOutputConfig(CloudWatchOutputConfigT &&value)
Definition Command.h:518
void SetTargetCount(int value)
Definition Command.h:406
void SetAlarmConfiguration(AlarmConfigurationT &&value)
Definition Command.h:547
void SetServiceRole(ServiceRoleT &&value)
Definition Command.h:476
bool OutputS3BucketNameHasBeenSet() const
Definition Command.h:320
bool DocumentNameHasBeenSet() const
Definition Command.h:66
const Aws::String & GetMaxConcurrency() const
Definition Command.h:362
const Aws::String & GetStatusDetails() const
Definition Command.h:280
bool StatusDetailsHasBeenSet() const
Definition Command.h:281
Command & WithDocumentVersion(DocumentVersionT &&value)
Definition Command.h:91
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