AWS SDK for C++  0.14.3
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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace OpsWorks
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  Command();
40  Command(const Aws::Utils::Json::JsonValue& jsonValue);
41  Command& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetCommandId() const{ return m_commandId; }
48 
52  inline void SetCommandId(const Aws::String& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
53 
57  inline void SetCommandId(Aws::String&& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
58 
62  inline void SetCommandId(const char* value) { m_commandIdHasBeenSet = true; m_commandId.assign(value); }
63 
67  inline Command& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;}
68 
72  inline Command& WithCommandId(Aws::String&& value) { SetCommandId(value); return *this;}
73 
77  inline Command& WithCommandId(const char* value) { SetCommandId(value); return *this;}
78 
82  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
83 
87  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
88 
92  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
93 
97  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
98 
102  inline Command& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
103 
107  inline Command& WithInstanceId(Aws::String&& value) { SetInstanceId(value); return *this;}
108 
112  inline Command& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
113 
117  inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
118 
122  inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
123 
127  inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
128 
132  inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
133 
137  inline Command& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
138 
142  inline Command& WithDeploymentId(Aws::String&& value) { SetDeploymentId(value); return *this;}
143 
147  inline Command& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
148 
152  inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
153 
157  inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
158 
162  inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
163 
167  inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); }
168 
172  inline Command& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
173 
177  inline Command& WithCreatedAt(Aws::String&& value) { SetCreatedAt(value); return *this;}
178 
182  inline Command& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
183 
187  inline const Aws::String& GetAcknowledgedAt() const{ return m_acknowledgedAt; }
188 
192  inline void SetAcknowledgedAt(const Aws::String& value) { m_acknowledgedAtHasBeenSet = true; m_acknowledgedAt = value; }
193 
197  inline void SetAcknowledgedAt(Aws::String&& value) { m_acknowledgedAtHasBeenSet = true; m_acknowledgedAt = value; }
198 
202  inline void SetAcknowledgedAt(const char* value) { m_acknowledgedAtHasBeenSet = true; m_acknowledgedAt.assign(value); }
203 
207  inline Command& WithAcknowledgedAt(const Aws::String& value) { SetAcknowledgedAt(value); return *this;}
208 
212  inline Command& WithAcknowledgedAt(Aws::String&& value) { SetAcknowledgedAt(value); return *this;}
213 
217  inline Command& WithAcknowledgedAt(const char* value) { SetAcknowledgedAt(value); return *this;}
218 
222  inline const Aws::String& GetCompletedAt() const{ return m_completedAt; }
223 
227  inline void SetCompletedAt(const Aws::String& value) { m_completedAtHasBeenSet = true; m_completedAt = value; }
228 
232  inline void SetCompletedAt(Aws::String&& value) { m_completedAtHasBeenSet = true; m_completedAt = value; }
233 
237  inline void SetCompletedAt(const char* value) { m_completedAtHasBeenSet = true; m_completedAt.assign(value); }
238 
242  inline Command& WithCompletedAt(const Aws::String& value) { SetCompletedAt(value); return *this;}
243 
247  inline Command& WithCompletedAt(Aws::String&& value) { SetCompletedAt(value); return *this;}
248 
252  inline Command& WithCompletedAt(const char* value) { SetCompletedAt(value); return *this;}
253 
258  inline const Aws::String& GetStatus() const{ return m_status; }
259 
264  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
265 
270  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
271 
276  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
277 
282  inline Command& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
283 
288  inline Command& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
289 
294  inline Command& WithStatus(const char* value) { SetStatus(value); return *this;}
295 
299  inline int GetExitCode() const{ return m_exitCode; }
300 
304  inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; }
305 
309  inline Command& WithExitCode(int value) { SetExitCode(value); return *this;}
310 
314  inline const Aws::String& GetLogUrl() const{ return m_logUrl; }
315 
319  inline void SetLogUrl(const Aws::String& value) { m_logUrlHasBeenSet = true; m_logUrl = value; }
320 
324  inline void SetLogUrl(Aws::String&& value) { m_logUrlHasBeenSet = true; m_logUrl = value; }
325 
329  inline void SetLogUrl(const char* value) { m_logUrlHasBeenSet = true; m_logUrl.assign(value); }
330 
334  inline Command& WithLogUrl(const Aws::String& value) { SetLogUrl(value); return *this;}
335 
339  inline Command& WithLogUrl(Aws::String&& value) { SetLogUrl(value); return *this;}
340 
344  inline Command& WithLogUrl(const char* value) { SetLogUrl(value); return *this;}
345 
355  inline const Aws::String& GetType() const{ return m_type; }
356 
366  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
367 
377  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = value; }
378 
388  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
389 
399  inline Command& WithType(const Aws::String& value) { SetType(value); return *this;}
400 
410  inline Command& WithType(Aws::String&& value) { SetType(value); return *this;}
411 
421  inline Command& WithType(const char* value) { SetType(value); return *this;}
422 
423  private:
424  Aws::String m_commandId;
425  bool m_commandIdHasBeenSet;
426  Aws::String m_instanceId;
427  bool m_instanceIdHasBeenSet;
428  Aws::String m_deploymentId;
429  bool m_deploymentIdHasBeenSet;
430  Aws::String m_createdAt;
431  bool m_createdAtHasBeenSet;
432  Aws::String m_acknowledgedAt;
433  bool m_acknowledgedAtHasBeenSet;
434  Aws::String m_completedAt;
435  bool m_completedAtHasBeenSet;
436  Aws::String m_status;
437  bool m_statusHasBeenSet;
438  int m_exitCode;
439  bool m_exitCodeHasBeenSet;
440  Aws::String m_logUrl;
441  bool m_logUrlHasBeenSet;
442  Aws::String m_type;
443  bool m_typeHasBeenSet;
444  };
445 
446 } // namespace Model
447 } // namespace OpsWorks
448 } // namespace Aws
void SetAcknowledgedAt(const Aws::String &value)
Definition: Command.h:192
void SetCommandId(Aws::String &&value)
Definition: Command.h:57
const Aws::String & GetCommandId() const
Definition: Command.h:47
Command & WithType(const Aws::String &value)
Definition: Command.h:399
const Aws::String & GetInstanceId() const
Definition: Command.h:82
Command & WithStatus(Aws::String &&value)
Definition: Command.h:288
Command & WithCommandId(Aws::String &&value)
Definition: Command.h:72
Command & WithLogUrl(Aws::String &&value)
Definition: Command.h:339
Command & WithLogUrl(const Aws::String &value)
Definition: Command.h:334
void SetCompletedAt(const Aws::String &value)
Definition: Command.h:227
void SetCreatedAt(const char *value)
Definition: Command.h:167
void SetCompletedAt(const char *value)
Definition: Command.h:237
void SetExitCode(int value)
Definition: Command.h:304
const Aws::String & GetAcknowledgedAt() const
Definition: Command.h:187
void SetType(const Aws::String &value)
Definition: Command.h:366
Command & WithCreatedAt(Aws::String &&value)
Definition: Command.h:177
Command & WithCompletedAt(const Aws::String &value)
Definition: Command.h:242
const Aws::String & GetType() const
Definition: Command.h:355
Command & WithAcknowledgedAt(const char *value)
Definition: Command.h:217
Command & WithType(const char *value)
Definition: Command.h:421
Command & WithDeploymentId(Aws::String &&value)
Definition: Command.h:142
Command & WithInstanceId(const char *value)
Definition: Command.h:112
Command & WithLogUrl(const char *value)
Definition: Command.h:344
void SetLogUrl(const Aws::String &value)
Definition: Command.h:319
void SetType(Aws::String &&value)
Definition: Command.h:377
void SetCreatedAt(Aws::String &&value)
Definition: Command.h:162
Command & WithAcknowledgedAt(const Aws::String &value)
Definition: Command.h:207
const Aws::String & GetCreatedAt() const
Definition: Command.h:152
Command & WithType(Aws::String &&value)
Definition: Command.h:410
Command & WithCommandId(const char *value)
Definition: Command.h:77
void SetInstanceId(const char *value)
Definition: Command.h:97
void SetInstanceId(const Aws::String &value)
Definition: Command.h:87
void SetDeploymentId(const char *value)
Definition: Command.h:132
Command & WithDeploymentId(const char *value)
Definition: Command.h:147
Command & WithInstanceId(Aws::String &&value)
Definition: Command.h:107
void SetCommandId(const Aws::String &value)
Definition: Command.h:52
void SetCreatedAt(const Aws::String &value)
Definition: Command.h:157
void SetStatus(Aws::String &&value)
Definition: Command.h:270
void SetType(const char *value)
Definition: Command.h:388
Command & WithStatus(const char *value)
Definition: Command.h:294
const Aws::String & GetCompletedAt() const
Definition: Command.h:222
Command & WithCompletedAt(Aws::String &&value)
Definition: Command.h:247
void SetLogUrl(const char *value)
Definition: Command.h:329
void SetDeploymentId(Aws::String &&value)
Definition: Command.h:127
const Aws::String & GetDeploymentId() const
Definition: Command.h:117
void SetAcknowledgedAt(const char *value)
Definition: Command.h:202
Command & WithStatus(const Aws::String &value)
Definition: Command.h:282
void SetAcknowledgedAt(Aws::String &&value)
Definition: Command.h:197
Command & WithCreatedAt(const char *value)
Definition: Command.h:182
void SetStatus(const Aws::String &value)
Definition: Command.h:264
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
Command & WithCompletedAt(const char *value)
Definition: Command.h:252
Command & WithCommandId(const Aws::String &value)
Definition: Command.h:67
const Aws::String & GetStatus() const
Definition: Command.h:258
void SetCommandId(const char *value)
Definition: Command.h:62
Command & WithExitCode(int value)
Definition: Command.h:309
Command & WithDeploymentId(const Aws::String &value)
Definition: Command.h:137
const Aws::String & GetLogUrl() const
Definition: Command.h:314
void SetLogUrl(Aws::String &&value)
Definition: Command.h:324
void SetStatus(const char *value)
Definition: Command.h:276
Command & WithInstanceId(const Aws::String &value)
Definition: Command.h:102
JSON (JavaScript Object Notation).
void SetInstanceId(Aws::String &&value)
Definition: Command.h:92
Command & WithCreatedAt(const Aws::String &value)
Definition: Command.h:172
void SetDeploymentId(const Aws::String &value)
Definition: Command.h:122
void SetCompletedAt(Aws::String &&value)
Definition: Command.h:232
Command & WithAcknowledgedAt(Aws::String &&value)
Definition: Command.h:212