AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ServiceInstanceSummary.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 ServiceInstanceSummary() = 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>
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>
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 ServiceInstanceSummary& 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 ServiceInstanceSummary& 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 ServiceInstanceSummary& WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) {
138 SetLastAttemptedDeploymentId(std::forward<LastAttemptedDeploymentIdT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Utils::DateTime& GetLastDeploymentAttemptedAt() const { return m_lastDeploymentAttemptedAt; }
148 inline bool LastDeploymentAttemptedAtHasBeenSet() const { return m_lastDeploymentAttemptedAtHasBeenSet; }
149 template <typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
150 void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) {
151 m_lastDeploymentAttemptedAtHasBeenSet = true;
152 m_lastDeploymentAttemptedAt = std::forward<LastDeploymentAttemptedAtT>(value);
153 }
154 template <typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
155 ServiceInstanceSummary& WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) {
156 SetLastDeploymentAttemptedAt(std::forward<LastDeploymentAttemptedAtT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Utils::DateTime& GetLastDeploymentSucceededAt() const { return m_lastDeploymentSucceededAt; }
166 inline bool LastDeploymentSucceededAtHasBeenSet() const { return m_lastDeploymentSucceededAtHasBeenSet; }
167 template <typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
168 void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) {
169 m_lastDeploymentSucceededAtHasBeenSet = true;
170 m_lastDeploymentSucceededAt = std::forward<LastDeploymentSucceededAtT>(value);
171 }
172 template <typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
173 ServiceInstanceSummary& WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) {
174 SetLastDeploymentSucceededAt(std::forward<LastDeploymentSucceededAtT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetLastSucceededDeploymentId() const { return m_lastSucceededDeploymentId; }
184 inline bool LastSucceededDeploymentIdHasBeenSet() const { return m_lastSucceededDeploymentIdHasBeenSet; }
185 template <typename LastSucceededDeploymentIdT = Aws::String>
186 void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) {
187 m_lastSucceededDeploymentIdHasBeenSet = true;
188 m_lastSucceededDeploymentId = std::forward<LastSucceededDeploymentIdT>(value);
189 }
190 template <typename LastSucceededDeploymentIdT = Aws::String>
191 ServiceInstanceSummary& WithLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) {
192 SetLastSucceededDeploymentId(std::forward<LastSucceededDeploymentIdT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::String& GetName() const { return m_name; }
202 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
203 template <typename NameT = Aws::String>
204 void SetName(NameT&& value) {
205 m_nameHasBeenSet = true;
206 m_name = std::forward<NameT>(value);
207 }
208 template <typename NameT = Aws::String>
210 SetName(std::forward<NameT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::String& GetServiceName() const { return m_serviceName; }
220 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
221 template <typename ServiceNameT = Aws::String>
222 void SetServiceName(ServiceNameT&& value) {
223 m_serviceNameHasBeenSet = true;
224 m_serviceName = std::forward<ServiceNameT>(value);
225 }
226 template <typename ServiceNameT = Aws::String>
228 SetServiceName(std::forward<ServiceNameT>(value));
229 return *this;
230 }
232
234
237 inline const Aws::String& GetTemplateMajorVersion() const { return m_templateMajorVersion; }
238 inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; }
239 template <typename TemplateMajorVersionT = Aws::String>
240 void SetTemplateMajorVersion(TemplateMajorVersionT&& value) {
241 m_templateMajorVersionHasBeenSet = true;
242 m_templateMajorVersion = std::forward<TemplateMajorVersionT>(value);
243 }
244 template <typename TemplateMajorVersionT = Aws::String>
245 ServiceInstanceSummary& WithTemplateMajorVersion(TemplateMajorVersionT&& value) {
246 SetTemplateMajorVersion(std::forward<TemplateMajorVersionT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::String& GetTemplateMinorVersion() const { return m_templateMinorVersion; }
256 inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; }
257 template <typename TemplateMinorVersionT = Aws::String>
258 void SetTemplateMinorVersion(TemplateMinorVersionT&& value) {
259 m_templateMinorVersionHasBeenSet = true;
260 m_templateMinorVersion = std::forward<TemplateMinorVersionT>(value);
261 }
262 template <typename TemplateMinorVersionT = Aws::String>
263 ServiceInstanceSummary& WithTemplateMinorVersion(TemplateMinorVersionT&& value) {
264 SetTemplateMinorVersion(std::forward<TemplateMinorVersionT>(value));
265 return *this;
266 }
268
270
273 inline const Aws::String& GetTemplateName() const { return m_templateName; }
274 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
275 template <typename TemplateNameT = Aws::String>
276 void SetTemplateName(TemplateNameT&& value) {
277 m_templateNameHasBeenSet = true;
278 m_templateName = std::forward<TemplateNameT>(value);
279 }
280 template <typename TemplateNameT = Aws::String>
281 ServiceInstanceSummary& WithTemplateName(TemplateNameT&& value) {
282 SetTemplateName(std::forward<TemplateNameT>(value));
283 return *this;
284 }
286 private:
287 Aws::String m_arn;
288
289 Aws::Utils::DateTime m_createdAt{};
290
292
293 Aws::String m_deploymentStatusMessage;
294
295 Aws::String m_environmentName;
296
297 Aws::String m_lastAttemptedDeploymentId;
298
299 Aws::Utils::DateTime m_lastDeploymentAttemptedAt{};
300
301 Aws::Utils::DateTime m_lastDeploymentSucceededAt{};
302
303 Aws::String m_lastSucceededDeploymentId;
304
305 Aws::String m_name;
306
307 Aws::String m_serviceName;
308
309 Aws::String m_templateMajorVersion;
310
311 Aws::String m_templateMinorVersion;
312
313 Aws::String m_templateName;
314 bool m_arnHasBeenSet = false;
315 bool m_createdAtHasBeenSet = false;
316 bool m_deploymentStatusHasBeenSet = false;
317 bool m_deploymentStatusMessageHasBeenSet = false;
318 bool m_environmentNameHasBeenSet = false;
319 bool m_lastAttemptedDeploymentIdHasBeenSet = false;
320 bool m_lastDeploymentAttemptedAtHasBeenSet = false;
321 bool m_lastDeploymentSucceededAtHasBeenSet = false;
322 bool m_lastSucceededDeploymentIdHasBeenSet = false;
323 bool m_nameHasBeenSet = false;
324 bool m_serviceNameHasBeenSet = false;
325 bool m_templateMajorVersionHasBeenSet = false;
326 bool m_templateMinorVersionHasBeenSet = false;
327 bool m_templateNameHasBeenSet = false;
328};
329
330} // namespace Model
331} // namespace Proton
332} // namespace Aws
const Aws::String & GetDeploymentStatusMessage() const
void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT &&value)
const Aws::String & GetLastAttemptedDeploymentId() const
ServiceInstanceSummary & WithTemplateName(TemplateNameT &&value)
void SetDeploymentStatusMessage(DeploymentStatusMessageT &&value)
ServiceInstanceSummary & WithTemplateMinorVersion(TemplateMinorVersionT &&value)
void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
void SetTemplateMinorVersion(TemplateMinorVersionT &&value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceInstanceSummary & WithCreatedAt(CreatedAtT &&value)
void SetEnvironmentName(EnvironmentNameT &&value)
const Aws::Utils::DateTime & GetLastDeploymentAttemptedAt() const
ServiceInstanceSummary & WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT &&value)
void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT &&value)
ServiceInstanceSummary & WithDeploymentStatusMessage(DeploymentStatusMessageT &&value)
const Aws::String & GetLastSucceededDeploymentId() const
ServiceInstanceSummary & WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
AWS_PROTON_API ServiceInstanceSummary()=default
ServiceInstanceSummary & WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT &&value)
ServiceInstanceSummary & WithTemplateMajorVersion(TemplateMajorVersionT &&value)
ServiceInstanceSummary & WithEnvironmentName(EnvironmentNameT &&value)
ServiceInstanceSummary & WithName(NameT &&value)
ServiceInstanceSummary & WithDeploymentStatus(DeploymentStatus value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetTemplateMajorVersion(TemplateMajorVersionT &&value)
const Aws::Utils::DateTime & GetLastDeploymentSucceededAt() const
ServiceInstanceSummary & WithLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
AWS_PROTON_API ServiceInstanceSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_PROTON_API ServiceInstanceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceInstanceSummary & WithArn(ArnT &&value)
ServiceInstanceSummary & WithServiceName(ServiceNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue