AWS SDK for C++  1.9.104
AWS SDK for C++
Command.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace OpsWorks
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetCommandId() const{ return m_commandId; }
44 
48  inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; }
49 
53  inline void SetCommandId(const Aws::String& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
54 
58  inline void SetCommandId(Aws::String&& value) { m_commandIdHasBeenSet = true; m_commandId = std::move(value); }
59 
63  inline void SetCommandId(const char* value) { m_commandIdHasBeenSet = true; m_commandId.assign(value); }
64 
68  inline Command& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;}
69 
73  inline Command& WithCommandId(Aws::String&& value) { SetCommandId(std::move(value)); return *this;}
74 
78  inline Command& WithCommandId(const char* value) { SetCommandId(value); return *this;}
79 
80 
84  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
85 
89  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
90 
94  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
95 
99  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
100 
104  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
105 
109  inline Command& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
110 
114  inline Command& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
115 
119  inline Command& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
120 
121 
125  inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
126 
130  inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
131 
135  inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
136 
140  inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
141 
145  inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
146 
150  inline Command& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
151 
155  inline Command& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
156 
160  inline Command& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
161 
162 
166  inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
167 
171  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
172 
176  inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
177 
181  inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
182 
186  inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); }
187 
191  inline Command& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
192 
196  inline Command& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;}
197 
201  inline Command& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
202 
203 
207  inline const Aws::String& GetAcknowledgedAt() const{ return m_acknowledgedAt; }
208 
212  inline bool AcknowledgedAtHasBeenSet() const { return m_acknowledgedAtHasBeenSet; }
213 
217  inline void SetAcknowledgedAt(const Aws::String& value) { m_acknowledgedAtHasBeenSet = true; m_acknowledgedAt = value; }
218 
222  inline void SetAcknowledgedAt(Aws::String&& value) { m_acknowledgedAtHasBeenSet = true; m_acknowledgedAt = std::move(value); }
223 
227  inline void SetAcknowledgedAt(const char* value) { m_acknowledgedAtHasBeenSet = true; m_acknowledgedAt.assign(value); }
228 
232  inline Command& WithAcknowledgedAt(const Aws::String& value) { SetAcknowledgedAt(value); return *this;}
233 
237  inline Command& WithAcknowledgedAt(Aws::String&& value) { SetAcknowledgedAt(std::move(value)); return *this;}
238 
242  inline Command& WithAcknowledgedAt(const char* value) { SetAcknowledgedAt(value); return *this;}
243 
244 
248  inline const Aws::String& GetCompletedAt() const{ return m_completedAt; }
249 
253  inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
254 
258  inline void SetCompletedAt(const Aws::String& value) { m_completedAtHasBeenSet = true; m_completedAt = value; }
259 
263  inline void SetCompletedAt(Aws::String&& value) { m_completedAtHasBeenSet = true; m_completedAt = std::move(value); }
264 
268  inline void SetCompletedAt(const char* value) { m_completedAtHasBeenSet = true; m_completedAt.assign(value); }
269 
273  inline Command& WithCompletedAt(const Aws::String& value) { SetCompletedAt(value); return *this;}
274 
278  inline Command& WithCompletedAt(Aws::String&& value) { SetCompletedAt(std::move(value)); return *this;}
279 
283  inline Command& WithCompletedAt(const char* value) { SetCompletedAt(value); return *this;}
284 
285 
290  inline const Aws::String& GetStatus() const{ return m_status; }
291 
296  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
297 
302  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
303 
308  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
309 
314  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
315 
320  inline Command& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
321 
326  inline Command& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
327 
332  inline Command& WithStatus(const char* value) { SetStatus(value); return *this;}
333 
334 
338  inline int GetExitCode() const{ return m_exitCode; }
339 
343  inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; }
344 
348  inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; }
349 
353  inline Command& WithExitCode(int value) { SetExitCode(value); return *this;}
354 
355 
359  inline const Aws::String& GetLogUrl() const{ return m_logUrl; }
360 
364  inline bool LogUrlHasBeenSet() const { return m_logUrlHasBeenSet; }
365 
369  inline void SetLogUrl(const Aws::String& value) { m_logUrlHasBeenSet = true; m_logUrl = value; }
370 
374  inline void SetLogUrl(Aws::String&& value) { m_logUrlHasBeenSet = true; m_logUrl = std::move(value); }
375 
379  inline void SetLogUrl(const char* value) { m_logUrlHasBeenSet = true; m_logUrl.assign(value); }
380 
384  inline Command& WithLogUrl(const Aws::String& value) { SetLogUrl(value); return *this;}
385 
389  inline Command& WithLogUrl(Aws::String&& value) { SetLogUrl(std::move(value)); return *this;}
390 
394  inline Command& WithLogUrl(const char* value) { SetLogUrl(value); return *this;}
395 
396 
407  inline const Aws::String& GetType() const{ return m_type; }
408 
419  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
420 
431  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
432 
443  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
444 
455  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
456 
467  inline Command& WithType(const Aws::String& value) { SetType(value); return *this;}
468 
479  inline Command& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
480 
491  inline Command& WithType(const char* value) { SetType(value); return *this;}
492 
493  private:
494 
495  Aws::String m_commandId;
496  bool m_commandIdHasBeenSet;
497 
498  Aws::String m_instanceId;
499  bool m_instanceIdHasBeenSet;
500 
501  Aws::String m_deploymentId;
502  bool m_deploymentIdHasBeenSet;
503 
504  Aws::String m_createdAt;
505  bool m_createdAtHasBeenSet;
506 
507  Aws::String m_acknowledgedAt;
508  bool m_acknowledgedAtHasBeenSet;
509 
510  Aws::String m_completedAt;
511  bool m_completedAtHasBeenSet;
512 
513  Aws::String m_status;
514  bool m_statusHasBeenSet;
515 
516  int m_exitCode;
517  bool m_exitCodeHasBeenSet;
518 
519  Aws::String m_logUrl;
520  bool m_logUrlHasBeenSet;
521 
522  Aws::String m_type;
523  bool m_typeHasBeenSet;
524  };
525 
526 } // namespace Model
527 } // namespace OpsWorks
528 } // namespace Aws
Aws::OpsWorks::Model::Command::WithType
Command & WithType(const char *value)
Definition: Command.h:491
Aws::OpsWorks::Model::Command::WithDeploymentId
Command & WithDeploymentId(Aws::String &&value)
Definition: Command.h:155
Aws::OpsWorks::Model::Command::LogUrlHasBeenSet
bool LogUrlHasBeenSet() const
Definition: Command.h:364
Aws::OpsWorks::Model::Command::GetCreatedAt
const Aws::String & GetCreatedAt() const
Definition: Command.h:166
Aws::OpsWorks::Model::Command::SetType
void SetType(const Aws::String &value)
Definition: Command.h:431
Aws::OpsWorks::Model::Command::SetType
void SetType(Aws::String &&value)
Definition: Command.h:443
Aws::OpsWorks::Model::Command::WithStatus
Command & WithStatus(const Aws::String &value)
Definition: Command.h:320
Aws::OpsWorks::Model::Command::GetCommandId
const Aws::String & GetCommandId() const
Definition: Command.h:43
Aws::OpsWorks::Model::Command::WithCreatedAt
Command & WithCreatedAt(const char *value)
Definition: Command.h:201
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::Command::WithInstanceId
Command & WithInstanceId(const char *value)
Definition: Command.h:119
Aws::OpsWorks::Model::Command
Definition: Command.h:32
Aws::OpsWorks::Model::Command::WithDeploymentId
Command & WithDeploymentId(const char *value)
Definition: Command.h:160
Aws::OpsWorks::Model::Command::WithCompletedAt
Command & WithCompletedAt(const char *value)
Definition: Command.h:283
Aws::OpsWorks::Model::Command::WithExitCode
Command & WithExitCode(int value)
Definition: Command.h:353
Aws::OpsWorks::Model::Command::SetLogUrl
void SetLogUrl(Aws::String &&value)
Definition: Command.h:374
Aws::OpsWorks::Model::Command::SetDeploymentId
void SetDeploymentId(const char *value)
Definition: Command.h:145
Aws::OpsWorks::Model::Command::GetType
const Aws::String & GetType() const
Definition: Command.h:407
Aws::OpsWorks::Model::Command::Command
Command()
Aws::OpsWorks::Model::Command::WithCreatedAt
Command & WithCreatedAt(const Aws::String &value)
Definition: Command.h:191
Aws::OpsWorks::Model::Command::WithInstanceId
Command & WithInstanceId(Aws::String &&value)
Definition: Command.h:114
Aws::OpsWorks::Model::Command::SetCompletedAt
void SetCompletedAt(Aws::String &&value)
Definition: Command.h:263
Aws::OpsWorks::Model::Command::SetAcknowledgedAt
void SetAcknowledgedAt(const Aws::String &value)
Definition: Command.h:217
Aws::OpsWorks::Model::Command::SetCommandId
void SetCommandId(const Aws::String &value)
Definition: Command.h:53
Aws::OpsWorks::Model::Command::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::OpsWorks::Model::Command::GetStatus
const Aws::String & GetStatus() const
Definition: Command.h:290
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::Command::SetDeploymentId
void SetDeploymentId(const Aws::String &value)
Definition: Command.h:135
Aws::OpsWorks::Model::Command::SetLogUrl
void SetLogUrl(const char *value)
Definition: Command.h:379
Aws::OpsWorks::Model::Command::WithAcknowledgedAt
Command & WithAcknowledgedAt(Aws::String &&value)
Definition: Command.h:237
Aws::OpsWorks::Model::Command::CompletedAtHasBeenSet
bool CompletedAtHasBeenSet() const
Definition: Command.h:253
Aws::OpsWorks::Model::Command::SetCommandId
void SetCommandId(Aws::String &&value)
Definition: Command.h:58
Aws::OpsWorks::Model::Command::SetAcknowledgedAt
void SetAcknowledgedAt(Aws::String &&value)
Definition: Command.h:222
Aws::OpsWorks::Model::Command::SetCreatedAt
void SetCreatedAt(const Aws::String &value)
Definition: Command.h:176
Aws::OpsWorks::Model::Command::SetStatus
void SetStatus(Aws::String &&value)
Definition: Command.h:308
Aws::OpsWorks::Model::Command::SetType
void SetType(const char *value)
Definition: Command.h:455
Aws::OpsWorks::Model::Command::WithCommandId
Command & WithCommandId(Aws::String &&value)
Definition: Command.h:73
Aws::OpsWorks::Model::Command::SetStatus
void SetStatus(const Aws::String &value)
Definition: Command.h:302
Aws::OpsWorks::Model::Command::WithStatus
Command & WithStatus(Aws::String &&value)
Definition: Command.h:326
Aws::OpsWorks::Model::Command::GetDeploymentId
const Aws::String & GetDeploymentId() const
Definition: Command.h:125
Aws::OpsWorks::Model::Command::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: Command.h:296
Aws::OpsWorks::Model::Command::SetDeploymentId
void SetDeploymentId(Aws::String &&value)
Definition: Command.h:140
Aws::OpsWorks::Model::Command::Command
Command(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::Command::WithCommandId
Command & WithCommandId(const Aws::String &value)
Definition: Command.h:68
Aws::OpsWorks::Model::Command::GetCompletedAt
const Aws::String & GetCompletedAt() const
Definition: Command.h:248
Aws::OpsWorks::Model::Command::SetAcknowledgedAt
void SetAcknowledgedAt(const char *value)
Definition: Command.h:227
Aws::OpsWorks::Model::Command::SetCommandId
void SetCommandId(const char *value)
Definition: Command.h:63
Aws::OpsWorks::Model::Command::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: Command.h:89
Aws::OpsWorks::Model::Command::WithLogUrl
Command & WithLogUrl(Aws::String &&value)
Definition: Command.h:389
Aws::OpsWorks::Model::Command::operator=
Command & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::Command::WithLogUrl
Command & WithLogUrl(const Aws::String &value)
Definition: Command.h:384
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::OpsWorks::Model::Command::SetCompletedAt
void SetCompletedAt(const char *value)
Definition: Command.h:268
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::Command::SetExitCode
void SetExitCode(int value)
Definition: Command.h:348
Aws::OpsWorks::Model::Command::DeploymentIdHasBeenSet
bool DeploymentIdHasBeenSet() const
Definition: Command.h:130
Aws::OpsWorks::Model::Command::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: Command.h:99
Aws::OpsWorks::Model::Command::GetExitCode
int GetExitCode() const
Definition: Command.h:338
Aws::OpsWorks::Model::Command::WithDeploymentId
Command & WithDeploymentId(const Aws::String &value)
Definition: Command.h:150
Aws::OpsWorks::Model::Command::SetLogUrl
void SetLogUrl(const Aws::String &value)
Definition: Command.h:369
Aws::OpsWorks::Model::Command::CommandIdHasBeenSet
bool CommandIdHasBeenSet() const
Definition: Command.h:48
Aws::OpsWorks::Model::Command::SetStatus
void SetStatus(const char *value)
Definition: Command.h:314
Aws::OpsWorks::Model::Command::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: Command.h:171
Aws::OpsWorks::Model::Command::WithInstanceId
Command & WithInstanceId(const Aws::String &value)
Definition: Command.h:109
Aws::OpsWorks::Model::Command::WithCreatedAt
Command & WithCreatedAt(Aws::String &&value)
Definition: Command.h:196
Aws::OpsWorks::Model::Command::WithCompletedAt
Command & WithCompletedAt(const Aws::String &value)
Definition: Command.h:273
Aws::OpsWorks::Model::Command::WithAcknowledgedAt
Command & WithAcknowledgedAt(const char *value)
Definition: Command.h:242
Aws::OpsWorks::Model::Command::WithLogUrl
Command & WithLogUrl(const char *value)
Definition: Command.h:394
Aws::OpsWorks::Model::Command::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: Command.h:94
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::Command::WithType
Command & WithType(const Aws::String &value)
Definition: Command.h:467
Aws::OpsWorks::Model::Command::SetCreatedAt
void SetCreatedAt(Aws::String &&value)
Definition: Command.h:181
Aws::OpsWorks::Model::Command::WithAcknowledgedAt
Command & WithAcknowledgedAt(const Aws::String &value)
Definition: Command.h:232
Aws::OpsWorks::Model::Command::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: Command.h:84
Aws::OpsWorks::Model::Command::WithType
Command & WithType(Aws::String &&value)
Definition: Command.h:479
Aws::OpsWorks::Model::Command::GetLogUrl
const Aws::String & GetLogUrl() const
Definition: Command.h:359
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::Command::SetInstanceId
void SetInstanceId(const char *value)
Definition: Command.h:104
Aws::OpsWorks::Model::Command::WithCommandId
Command & WithCommandId(const char *value)
Definition: Command.h:78
Aws::OpsWorks::Model::Command::ExitCodeHasBeenSet
bool ExitCodeHasBeenSet() const
Definition: Command.h:343
Aws::OpsWorks::Model::Command::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Command.h:419
Aws::OpsWorks::Model::Command::SetCompletedAt
void SetCompletedAt(const Aws::String &value)
Definition: Command.h:258
Aws::OpsWorks::Model::Command::AcknowledgedAtHasBeenSet
bool AcknowledgedAtHasBeenSet() const
Definition: Command.h:212
Aws::OpsWorks::Model::Command::GetAcknowledgedAt
const Aws::String & GetAcknowledgedAt() const
Definition: Command.h:207
Aws::OpsWorks::Model::Command::WithStatus
Command & WithStatus(const char *value)
Definition: Command.h:332
Aws::OpsWorks::Model::Command::WithCompletedAt
Command & WithCompletedAt(Aws::String &&value)
Definition: Command.h:278
Aws::OpsWorks::Model::Command::SetCreatedAt
void SetCreatedAt(const char *value)
Definition: Command.h:186