AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ServiceInstance.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/proton/Proton_EXPORTS.h>
10#include <aws/proton/model/DeploymentStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Proton {
22namespace Model {
23
31 public:
32 AWS_PROTON_API ServiceInstance() = default;
35 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 ServiceInstance& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
60 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
61 template <typename CreatedAtT = Aws::Utils::DateTime>
62 void SetCreatedAt(CreatedAtT&& value) {
63 m_createdAtHasBeenSet = true;
64 m_createdAt = std::forward<CreatedAtT>(value);
65 }
66 template <typename CreatedAtT = Aws::Utils::DateTime>
67 ServiceInstance& WithCreatedAt(CreatedAtT&& value) {
68 SetCreatedAt(std::forward<CreatedAtT>(value));
69 return *this;
70 }
72
74
77 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
78 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
80 m_deploymentStatusHasBeenSet = true;
81 m_deploymentStatus = value;
82 }
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDeploymentStatusMessage() const { return m_deploymentStatusMessage; }
94 inline bool DeploymentStatusMessageHasBeenSet() const { return m_deploymentStatusMessageHasBeenSet; }
95 template <typename DeploymentStatusMessageT = Aws::String>
96 void SetDeploymentStatusMessage(DeploymentStatusMessageT&& value) {
97 m_deploymentStatusMessageHasBeenSet = true;
98 m_deploymentStatusMessage = std::forward<DeploymentStatusMessageT>(value);
99 }
100 template <typename DeploymentStatusMessageT = Aws::String>
101 ServiceInstance& WithDeploymentStatusMessage(DeploymentStatusMessageT&& value) {
102 SetDeploymentStatusMessage(std::forward<DeploymentStatusMessageT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
112 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
113 template <typename EnvironmentNameT = Aws::String>
114 void SetEnvironmentName(EnvironmentNameT&& value) {
115 m_environmentNameHasBeenSet = true;
116 m_environmentName = std::forward<EnvironmentNameT>(value);
117 }
118 template <typename EnvironmentNameT = Aws::String>
119 ServiceInstance& WithEnvironmentName(EnvironmentNameT&& value) {
120 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetLastAttemptedDeploymentId() const { return m_lastAttemptedDeploymentId; }
130 inline bool LastAttemptedDeploymentIdHasBeenSet() const { return m_lastAttemptedDeploymentIdHasBeenSet; }
131 template <typename LastAttemptedDeploymentIdT = Aws::String>
132 void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) {
133 m_lastAttemptedDeploymentIdHasBeenSet = true;
134 m_lastAttemptedDeploymentId = std::forward<LastAttemptedDeploymentIdT>(value);
135 }
136 template <typename LastAttemptedDeploymentIdT = Aws::String>
137 ServiceInstance& WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) {
138 SetLastAttemptedDeploymentId(std::forward<LastAttemptedDeploymentIdT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetLastClientRequestToken() const { return m_lastClientRequestToken; }
148 inline bool LastClientRequestTokenHasBeenSet() const { return m_lastClientRequestTokenHasBeenSet; }
149 template <typename LastClientRequestTokenT = Aws::String>
150 void SetLastClientRequestToken(LastClientRequestTokenT&& value) {
151 m_lastClientRequestTokenHasBeenSet = true;
152 m_lastClientRequestToken = std::forward<LastClientRequestTokenT>(value);
153 }
154 template <typename LastClientRequestTokenT = Aws::String>
155 ServiceInstance& WithLastClientRequestToken(LastClientRequestTokenT&& value) {
156 SetLastClientRequestToken(std::forward<LastClientRequestTokenT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Utils::DateTime& GetLastDeploymentAttemptedAt() const { return m_lastDeploymentAttemptedAt; }
166 inline bool LastDeploymentAttemptedAtHasBeenSet() const { return m_lastDeploymentAttemptedAtHasBeenSet; }
167 template <typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
168 void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) {
169 m_lastDeploymentAttemptedAtHasBeenSet = true;
170 m_lastDeploymentAttemptedAt = std::forward<LastDeploymentAttemptedAtT>(value);
171 }
172 template <typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
173 ServiceInstance& WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) {
174 SetLastDeploymentAttemptedAt(std::forward<LastDeploymentAttemptedAtT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::Utils::DateTime& GetLastDeploymentSucceededAt() const { return m_lastDeploymentSucceededAt; }
184 inline bool LastDeploymentSucceededAtHasBeenSet() const { return m_lastDeploymentSucceededAtHasBeenSet; }
185 template <typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
186 void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) {
187 m_lastDeploymentSucceededAtHasBeenSet = true;
188 m_lastDeploymentSucceededAt = std::forward<LastDeploymentSucceededAtT>(value);
189 }
190 template <typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
191 ServiceInstance& WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) {
192 SetLastDeploymentSucceededAt(std::forward<LastDeploymentSucceededAtT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::String& GetLastSucceededDeploymentId() const { return m_lastSucceededDeploymentId; }
202 inline bool LastSucceededDeploymentIdHasBeenSet() const { return m_lastSucceededDeploymentIdHasBeenSet; }
203 template <typename LastSucceededDeploymentIdT = Aws::String>
204 void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) {
205 m_lastSucceededDeploymentIdHasBeenSet = true;
206 m_lastSucceededDeploymentId = std::forward<LastSucceededDeploymentIdT>(value);
207 }
208 template <typename LastSucceededDeploymentIdT = Aws::String>
209 ServiceInstance& WithLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) {
210 SetLastSucceededDeploymentId(std::forward<LastSucceededDeploymentIdT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::String& GetName() const { return m_name; }
220 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
221 template <typename NameT = Aws::String>
222 void SetName(NameT&& value) {
223 m_nameHasBeenSet = true;
224 m_name = std::forward<NameT>(value);
225 }
226 template <typename NameT = Aws::String>
227 ServiceInstance& WithName(NameT&& value) {
228 SetName(std::forward<NameT>(value));
229 return *this;
230 }
232
234
237 inline const Aws::String& GetServiceName() const { return m_serviceName; }
238 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
239 template <typename ServiceNameT = Aws::String>
240 void SetServiceName(ServiceNameT&& value) {
241 m_serviceNameHasBeenSet = true;
242 m_serviceName = std::forward<ServiceNameT>(value);
243 }
244 template <typename ServiceNameT = Aws::String>
245 ServiceInstance& WithServiceName(ServiceNameT&& value) {
246 SetServiceName(std::forward<ServiceNameT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::String& GetSpec() const { return m_spec; }
256 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
257 template <typename SpecT = Aws::String>
258 void SetSpec(SpecT&& value) {
259 m_specHasBeenSet = true;
260 m_spec = std::forward<SpecT>(value);
261 }
262 template <typename SpecT = Aws::String>
263 ServiceInstance& WithSpec(SpecT&& value) {
264 SetSpec(std::forward<SpecT>(value));
265 return *this;
266 }
268
270
274 inline const Aws::String& GetTemplateMajorVersion() const { return m_templateMajorVersion; }
275 inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; }
276 template <typename TemplateMajorVersionT = Aws::String>
277 void SetTemplateMajorVersion(TemplateMajorVersionT&& value) {
278 m_templateMajorVersionHasBeenSet = true;
279 m_templateMajorVersion = std::forward<TemplateMajorVersionT>(value);
280 }
281 template <typename TemplateMajorVersionT = Aws::String>
282 ServiceInstance& WithTemplateMajorVersion(TemplateMajorVersionT&& value) {
283 SetTemplateMajorVersion(std::forward<TemplateMajorVersionT>(value));
284 return *this;
285 }
287
289
293 inline const Aws::String& GetTemplateMinorVersion() const { return m_templateMinorVersion; }
294 inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; }
295 template <typename TemplateMinorVersionT = Aws::String>
296 void SetTemplateMinorVersion(TemplateMinorVersionT&& value) {
297 m_templateMinorVersionHasBeenSet = true;
298 m_templateMinorVersion = std::forward<TemplateMinorVersionT>(value);
299 }
300 template <typename TemplateMinorVersionT = Aws::String>
301 ServiceInstance& WithTemplateMinorVersion(TemplateMinorVersionT&& value) {
302 SetTemplateMinorVersion(std::forward<TemplateMinorVersionT>(value));
303 return *this;
304 }
306
308
312 inline const Aws::String& GetTemplateName() const { return m_templateName; }
313 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
314 template <typename TemplateNameT = Aws::String>
315 void SetTemplateName(TemplateNameT&& value) {
316 m_templateNameHasBeenSet = true;
317 m_templateName = std::forward<TemplateNameT>(value);
318 }
319 template <typename TemplateNameT = Aws::String>
320 ServiceInstance& WithTemplateName(TemplateNameT&& value) {
321 SetTemplateName(std::forward<TemplateNameT>(value));
322 return *this;
323 }
325 private:
326 Aws::String m_arn;
327
328 Aws::Utils::DateTime m_createdAt{};
329
331
332 Aws::String m_deploymentStatusMessage;
333
334 Aws::String m_environmentName;
335
336 Aws::String m_lastAttemptedDeploymentId;
337
338 Aws::String m_lastClientRequestToken;
339
340 Aws::Utils::DateTime m_lastDeploymentAttemptedAt{};
341
342 Aws::Utils::DateTime m_lastDeploymentSucceededAt{};
343
344 Aws::String m_lastSucceededDeploymentId;
345
346 Aws::String m_name;
347
348 Aws::String m_serviceName;
349
350 Aws::String m_spec;
351
352 Aws::String m_templateMajorVersion;
353
354 Aws::String m_templateMinorVersion;
355
356 Aws::String m_templateName;
357 bool m_arnHasBeenSet = false;
358 bool m_createdAtHasBeenSet = false;
359 bool m_deploymentStatusHasBeenSet = false;
360 bool m_deploymentStatusMessageHasBeenSet = false;
361 bool m_environmentNameHasBeenSet = false;
362 bool m_lastAttemptedDeploymentIdHasBeenSet = false;
363 bool m_lastClientRequestTokenHasBeenSet = false;
364 bool m_lastDeploymentAttemptedAtHasBeenSet = false;
365 bool m_lastDeploymentSucceededAtHasBeenSet = false;
366 bool m_lastSucceededDeploymentIdHasBeenSet = false;
367 bool m_nameHasBeenSet = false;
368 bool m_serviceNameHasBeenSet = false;
369 bool m_specHasBeenSet = false;
370 bool m_templateMajorVersionHasBeenSet = false;
371 bool m_templateMinorVersionHasBeenSet = false;
372 bool m_templateNameHasBeenSet = false;
373};
374
375} // namespace Model
376} // namespace Proton
377} // namespace Aws
const Aws::String & GetArn() const
void SetServiceName(ServiceNameT &&value)
ServiceInstance & WithArn(ArnT &&value)
const Aws::String & GetLastAttemptedDeploymentId() const
const Aws::String & GetSpec() const
void SetDeploymentStatus(DeploymentStatus value)
ServiceInstance & WithSpec(SpecT &&value)
void SetTemplateMinorVersion(TemplateMinorVersionT &&value)
void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT &&value)
ServiceInstance & WithName(NameT &&value)
ServiceInstance & WithTemplateMinorVersion(TemplateMinorVersionT &&value)
const Aws::String & GetTemplateMajorVersion() const
void SetEnvironmentName(EnvironmentNameT &&value)
ServiceInstance & WithTemplateMajorVersion(TemplateMajorVersionT &&value)
ServiceInstance & WithDeploymentStatus(DeploymentStatus value)
const Aws::String & GetLastClientRequestToken() const
const Aws::String & GetTemplateName() const
ServiceInstance & WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT &&value)
void SetTemplateName(TemplateNameT &&value)
void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
void SetLastClientRequestToken(LastClientRequestTokenT &&value)
const Aws::Utils::DateTime & GetLastDeploymentAttemptedAt() const
ServiceInstance & WithServiceName(ServiceNameT &&value)
AWS_PROTON_API ServiceInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PROTON_API ServiceInstance()=default
const Aws::Utils::DateTime & GetLastDeploymentSucceededAt() const
ServiceInstance & WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
AWS_PROTON_API ServiceInstance(Aws::Utils::Json::JsonView jsonValue)
ServiceInstance & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetEnvironmentName() const
void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
ServiceInstance & WithLastClientRequestToken(LastClientRequestTokenT &&value)
void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
ServiceInstance & WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT &&value)
DeploymentStatus GetDeploymentStatus() const
const Aws::String & GetName() const
const Aws::String & GetLastSucceededDeploymentId() const
ServiceInstance & WithTemplateName(TemplateNameT &&value)
ServiceInstance & WithDeploymentStatusMessage(DeploymentStatusMessageT &&value)
ServiceInstance & WithEnvironmentName(EnvironmentNameT &&value)
ServiceInstance & WithLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
void SetCreatedAt(CreatedAtT &&value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetServiceName() const
const Aws::String & GetTemplateMinorVersion() const
const Aws::String & GetDeploymentStatusMessage() const
void SetTemplateMajorVersion(TemplateMajorVersionT &&value)
void SetDeploymentStatusMessage(DeploymentStatusMessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue