7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ssm/model/DocumentHashType.h>
12#include <aws/core/utils/memory/stl/AWSMap.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>
60 template<
typename InstanceIdsT = Aws::Vector<Aws::String>>
61 void SetInstanceIds(InstanceIdsT&& value) { m_instanceIdsHasBeenSet =
true; m_instanceIds = std::forward<InstanceIdsT>(value); }
62 template<
typename InstanceIdsT = Aws::Vector<Aws::String>>
64 template<
typename InstanceIdsT = Aws::String>
65 SendCommandRequest&
AddInstanceIds(InstanceIdsT&& value) { m_instanceIdsHasBeenSet =
true; m_instanceIds.emplace_back(std::forward<InstanceIdsT>(value));
return *
this; }
84 template<
typename TargetsT = Aws::Vector<Target>>
85 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet =
true; m_targets = std::forward<TargetsT>(value); }
86 template<
typename TargetsT = Aws::Vector<Target>>
88 template<
typename TargetsT = Target>
89 SendCommandRequest&
AddTargets(TargetsT&& value) { m_targetsHasBeenSet =
true; m_targets.emplace_back(std::forward<TargetsT>(value));
return *
this; }
106 template<
typename DocumentNameT = Aws::String>
107 void SetDocumentName(DocumentNameT&& value) { m_documentNameHasBeenSet =
true; m_documentName = std::forward<DocumentNameT>(value); }
108 template<
typename DocumentNameT = Aws::String>
124 template<
typename DocumentVersionT = Aws::String>
125 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet =
true; m_documentVersion = std::forward<DocumentVersionT>(value); }
126 template<
typename DocumentVersionT = Aws::String>
137 template<
typename DocumentHashT = Aws::String>
138 void SetDocumentHash(DocumentHashT&& value) { m_documentHashHasBeenSet =
true; m_documentHash = std::forward<DocumentHashT>(value); }
139 template<
typename DocumentHashT = Aws::String>
160 inline void SetTimeoutSeconds(
int value) { m_timeoutSecondsHasBeenSet =
true; m_timeoutSeconds = value; }
171 template<
typename CommentT = Aws::String>
172 void SetComment(CommentT&& value) { m_commentHasBeenSet =
true; m_comment = std::forward<CommentT>(value); }
173 template<
typename CommentT = Aws::String>
183 template<
typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
184 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet =
true; m_parameters = std::forward<ParametersT>(value); }
185 template<
typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
187 template<
typename ParametersKeyT = Aws::String,
typename ParametersValueT = Aws::Vector<Aws::String>>
189 m_parametersHasBeenSet =
true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
return *
this;
201 template<
typename OutputS3RegionT = Aws::String>
202 void SetOutputS3Region(OutputS3RegionT&& value) { m_outputS3RegionHasBeenSet =
true; m_outputS3Region = std::forward<OutputS3RegionT>(value); }
203 template<
typename OutputS3RegionT = Aws::String>
214 template<
typename OutputS3BucketNameT = Aws::String>
215 void SetOutputS3BucketName(OutputS3BucketNameT&& value) { m_outputS3BucketNameHasBeenSet =
true; m_outputS3BucketName = std::forward<OutputS3BucketNameT>(value); }
216 template<
typename OutputS3BucketNameT = Aws::String>
227 template<
typename OutputS3KeyPrefixT = Aws::String>
228 void SetOutputS3KeyPrefix(OutputS3KeyPrefixT&& value) { m_outputS3KeyPrefixHasBeenSet =
true; m_outputS3KeyPrefix = std::forward<OutputS3KeyPrefixT>(value); }
229 template<
typename OutputS3KeyPrefixT = Aws::String>
245 template<
typename MaxConcurrencyT = Aws::String>
246 void SetMaxConcurrency(MaxConcurrencyT&& value) { m_maxConcurrencyHasBeenSet =
true; m_maxConcurrency = std::forward<MaxConcurrencyT>(value); }
247 template<
typename MaxConcurrencyT = Aws::String>
264 template<
typename MaxErrorsT = Aws::String>
265 void SetMaxErrors(MaxErrorsT&& value) { m_maxErrorsHasBeenSet =
true; m_maxErrors = std::forward<MaxErrorsT>(value); }
266 template<
typename MaxErrorsT = Aws::String>
283 template<
typename ServiceRoleArnT = Aws::String>
284 void SetServiceRoleArn(ServiceRoleArnT&& value) { m_serviceRoleArnHasBeenSet =
true; m_serviceRoleArn = std::forward<ServiceRoleArnT>(value); }
285 template<
typename ServiceRoleArnT = Aws::String>
295 template<
typename NotificationConfigT = NotificationConfig>
296 void SetNotificationConfig(NotificationConfigT&& value) { m_notificationConfigHasBeenSet =
true; m_notificationConfig = std::forward<NotificationConfigT>(value); }
297 template<
typename NotificationConfigT = NotificationConfig>
309 template<
typename CloudWatchOutputConfigT = CloudWatchOutputConfig>
310 void SetCloudWatchOutputConfig(CloudWatchOutputConfigT&& value) { m_cloudWatchOutputConfigHasBeenSet =
true; m_cloudWatchOutputConfig = std::forward<CloudWatchOutputConfigT>(value); }
311 template<
typename CloudWatchOutputConfigT = CloudWatchOutputConfig>
321 template<
typename AlarmConfigurationT = AlarmConfiguration>
322 void SetAlarmConfiguration(AlarmConfigurationT&& value) { m_alarmConfigurationHasBeenSet =
true; m_alarmConfiguration = std::forward<AlarmConfigurationT>(value); }
323 template<
typename AlarmConfigurationT = AlarmConfiguration>
329 bool m_instanceIdsHasBeenSet =
false;
332 bool m_targetsHasBeenSet =
false;
335 bool m_documentNameHasBeenSet =
false;
338 bool m_documentVersionHasBeenSet =
false;
341 bool m_documentHashHasBeenSet =
false;
344 bool m_documentHashTypeHasBeenSet =
false;
346 int m_timeoutSeconds{0};
347 bool m_timeoutSecondsHasBeenSet =
false;
350 bool m_commentHasBeenSet =
false;
353 bool m_parametersHasBeenSet =
false;
356 bool m_outputS3RegionHasBeenSet =
false;
359 bool m_outputS3BucketNameHasBeenSet =
false;
362 bool m_outputS3KeyPrefixHasBeenSet =
false;
365 bool m_maxConcurrencyHasBeenSet =
false;
368 bool m_maxErrorsHasBeenSet =
false;
371 bool m_serviceRoleArnHasBeenSet =
false;
373 NotificationConfig m_notificationConfig;
374 bool m_notificationConfigHasBeenSet =
false;
376 CloudWatchOutputConfig m_cloudWatchOutputConfig;
377 bool m_cloudWatchOutputConfigHasBeenSet =
false;
379 AlarmConfiguration m_alarmConfiguration;
380 bool m_alarmConfigurationHasBeenSet =
false;
bool NotificationConfigHasBeenSet() const
DocumentHashType GetDocumentHashType() const
SendCommandRequest & WithComment(CommentT &&value)
bool DocumentHashHasBeenSet() const
SendCommandRequest & WithDocumentName(DocumentNameT &&value)
void SetParameters(ParametersT &&value)
SendCommandRequest & WithServiceRoleArn(ServiceRoleArnT &&value)
bool CloudWatchOutputConfigHasBeenSet() const
bool ServiceRoleArnHasBeenSet() const
SendCommandRequest & WithOutputS3Region(OutputS3RegionT &&value)
void SetAlarmConfiguration(AlarmConfigurationT &&value)
void SetDocumentHash(DocumentHashT &&value)
const Aws::String & GetServiceRoleArn() const
bool ParametersHasBeenSet() const
const Aws::Vector< Target > & GetTargets() const
const Aws::String & GetOutputS3Region() const
const AlarmConfiguration & GetAlarmConfiguration() const
void SetCloudWatchOutputConfig(CloudWatchOutputConfigT &&value)
void SetOutputS3BucketName(OutputS3BucketNameT &&value)
const Aws::String & GetOutputS3KeyPrefix() const
const Aws::String & GetComment() const
void SetDocumentVersion(DocumentVersionT &&value)
const Aws::String & GetMaxErrors() const
void SetOutputS3KeyPrefix(OutputS3KeyPrefixT &&value)
SendCommandRequest & AddTargets(TargetsT &&value)
void SetDocumentName(DocumentNameT &&value)
void SetNotificationConfig(NotificationConfigT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
void SetOutputS3Region(OutputS3RegionT &&value)
void SetDocumentHashType(DocumentHashType value)
bool OutputS3RegionHasBeenSet() const
SendCommandRequest & WithTimeoutSeconds(int value)
const NotificationConfig & GetNotificationConfig() const
SendCommandRequest & WithAlarmConfiguration(AlarmConfigurationT &&value)
const Aws::String & GetDocumentName() const
const Aws::String & GetMaxConcurrency() const
AWS_SSM_API Aws::String SerializePayload() const override
bool OutputS3KeyPrefixHasBeenSet() const
SendCommandRequest & WithMaxErrors(MaxErrorsT &&value)
void SetInstanceIds(InstanceIdsT &&value)
const Aws::String & GetDocumentHash() const
void SetMaxConcurrency(MaxConcurrencyT &&value)
void SetMaxErrors(MaxErrorsT &&value)
bool DocumentHashTypeHasBeenSet() const
SendCommandRequest & WithCloudWatchOutputConfig(CloudWatchOutputConfigT &&value)
bool MaxErrorsHasBeenSet() const
bool OutputS3BucketNameHasBeenSet() const
int GetTimeoutSeconds() const
const Aws::String & GetDocumentVersion() const
SendCommandRequest & WithDocumentVersion(DocumentVersionT &&value)
SendCommandRequest & WithInstanceIds(InstanceIdsT &&value)
SendCommandRequest & WithParameters(ParametersT &&value)
void SetComment(CommentT &&value)
void SetServiceRoleArn(ServiceRoleArnT &&value)
const Aws::Vector< Aws::String > & GetInstanceIds() const
bool AlarmConfigurationHasBeenSet() const
bool TargetsHasBeenSet() const
bool DocumentVersionHasBeenSet() const
void SetTimeoutSeconds(int value)
void SetTargets(TargetsT &&value)
const CloudWatchOutputConfig & GetCloudWatchOutputConfig() const
SendCommandRequest & WithDocumentHashType(DocumentHashType value)
bool InstanceIdsHasBeenSet() const
SendCommandRequest & WithDocumentHash(DocumentHashT &&value)
SendCommandRequest & WithNotificationConfig(NotificationConfigT &&value)
bool TimeoutSecondsHasBeenSet() const
SendCommandRequest & WithOutputS3KeyPrefix(OutputS3KeyPrefixT &&value)
bool DocumentNameHasBeenSet() const
SendCommandRequest & AddInstanceIds(InstanceIdsT &&value)
bool MaxConcurrencyHasBeenSet() const
const Aws::String & GetOutputS3BucketName() const
bool CommentHasBeenSet() const
SendCommandRequest & WithTargets(TargetsT &&value)
SendCommandRequest & WithOutputS3BucketName(OutputS3BucketNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SSM_API SendCommandRequest()=default
SendCommandRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
SendCommandRequest & WithMaxConcurrency(MaxConcurrencyT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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