AWS SDK for C++  0.12.9
AWS SDK for C++
Command.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>
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace SSM
33 {
34 namespace Model
35 {
36 
41  {
42  public:
43  Command();
44  Command(const Aws::Utils::Json::JsonValue& jsonValue);
45  Command& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
51  inline const Aws::String& GetCommandId() const{ return m_commandId; }
52 
56  inline void SetCommandId(const Aws::String& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
57 
61  inline void SetCommandId(Aws::String&& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
62 
66  inline void SetCommandId(const char* value) { m_commandIdHasBeenSet = true; m_commandId.assign(value); }
67 
71  inline Command& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;}
72 
76  inline Command& WithCommandId(Aws::String&& value) { SetCommandId(value); return *this;}
77 
81  inline Command& WithCommandId(const char* value) { SetCommandId(value); return *this;}
82 
86  inline const Aws::String& GetDocumentName() const{ return m_documentName; }
87 
91  inline void SetDocumentName(const Aws::String& value) { m_documentNameHasBeenSet = true; m_documentName = value; }
92 
96  inline void SetDocumentName(Aws::String&& value) { m_documentNameHasBeenSet = true; m_documentName = value; }
97 
101  inline void SetDocumentName(const char* value) { m_documentNameHasBeenSet = true; m_documentName.assign(value); }
102 
106  inline Command& WithDocumentName(const Aws::String& value) { SetDocumentName(value); return *this;}
107 
111  inline Command& WithDocumentName(Aws::String&& value) { SetDocumentName(value); return *this;}
112 
116  inline Command& WithDocumentName(const char* value) { SetDocumentName(value); return *this;}
117 
122  inline const Aws::String& GetComment() const{ return m_comment; }
123 
128  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
129 
134  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
135 
140  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
141 
146  inline Command& WithComment(const Aws::String& value) { SetComment(value); return *this;}
147 
152  inline Command& WithComment(Aws::String&& value) { SetComment(value); return *this;}
153 
158  inline Command& WithComment(const char* value) { SetComment(value); return *this;}
159 
165  inline const Aws::Utils::DateTime& GetExpiresAfter() const{ return m_expiresAfter; }
166 
172  inline void SetExpiresAfter(const Aws::Utils::DateTime& value) { m_expiresAfterHasBeenSet = true; m_expiresAfter = value; }
173 
179  inline void SetExpiresAfter(Aws::Utils::DateTime&& value) { m_expiresAfterHasBeenSet = true; m_expiresAfter = value; }
180 
186  inline Command& WithExpiresAfter(const Aws::Utils::DateTime& value) { SetExpiresAfter(value); return *this;}
187 
193  inline Command& WithExpiresAfter(Aws::Utils::DateTime&& value) { SetExpiresAfter(value); return *this;}
194 
199  inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const{ return m_parameters; }
200 
205  inline void SetParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
206 
211  inline void SetParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_parametersHasBeenSet = true; m_parameters = value; }
212 
217  inline Command& WithParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetParameters(value); return *this;}
218 
223  inline Command& WithParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetParameters(value); return *this;}
224 
229  inline Command& AddParameters(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
230 
235  inline Command& AddParameters(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
236 
241  inline Command& AddParameters(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
242 
247  inline Command& AddParameters(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
248 
253  inline Command& AddParameters(const char* key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
254 
259  inline Command& AddParameters(const char* key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
260 
264  inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
265 
269  inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
270 
274  inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
275 
279  inline Command& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
280 
284  inline Command& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(value); return *this;}
285 
289  inline Command& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
290 
294  inline Command& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
295 
299  inline Command& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
300 
304  inline const Aws::Utils::DateTime& GetRequestedDateTime() const{ return m_requestedDateTime; }
305 
309  inline void SetRequestedDateTime(const Aws::Utils::DateTime& value) { m_requestedDateTimeHasBeenSet = true; m_requestedDateTime = value; }
310 
314  inline void SetRequestedDateTime(Aws::Utils::DateTime&& value) { m_requestedDateTimeHasBeenSet = true; m_requestedDateTime = value; }
315 
319  inline Command& WithRequestedDateTime(const Aws::Utils::DateTime& value) { SetRequestedDateTime(value); return *this;}
320 
324  inline Command& WithRequestedDateTime(Aws::Utils::DateTime&& value) { SetRequestedDateTime(value); return *this;}
325 
329  inline const CommandStatus& GetStatus() const{ return m_status; }
330 
334  inline void SetStatus(const CommandStatus& value) { m_statusHasBeenSet = true; m_status = value; }
335 
339  inline void SetStatus(CommandStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
340 
344  inline Command& WithStatus(const CommandStatus& value) { SetStatus(value); return *this;}
345 
349  inline Command& WithStatus(CommandStatus&& value) { SetStatus(value); return *this;}
350 
355  inline const Aws::String& GetOutputS3BucketName() const{ return m_outputS3BucketName; }
356 
361  inline void SetOutputS3BucketName(const Aws::String& value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName = value; }
362 
367  inline void SetOutputS3BucketName(Aws::String&& value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName = value; }
368 
373  inline void SetOutputS3BucketName(const char* value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName.assign(value); }
374 
379  inline Command& WithOutputS3BucketName(const Aws::String& value) { SetOutputS3BucketName(value); return *this;}
380 
385  inline Command& WithOutputS3BucketName(Aws::String&& value) { SetOutputS3BucketName(value); return *this;}
386 
391  inline Command& WithOutputS3BucketName(const char* value) { SetOutputS3BucketName(value); return *this;}
392 
397  inline const Aws::String& GetOutputS3KeyPrefix() const{ return m_outputS3KeyPrefix; }
398 
403  inline void SetOutputS3KeyPrefix(const Aws::String& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = value; }
404 
409  inline void SetOutputS3KeyPrefix(Aws::String&& value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix = value; }
410 
415  inline void SetOutputS3KeyPrefix(const char* value) { m_outputS3KeyPrefixHasBeenSet = true; m_outputS3KeyPrefix.assign(value); }
416 
421  inline Command& WithOutputS3KeyPrefix(const Aws::String& value) { SetOutputS3KeyPrefix(value); return *this;}
422 
427  inline Command& WithOutputS3KeyPrefix(Aws::String&& value) { SetOutputS3KeyPrefix(value); return *this;}
428 
433  inline Command& WithOutputS3KeyPrefix(const char* value) { SetOutputS3KeyPrefix(value); return *this;}
434 
435  private:
436  Aws::String m_commandId;
437  bool m_commandIdHasBeenSet;
438  Aws::String m_documentName;
439  bool m_documentNameHasBeenSet;
440  Aws::String m_comment;
441  bool m_commentHasBeenSet;
442  Aws::Utils::DateTime m_expiresAfter;
443  bool m_expiresAfterHasBeenSet;
445  bool m_parametersHasBeenSet;
446  Aws::Vector<Aws::String> m_instanceIds;
447  bool m_instanceIdsHasBeenSet;
448  Aws::Utils::DateTime m_requestedDateTime;
449  bool m_requestedDateTimeHasBeenSet;
450  CommandStatus m_status;
451  bool m_statusHasBeenSet;
452  Aws::String m_outputS3BucketName;
453  bool m_outputS3BucketNameHasBeenSet;
454  Aws::String m_outputS3KeyPrefix;
455  bool m_outputS3KeyPrefixHasBeenSet;
456  };
457 
458 } // namespace Model
459 } // namespace SSM
460 } // namespace Aws
Command & AddParameters(const char *key, Aws::Vector< Aws::String > &&value)
Definition: Command.h:253
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: Command.h:274
Command & WithDocumentName(Aws::String &&value)
Definition: Command.h:111
const Aws::Utils::DateTime & GetRequestedDateTime() const
Definition: Command.h:304
void SetRequestedDateTime(Aws::Utils::DateTime &&value)
Definition: Command.h:314
Command & AddParameters(Aws::String &&key, Aws::Vector< Aws::String > &&value)
Definition: Command.h:247
void SetDocumentName(const Aws::String &value)
Definition: Command.h:91
Command & WithParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: Command.h:217
Command & AddParameters(Aws::String &&key, const Aws::Vector< Aws::String > &value)
Definition: Command.h:235
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: Command.h:269
void SetOutputS3KeyPrefix(Aws::String &&value)
Definition: Command.h:409
Command & WithOutputS3KeyPrefix(const char *value)
Definition: Command.h:433
void SetOutputS3KeyPrefix(const Aws::String &value)
Definition: Command.h:403
Command & AddInstanceIds(const Aws::String &value)
Definition: Command.h:289
void SetParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: Command.h:211
void SetDocumentName(const char *value)
Definition: Command.h:101
void SetExpiresAfter(const Aws::Utils::DateTime &value)
Definition: Command.h:172
Command & WithInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: Command.h:279
const Aws::String & GetOutputS3BucketName() const
Definition: Command.h:355
void SetComment(const char *value)
Definition: Command.h:140
Command & WithOutputS3KeyPrefix(const Aws::String &value)
Definition: Command.h:421
Command & AddParameters(const Aws::String &key, const Aws::Vector< Aws::String > &value)
Definition: Command.h:229
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Command & WithOutputS3BucketName(const Aws::String &value)
Definition: Command.h:379
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
Command & WithDocumentName(const Aws::String &value)
Definition: Command.h:106
void SetCommandId(const Aws::String &value)
Definition: Command.h:56
Command & WithComment(Aws::String &&value)
Definition: Command.h:152
const Aws::String & GetComment() const
Definition: Command.h:122
Command & WithStatus(CommandStatus &&value)
Definition: Command.h:349
void SetCommandId(Aws::String &&value)
Definition: Command.h:61
void SetComment(const Aws::String &value)
Definition: Command.h:128
Command & WithComment(const Aws::String &value)
Definition: Command.h:146
Command & WithParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: Command.h:223
const CommandStatus & GetStatus() const
Definition: Command.h:329
Command & AddParameters(const char *key, const Aws::Vector< Aws::String > &value)
Definition: Command.h:259
void SetOutputS3BucketName(Aws::String &&value)
Definition: Command.h:367
Command & WithOutputS3BucketName(const char *value)
Definition: Command.h:391
Command & AddInstanceIds(Aws::String &&value)
Definition: Command.h:294
void SetParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: Command.h:205
void SetOutputS3BucketName(const Aws::String &value)
Definition: Command.h:361
void SetStatus(const CommandStatus &value)
Definition: Command.h:334
const Aws::String & GetCommandId() const
Definition: Command.h:51
const Aws::Utils::DateTime & GetExpiresAfter() const
Definition: Command.h:165
Command & WithInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: Command.h:284
Command & WithCommandId(const Aws::String &value)
Definition: Command.h:71
Command & WithComment(const char *value)
Definition: Command.h:158
Command & WithOutputS3KeyPrefix(Aws::String &&value)
Definition: Command.h:427
void SetDocumentName(Aws::String &&value)
Definition: Command.h:96
Command & WithRequestedDateTime(const Aws::Utils::DateTime &value)
Definition: Command.h:319
void SetCommandId(const char *value)
Definition: Command.h:66
Command & AddInstanceIds(const char *value)
Definition: Command.h:299
Command & WithDocumentName(const char *value)
Definition: Command.h:116
void SetOutputS3BucketName(const char *value)
Definition: Command.h:373
const Aws::String & GetDocumentName() const
Definition: Command.h:86
Command & WithRequestedDateTime(Aws::Utils::DateTime &&value)
Definition: Command.h:324
Command & WithCommandId(const char *value)
Definition: Command.h:81
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetOutputS3KeyPrefix() const
Definition: Command.h:397
Command & WithExpiresAfter(const Aws::Utils::DateTime &value)
Definition: Command.h:186
Command & WithStatus(const CommandStatus &value)
Definition: Command.h:344
void SetExpiresAfter(Aws::Utils::DateTime &&value)
Definition: Command.h:179
void SetStatus(CommandStatus &&value)
Definition: Command.h:339
Command & AddParameters(const Aws::String &key, Aws::Vector< Aws::String > &&value)
Definition: Command.h:241
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:34
Command & WithExpiresAfter(Aws::Utils::DateTime &&value)
Definition: Command.h:193
void SetOutputS3KeyPrefix(const char *value)
Definition: Command.h:415
void SetComment(Aws::String &&value)
Definition: Command.h:134
Command & WithOutputS3BucketName(Aws::String &&value)
Definition: Command.h:385
Command & WithCommandId(Aws::String &&value)
Definition: Command.h:76
const Aws::Vector< Aws::String > & GetInstanceIds() const
Definition: Command.h:264
void SetRequestedDateTime(const Aws::Utils::DateTime &value)
Definition: Command.h:309
JSON (JavaScript Object Notation).
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
Definition: Command.h:199