AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceInstanceSummary.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 ServiceInstanceSummary();
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 ServiceInstanceSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
53 inline ServiceInstanceSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
54 inline ServiceInstanceSummary& 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 ServiceInstanceSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
66 inline ServiceInstanceSummary& 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); }
78 inline ServiceInstanceSummary& 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); }
92 inline ServiceInstanceSummary& 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 ServiceInstanceSummary& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
105 inline ServiceInstanceSummary& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
106 inline ServiceInstanceSummary& 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); }
122
124
127 inline const Aws::Utils::DateTime& GetLastDeploymentAttemptedAt() const{ return m_lastDeploymentAttemptedAt; }
128 inline bool LastDeploymentAttemptedAtHasBeenSet() const { return m_lastDeploymentAttemptedAtHasBeenSet; }
129 inline void SetLastDeploymentAttemptedAt(const Aws::Utils::DateTime& value) { m_lastDeploymentAttemptedAtHasBeenSet = true; m_lastDeploymentAttemptedAt = value; }
130 inline void SetLastDeploymentAttemptedAt(Aws::Utils::DateTime&& value) { m_lastDeploymentAttemptedAtHasBeenSet = true; m_lastDeploymentAttemptedAt = std::move(value); }
134
136
139 inline const Aws::Utils::DateTime& GetLastDeploymentSucceededAt() const{ return m_lastDeploymentSucceededAt; }
140 inline bool LastDeploymentSucceededAtHasBeenSet() const { return m_lastDeploymentSucceededAtHasBeenSet; }
141 inline void SetLastDeploymentSucceededAt(const Aws::Utils::DateTime& value) { m_lastDeploymentSucceededAtHasBeenSet = true; m_lastDeploymentSucceededAt = value; }
142 inline void SetLastDeploymentSucceededAt(Aws::Utils::DateTime&& value) { m_lastDeploymentSucceededAtHasBeenSet = true; m_lastDeploymentSucceededAt = std::move(value); }
146
148
151 inline const Aws::String& GetLastSucceededDeploymentId() const{ return m_lastSucceededDeploymentId; }
152 inline bool LastSucceededDeploymentIdHasBeenSet() const { return m_lastSucceededDeploymentIdHasBeenSet; }
153 inline void SetLastSucceededDeploymentId(const Aws::String& value) { m_lastSucceededDeploymentIdHasBeenSet = true; m_lastSucceededDeploymentId = value; }
154 inline void SetLastSucceededDeploymentId(Aws::String&& value) { m_lastSucceededDeploymentIdHasBeenSet = true; m_lastSucceededDeploymentId = std::move(value); }
155 inline void SetLastSucceededDeploymentId(const char* value) { m_lastSucceededDeploymentIdHasBeenSet = true; m_lastSucceededDeploymentId.assign(value); }
160
162
165 inline const Aws::String& GetName() const{ return m_name; }
166 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
167 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
168 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
169 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
170 inline ServiceInstanceSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
171 inline ServiceInstanceSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
172 inline ServiceInstanceSummary& WithName(const char* value) { SetName(value); return *this;}
174
176
179 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
180 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
181 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
182 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
183 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
184 inline ServiceInstanceSummary& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
185 inline ServiceInstanceSummary& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
186 inline ServiceInstanceSummary& WithServiceName(const char* value) { SetServiceName(value); return *this;}
188
190
193 inline const Aws::String& GetTemplateMajorVersion() const{ return m_templateMajorVersion; }
194 inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; }
195 inline void SetTemplateMajorVersion(const Aws::String& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = value; }
196 inline void SetTemplateMajorVersion(Aws::String&& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = std::move(value); }
197 inline void SetTemplateMajorVersion(const char* value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion.assign(value); }
199 inline ServiceInstanceSummary& WithTemplateMajorVersion(Aws::String&& value) { SetTemplateMajorVersion(std::move(value)); return *this;}
200 inline ServiceInstanceSummary& WithTemplateMajorVersion(const char* value) { SetTemplateMajorVersion(value); return *this;}
202
204
207 inline const Aws::String& GetTemplateMinorVersion() const{ return m_templateMinorVersion; }
208 inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; }
209 inline void SetTemplateMinorVersion(const Aws::String& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = value; }
210 inline void SetTemplateMinorVersion(Aws::String&& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = std::move(value); }
211 inline void SetTemplateMinorVersion(const char* value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion.assign(value); }
213 inline ServiceInstanceSummary& WithTemplateMinorVersion(Aws::String&& value) { SetTemplateMinorVersion(std::move(value)); return *this;}
214 inline ServiceInstanceSummary& WithTemplateMinorVersion(const char* value) { SetTemplateMinorVersion(value); return *this;}
216
218
221 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
222 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
223 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
224 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
225 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
226 inline ServiceInstanceSummary& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
227 inline ServiceInstanceSummary& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
228 inline ServiceInstanceSummary& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
230 private:
231
232 Aws::String m_arn;
233 bool m_arnHasBeenSet = false;
234
235 Aws::Utils::DateTime m_createdAt;
236 bool m_createdAtHasBeenSet = false;
237
238 DeploymentStatus m_deploymentStatus;
239 bool m_deploymentStatusHasBeenSet = false;
240
241 Aws::String m_deploymentStatusMessage;
242 bool m_deploymentStatusMessageHasBeenSet = false;
243
244 Aws::String m_environmentName;
245 bool m_environmentNameHasBeenSet = false;
246
247 Aws::String m_lastAttemptedDeploymentId;
248 bool m_lastAttemptedDeploymentIdHasBeenSet = false;
249
250 Aws::Utils::DateTime m_lastDeploymentAttemptedAt;
251 bool m_lastDeploymentAttemptedAtHasBeenSet = false;
252
253 Aws::Utils::DateTime m_lastDeploymentSucceededAt;
254 bool m_lastDeploymentSucceededAtHasBeenSet = false;
255
256 Aws::String m_lastSucceededDeploymentId;
257 bool m_lastSucceededDeploymentIdHasBeenSet = false;
258
259 Aws::String m_name;
260 bool m_nameHasBeenSet = false;
261
262 Aws::String m_serviceName;
263 bool m_serviceNameHasBeenSet = false;
264
265 Aws::String m_templateMajorVersion;
266 bool m_templateMajorVersionHasBeenSet = false;
267
268 Aws::String m_templateMinorVersion;
269 bool m_templateMinorVersionHasBeenSet = false;
270
271 Aws::String m_templateName;
272 bool m_templateNameHasBeenSet = false;
273 };
274
275} // namespace Model
276} // namespace Proton
277} // namespace Aws
void SetLastAttemptedDeploymentId(const Aws::String &value)
void SetEnvironmentName(const Aws::String &value)
const Aws::String & GetDeploymentStatusMessage() const
ServiceInstanceSummary & WithArn(Aws::String &&value)
void SetLastSucceededDeploymentId(const Aws::String &value)
void SetLastDeploymentAttemptedAt(Aws::Utils::DateTime &&value)
ServiceInstanceSummary & WithLastAttemptedDeploymentId(Aws::String &&value)
ServiceInstanceSummary & WithEnvironmentName(Aws::String &&value)
ServiceInstanceSummary & WithLastSucceededDeploymentId(Aws::String &&value)
ServiceInstanceSummary & WithLastDeploymentAttemptedAt(Aws::Utils::DateTime &&value)
ServiceInstanceSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
ServiceInstanceSummary & WithServiceName(const Aws::String &value)
ServiceInstanceSummary & WithEnvironmentName(const Aws::String &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
ServiceInstanceSummary & WithTemplateMajorVersion(const Aws::String &value)
void SetTemplateMajorVersion(const Aws::String &value)
void SetTemplateMinorVersion(const Aws::String &value)
void SetDeploymentStatusMessage(const Aws::String &value)
const Aws::String & GetLastAttemptedDeploymentId() const
ServiceInstanceSummary & WithDeploymentStatusMessage(Aws::String &&value)
ServiceInstanceSummary & WithServiceName(const char *value)
ServiceInstanceSummary & WithTemplateMinorVersion(const char *value)
ServiceInstanceSummary & WithLastAttemptedDeploymentId(const Aws::String &value)
ServiceInstanceSummary & WithTemplateMajorVersion(const char *value)
ServiceInstanceSummary & WithTemplateName(const char *value)
ServiceInstanceSummary & WithLastSucceededDeploymentId(const Aws::String &value)
ServiceInstanceSummary & WithLastAttemptedDeploymentId(const char *value)
ServiceInstanceSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceInstanceSummary & WithLastDeploymentSucceededAt(const Aws::Utils::DateTime &value)
ServiceInstanceSummary & WithName(const char *value)
ServiceInstanceSummary & WithDeploymentStatusMessage(const char *value)
ServiceInstanceSummary & WithArn(const char *value)
void SetLastDeploymentSucceededAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetLastDeploymentAttemptedAt() const
ServiceInstanceSummary & WithTemplateName(const Aws::String &value)
ServiceInstanceSummary & WithTemplateMinorVersion(const Aws::String &value)
ServiceInstanceSummary & WithLastDeploymentSucceededAt(Aws::Utils::DateTime &&value)
ServiceInstanceSummary & WithEnvironmentName(const char *value)
ServiceInstanceSummary & WithDeploymentStatus(const DeploymentStatus &value)
const Aws::String & GetLastSucceededDeploymentId() const
ServiceInstanceSummary & WithTemplateName(Aws::String &&value)
void SetLastDeploymentSucceededAt(Aws::Utils::DateTime &&value)
ServiceInstanceSummary & WithDeploymentStatusMessage(const Aws::String &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
ServiceInstanceSummary & WithTemplateMinorVersion(Aws::String &&value)
ServiceInstanceSummary & WithArn(const Aws::String &value)
ServiceInstanceSummary & WithServiceName(Aws::String &&value)
const DeploymentStatus & GetDeploymentStatus() const
void SetDeploymentStatus(const DeploymentStatus &value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Utils::DateTime & GetLastDeploymentSucceededAt() const
ServiceInstanceSummary & WithTemplateMajorVersion(Aws::String &&value)
void SetDeploymentStatus(DeploymentStatus &&value)
ServiceInstanceSummary & WithName(const Aws::String &value)
AWS_PROTON_API ServiceInstanceSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_PROTON_API ServiceInstanceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceInstanceSummary & WithDeploymentStatus(DeploymentStatus &&value)
void SetLastDeploymentAttemptedAt(const Aws::Utils::DateTime &value)
ServiceInstanceSummary & WithLastDeploymentAttemptedAt(const Aws::Utils::DateTime &value)
ServiceInstanceSummary & WithLastSucceededDeploymentId(const char *value)
ServiceInstanceSummary & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue