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>
57 inline void SetCommandId(
const char* value) { m_commandIdHasBeenSet =
true; m_commandId.assign(value); }
71 inline void SetDocumentName(
const char* value) { m_documentNameHasBeenSet =
true; m_documentName.assign(value); }
85 inline void SetDocumentVersion(
const char* value) { m_documentVersionHasBeenSet =
true; m_documentVersion.assign(value); }
100 inline void SetComment(
const char* value) { m_commentHasBeenSet =
true; m_comment.assign(value); }
156 inline Command&
AddInstanceIds(
const char* value) { m_instanceIdsHasBeenSet =
true; m_instanceIds.push_back(value);
return *
this; }
172 inline Command&
AddTargets(
Target&& value) { m_targetsHasBeenSet =
true; m_targets.push_back(std::move(value));
return *
this; }
233 inline void SetStatusDetails(
const char* value) { m_statusDetailsHasBeenSet =
true; m_statusDetails.assign(value); }
249 inline void SetOutputS3Region(
const char* value) { m_outputS3RegionHasBeenSet =
true; m_outputS3Region.assign(value); }
264 inline void SetOutputS3BucketName(
const char* value) { m_outputS3BucketNameHasBeenSet =
true; m_outputS3BucketName.assign(value); }
279 inline void SetOutputS3KeyPrefix(
const char* value) { m_outputS3KeyPrefixHasBeenSet =
true; m_outputS3KeyPrefix.assign(value); }
299 inline void SetMaxConcurrency(
const char* value) { m_maxConcurrencyHasBeenSet =
true; m_maxConcurrency.assign(value); }
319 inline void SetMaxErrors(
const char* value) { m_maxErrorsHasBeenSet =
true; m_maxErrors.assign(value); }
331 inline void SetTargetCount(
int value) { m_targetCountHasBeenSet =
true; m_targetCount = value; }
343 inline void SetCompletedCount(
int value) { m_completedCountHasBeenSet =
true; m_completedCount = value; }
354 inline void SetErrorCount(
int value) { m_errorCountHasBeenSet =
true; m_errorCount = value; }
378 inline void SetServiceRole(
const char* value) { m_serviceRoleHasBeenSet =
true; m_serviceRole.assign(value); }
415 inline void SetTimeoutSeconds(
int value) { m_timeoutSecondsHasBeenSet =
true; m_timeoutSeconds = value; }
447 bool m_commandIdHasBeenSet =
false;
450 bool m_documentNameHasBeenSet =
false;
453 bool m_documentVersionHasBeenSet =
false;
456 bool m_commentHasBeenSet =
false;
459 bool m_expiresAfterHasBeenSet =
false;
462 bool m_parametersHasBeenSet =
false;
465 bool m_instanceIdsHasBeenSet =
false;
468 bool m_targetsHasBeenSet =
false;
471 bool m_requestedDateTimeHasBeenSet =
false;
474 bool m_statusHasBeenSet =
false;
477 bool m_statusDetailsHasBeenSet =
false;
480 bool m_outputS3RegionHasBeenSet =
false;
483 bool m_outputS3BucketNameHasBeenSet =
false;
486 bool m_outputS3KeyPrefixHasBeenSet =
false;
489 bool m_maxConcurrencyHasBeenSet =
false;
492 bool m_maxErrorsHasBeenSet =
false;
495 bool m_targetCountHasBeenSet =
false;
497 int m_completedCount;
498 bool m_completedCountHasBeenSet =
false;
501 bool m_errorCountHasBeenSet =
false;
503 int m_deliveryTimedOutCount;
504 bool m_deliveryTimedOutCountHasBeenSet =
false;
507 bool m_serviceRoleHasBeenSet =
false;
510 bool m_notificationConfigHasBeenSet =
false;
513 bool m_cloudWatchOutputConfigHasBeenSet =
false;
515 int m_timeoutSeconds;
516 bool m_timeoutSecondsHasBeenSet =
false;
519 bool m_alarmConfigurationHasBeenSet =
false;
522 bool m_triggeredAlarmsHasBeenSet =
false;
void SetComment(Aws::String &&value)
Command & WithTriggeredAlarms(const Aws::Vector< AlarmStateInformation > &value)
int GetTimeoutSeconds() const
Command & AddInstanceIds(const char *value)
bool CommandIdHasBeenSet() const
bool CompletedCountHasBeenSet() const
bool DeliveryTimedOutCountHasBeenSet() const
void SetRequestedDateTime(Aws::Utils::DateTime &&value)
Command & WithParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
Command & WithExpiresAfter(const Aws::Utils::DateTime &value)
bool NotificationConfigHasBeenSet() const
const Aws::Utils::DateTime & GetRequestedDateTime() const
void SetServiceRole(Aws::String &&value)
const Aws::String & GetCommandId() const
void SetDocumentName(Aws::String &&value)
Command & WithTriggeredAlarms(Aws::Vector< AlarmStateInformation > &&value)
Command & WithCompletedCount(int value)
Command & AddTargets(const Target &value)
void SetStatusDetails(const Aws::String &value)
void SetTimeoutSeconds(int value)
void SetOutputS3BucketName(const Aws::String &value)
void SetServiceRole(const Aws::String &value)
const CommandStatus & GetStatus() const
void SetAlarmConfiguration(const AlarmConfiguration &value)
void SetTargets(const Aws::Vector< Target > &value)
Command & AddParameters(const char *key, Aws::Vector< Aws::String > &&value)
Command & WithStatusDetails(const Aws::String &value)
Command & WithMaxConcurrency(Aws::String &&value)
void SetCommandId(const Aws::String &value)
void SetMaxErrors(const char *value)
void SetParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
Command & WithOutputS3Region(const char *value)
Command & WithOutputS3Region(const Aws::String &value)
Command & WithComment(const char *value)
Command & WithCloudWatchOutputConfig(const CloudWatchOutputConfig &value)
void SetDeliveryTimedOutCount(int value)
void SetParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
Command & WithCommandId(const char *value)
Command & WithCommandId(const Aws::String &value)
bool OutputS3RegionHasBeenSet() const
Command & WithMaxErrors(const Aws::String &value)
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
void SetCompletedCount(int value)
Command & WithNotificationConfig(const NotificationConfig &value)
bool CloudWatchOutputConfigHasBeenSet() const
Command & AddParameters(Aws::String &&key, Aws::Vector< Aws::String > &&value)
bool DocumentVersionHasBeenSet() const
void SetTriggeredAlarms(Aws::Vector< AlarmStateInformation > &&value)
void SetDocumentName(const Aws::String &value)
Command & WithOutputS3KeyPrefix(const char *value)
Command & WithStatusDetails(Aws::String &&value)
Command & WithParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
bool CommentHasBeenSet() const
bool ParametersHasBeenSet() const
const Aws::Vector< AlarmStateInformation > & GetTriggeredAlarms() const
AWS_SSM_API Command & operator=(Aws::Utils::Json::JsonView jsonValue)
Command & WithOutputS3KeyPrefix(const Aws::String &value)
Command & AddParameters(const char *key, const Aws::Vector< Aws::String > &value)
void SetDocumentVersion(const char *value)
const Aws::Utils::DateTime & GetExpiresAfter() const
const NotificationConfig & GetNotificationConfig() const
void SetOutputS3KeyPrefix(const Aws::String &value)
void SetOutputS3Region(Aws::String &&value)
Command & AddParameters(const Aws::String &key, const Aws::Vector< Aws::String > &value)
Command & WithDocumentVersion(Aws::String &&value)
Command & WithDocumentName(const Aws::String &value)
void SetCloudWatchOutputConfig(CloudWatchOutputConfig &&value)
const Aws::String & GetServiceRole() const
AWS_SSM_API Command(Aws::Utils::Json::JsonView jsonValue)
void SetOutputS3KeyPrefix(Aws::String &&value)
Command & WithStatusDetails(const char *value)
int GetDeliveryTimedOutCount() const
Command & WithInstanceIds(Aws::Vector< Aws::String > &&value)
Command & WithMaxErrors(const char *value)
void SetErrorCount(int value)
const Aws::String & GetOutputS3KeyPrefix() const
void SetRequestedDateTime(const Aws::Utils::DateTime &value)
void SetDocumentVersion(Aws::String &&value)
bool InstanceIdsHasBeenSet() const
void SetMaxConcurrency(Aws::String &&value)
void SetOutputS3Region(const Aws::String &value)
Command & WithMaxConcurrency(const char *value)
Command & WithServiceRole(const Aws::String &value)
const Aws::Vector< Target > & GetTargets() const
bool MaxErrorsHasBeenSet() const
Command & WithComment(const Aws::String &value)
Command & WithAlarmConfiguration(AlarmConfiguration &&value)
Command & WithMaxErrors(Aws::String &&value)
const Aws::String & GetMaxErrors() const
Command & WithServiceRole(const char *value)
Command & WithTimeoutSeconds(int value)
Command & WithErrorCount(int value)
Command & WithRequestedDateTime(Aws::Utils::DateTime &&value)
void SetExpiresAfter(Aws::Utils::DateTime &&value)
void SetServiceRole(const char *value)
bool TargetCountHasBeenSet() const
void SetCommandId(const char *value)
Command & WithOutputS3Region(Aws::String &&value)
const Aws::String & GetOutputS3Region() const
Command & WithStatus(const CommandStatus &value)
Command & AddTriggeredAlarms(AlarmStateInformation &&value)
Command & WithComment(Aws::String &&value)
void SetCloudWatchOutputConfig(const CloudWatchOutputConfig &value)
bool ExpiresAfterHasBeenSet() const
Command & AddInstanceIds(Aws::String &&value)
const CloudWatchOutputConfig & GetCloudWatchOutputConfig() const
Command & WithOutputS3KeyPrefix(Aws::String &&value)
void SetStatusDetails(const char *value)
Command & WithServiceRole(Aws::String &&value)
bool TimeoutSecondsHasBeenSet() const
void SetMaxErrors(Aws::String &&value)
Command & WithInstanceIds(const Aws::Vector< Aws::String > &value)
int GetCompletedCount() const
Command & AddInstanceIds(const Aws::String &value)
Command & WithCloudWatchOutputConfig(CloudWatchOutputConfig &&value)
bool StatusHasBeenSet() const
const Aws::String & GetOutputS3BucketName() const
Command & WithNotificationConfig(NotificationConfig &&value)
bool AlarmConfigurationHasBeenSet() const
void SetStatus(CommandStatus &&value)
void SetOutputS3BucketName(Aws::String &&value)
Command & WithOutputS3BucketName(const char *value)
void SetDocumentVersion(const Aws::String &value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
bool TargetsHasBeenSet() const
bool TriggeredAlarmsHasBeenSet() const
bool OutputS3KeyPrefixHasBeenSet() const
int GetErrorCount() const
void SetMaxConcurrency(const char *value)
Command & AddParameters(Aws::String &&key, const Aws::Vector< Aws::String > &value)
Command & WithDocumentName(const char *value)
Command & WithStatus(CommandStatus &&value)
Command & AddTriggeredAlarms(const AlarmStateInformation &value)
void SetMaxConcurrency(const Aws::String &value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMaxErrors(const Aws::String &value)
Command & WithTargets(Aws::Vector< Target > &&value)
Command & WithTargetCount(int value)
Command & AddParameters(const Aws::String &key, Aws::Vector< Aws::String > &&value)
void SetOutputS3KeyPrefix(const char *value)
void SetStatus(const CommandStatus &value)
Command & WithOutputS3BucketName(Aws::String &&value)
Command & AddTargets(Target &&value)
int GetTargetCount() const
void SetTargets(Aws::Vector< Target > &&value)
const Aws::String & GetDocumentVersion() const
void SetAlarmConfiguration(AlarmConfiguration &&value)
void SetComment(const Aws::String &value)
Command & WithCommandId(Aws::String &&value)
void SetNotificationConfig(NotificationConfig &&value)
Command & WithRequestedDateTime(const Aws::Utils::DateTime &value)
void SetComment(const char *value)
const Aws::String & GetDocumentName() const
void SetOutputS3Region(const char *value)
bool ServiceRoleHasBeenSet() const
const Aws::Vector< Aws::String > & GetInstanceIds() const
Command & WithDocumentVersion(const char *value)
bool ErrorCountHasBeenSet() const
const AlarmConfiguration & GetAlarmConfiguration() const
void SetNotificationConfig(const NotificationConfig &value)
void SetOutputS3BucketName(const char *value)
Command & WithDeliveryTimedOutCount(int value)
const Aws::String & GetComment() const
void SetDocumentName(const char *value)
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
bool MaxConcurrencyHasBeenSet() const
Command & WithDocumentVersion(const Aws::String &value)
Command & WithTargets(const Aws::Vector< Target > &value)
bool RequestedDateTimeHasBeenSet() const
void SetTargetCount(int value)
Command & WithAlarmConfiguration(const AlarmConfiguration &value)
void SetTriggeredAlarms(const Aws::Vector< AlarmStateInformation > &value)
void SetExpiresAfter(const Aws::Utils::DateTime &value)
bool OutputS3BucketNameHasBeenSet() const
bool DocumentNameHasBeenSet() const
Command & WithOutputS3BucketName(const Aws::String &value)
Command & WithDocumentName(Aws::String &&value)
void SetStatusDetails(Aws::String &&value)
const Aws::String & GetMaxConcurrency() const
Command & WithExpiresAfter(Aws::Utils::DateTime &&value)
void SetCommandId(Aws::String &&value)
Command & WithMaxConcurrency(const Aws::String &value)
const Aws::String & GetStatusDetails() const
bool StatusDetailsHasBeenSet() const
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