AWS SDK for C++  0.12.9
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>
22 
23 namespace Aws
24 {
25 namespace SSM
26 {
27 namespace Model
28 {
29 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
43  inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
44 
48  inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
49 
53  inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
54 
58  inline SendCommandRequest& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
59 
63  inline SendCommandRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(value); return *this;}
64 
68  inline SendCommandRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
69 
73  inline SendCommandRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
74 
78  inline SendCommandRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
79 
84  inline const Aws::String& GetDocumentName() const{ return m_documentName; }
85 
90  inline void SetDocumentName(const Aws::String& value) { m_documentNameHasBeenSet = true; m_documentName = value; }
91 
96  inline void SetDocumentName(Aws::String&& value) { m_documentNameHasBeenSet = true; m_documentName = value; }
97 
102  inline void SetDocumentName(const char* value) { m_documentNameHasBeenSet = true; m_documentName.assign(value); }
103 
108  inline SendCommandRequest& WithDocumentName(const Aws::String& value) { SetDocumentName(value); return *this;}
109 
114  inline SendCommandRequest& WithDocumentName(Aws::String&& value) { SetDocumentName(value); return *this;}
115 
120  inline SendCommandRequest& WithDocumentName(const char* value) { SetDocumentName(value); return *this;}
121 
126  inline const Aws::String& GetDocumentHash() const{ return m_documentHash; }
127 
132  inline void SetDocumentHash(const Aws::String& value) { m_documentHashHasBeenSet = true; m_documentHash = value; }
133 
138  inline void SetDocumentHash(Aws::String&& value) { m_documentHashHasBeenSet = true; m_documentHash = value; }
139 
144  inline void SetDocumentHash(const char* value) { m_documentHashHasBeenSet = true; m_documentHash.assign(value); }
145 
150  inline SendCommandRequest& WithDocumentHash(const Aws::String& value) { SetDocumentHash(value); return *this;}
151 
156  inline SendCommandRequest& WithDocumentHash(Aws::String&& value) { SetDocumentHash(value); return *this;}
157 
162  inline SendCommandRequest& WithDocumentHash(const char* value) { SetDocumentHash(value); return *this;}
163 
167  inline const DocumentHashType& GetDocumentHashType() const{ return m_documentHashType; }
168 
172  inline void SetDocumentHashType(const DocumentHashType& value) { m_documentHashTypeHasBeenSet = true; m_documentHashType = value; }
173 
177  inline void SetDocumentHashType(DocumentHashType&& value) { m_documentHashTypeHasBeenSet = true; m_documentHashType = value; }
178 
182  inline SendCommandRequest& WithDocumentHashType(const DocumentHashType& value) { SetDocumentHashType(value); return *this;}
183 
187  inline SendCommandRequest& WithDocumentHashType(DocumentHashType&& value) { SetDocumentHashType(value); return *this;}
188 
193  inline long GetTimeoutSeconds() const{ return m_timeoutSeconds; }
194 
199  inline void SetTimeoutSeconds(long value) { m_timeoutSecondsHasBeenSet = true; m_timeoutSeconds = value; }
200 
205  inline SendCommandRequest& WithTimeoutSeconds(long value) { SetTimeoutSeconds(value); return *this;}
206 
211  inline const Aws::String& GetComment() const{ return m_comment; }
212 
217  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
218 
223  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
224 
229  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
230 
235  inline SendCommandRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
236 
241  inline SendCommandRequest& WithComment(Aws::String&& value) { SetComment(value); return *this;}
242 
247  inline SendCommandRequest& WithComment(const char* value) { SetComment(value); return *this;}
248 
253  inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const{ return m_parameters; }
254 
259  inline void SetParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
260 
265  inline void SetParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_parametersHasBeenSet = true; m_parameters = value; }
266 
271  inline SendCommandRequest& WithParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetParameters(value); return *this;}
272 
277  inline SendCommandRequest& WithParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetParameters(value); return *this;}
278 
283  inline SendCommandRequest& AddParameters(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
284 
289  inline SendCommandRequest& AddParameters(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
290 
295  inline SendCommandRequest& AddParameters(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
296 
301  inline SendCommandRequest& AddParameters(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
302 
307  inline SendCommandRequest& AddParameters(const char* key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
308 
313  inline SendCommandRequest& AddParameters(const char* key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
314 
319  inline const Aws::String& GetOutputS3BucketName() const{ return m_outputS3BucketName; }
320 
325  inline void SetOutputS3BucketName(const Aws::String& value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName = value; }
326 
331  inline void SetOutputS3BucketName(Aws::String&& value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName = value; }
332 
337  inline void SetOutputS3BucketName(const char* value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName.assign(value); }
338 
343  inline SendCommandRequest& WithOutputS3BucketName(const Aws::String& value) { SetOutputS3BucketName(value); return *this;}
344 
349  inline SendCommandRequest& WithOutputS3BucketName(Aws::String&& value) { SetOutputS3BucketName(value); return *this;}
350 
355  inline SendCommandRequest& WithOutputS3BucketName(const char* value) { SetOutputS3BucketName(value); return *this;}
356 
361  inline const Aws::String& GetOutputS3KeyPrefix() const{ return m_outputS3KeyPrefix; }
362 
367  inline void SetOutputS3KeyPrefix(const Aws::String& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = value; }
368 
373  inline void SetOutputS3KeyPrefix(Aws::String&& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = value; }
374 
379  inline void SetOutputS3KeyPrefix(const char* value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix.assign(value); }
380 
385  inline SendCommandRequest& WithOutputS3KeyPrefix(const Aws::String& value) { SetOutputS3KeyPrefix(value); return *this;}
386 
391  inline SendCommandRequest& WithOutputS3KeyPrefix(Aws::String&& value) { SetOutputS3KeyPrefix(value); return *this;}
392 
397  inline SendCommandRequest& WithOutputS3KeyPrefix(const char* value) { SetOutputS3KeyPrefix(value); return *this;}
398 
399  private:
400  Aws::Vector<Aws::String> m_instanceIds;
401  bool m_instanceIdsHasBeenSet;
402  Aws::String m_documentName;
403  bool m_documentNameHasBeenSet;
404  Aws::String m_documentHash;
405  bool m_documentHashHasBeenSet;
406  DocumentHashType m_documentHashType;
407  bool m_documentHashTypeHasBeenSet;
408  long m_timeoutSeconds;
409  bool m_timeoutSecondsHasBeenSet;
410  Aws::String m_comment;
411  bool m_commentHasBeenSet;
413  bool m_parametersHasBeenSet;
414  Aws::String m_outputS3BucketName;
415  bool m_outputS3BucketNameHasBeenSet;
416  Aws::String m_outputS3KeyPrefix;
417  bool m_outputS3KeyPrefixHasBeenSet;
418  };
419 
420 } // namespace Model
421 } // namespace SSM
422 } // namespace Aws
void SetOutputS3BucketName(Aws::String &&value)
SendCommandRequest & AddParameters(const char *key, const Aws::Vector< Aws::String > &value)
SendCommandRequest & WithDocumentHashType(const DocumentHashType &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)
void SetDocumentHash(Aws::String &&value)
const Aws::String & GetOutputS3KeyPrefix() const
void SetOutputS3KeyPrefix(const char *value)
SendCommandRequest & WithDocumentHash(Aws::String &&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)
SendCommandRequest & WithTimeoutSeconds(long 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)
void SetDocumentHash(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 & WithOutputS3BucketName(const Aws::String &value)
SendCommandRequest & AddParameters(const char *key, Aws::Vector< Aws::String > &&value)
SendCommandRequest & WithDocumentName(const Aws::String &value)
void SetParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &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
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:34
SendCommandRequest & AddInstanceIds(const char *value)
void SetComment(const Aws::String &value)
SendCommandRequest & WithComment(Aws::String &&value)
SendCommandRequest & WithOutputS3BucketName(const char *value)
JSON (JavaScript Object Notation).
SendCommandRequest & AddInstanceIds(const Aws::String &value)