AWS SDK for C++  0.14.3
AWS SDK for C++
SendCommandRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ssm/SSM_EXPORTS.h>
17 #include <aws/ssm/SSMRequest.h>
23 
24 namespace Aws
25 {
26 namespace SSM
27 {
28 namespace Model
29 {
30 
34  {
35  public:
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
45  inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
46 
51  inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
52 
57  inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
58 
63  inline SendCommandRequest& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
64 
69  inline SendCommandRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(value); return *this;}
70 
75  inline SendCommandRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
76 
81  inline SendCommandRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
82 
87  inline SendCommandRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
88 
93  inline const Aws::String& GetDocumentName() const{ return m_documentName; }
94 
99  inline void SetDocumentName(const Aws::String& value) { m_documentNameHasBeenSet = true; m_documentName = value; }
100 
105  inline void SetDocumentName(Aws::String&& value) { m_documentNameHasBeenSet = true; m_documentName = value; }
106 
111  inline void SetDocumentName(const char* value) { m_documentNameHasBeenSet = true; m_documentName.assign(value); }
112 
117  inline SendCommandRequest& WithDocumentName(const Aws::String& value) { SetDocumentName(value); return *this;}
118 
123  inline SendCommandRequest& WithDocumentName(Aws::String&& value) { SetDocumentName(value); return *this;}
124 
129  inline SendCommandRequest& WithDocumentName(const char* value) { SetDocumentName(value); return *this;}
130 
135  inline const Aws::String& GetDocumentHash() const{ return m_documentHash; }
136 
141  inline void SetDocumentHash(const Aws::String& value) { m_documentHashHasBeenSet = true; m_documentHash = value; }
142 
147  inline void SetDocumentHash(Aws::String&& value) { m_documentHashHasBeenSet = true; m_documentHash = value; }
148 
153  inline void SetDocumentHash(const char* value) { m_documentHashHasBeenSet = true; m_documentHash.assign(value); }
154 
159  inline SendCommandRequest& WithDocumentHash(const Aws::String& value) { SetDocumentHash(value); return *this;}
160 
165  inline SendCommandRequest& WithDocumentHash(Aws::String&& value) { SetDocumentHash(value); return *this;}
166 
171  inline SendCommandRequest& WithDocumentHash(const char* value) { SetDocumentHash(value); return *this;}
172 
176  inline const DocumentHashType& GetDocumentHashType() const{ return m_documentHashType; }
177 
181  inline void SetDocumentHashType(const DocumentHashType& value) { m_documentHashTypeHasBeenSet = true; m_documentHashType = value; }
182 
186  inline void SetDocumentHashType(DocumentHashType&& value) { m_documentHashTypeHasBeenSet = true; m_documentHashType = value; }
187 
191  inline SendCommandRequest& WithDocumentHashType(const DocumentHashType& value) { SetDocumentHashType(value); return *this;}
192 
196  inline SendCommandRequest& WithDocumentHashType(DocumentHashType&& value) { SetDocumentHashType(value); return *this;}
197 
202  inline int GetTimeoutSeconds() const{ return m_timeoutSeconds; }
203 
208  inline void SetTimeoutSeconds(int value) { m_timeoutSecondsHasBeenSet = true; m_timeoutSeconds = value; }
209 
214  inline SendCommandRequest& WithTimeoutSeconds(int value) { SetTimeoutSeconds(value); return *this;}
215 
220  inline const Aws::String& GetComment() const{ return m_comment; }
221 
226  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
227 
232  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
233 
238  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
239 
244  inline SendCommandRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
245 
250  inline SendCommandRequest& WithComment(Aws::String&& value) { SetComment(value); return *this;}
251 
256  inline SendCommandRequest& WithComment(const char* value) { SetComment(value); return *this;}
257 
262  inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const{ return m_parameters; }
263 
268  inline void SetParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
269 
274  inline void SetParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_parametersHasBeenSet = true; m_parameters = value; }
275 
280  inline SendCommandRequest& WithParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetParameters(value); return *this;}
281 
286  inline SendCommandRequest& WithParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetParameters(value); return *this;}
287 
292  inline SendCommandRequest& AddParameters(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
293 
298  inline SendCommandRequest& AddParameters(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
299 
304  inline SendCommandRequest& AddParameters(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
305 
310  inline SendCommandRequest& AddParameters(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
311 
316  inline SendCommandRequest& AddParameters(const char* key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
317 
322  inline SendCommandRequest& AddParameters(const char* key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
323 
328  inline const Aws::String& GetOutputS3BucketName() const{ return m_outputS3BucketName; }
329 
334  inline void SetOutputS3BucketName(const Aws::String& value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName = value; }
335 
340  inline void SetOutputS3BucketName(Aws::String&& value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName = value; }
341 
346  inline void SetOutputS3BucketName(const char* value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName.assign(value); }
347 
352  inline SendCommandRequest& WithOutputS3BucketName(const Aws::String& value) { SetOutputS3BucketName(value); return *this;}
353 
358  inline SendCommandRequest& WithOutputS3BucketName(Aws::String&& value) { SetOutputS3BucketName(value); return *this;}
359 
364  inline SendCommandRequest& WithOutputS3BucketName(const char* value) { SetOutputS3BucketName(value); return *this;}
365 
370  inline const Aws::String& GetOutputS3KeyPrefix() const{ return m_outputS3KeyPrefix; }
371 
376  inline void SetOutputS3KeyPrefix(const Aws::String& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = value; }
377 
382  inline void SetOutputS3KeyPrefix(Aws::String&& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = value; }
383 
388  inline void SetOutputS3KeyPrefix(const char* value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix.assign(value); }
389 
394  inline SendCommandRequest& WithOutputS3KeyPrefix(const Aws::String& value) { SetOutputS3KeyPrefix(value); return *this;}
395 
400  inline SendCommandRequest& WithOutputS3KeyPrefix(Aws::String&& value) { SetOutputS3KeyPrefix(value); return *this;}
401 
406  inline SendCommandRequest& WithOutputS3KeyPrefix(const char* value) { SetOutputS3KeyPrefix(value); return *this;}
407 
411  inline const Aws::String& GetServiceRoleArn() const{ return m_serviceRoleArn; }
412 
416  inline void SetServiceRoleArn(const Aws::String& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = value; }
417 
421  inline void SetServiceRoleArn(Aws::String&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = value; }
422 
426  inline void SetServiceRoleArn(const char* value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn.assign(value); }
427 
431  inline SendCommandRequest& WithServiceRoleArn(const Aws::String& value) { SetServiceRoleArn(value); return *this;}
432 
436  inline SendCommandRequest& WithServiceRoleArn(Aws::String&& value) { SetServiceRoleArn(value); return *this;}
437 
441  inline SendCommandRequest& WithServiceRoleArn(const char* value) { SetServiceRoleArn(value); return *this;}
442 
446  inline const NotificationConfig& GetNotificationConfig() const{ return m_notificationConfig; }
447 
451  inline void SetNotificationConfig(const NotificationConfig& value) { m_notificationConfigHasBeenSet = true; m_notificationConfig = value; }
452 
456  inline void SetNotificationConfig(NotificationConfig&& value) { m_notificationConfigHasBeenSet = true; m_notificationConfig = value; }
457 
461  inline SendCommandRequest& WithNotificationConfig(const NotificationConfig& value) { SetNotificationConfig(value); return *this;}
462 
466  inline SendCommandRequest& WithNotificationConfig(NotificationConfig&& value) { SetNotificationConfig(value); return *this;}
467 
468  private:
469  Aws::Vector<Aws::String> m_instanceIds;
470  bool m_instanceIdsHasBeenSet;
471  Aws::String m_documentName;
472  bool m_documentNameHasBeenSet;
473  Aws::String m_documentHash;
474  bool m_documentHashHasBeenSet;
475  DocumentHashType m_documentHashType;
476  bool m_documentHashTypeHasBeenSet;
477  int m_timeoutSeconds;
478  bool m_timeoutSecondsHasBeenSet;
479  Aws::String m_comment;
480  bool m_commentHasBeenSet;
482  bool m_parametersHasBeenSet;
483  Aws::String m_outputS3BucketName;
484  bool m_outputS3BucketNameHasBeenSet;
485  Aws::String m_outputS3KeyPrefix;
486  bool m_outputS3KeyPrefixHasBeenSet;
487  Aws::String m_serviceRoleArn;
488  bool m_serviceRoleArnHasBeenSet;
489  NotificationConfig m_notificationConfig;
490  bool m_notificationConfigHasBeenSet;
491  };
492 
493 } // namespace Model
494 } // namespace SSM
495 } // namespace Aws
void SetOutputS3BucketName(Aws::String &&value)
SendCommandRequest & AddParameters(const char *key, const Aws::Vector< Aws::String > &value)
SendCommandRequest & WithDocumentHashType(const DocumentHashType &value)
SendCommandRequest & WithNotificationConfig(const NotificationConfig &value)
SendCommandRequest & AddParameters(const Aws::String &key, Aws::Vector< Aws::String > &&value)
const Aws::String & GetDocumentHash() const
SendCommandRequest & AddParameters(Aws::String &&key, Aws::Vector< Aws::String > &&value)
SendCommandRequest & WithTimeoutSeconds(int value)
void SetDocumentHash(Aws::String &&value)
const Aws::String & GetOutputS3KeyPrefix() const
void SetOutputS3KeyPrefix(const char *value)
const NotificationConfig & GetNotificationConfig() const
SendCommandRequest & WithDocumentHash(Aws::String &&value)
SendCommandRequest & WithServiceRoleArn(const Aws::String &value)
void SetNotificationConfig(NotificationConfig &&value)
const Aws::Vector< Aws::String > & GetInstanceIds() const
SendCommandRequest & WithOutputS3KeyPrefix(const char *value)
void SetComment(Aws::String &&value)
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
SendCommandRequest & WithDocumentName(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
void SetDocumentName(const Aws::String &value)
SendCommandRequest & AddInstanceIds(Aws::String &&value)
SendCommandRequest & AddParameters(Aws::String &&key, const Aws::Vector< Aws::String > &value)
void SetOutputS3KeyPrefix(const Aws::String &value)
void SetDocumentName(const char *value)
SendCommandRequest & WithOutputS3KeyPrefix(const Aws::String &value)
SendCommandRequest & WithParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
const Aws::String & GetDocumentName() const
void SetParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
void SetDocumentHashType(const DocumentHashType &value)
const Aws::String & GetOutputS3BucketName() const
void SetDocumentHashType(DocumentHashType &&value)
SendCommandRequest & WithComment(const Aws::String &value)
SendCommandRequest & WithParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
const Aws::String & GetServiceRoleArn() const
void SetDocumentHash(const char *value)
SendCommandRequest & WithServiceRoleArn(const char *value)
SendCommandRequest & WithDocumentHash(const Aws::String &value)
SendCommandRequest & WithDocumentHash(const char *value)
SendCommandRequest & WithComment(const char *value)
void SetOutputS3KeyPrefix(Aws::String &&value)
SendCommandRequest & WithDocumentHashType(DocumentHashType &&value)
SendCommandRequest & WithOutputS3KeyPrefix(Aws::String &&value)
SendCommandRequest & WithServiceRoleArn(Aws::String &&value)
SendCommandRequest & WithOutputS3BucketName(const Aws::String &value)
SendCommandRequest & AddParameters(const char *key, Aws::Vector< Aws::String > &&value)
void SetServiceRoleArn(Aws::String &&value)
SendCommandRequest & WithDocumentName(const Aws::String &value)
void SetServiceRoleArn(const Aws::String &value)
void SetParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
void SetServiceRoleArn(const char *value)
SendCommandRequest & AddParameters(const Aws::String &key, const Aws::Vector< Aws::String > &value)
SendCommandRequest & WithOutputS3BucketName(Aws::String &&value)
SendCommandRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
void SetDocumentName(Aws::String &&value)
void SetDocumentHash(const Aws::String &value)
const Aws::String & GetComment() const
const DocumentHashType & GetDocumentHashType() const
SendCommandRequest & WithDocumentName(Aws::String &&value)
void SetOutputS3BucketName(const char *value)
SendCommandRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SendCommandRequest & WithNotificationConfig(NotificationConfig &&value)
void SetOutputS3BucketName(const Aws::String &value)
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:37
SendCommandRequest & AddInstanceIds(const char *value)
void SetComment(const Aws::String &value)
SendCommandRequest & WithComment(Aws::String &&value)
SendCommandRequest & WithOutputS3BucketName(const char *value)
void SetNotificationConfig(const NotificationConfig &value)
JSON (JavaScript Object Notation).
SendCommandRequest & AddInstanceIds(const Aws::String &value)