AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Command.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpsWorks
22{
23namespace Model
24{
25
31 class Command
32 {
33 public:
34 AWS_OPSWORKS_API Command();
35 AWS_OPSWORKS_API Command(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPSWORKS_API Command& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetCommandId() const{ return m_commandId; }
45 inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; }
46 inline void SetCommandId(const Aws::String& value) { m_commandIdHasBeenSet = true; m_commandId = value; }
47 inline void SetCommandId(Aws::String&& value) { m_commandIdHasBeenSet = true; m_commandId = std::move(value); }
48 inline void SetCommandId(const char* value) { m_commandIdHasBeenSet = true; m_commandId.assign(value); }
49 inline Command& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;}
50 inline Command& WithCommandId(Aws::String&& value) { SetCommandId(std::move(value)); return *this;}
51 inline Command& WithCommandId(const char* value) { SetCommandId(value); return *this;}
53
55
58 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
59 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
60 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
61 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
62 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
63 inline Command& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
64 inline Command& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
65 inline Command& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
67
69
72 inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
73 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
74 inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
75 inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
76 inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
77 inline Command& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
78 inline Command& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
79 inline Command& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
81
83
86 inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
87 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
88 inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
89 inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
90 inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); }
91 inline Command& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
92 inline Command& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;}
93 inline Command& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
95
97
100 inline const Aws::String& GetAcknowledgedAt() const{ return m_acknowledgedAt; }
101 inline bool AcknowledgedAtHasBeenSet() const { return m_acknowledgedAtHasBeenSet; }
102 inline void SetAcknowledgedAt(const Aws::String& value) { m_acknowledgedAtHasBeenSet = true; m_acknowledgedAt = value; }
103 inline void SetAcknowledgedAt(Aws::String&& value) { m_acknowledgedAtHasBeenSet = true; m_acknowledgedAt = std::move(value); }
104 inline void SetAcknowledgedAt(const char* value) { m_acknowledgedAtHasBeenSet = true; m_acknowledgedAt.assign(value); }
105 inline Command& WithAcknowledgedAt(const Aws::String& value) { SetAcknowledgedAt(value); return *this;}
106 inline Command& WithAcknowledgedAt(Aws::String&& value) { SetAcknowledgedAt(std::move(value)); return *this;}
107 inline Command& WithAcknowledgedAt(const char* value) { SetAcknowledgedAt(value); return *this;}
109
111
114 inline const Aws::String& GetCompletedAt() const{ return m_completedAt; }
115 inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
116 inline void SetCompletedAt(const Aws::String& value) { m_completedAtHasBeenSet = true; m_completedAt = value; }
117 inline void SetCompletedAt(Aws::String&& value) { m_completedAtHasBeenSet = true; m_completedAt = std::move(value); }
118 inline void SetCompletedAt(const char* value) { m_completedAtHasBeenSet = true; m_completedAt.assign(value); }
119 inline Command& WithCompletedAt(const Aws::String& value) { SetCompletedAt(value); return *this;}
120 inline Command& WithCompletedAt(Aws::String&& value) { SetCompletedAt(std::move(value)); return *this;}
121 inline Command& WithCompletedAt(const char* value) { SetCompletedAt(value); return *this;}
123
125
129 inline const Aws::String& GetStatus() const{ return m_status; }
130 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
131 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
132 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
133 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
134 inline Command& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
135 inline Command& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
136 inline Command& WithStatus(const char* value) { SetStatus(value); return *this;}
138
140
143 inline int GetExitCode() const{ return m_exitCode; }
144 inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; }
145 inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; }
146 inline Command& WithExitCode(int value) { SetExitCode(value); return *this;}
148
150
153 inline const Aws::String& GetLogUrl() const{ return m_logUrl; }
154 inline bool LogUrlHasBeenSet() const { return m_logUrlHasBeenSet; }
155 inline void SetLogUrl(const Aws::String& value) { m_logUrlHasBeenSet = true; m_logUrl = value; }
156 inline void SetLogUrl(Aws::String&& value) { m_logUrlHasBeenSet = true; m_logUrl = std::move(value); }
157 inline void SetLogUrl(const char* value) { m_logUrlHasBeenSet = true; m_logUrl.assign(value); }
158 inline Command& WithLogUrl(const Aws::String& value) { SetLogUrl(value); return *this;}
159 inline Command& WithLogUrl(Aws::String&& value) { SetLogUrl(std::move(value)); return *this;}
160 inline Command& WithLogUrl(const char* value) { SetLogUrl(value); return *this;}
162
164
174 inline const Aws::String& GetType() const{ return m_type; }
175 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
176 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
177 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
178 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
179 inline Command& WithType(const Aws::String& value) { SetType(value); return *this;}
180 inline Command& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
181 inline Command& WithType(const char* value) { SetType(value); return *this;}
183 private:
184
185 Aws::String m_commandId;
186 bool m_commandIdHasBeenSet = false;
187
188 Aws::String m_instanceId;
189 bool m_instanceIdHasBeenSet = false;
190
191 Aws::String m_deploymentId;
192 bool m_deploymentIdHasBeenSet = false;
193
194 Aws::String m_createdAt;
195 bool m_createdAtHasBeenSet = false;
196
197 Aws::String m_acknowledgedAt;
198 bool m_acknowledgedAtHasBeenSet = false;
199
200 Aws::String m_completedAt;
201 bool m_completedAtHasBeenSet = false;
202
203 Aws::String m_status;
204 bool m_statusHasBeenSet = false;
205
206 int m_exitCode;
207 bool m_exitCodeHasBeenSet = false;
208
209 Aws::String m_logUrl;
210 bool m_logUrlHasBeenSet = false;
211
212 Aws::String m_type;
213 bool m_typeHasBeenSet = false;
214 };
215
216} // namespace Model
217} // namespace OpsWorks
218} // namespace Aws
void SetCompletedAt(const Aws::String &value)
Definition Command.h:116
bool CreatedAtHasBeenSet() const
Definition Command.h:87
Command & WithInstanceId(const char *value)
Definition Command.h:65
bool StatusHasBeenSet() const
Definition Command.h:130
Command & WithCommandId(const Aws::String &value)
Definition Command.h:49
const Aws::String & GetAcknowledgedAt() const
Definition Command.h:100
Command & WithAcknowledgedAt(const char *value)
Definition Command.h:107
void SetInstanceId(const char *value)
Definition Command.h:62
void SetDeploymentId(Aws::String &&value)
Definition Command.h:75
void SetStatus(const char *value)
Definition Command.h:133
Command & WithCompletedAt(Aws::String &&value)
Definition Command.h:120
Command & WithCompletedAt(const Aws::String &value)
Definition Command.h:119
Command & WithStatus(const Aws::String &value)
Definition Command.h:134
AWS_OPSWORKS_API Command(Aws::Utils::Json::JsonView jsonValue)
Command & WithLogUrl(const Aws::String &value)
Definition Command.h:158
Command & WithType(const char *value)
Definition Command.h:181
const Aws::String & GetLogUrl() const
Definition Command.h:153
Command & WithDeploymentId(const Aws::String &value)
Definition Command.h:77
bool DeploymentIdHasBeenSet() const
Definition Command.h:73
Command & WithAcknowledgedAt(const Aws::String &value)
Definition Command.h:105
bool CompletedAtHasBeenSet() const
Definition Command.h:115
void SetLogUrl(const Aws::String &value)
Definition Command.h:155
void SetCompletedAt(Aws::String &&value)
Definition Command.h:117
Command & WithDeploymentId(Aws::String &&value)
Definition Command.h:78
Command & WithLogUrl(const char *value)
Definition Command.h:160
void SetInstanceId(const Aws::String &value)
Definition Command.h:60
Command & WithCommandId(Aws::String &&value)
Definition Command.h:50
void SetCompletedAt(const char *value)
Definition Command.h:118
const Aws::String & GetCreatedAt() const
Definition Command.h:86
Command & WithCreatedAt(const char *value)
Definition Command.h:93
const Aws::String & GetDeploymentId() const
Definition Command.h:72
const Aws::String & GetCommandId() const
Definition Command.h:44
void SetType(Aws::String &&value)
Definition Command.h:177
const Aws::String & GetCompletedAt() const
Definition Command.h:114
Command & WithStatus(const char *value)
Definition Command.h:136
void SetDeploymentId(const char *value)
Definition Command.h:76
Command & WithCompletedAt(const char *value)
Definition Command.h:121
Command & WithInstanceId(const Aws::String &value)
Definition Command.h:63
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPSWORKS_API Command & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(const Aws::String &value)
Definition Command.h:88
bool CommandIdHasBeenSet() const
Definition Command.h:45
const Aws::String & GetStatus() const
Definition Command.h:129
bool ExitCodeHasBeenSet() const
Definition Command.h:144
Command & WithType(const Aws::String &value)
Definition Command.h:179
const Aws::String & GetType() const
Definition Command.h:174
AWS_OPSWORKS_API Command()
Command & WithCreatedAt(const Aws::String &value)
Definition Command.h:91
Command & WithCreatedAt(Aws::String &&value)
Definition Command.h:92
Command & WithLogUrl(Aws::String &&value)
Definition Command.h:159
Command & WithInstanceId(Aws::String &&value)
Definition Command.h:64
void SetType(const char *value)
Definition Command.h:178
void SetInstanceId(Aws::String &&value)
Definition Command.h:61
void SetAcknowledgedAt(const char *value)
Definition Command.h:104
bool LogUrlHasBeenSet() const
Definition Command.h:154
void SetStatus(const Aws::String &value)
Definition Command.h:131
bool AcknowledgedAtHasBeenSet() const
Definition Command.h:101
Command & WithAcknowledgedAt(Aws::String &&value)
Definition Command.h:106
void SetCreatedAt(Aws::String &&value)
Definition Command.h:89
void SetCreatedAt(const char *value)
Definition Command.h:90
void SetCommandId(const char *value)
Definition Command.h:48
void SetCommandId(const Aws::String &value)
Definition Command.h:46
bool InstanceIdHasBeenSet() const
Definition Command.h:59
Command & WithCommandId(const char *value)
Definition Command.h:51
void SetStatus(Aws::String &&value)
Definition Command.h:132
void SetCommandId(Aws::String &&value)
Definition Command.h:47
Command & WithDeploymentId(const char *value)
Definition Command.h:79
void SetAcknowledgedAt(Aws::String &&value)
Definition Command.h:103
void SetDeploymentId(const Aws::String &value)
Definition Command.h:74
Command & WithExitCode(int value)
Definition Command.h:146
void SetLogUrl(const char *value)
Definition Command.h:157
void SetAcknowledgedAt(const Aws::String &value)
Definition Command.h:102
void SetLogUrl(Aws::String &&value)
Definition Command.h:156
Command & WithType(Aws::String &&value)
Definition Command.h:180
void SetType(const Aws::String &value)
Definition Command.h:176
Command & WithStatus(Aws::String &&value)
Definition Command.h:135
const Aws::String & GetInstanceId() const
Definition Command.h:58
void SetExitCode(int value)
Definition Command.h:145
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue