AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Command.h
1
6#pragma once
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>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace SSM
31{
32namespace Model
33{
34
40 class Command
41 {
42 public:
43 AWS_SSM_API Command();
44 AWS_SSM_API Command(Aws::Utils::Json::JsonView jsonValue);
47
48
50
53 inline const Aws::String& GetCommandId() const{ return m_commandId; }
54 inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; }
55 inline void SetCommandId(const Aws::String& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
56 inline void SetCommandId(Aws::String&& value) { m_commandIdHasBeenSet = true; m_commandId = std::move(value); }
57 inline void SetCommandId(const char* value) { m_commandIdHasBeenSet = true; m_commandId.assign(value); }
58 inline Command& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;}
59 inline Command& WithCommandId(Aws::String&& value) { SetCommandId(std::move(value)); return *this;}
60 inline Command& WithCommandId(const char* value) { SetCommandId(value); return *this;}
62
64
67 inline const Aws::String& GetDocumentName() const{ return m_documentName; }
68 inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; }
69 inline void SetDocumentName(const Aws::String& value) { m_documentNameHasBeenSet = true; m_documentName = value; }
70 inline void SetDocumentName(Aws::String&& value) { m_documentNameHasBeenSet = true; m_documentName = std::move(value); }
71 inline void SetDocumentName(const char* value) { m_documentNameHasBeenSet = true; m_documentName.assign(value); }
72 inline Command& WithDocumentName(const Aws::String& value) { SetDocumentName(value); return *this;}
73 inline Command& WithDocumentName(Aws::String&& value) { SetDocumentName(std::move(value)); return *this;}
74 inline Command& WithDocumentName(const char* value) { SetDocumentName(value); return *this;}
76
78
81 inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; }
82 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
83 inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; }
84 inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); }
85 inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); }
86 inline Command& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;}
87 inline Command& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;}
88 inline Command& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;}
90
92
96 inline const Aws::String& GetComment() const{ return m_comment; }
97 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
98 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
99 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
100 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
101 inline Command& WithComment(const Aws::String& value) { SetComment(value); return *this;}
102 inline Command& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
103 inline Command& WithComment(const char* value) { SetComment(value); return *this;}
105
107
117 inline const Aws::Utils::DateTime& GetExpiresAfter() const{ return m_expiresAfter; }
118 inline bool ExpiresAfterHasBeenSet() const { return m_expiresAfterHasBeenSet; }
119 inline void SetExpiresAfter(const Aws::Utils::DateTime& value) { m_expiresAfterHasBeenSet = true; m_expiresAfter = value; }
120 inline void SetExpiresAfter(Aws::Utils::DateTime&& value) { m_expiresAfterHasBeenSet = true; m_expiresAfter = std::move(value); }
121 inline Command& WithExpiresAfter(const Aws::Utils::DateTime& value) { SetExpiresAfter(value); return *this;}
122 inline Command& WithExpiresAfter(Aws::Utils::DateTime&& value) { SetExpiresAfter(std::move(value)); return *this;}
124
126
130 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const{ return m_parameters; }
131 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
132 inline void SetParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
133 inline void SetParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
134 inline Command& WithParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetParameters(value); return *this;}
135 inline Command& WithParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetParameters(std::move(value)); return *this;}
136 inline Command& AddParameters(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
137 inline Command& AddParameters(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
138 inline Command& AddParameters(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
139 inline Command& AddParameters(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
140 inline Command& AddParameters(const char* key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
141 inline Command& AddParameters(const char* key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
143
145
148 inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
149 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
150 inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
151 inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
152 inline Command& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
153 inline Command& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
154 inline Command& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
155 inline Command& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
156 inline Command& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
158
160
165 inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
166 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
167 inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
168 inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
169 inline Command& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
170 inline Command& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
171 inline Command& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
172 inline Command& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
174
176
179 inline const Aws::Utils::DateTime& GetRequestedDateTime() const{ return m_requestedDateTime; }
180 inline bool RequestedDateTimeHasBeenSet() const { return m_requestedDateTimeHasBeenSet; }
181 inline void SetRequestedDateTime(const Aws::Utils::DateTime& value) { m_requestedDateTimeHasBeenSet = true; m_requestedDateTime = value; }
182 inline void SetRequestedDateTime(Aws::Utils::DateTime&& value) { m_requestedDateTimeHasBeenSet = true; m_requestedDateTime = std::move(value); }
183 inline Command& WithRequestedDateTime(const Aws::Utils::DateTime& value) { SetRequestedDateTime(value); return *this;}
184 inline Command& WithRequestedDateTime(Aws::Utils::DateTime&& value) { SetRequestedDateTime(std::move(value)); return *this;}
186
188
191 inline const CommandStatus& GetStatus() const{ return m_status; }
192 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
193 inline void SetStatus(const CommandStatus& value) { m_statusHasBeenSet = true; m_status = value; }
194 inline void SetStatus(CommandStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
195 inline Command& WithStatus(const CommandStatus& value) { SetStatus(value); return *this;}
196 inline Command& WithStatus(CommandStatus&& value) { SetStatus(std::move(value)); return *this;}
198
200
229 inline const Aws::String& GetStatusDetails() const{ return m_statusDetails; }
230 inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; }
231 inline void SetStatusDetails(const Aws::String& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = value; }
232 inline void SetStatusDetails(Aws::String&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = std::move(value); }
233 inline void SetStatusDetails(const char* value) { m_statusDetailsHasBeenSet = true; m_statusDetails.assign(value); }
234 inline Command& WithStatusDetails(const Aws::String& value) { SetStatusDetails(value); return *this;}
235 inline Command& WithStatusDetails(Aws::String&& value) { SetStatusDetails(std::move(value)); return *this;}
236 inline Command& WithStatusDetails(const char* value) { SetStatusDetails(value); return *this;}
238
240
245 inline const Aws::String& GetOutputS3Region() const{ return m_outputS3Region; }
246 inline bool OutputS3RegionHasBeenSet() const { return m_outputS3RegionHasBeenSet; }
247 inline void SetOutputS3Region(const Aws::String& value) { m_outputS3RegionHasBeenSet = true; m_outputS3Region = value; }
248 inline void SetOutputS3Region(Aws::String&& value) { m_outputS3RegionHasBeenSet = true; m_outputS3Region = std::move(value); }
249 inline void SetOutputS3Region(const char* value) { m_outputS3RegionHasBeenSet = true; m_outputS3Region.assign(value); }
250 inline Command& WithOutputS3Region(const Aws::String& value) { SetOutputS3Region(value); return *this;}
251 inline Command& WithOutputS3Region(Aws::String&& value) { SetOutputS3Region(std::move(value)); return *this;}
252 inline Command& WithOutputS3Region(const char* value) { SetOutputS3Region(value); return *this;}
254
256
260 inline const Aws::String& GetOutputS3BucketName() const{ return m_outputS3BucketName; }
261 inline bool OutputS3BucketNameHasBeenSet() const { return m_outputS3BucketNameHasBeenSet; }
262 inline void SetOutputS3BucketName(const Aws::String& value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName = value; }
263 inline void SetOutputS3BucketName(Aws::String&& value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName = std::move(value); }
264 inline void SetOutputS3BucketName(const char* value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName.assign(value); }
265 inline Command& WithOutputS3BucketName(const Aws::String& value) { SetOutputS3BucketName(value); return *this;}
266 inline Command& WithOutputS3BucketName(Aws::String&& value) { SetOutputS3BucketName(std::move(value)); return *this;}
267 inline Command& WithOutputS3BucketName(const char* value) { SetOutputS3BucketName(value); return *this;}
269
271
275 inline const Aws::String& GetOutputS3KeyPrefix() const{ return m_outputS3KeyPrefix; }
276 inline bool OutputS3KeyPrefixHasBeenSet() const { return m_outputS3KeyPrefixHasBeenSet; }
277 inline void SetOutputS3KeyPrefix(const Aws::String& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = value; }
278 inline void SetOutputS3KeyPrefix(Aws::String&& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = std::move(value); }
279 inline void SetOutputS3KeyPrefix(const char* value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix.assign(value); }
280 inline Command& WithOutputS3KeyPrefix(const Aws::String& value) { SetOutputS3KeyPrefix(value); return *this;}
281 inline Command& WithOutputS3KeyPrefix(Aws::String&& value) { SetOutputS3KeyPrefix(std::move(value)); return *this;}
282 inline Command& WithOutputS3KeyPrefix(const char* value) { SetOutputS3KeyPrefix(value); return *this;}
284
286
295 inline const Aws::String& GetMaxConcurrency() const{ return m_maxConcurrency; }
296 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
297 inline void SetMaxConcurrency(const Aws::String& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = value; }
298 inline void SetMaxConcurrency(Aws::String&& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = std::move(value); }
299 inline void SetMaxConcurrency(const char* value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency.assign(value); }
300 inline Command& WithMaxConcurrency(const Aws::String& value) { SetMaxConcurrency(value); return *this;}
301 inline Command& WithMaxConcurrency(Aws::String&& value) { SetMaxConcurrency(std::move(value)); return *this;}
302 inline Command& WithMaxConcurrency(const char* value) { SetMaxConcurrency(value); return *this;}
304
306
315 inline const Aws::String& GetMaxErrors() const{ return m_maxErrors; }
316 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
317 inline void SetMaxErrors(const Aws::String& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = value; }
318 inline void SetMaxErrors(Aws::String&& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = std::move(value); }
319 inline void SetMaxErrors(const char* value) { m_maxErrorsHasBeenSet = true; m_maxErrors.assign(value); }
320 inline Command& WithMaxErrors(const Aws::String& value) { SetMaxErrors(value); return *this;}
321 inline Command& WithMaxErrors(Aws::String&& value) { SetMaxErrors(std::move(value)); return *this;}
322 inline Command& WithMaxErrors(const char* value) { SetMaxErrors(value); return *this;}
324
326
329 inline int GetTargetCount() const{ return m_targetCount; }
330 inline bool TargetCountHasBeenSet() const { return m_targetCountHasBeenSet; }
331 inline void SetTargetCount(int value) { m_targetCountHasBeenSet = true; m_targetCount = value; }
332 inline Command& WithTargetCount(int value) { SetTargetCount(value); return *this;}
334
336
341 inline int GetCompletedCount() const{ return m_completedCount; }
342 inline bool CompletedCountHasBeenSet() const { return m_completedCountHasBeenSet; }
343 inline void SetCompletedCount(int value) { m_completedCountHasBeenSet = true; m_completedCount = value; }
344 inline Command& WithCompletedCount(int value) { SetCompletedCount(value); return *this;}
346
348
352 inline int GetErrorCount() const{ return m_errorCount; }
353 inline bool ErrorCountHasBeenSet() const { return m_errorCountHasBeenSet; }
354 inline void SetErrorCount(int value) { m_errorCountHasBeenSet = true; m_errorCount = value; }
355 inline Command& WithErrorCount(int value) { SetErrorCount(value); return *this;}
357
359
362 inline int GetDeliveryTimedOutCount() const{ return m_deliveryTimedOutCount; }
363 inline bool DeliveryTimedOutCountHasBeenSet() const { return m_deliveryTimedOutCountHasBeenSet; }
364 inline void SetDeliveryTimedOutCount(int value) { m_deliveryTimedOutCountHasBeenSet = true; m_deliveryTimedOutCount = value; }
365 inline Command& WithDeliveryTimedOutCount(int value) { SetDeliveryTimedOutCount(value); return *this;}
367
369
374 inline const Aws::String& GetServiceRole() const{ return m_serviceRole; }
375 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
376 inline void SetServiceRole(const Aws::String& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; }
377 inline void SetServiceRole(Aws::String&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::move(value); }
378 inline void SetServiceRole(const char* value) { m_serviceRoleHasBeenSet = true; m_serviceRole.assign(value); }
379 inline Command& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;}
380 inline Command& WithServiceRole(Aws::String&& value) { SetServiceRole(std::move(value)); return *this;}
381 inline Command& WithServiceRole(const char* value) { SetServiceRole(value); return *this;}
383
385
388 inline const NotificationConfig& GetNotificationConfig() const{ return m_notificationConfig; }
389 inline bool NotificationConfigHasBeenSet() const { return m_notificationConfigHasBeenSet; }
390 inline void SetNotificationConfig(const NotificationConfig& value) { m_notificationConfigHasBeenSet = true; m_notificationConfig = value; }
391 inline void SetNotificationConfig(NotificationConfig&& value) { m_notificationConfigHasBeenSet = true; m_notificationConfig = std::move(value); }
392 inline Command& WithNotificationConfig(const NotificationConfig& value) { SetNotificationConfig(value); return *this;}
393 inline Command& WithNotificationConfig(NotificationConfig&& value) { SetNotificationConfig(std::move(value)); return *this;}
395
397
401 inline const CloudWatchOutputConfig& GetCloudWatchOutputConfig() const{ return m_cloudWatchOutputConfig; }
402 inline bool CloudWatchOutputConfigHasBeenSet() const { return m_cloudWatchOutputConfigHasBeenSet; }
403 inline void SetCloudWatchOutputConfig(const CloudWatchOutputConfig& value) { m_cloudWatchOutputConfigHasBeenSet = true; m_cloudWatchOutputConfig = value; }
404 inline void SetCloudWatchOutputConfig(CloudWatchOutputConfig&& value) { m_cloudWatchOutputConfigHasBeenSet = true; m_cloudWatchOutputConfig = std::move(value); }
406 inline Command& WithCloudWatchOutputConfig(CloudWatchOutputConfig&& value) { SetCloudWatchOutputConfig(std::move(value)); return *this;}
408
410
413 inline int GetTimeoutSeconds() const{ return m_timeoutSeconds; }
414 inline bool TimeoutSecondsHasBeenSet() const { return m_timeoutSecondsHasBeenSet; }
415 inline void SetTimeoutSeconds(int value) { m_timeoutSecondsHasBeenSet = true; m_timeoutSeconds = value; }
416 inline Command& WithTimeoutSeconds(int value) { SetTimeoutSeconds(value); return *this;}
418
420
423 inline const AlarmConfiguration& GetAlarmConfiguration() const{ return m_alarmConfiguration; }
424 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
425 inline void SetAlarmConfiguration(const AlarmConfiguration& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = value; }
426 inline void SetAlarmConfiguration(AlarmConfiguration&& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = std::move(value); }
427 inline Command& WithAlarmConfiguration(const AlarmConfiguration& value) { SetAlarmConfiguration(value); return *this;}
428 inline Command& WithAlarmConfiguration(AlarmConfiguration&& value) { SetAlarmConfiguration(std::move(value)); return *this;}
430
432
435 inline const Aws::Vector<AlarmStateInformation>& GetTriggeredAlarms() const{ return m_triggeredAlarms; }
436 inline bool TriggeredAlarmsHasBeenSet() const { return m_triggeredAlarmsHasBeenSet; }
437 inline void SetTriggeredAlarms(const Aws::Vector<AlarmStateInformation>& value) { m_triggeredAlarmsHasBeenSet = true; m_triggeredAlarms = value; }
438 inline void SetTriggeredAlarms(Aws::Vector<AlarmStateInformation>&& value) { m_triggeredAlarmsHasBeenSet = true; m_triggeredAlarms = std::move(value); }
440 inline Command& WithTriggeredAlarms(Aws::Vector<AlarmStateInformation>&& value) { SetTriggeredAlarms(std::move(value)); return *this;}
441 inline Command& AddTriggeredAlarms(const AlarmStateInformation& value) { m_triggeredAlarmsHasBeenSet = true; m_triggeredAlarms.push_back(value); return *this; }
442 inline Command& AddTriggeredAlarms(AlarmStateInformation&& value) { m_triggeredAlarmsHasBeenSet = true; m_triggeredAlarms.push_back(std::move(value)); return *this; }
444 private:
445
446 Aws::String m_commandId;
447 bool m_commandIdHasBeenSet = false;
448
449 Aws::String m_documentName;
450 bool m_documentNameHasBeenSet = false;
451
452 Aws::String m_documentVersion;
453 bool m_documentVersionHasBeenSet = false;
454
455 Aws::String m_comment;
456 bool m_commentHasBeenSet = false;
457
458 Aws::Utils::DateTime m_expiresAfter;
459 bool m_expiresAfterHasBeenSet = false;
460
462 bool m_parametersHasBeenSet = false;
463
464 Aws::Vector<Aws::String> m_instanceIds;
465 bool m_instanceIdsHasBeenSet = false;
466
467 Aws::Vector<Target> m_targets;
468 bool m_targetsHasBeenSet = false;
469
470 Aws::Utils::DateTime m_requestedDateTime;
471 bool m_requestedDateTimeHasBeenSet = false;
472
473 CommandStatus m_status;
474 bool m_statusHasBeenSet = false;
475
476 Aws::String m_statusDetails;
477 bool m_statusDetailsHasBeenSet = false;
478
479 Aws::String m_outputS3Region;
480 bool m_outputS3RegionHasBeenSet = false;
481
482 Aws::String m_outputS3BucketName;
483 bool m_outputS3BucketNameHasBeenSet = false;
484
485 Aws::String m_outputS3KeyPrefix;
486 bool m_outputS3KeyPrefixHasBeenSet = false;
487
488 Aws::String m_maxConcurrency;
489 bool m_maxConcurrencyHasBeenSet = false;
490
491 Aws::String m_maxErrors;
492 bool m_maxErrorsHasBeenSet = false;
493
494 int m_targetCount;
495 bool m_targetCountHasBeenSet = false;
496
497 int m_completedCount;
498 bool m_completedCountHasBeenSet = false;
499
500 int m_errorCount;
501 bool m_errorCountHasBeenSet = false;
502
503 int m_deliveryTimedOutCount;
504 bool m_deliveryTimedOutCountHasBeenSet = false;
505
506 Aws::String m_serviceRole;
507 bool m_serviceRoleHasBeenSet = false;
508
509 NotificationConfig m_notificationConfig;
510 bool m_notificationConfigHasBeenSet = false;
511
512 CloudWatchOutputConfig m_cloudWatchOutputConfig;
513 bool m_cloudWatchOutputConfigHasBeenSet = false;
514
515 int m_timeoutSeconds;
516 bool m_timeoutSecondsHasBeenSet = false;
517
518 AlarmConfiguration m_alarmConfiguration;
519 bool m_alarmConfigurationHasBeenSet = false;
520
521 Aws::Vector<AlarmStateInformation> m_triggeredAlarms;
522 bool m_triggeredAlarmsHasBeenSet = false;
523 };
524
525} // namespace Model
526} // namespace SSM
527} // namespace Aws
void SetComment(Aws::String &&value)
Definition Command.h:99
Command & WithTriggeredAlarms(const Aws::Vector< AlarmStateInformation > &value)
Definition Command.h:439
int GetTimeoutSeconds() const
Definition Command.h:413
Command & AddInstanceIds(const char *value)
Definition Command.h:156
bool CommandIdHasBeenSet() const
Definition Command.h:54
bool CompletedCountHasBeenSet() const
Definition Command.h:342
bool DeliveryTimedOutCountHasBeenSet() const
Definition Command.h:363
void SetRequestedDateTime(Aws::Utils::DateTime &&value)
Definition Command.h:182
Command & WithParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
Definition Command.h:135
Command & WithExpiresAfter(const Aws::Utils::DateTime &value)
Definition Command.h:121
bool NotificationConfigHasBeenSet() const
Definition Command.h:389
const Aws::Utils::DateTime & GetRequestedDateTime() const
Definition Command.h:179
void SetServiceRole(Aws::String &&value)
Definition Command.h:377
const Aws::String & GetCommandId() const
Definition Command.h:53
void SetDocumentName(Aws::String &&value)
Definition Command.h:70
Command & WithTriggeredAlarms(Aws::Vector< AlarmStateInformation > &&value)
Definition Command.h:440
Command & WithCompletedCount(int value)
Definition Command.h:344
Command & AddTargets(const Target &value)
Definition Command.h:171
void SetStatusDetails(const Aws::String &value)
Definition Command.h:231
void SetTimeoutSeconds(int value)
Definition Command.h:415
void SetOutputS3BucketName(const Aws::String &value)
Definition Command.h:262
void SetServiceRole(const Aws::String &value)
Definition Command.h:376
const CommandStatus & GetStatus() const
Definition Command.h:191
void SetAlarmConfiguration(const AlarmConfiguration &value)
Definition Command.h:425
void SetTargets(const Aws::Vector< Target > &value)
Definition Command.h:167
Command & AddParameters(const char *key, Aws::Vector< Aws::String > &&value)
Definition Command.h:140
Command & WithStatusDetails(const Aws::String &value)
Definition Command.h:234
Command & WithMaxConcurrency(Aws::String &&value)
Definition Command.h:301
void SetCommandId(const Aws::String &value)
Definition Command.h:55
void SetMaxErrors(const char *value)
Definition Command.h:319
void SetParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
Definition Command.h:132
Command & WithOutputS3Region(const char *value)
Definition Command.h:252
Command & WithOutputS3Region(const Aws::String &value)
Definition Command.h:250
Command & WithComment(const char *value)
Definition Command.h:103
Command & WithCloudWatchOutputConfig(const CloudWatchOutputConfig &value)
Definition Command.h:405
void SetDeliveryTimedOutCount(int value)
Definition Command.h:364
void SetParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
Definition Command.h:133
Command & WithCommandId(const char *value)
Definition Command.h:60
Command & WithCommandId(const Aws::String &value)
Definition Command.h:58
bool OutputS3RegionHasBeenSet() const
Definition Command.h:246
Command & WithMaxErrors(const Aws::String &value)
Definition Command.h:320
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
Definition Command.h:150
void SetCompletedCount(int value)
Definition Command.h:343
Command & WithNotificationConfig(const NotificationConfig &value)
Definition Command.h:392
bool CloudWatchOutputConfigHasBeenSet() const
Definition Command.h:402
Command & AddParameters(Aws::String &&key, Aws::Vector< Aws::String > &&value)
Definition Command.h:139
bool DocumentVersionHasBeenSet() const
Definition Command.h:82
void SetTriggeredAlarms(Aws::Vector< AlarmStateInformation > &&value)
Definition Command.h:438
void SetDocumentName(const Aws::String &value)
Definition Command.h:69
Command & WithOutputS3KeyPrefix(const char *value)
Definition Command.h:282
Command & WithStatusDetails(Aws::String &&value)
Definition Command.h:235
Command & WithParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
Definition Command.h:134
bool CommentHasBeenSet() const
Definition Command.h:97
bool ParametersHasBeenSet() const
Definition Command.h:131
const Aws::Vector< AlarmStateInformation > & GetTriggeredAlarms() const
Definition Command.h:435
AWS_SSM_API Command & operator=(Aws::Utils::Json::JsonView jsonValue)
Command & WithOutputS3KeyPrefix(const Aws::String &value)
Definition Command.h:280
Command & AddParameters(const char *key, const Aws::Vector< Aws::String > &value)
Definition Command.h:141
void SetDocumentVersion(const char *value)
Definition Command.h:85
const Aws::Utils::DateTime & GetExpiresAfter() const
Definition Command.h:117
const NotificationConfig & GetNotificationConfig() const
Definition Command.h:388
void SetOutputS3KeyPrefix(const Aws::String &value)
Definition Command.h:277
void SetOutputS3Region(Aws::String &&value)
Definition Command.h:248
Command & AddParameters(const Aws::String &key, const Aws::Vector< Aws::String > &value)
Definition Command.h:136
Command & WithDocumentVersion(Aws::String &&value)
Definition Command.h:87
Command & WithDocumentName(const Aws::String &value)
Definition Command.h:72
void SetCloudWatchOutputConfig(CloudWatchOutputConfig &&value)
Definition Command.h:404
const Aws::String & GetServiceRole() const
Definition Command.h:374
AWS_SSM_API Command(Aws::Utils::Json::JsonView jsonValue)
void SetOutputS3KeyPrefix(Aws::String &&value)
Definition Command.h:278
Command & WithStatusDetails(const char *value)
Definition Command.h:236
int GetDeliveryTimedOutCount() const
Definition Command.h:362
Command & WithInstanceIds(Aws::Vector< Aws::String > &&value)
Definition Command.h:153
Command & WithMaxErrors(const char *value)
Definition Command.h:322
void SetErrorCount(int value)
Definition Command.h:354
const Aws::String & GetOutputS3KeyPrefix() const
Definition Command.h:275
void SetRequestedDateTime(const Aws::Utils::DateTime &value)
Definition Command.h:181
void SetDocumentVersion(Aws::String &&value)
Definition Command.h:84
bool InstanceIdsHasBeenSet() const
Definition Command.h:149
void SetMaxConcurrency(Aws::String &&value)
Definition Command.h:298
void SetOutputS3Region(const Aws::String &value)
Definition Command.h:247
Command & WithMaxConcurrency(const char *value)
Definition Command.h:302
Command & WithServiceRole(const Aws::String &value)
Definition Command.h:379
const Aws::Vector< Target > & GetTargets() const
Definition Command.h:165
bool MaxErrorsHasBeenSet() const
Definition Command.h:316
Command & WithComment(const Aws::String &value)
Definition Command.h:101
Command & WithAlarmConfiguration(AlarmConfiguration &&value)
Definition Command.h:428
Command & WithMaxErrors(Aws::String &&value)
Definition Command.h:321
const Aws::String & GetMaxErrors() const
Definition Command.h:315
Command & WithServiceRole(const char *value)
Definition Command.h:381
Command & WithTimeoutSeconds(int value)
Definition Command.h:416
Command & WithErrorCount(int value)
Definition Command.h:355
Command & WithRequestedDateTime(Aws::Utils::DateTime &&value)
Definition Command.h:184
void SetExpiresAfter(Aws::Utils::DateTime &&value)
Definition Command.h:120
void SetServiceRole(const char *value)
Definition Command.h:378
bool TargetCountHasBeenSet() const
Definition Command.h:330
void SetCommandId(const char *value)
Definition Command.h:57
Command & WithOutputS3Region(Aws::String &&value)
Definition Command.h:251
const Aws::String & GetOutputS3Region() const
Definition Command.h:245
Command & WithStatus(const CommandStatus &value)
Definition Command.h:195
Command & AddTriggeredAlarms(AlarmStateInformation &&value)
Definition Command.h:442
Command & WithComment(Aws::String &&value)
Definition Command.h:102
void SetCloudWatchOutputConfig(const CloudWatchOutputConfig &value)
Definition Command.h:403
bool ExpiresAfterHasBeenSet() const
Definition Command.h:118
Command & AddInstanceIds(Aws::String &&value)
Definition Command.h:155
const CloudWatchOutputConfig & GetCloudWatchOutputConfig() const
Definition Command.h:401
Command & WithOutputS3KeyPrefix(Aws::String &&value)
Definition Command.h:281
void SetStatusDetails(const char *value)
Definition Command.h:233
Command & WithServiceRole(Aws::String &&value)
Definition Command.h:380
bool TimeoutSecondsHasBeenSet() const
Definition Command.h:414
void SetMaxErrors(Aws::String &&value)
Definition Command.h:318
Command & WithInstanceIds(const Aws::Vector< Aws::String > &value)
Definition Command.h:152
int GetCompletedCount() const
Definition Command.h:341
Command & AddInstanceIds(const Aws::String &value)
Definition Command.h:154
Command & WithCloudWatchOutputConfig(CloudWatchOutputConfig &&value)
Definition Command.h:406
bool StatusHasBeenSet() const
Definition Command.h:192
const Aws::String & GetOutputS3BucketName() const
Definition Command.h:260
Command & WithNotificationConfig(NotificationConfig &&value)
Definition Command.h:393
bool AlarmConfigurationHasBeenSet() const
Definition Command.h:424
void SetStatus(CommandStatus &&value)
Definition Command.h:194
void SetOutputS3BucketName(Aws::String &&value)
Definition Command.h:263
Command & WithOutputS3BucketName(const char *value)
Definition Command.h:267
void SetDocumentVersion(const Aws::String &value)
Definition Command.h:83
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
Definition Command.h:130
bool TargetsHasBeenSet() const
Definition Command.h:166
bool TriggeredAlarmsHasBeenSet() const
Definition Command.h:436
bool OutputS3KeyPrefixHasBeenSet() const
Definition Command.h:276
int GetErrorCount() const
Definition Command.h:352
void SetMaxConcurrency(const char *value)
Definition Command.h:299
Command & AddParameters(Aws::String &&key, const Aws::Vector< Aws::String > &value)
Definition Command.h:137
Command & WithDocumentName(const char *value)
Definition Command.h:74
Command & WithStatus(CommandStatus &&value)
Definition Command.h:196
Command & AddTriggeredAlarms(const AlarmStateInformation &value)
Definition Command.h:441
void SetMaxConcurrency(const Aws::String &value)
Definition Command.h:297
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMaxErrors(const Aws::String &value)
Definition Command.h:317
Command & WithTargets(Aws::Vector< Target > &&value)
Definition Command.h:170
Command & WithTargetCount(int value)
Definition Command.h:332
Command & AddParameters(const Aws::String &key, Aws::Vector< Aws::String > &&value)
Definition Command.h:138
void SetOutputS3KeyPrefix(const char *value)
Definition Command.h:279
void SetStatus(const CommandStatus &value)
Definition Command.h:193
Command & WithOutputS3BucketName(Aws::String &&value)
Definition Command.h:266
Command & AddTargets(Target &&value)
Definition Command.h:172
int GetTargetCount() const
Definition Command.h:329
void SetTargets(Aws::Vector< Target > &&value)
Definition Command.h:168
const Aws::String & GetDocumentVersion() const
Definition Command.h:81
void SetAlarmConfiguration(AlarmConfiguration &&value)
Definition Command.h:426
void SetComment(const Aws::String &value)
Definition Command.h:98
Command & WithCommandId(Aws::String &&value)
Definition Command.h:59
void SetNotificationConfig(NotificationConfig &&value)
Definition Command.h:391
Command & WithRequestedDateTime(const Aws::Utils::DateTime &value)
Definition Command.h:183
void SetComment(const char *value)
Definition Command.h:100
const Aws::String & GetDocumentName() const
Definition Command.h:67
void SetOutputS3Region(const char *value)
Definition Command.h:249
bool ServiceRoleHasBeenSet() const
Definition Command.h:375
const Aws::Vector< Aws::String > & GetInstanceIds() const
Definition Command.h:148
Command & WithDocumentVersion(const char *value)
Definition Command.h:88
bool ErrorCountHasBeenSet() const
Definition Command.h:353
const AlarmConfiguration & GetAlarmConfiguration() const
Definition Command.h:423
void SetNotificationConfig(const NotificationConfig &value)
Definition Command.h:390
void SetOutputS3BucketName(const char *value)
Definition Command.h:264
Command & WithDeliveryTimedOutCount(int value)
Definition Command.h:365
const Aws::String & GetComment() const
Definition Command.h:96
void SetDocumentName(const char *value)
Definition Command.h:71
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
Definition Command.h:151
bool MaxConcurrencyHasBeenSet() const
Definition Command.h:296
Command & WithDocumentVersion(const Aws::String &value)
Definition Command.h:86
Command & WithTargets(const Aws::Vector< Target > &value)
Definition Command.h:169
bool RequestedDateTimeHasBeenSet() const
Definition Command.h:180
void SetTargetCount(int value)
Definition Command.h:331
Command & WithAlarmConfiguration(const AlarmConfiguration &value)
Definition Command.h:427
void SetTriggeredAlarms(const Aws::Vector< AlarmStateInformation > &value)
Definition Command.h:437
void SetExpiresAfter(const Aws::Utils::DateTime &value)
Definition Command.h:119
bool OutputS3BucketNameHasBeenSet() const
Definition Command.h:261
bool DocumentNameHasBeenSet() const
Definition Command.h:68
Command & WithOutputS3BucketName(const Aws::String &value)
Definition Command.h:265
Command & WithDocumentName(Aws::String &&value)
Definition Command.h:73
void SetStatusDetails(Aws::String &&value)
Definition Command.h:232
const Aws::String & GetMaxConcurrency() const
Definition Command.h:295
Command & WithExpiresAfter(Aws::Utils::DateTime &&value)
Definition Command.h:122
void SetCommandId(Aws::String &&value)
Definition Command.h:56
Command & WithMaxConcurrency(const Aws::String &value)
Definition Command.h:300
const Aws::String & GetStatusDetails() const
Definition Command.h:229
bool StatusDetailsHasBeenSet() const
Definition Command.h:230
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