AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceInstance.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/proton/model/DeploymentStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Proton
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PROTON_API ServiceInstance();
40 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArn() const{ return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
50 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
51 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
52 inline ServiceInstance& WithArn(const Aws::String& value) { SetArn(value); return *this;}
53 inline ServiceInstance& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
54 inline ServiceInstance& WithArn(const char* value) { SetArn(value); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
62 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
63 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
64 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
65 inline ServiceInstance& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
66 inline ServiceInstance& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
68
70
73 inline const DeploymentStatus& GetDeploymentStatus() const{ return m_deploymentStatus; }
74 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
75 inline void SetDeploymentStatus(const DeploymentStatus& value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = value; }
76 inline void SetDeploymentStatus(DeploymentStatus&& value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = std::move(value); }
77 inline ServiceInstance& WithDeploymentStatus(const DeploymentStatus& value) { SetDeploymentStatus(value); return *this;}
78 inline ServiceInstance& WithDeploymentStatus(DeploymentStatus&& value) { SetDeploymentStatus(std::move(value)); return *this;}
80
82
85 inline const Aws::String& GetDeploymentStatusMessage() const{ return m_deploymentStatusMessage; }
86 inline bool DeploymentStatusMessageHasBeenSet() const { return m_deploymentStatusMessageHasBeenSet; }
87 inline void SetDeploymentStatusMessage(const Aws::String& value) { m_deploymentStatusMessageHasBeenSet = true; m_deploymentStatusMessage = value; }
88 inline void SetDeploymentStatusMessage(Aws::String&& value) { m_deploymentStatusMessageHasBeenSet = true; m_deploymentStatusMessage = std::move(value); }
89 inline void SetDeploymentStatusMessage(const char* value) { m_deploymentStatusMessageHasBeenSet = true; m_deploymentStatusMessage.assign(value); }
91 inline ServiceInstance& WithDeploymentStatusMessage(Aws::String&& value) { SetDeploymentStatusMessage(std::move(value)); return *this;}
92 inline ServiceInstance& WithDeploymentStatusMessage(const char* value) { SetDeploymentStatusMessage(value); return *this;}
94
96
99 inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
100 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
101 inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
102 inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
103 inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
104 inline ServiceInstance& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
105 inline ServiceInstance& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
106 inline ServiceInstance& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
108
110
113 inline const Aws::String& GetLastAttemptedDeploymentId() const{ return m_lastAttemptedDeploymentId; }
114 inline bool LastAttemptedDeploymentIdHasBeenSet() const { return m_lastAttemptedDeploymentIdHasBeenSet; }
115 inline void SetLastAttemptedDeploymentId(const Aws::String& value) { m_lastAttemptedDeploymentIdHasBeenSet = true; m_lastAttemptedDeploymentId = value; }
116 inline void SetLastAttemptedDeploymentId(Aws::String&& value) { m_lastAttemptedDeploymentIdHasBeenSet = true; m_lastAttemptedDeploymentId = std::move(value); }
117 inline void SetLastAttemptedDeploymentId(const char* value) { m_lastAttemptedDeploymentIdHasBeenSet = true; m_lastAttemptedDeploymentId.assign(value); }
120 inline ServiceInstance& WithLastAttemptedDeploymentId(const char* value) { SetLastAttemptedDeploymentId(value); return *this;}
122
124
127 inline const Aws::String& GetLastClientRequestToken() const{ return m_lastClientRequestToken; }
128 inline bool LastClientRequestTokenHasBeenSet() const { return m_lastClientRequestTokenHasBeenSet; }
129 inline void SetLastClientRequestToken(const Aws::String& value) { m_lastClientRequestTokenHasBeenSet = true; m_lastClientRequestToken = value; }
130 inline void SetLastClientRequestToken(Aws::String&& value) { m_lastClientRequestTokenHasBeenSet = true; m_lastClientRequestToken = std::move(value); }
131 inline void SetLastClientRequestToken(const char* value) { m_lastClientRequestTokenHasBeenSet = true; m_lastClientRequestToken.assign(value); }
133 inline ServiceInstance& WithLastClientRequestToken(Aws::String&& value) { SetLastClientRequestToken(std::move(value)); return *this;}
134 inline ServiceInstance& WithLastClientRequestToken(const char* value) { SetLastClientRequestToken(value); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetLastDeploymentAttemptedAt() const{ return m_lastDeploymentAttemptedAt; }
142 inline bool LastDeploymentAttemptedAtHasBeenSet() const { return m_lastDeploymentAttemptedAtHasBeenSet; }
143 inline void SetLastDeploymentAttemptedAt(const Aws::Utils::DateTime& value) { m_lastDeploymentAttemptedAtHasBeenSet = true; m_lastDeploymentAttemptedAt = value; }
144 inline void SetLastDeploymentAttemptedAt(Aws::Utils::DateTime&& value) { m_lastDeploymentAttemptedAtHasBeenSet = true; m_lastDeploymentAttemptedAt = std::move(value); }
148
150
153 inline const Aws::Utils::DateTime& GetLastDeploymentSucceededAt() const{ return m_lastDeploymentSucceededAt; }
154 inline bool LastDeploymentSucceededAtHasBeenSet() const { return m_lastDeploymentSucceededAtHasBeenSet; }
155 inline void SetLastDeploymentSucceededAt(const Aws::Utils::DateTime& value) { m_lastDeploymentSucceededAtHasBeenSet = true; m_lastDeploymentSucceededAt = value; }
156 inline void SetLastDeploymentSucceededAt(Aws::Utils::DateTime&& value) { m_lastDeploymentSucceededAtHasBeenSet = true; m_lastDeploymentSucceededAt = std::move(value); }
160
162
165 inline const Aws::String& GetLastSucceededDeploymentId() const{ return m_lastSucceededDeploymentId; }
166 inline bool LastSucceededDeploymentIdHasBeenSet() const { return m_lastSucceededDeploymentIdHasBeenSet; }
167 inline void SetLastSucceededDeploymentId(const Aws::String& value) { m_lastSucceededDeploymentIdHasBeenSet = true; m_lastSucceededDeploymentId = value; }
168 inline void SetLastSucceededDeploymentId(Aws::String&& value) { m_lastSucceededDeploymentIdHasBeenSet = true; m_lastSucceededDeploymentId = std::move(value); }
169 inline void SetLastSucceededDeploymentId(const char* value) { m_lastSucceededDeploymentIdHasBeenSet = true; m_lastSucceededDeploymentId.assign(value); }
172 inline ServiceInstance& WithLastSucceededDeploymentId(const char* value) { SetLastSucceededDeploymentId(value); return *this;}
174
176
179 inline const Aws::String& GetName() const{ return m_name; }
180 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
181 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
182 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
183 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
184 inline ServiceInstance& WithName(const Aws::String& value) { SetName(value); return *this;}
185 inline ServiceInstance& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
186 inline ServiceInstance& WithName(const char* value) { SetName(value); return *this;}
188
190
193 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
194 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
195 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
196 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
197 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
198 inline ServiceInstance& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
199 inline ServiceInstance& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
200 inline ServiceInstance& WithServiceName(const char* value) { SetServiceName(value); return *this;}
202
204
207 inline const Aws::String& GetSpec() const{ return m_spec; }
208 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
209 inline void SetSpec(const Aws::String& value) { m_specHasBeenSet = true; m_spec = value; }
210 inline void SetSpec(Aws::String&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
211 inline void SetSpec(const char* value) { m_specHasBeenSet = true; m_spec.assign(value); }
212 inline ServiceInstance& WithSpec(const Aws::String& value) { SetSpec(value); return *this;}
213 inline ServiceInstance& WithSpec(Aws::String&& value) { SetSpec(std::move(value)); return *this;}
214 inline ServiceInstance& WithSpec(const char* value) { SetSpec(value); return *this;}
216
218
222 inline const Aws::String& GetTemplateMajorVersion() const{ return m_templateMajorVersion; }
223 inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; }
224 inline void SetTemplateMajorVersion(const Aws::String& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = value; }
225 inline void SetTemplateMajorVersion(Aws::String&& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = std::move(value); }
226 inline void SetTemplateMajorVersion(const char* value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion.assign(value); }
228 inline ServiceInstance& WithTemplateMajorVersion(Aws::String&& value) { SetTemplateMajorVersion(std::move(value)); return *this;}
229 inline ServiceInstance& WithTemplateMajorVersion(const char* value) { SetTemplateMajorVersion(value); return *this;}
231
233
237 inline const Aws::String& GetTemplateMinorVersion() const{ return m_templateMinorVersion; }
238 inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; }
239 inline void SetTemplateMinorVersion(const Aws::String& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = value; }
240 inline void SetTemplateMinorVersion(Aws::String&& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = std::move(value); }
241 inline void SetTemplateMinorVersion(const char* value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion.assign(value); }
243 inline ServiceInstance& WithTemplateMinorVersion(Aws::String&& value) { SetTemplateMinorVersion(std::move(value)); return *this;}
244 inline ServiceInstance& WithTemplateMinorVersion(const char* value) { SetTemplateMinorVersion(value); return *this;}
246
248
252 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
253 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
254 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
255 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
256 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
257 inline ServiceInstance& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
258 inline ServiceInstance& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
259 inline ServiceInstance& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
261 private:
262
263 Aws::String m_arn;
264 bool m_arnHasBeenSet = false;
265
266 Aws::Utils::DateTime m_createdAt;
267 bool m_createdAtHasBeenSet = false;
268
269 DeploymentStatus m_deploymentStatus;
270 bool m_deploymentStatusHasBeenSet = false;
271
272 Aws::String m_deploymentStatusMessage;
273 bool m_deploymentStatusMessageHasBeenSet = false;
274
275 Aws::String m_environmentName;
276 bool m_environmentNameHasBeenSet = false;
277
278 Aws::String m_lastAttemptedDeploymentId;
279 bool m_lastAttemptedDeploymentIdHasBeenSet = false;
280
281 Aws::String m_lastClientRequestToken;
282 bool m_lastClientRequestTokenHasBeenSet = false;
283
284 Aws::Utils::DateTime m_lastDeploymentAttemptedAt;
285 bool m_lastDeploymentAttemptedAtHasBeenSet = false;
286
287 Aws::Utils::DateTime m_lastDeploymentSucceededAt;
288 bool m_lastDeploymentSucceededAtHasBeenSet = false;
289
290 Aws::String m_lastSucceededDeploymentId;
291 bool m_lastSucceededDeploymentIdHasBeenSet = false;
292
293 Aws::String m_name;
294 bool m_nameHasBeenSet = false;
295
296 Aws::String m_serviceName;
297 bool m_serviceNameHasBeenSet = false;
298
299 Aws::String m_spec;
300 bool m_specHasBeenSet = false;
301
302 Aws::String m_templateMajorVersion;
303 bool m_templateMajorVersionHasBeenSet = false;
304
305 Aws::String m_templateMinorVersion;
306 bool m_templateMinorVersionHasBeenSet = false;
307
308 Aws::String m_templateName;
309 bool m_templateNameHasBeenSet = false;
310 };
311
312} // namespace Model
313} // namespace Proton
314} // namespace Aws
const Aws::String & GetArn() const
void SetDeploymentStatusMessage(const Aws::String &value)
void SetTemplateMinorVersion(const Aws::String &value)
ServiceInstance & WithTemplateMinorVersion(const Aws::String &value)
ServiceInstance & WithArn(const char *value)
ServiceInstance & WithTemplateMajorVersion(Aws::String &&value)
void SetTemplateName(const char *value)
void SetTemplateName(const Aws::String &value)
void SetTemplateMinorVersion(Aws::String &&value)
void SetTemplateName(Aws::String &&value)
const Aws::String & GetLastAttemptedDeploymentId() const
const Aws::String & GetSpec() const
ServiceInstance & WithLastSucceededDeploymentId(const Aws::String &value)
void SetLastSucceededDeploymentId(const Aws::String &value)
void SetLastClientRequestToken(const char *value)
void SetLastAttemptedDeploymentId(const char *value)
void SetEnvironmentName(const Aws::String &value)
void SetLastDeploymentSucceededAt(const Aws::Utils::DateTime &value)
void SetTemplateMajorVersion(Aws::String &&value)
void SetName(Aws::String &&value)
ServiceInstance & WithServiceName(const Aws::String &value)
void SetEnvironmentName(Aws::String &&value)
ServiceInstance & WithLastDeploymentAttemptedAt(const Aws::Utils::DateTime &value)
void SetLastDeploymentSucceededAt(Aws::Utils::DateTime &&value)
void SetLastDeploymentAttemptedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetTemplateMajorVersion() const
void SetLastClientRequestToken(const Aws::String &value)
ServiceInstance & WithLastDeploymentSucceededAt(Aws::Utils::DateTime &&value)
ServiceInstance & WithDeploymentStatus(const DeploymentStatus &value)
const Aws::String & GetLastClientRequestToken() const
const Aws::String & GetTemplateName() const
ServiceInstance & WithLastDeploymentSucceededAt(const Aws::Utils::DateTime &value)
ServiceInstance & WithServiceName(Aws::String &&value)
ServiceInstance & WithLastSucceededDeploymentId(const char *value)
ServiceInstance & WithLastClientRequestToken(const char *value)
ServiceInstance & WithTemplateName(Aws::String &&value)
void SetLastClientRequestToken(Aws::String &&value)
ServiceInstance & WithLastDeploymentAttemptedAt(Aws::Utils::DateTime &&value)
void SetDeploymentStatusMessage(const char *value)
ServiceInstance & WithEnvironmentName(Aws::String &&value)
const Aws::Utils::DateTime & GetLastDeploymentAttemptedAt() const
ServiceInstance & WithSpec(const Aws::String &value)
ServiceInstance & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetDeploymentStatus(const DeploymentStatus &value)
AWS_PROTON_API ServiceInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceInstance & WithDeploymentStatus(DeploymentStatus &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetSpec(Aws::String &&value)
ServiceInstance & WithTemplateMajorVersion(const char *value)
const Aws::Utils::DateTime & GetLastDeploymentSucceededAt() const
void SetServiceName(const Aws::String &value)
void SetTemplateMajorVersion(const char *value)
void SetLastSucceededDeploymentId(Aws::String &&value)
const DeploymentStatus & GetDeploymentStatus() const
ServiceInstance & WithSpec(const char *value)
ServiceInstance & WithLastAttemptedDeploymentId(const Aws::String &value)
ServiceInstance & WithLastClientRequestToken(const Aws::String &value)
ServiceInstance & WithDeploymentStatusMessage(const Aws::String &value)
void SetLastSucceededDeploymentId(const char *value)
void SetArn(const Aws::String &value)
AWS_PROTON_API ServiceInstance(Aws::Utils::Json::JsonView jsonValue)
ServiceInstance & WithTemplateName(const Aws::String &value)
ServiceInstance & WithCreatedAt(const Aws::Utils::DateTime &value)
ServiceInstance & WithTemplateName(const char *value)
void SetEnvironmentName(const char *value)
const Aws::String & GetEnvironmentName() const
void SetTemplateMajorVersion(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetLastAttemptedDeploymentId(const Aws::String &value)
ServiceInstance & WithLastAttemptedDeploymentId(const char *value)
void SetServiceName(Aws::String &&value)
void SetLastAttemptedDeploymentId(Aws::String &&value)
ServiceInstance & WithEnvironmentName(const char *value)
const Aws::String & GetName() const
const Aws::String & GetLastSucceededDeploymentId() const
void SetSpec(const Aws::String &value)
ServiceInstance & WithName(const Aws::String &value)
void SetDeploymentStatusMessage(Aws::String &&value)
ServiceInstance & WithName(const char *value)
void SetName(const Aws::String &value)
ServiceInstance & WithEnvironmentName(const Aws::String &value)
ServiceInstance & WithDeploymentStatusMessage(Aws::String &&value)
ServiceInstance & WithServiceName(const char *value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceInstance & WithArn(const Aws::String &value)
ServiceInstance & WithTemplateMinorVersion(Aws::String &&value)
ServiceInstance & WithSpec(Aws::String &&value)
void SetServiceName(const char *value)
const Aws::String & GetServiceName() const
ServiceInstance & WithLastSucceededDeploymentId(Aws::String &&value)
ServiceInstance & WithTemplateMajorVersion(const Aws::String &value)
ServiceInstance & WithLastClientRequestToken(Aws::String &&value)
void SetArn(Aws::String &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetDeploymentStatus(DeploymentStatus &&value)
ServiceInstance & WithArn(Aws::String &&value)
const Aws::String & GetTemplateMinorVersion() const
const Aws::String & GetDeploymentStatusMessage() const
ServiceInstance & WithTemplateMinorVersion(const char *value)
ServiceInstance & WithDeploymentStatusMessage(const char *value)
ServiceInstance & WithLastAttemptedDeploymentId(Aws::String &&value)
void SetLastDeploymentAttemptedAt(Aws::Utils::DateTime &&value)
void SetTemplateMinorVersion(const char *value)
ServiceInstance & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue