AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
51 template<typename ArnT = Aws::String>
52 ServiceInstance& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
63 template<typename CreatedAtT = Aws::Utils::DateTime>
64 ServiceInstance& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
66
68
71 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
72 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
73 inline void SetDeploymentStatus(DeploymentStatus value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = value; }
76
78
81 inline const Aws::String& GetDeploymentStatusMessage() const { return m_deploymentStatusMessage; }
82 inline bool DeploymentStatusMessageHasBeenSet() const { return m_deploymentStatusMessageHasBeenSet; }
83 template<typename DeploymentStatusMessageT = Aws::String>
84 void SetDeploymentStatusMessage(DeploymentStatusMessageT&& value) { m_deploymentStatusMessageHasBeenSet = true; m_deploymentStatusMessage = std::forward<DeploymentStatusMessageT>(value); }
85 template<typename DeploymentStatusMessageT = Aws::String>
86 ServiceInstance& WithDeploymentStatusMessage(DeploymentStatusMessageT&& value) { SetDeploymentStatusMessage(std::forward<DeploymentStatusMessageT>(value)); return *this;}
88
90
93 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
94 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
95 template<typename EnvironmentNameT = Aws::String>
96 void SetEnvironmentName(EnvironmentNameT&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::forward<EnvironmentNameT>(value); }
97 template<typename EnvironmentNameT = Aws::String>
98 ServiceInstance& WithEnvironmentName(EnvironmentNameT&& value) { SetEnvironmentName(std::forward<EnvironmentNameT>(value)); return *this;}
100
102
105 inline const Aws::String& GetLastAttemptedDeploymentId() const { return m_lastAttemptedDeploymentId; }
106 inline bool LastAttemptedDeploymentIdHasBeenSet() const { return m_lastAttemptedDeploymentIdHasBeenSet; }
107 template<typename LastAttemptedDeploymentIdT = Aws::String>
108 void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) { m_lastAttemptedDeploymentIdHasBeenSet = true; m_lastAttemptedDeploymentId = std::forward<LastAttemptedDeploymentIdT>(value); }
109 template<typename LastAttemptedDeploymentIdT = Aws::String>
110 ServiceInstance& WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) { SetLastAttemptedDeploymentId(std::forward<LastAttemptedDeploymentIdT>(value)); return *this;}
112
114
117 inline const Aws::String& GetLastClientRequestToken() const { return m_lastClientRequestToken; }
118 inline bool LastClientRequestTokenHasBeenSet() const { return m_lastClientRequestTokenHasBeenSet; }
119 template<typename LastClientRequestTokenT = Aws::String>
120 void SetLastClientRequestToken(LastClientRequestTokenT&& value) { m_lastClientRequestTokenHasBeenSet = true; m_lastClientRequestToken = std::forward<LastClientRequestTokenT>(value); }
121 template<typename LastClientRequestTokenT = Aws::String>
122 ServiceInstance& WithLastClientRequestToken(LastClientRequestTokenT&& value) { SetLastClientRequestToken(std::forward<LastClientRequestTokenT>(value)); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetLastDeploymentAttemptedAt() const { return m_lastDeploymentAttemptedAt; }
130 inline bool LastDeploymentAttemptedAtHasBeenSet() const { return m_lastDeploymentAttemptedAtHasBeenSet; }
131 template<typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
132 void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) { m_lastDeploymentAttemptedAtHasBeenSet = true; m_lastDeploymentAttemptedAt = std::forward<LastDeploymentAttemptedAtT>(value); }
133 template<typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
134 ServiceInstance& WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) { SetLastDeploymentAttemptedAt(std::forward<LastDeploymentAttemptedAtT>(value)); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetLastDeploymentSucceededAt() const { return m_lastDeploymentSucceededAt; }
142 inline bool LastDeploymentSucceededAtHasBeenSet() const { return m_lastDeploymentSucceededAtHasBeenSet; }
143 template<typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
144 void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) { m_lastDeploymentSucceededAtHasBeenSet = true; m_lastDeploymentSucceededAt = std::forward<LastDeploymentSucceededAtT>(value); }
145 template<typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
146 ServiceInstance& WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) { SetLastDeploymentSucceededAt(std::forward<LastDeploymentSucceededAtT>(value)); return *this;}
148
150
153 inline const Aws::String& GetLastSucceededDeploymentId() const { return m_lastSucceededDeploymentId; }
154 inline bool LastSucceededDeploymentIdHasBeenSet() const { return m_lastSucceededDeploymentIdHasBeenSet; }
155 template<typename LastSucceededDeploymentIdT = Aws::String>
156 void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) { m_lastSucceededDeploymentIdHasBeenSet = true; m_lastSucceededDeploymentId = std::forward<LastSucceededDeploymentIdT>(value); }
157 template<typename LastSucceededDeploymentIdT = Aws::String>
158 ServiceInstance& WithLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) { SetLastSucceededDeploymentId(std::forward<LastSucceededDeploymentIdT>(value)); return *this;}
160
162
165 inline const Aws::String& GetName() const { return m_name; }
166 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
167 template<typename NameT = Aws::String>
168 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
169 template<typename NameT = Aws::String>
170 ServiceInstance& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
172
174
177 inline const Aws::String& GetServiceName() const { return m_serviceName; }
178 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
179 template<typename ServiceNameT = Aws::String>
180 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
181 template<typename ServiceNameT = Aws::String>
182 ServiceInstance& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
184
186
189 inline const Aws::String& GetSpec() const { return m_spec; }
190 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
191 template<typename SpecT = Aws::String>
192 void SetSpec(SpecT&& value) { m_specHasBeenSet = true; m_spec = std::forward<SpecT>(value); }
193 template<typename SpecT = Aws::String>
194 ServiceInstance& WithSpec(SpecT&& value) { SetSpec(std::forward<SpecT>(value)); return *this;}
196
198
202 inline const Aws::String& GetTemplateMajorVersion() const { return m_templateMajorVersion; }
203 inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; }
204 template<typename TemplateMajorVersionT = Aws::String>
205 void SetTemplateMajorVersion(TemplateMajorVersionT&& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = std::forward<TemplateMajorVersionT>(value); }
206 template<typename TemplateMajorVersionT = Aws::String>
207 ServiceInstance& WithTemplateMajorVersion(TemplateMajorVersionT&& value) { SetTemplateMajorVersion(std::forward<TemplateMajorVersionT>(value)); return *this;}
209
211
215 inline const Aws::String& GetTemplateMinorVersion() const { return m_templateMinorVersion; }
216 inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; }
217 template<typename TemplateMinorVersionT = Aws::String>
218 void SetTemplateMinorVersion(TemplateMinorVersionT&& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = std::forward<TemplateMinorVersionT>(value); }
219 template<typename TemplateMinorVersionT = Aws::String>
220 ServiceInstance& WithTemplateMinorVersion(TemplateMinorVersionT&& value) { SetTemplateMinorVersion(std::forward<TemplateMinorVersionT>(value)); return *this;}
222
224
228 inline const Aws::String& GetTemplateName() const { return m_templateName; }
229 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
230 template<typename TemplateNameT = Aws::String>
231 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
232 template<typename TemplateNameT = Aws::String>
233 ServiceInstance& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
235 private:
236
237 Aws::String m_arn;
238 bool m_arnHasBeenSet = false;
239
240 Aws::Utils::DateTime m_createdAt{};
241 bool m_createdAtHasBeenSet = false;
242
244 bool m_deploymentStatusHasBeenSet = false;
245
246 Aws::String m_deploymentStatusMessage;
247 bool m_deploymentStatusMessageHasBeenSet = false;
248
249 Aws::String m_environmentName;
250 bool m_environmentNameHasBeenSet = false;
251
252 Aws::String m_lastAttemptedDeploymentId;
253 bool m_lastAttemptedDeploymentIdHasBeenSet = false;
254
255 Aws::String m_lastClientRequestToken;
256 bool m_lastClientRequestTokenHasBeenSet = false;
257
258 Aws::Utils::DateTime m_lastDeploymentAttemptedAt{};
259 bool m_lastDeploymentAttemptedAtHasBeenSet = false;
260
261 Aws::Utils::DateTime m_lastDeploymentSucceededAt{};
262 bool m_lastDeploymentSucceededAtHasBeenSet = false;
263
264 Aws::String m_lastSucceededDeploymentId;
265 bool m_lastSucceededDeploymentIdHasBeenSet = false;
266
267 Aws::String m_name;
268 bool m_nameHasBeenSet = false;
269
270 Aws::String m_serviceName;
271 bool m_serviceNameHasBeenSet = false;
272
273 Aws::String m_spec;
274 bool m_specHasBeenSet = false;
275
276 Aws::String m_templateMajorVersion;
277 bool m_templateMajorVersionHasBeenSet = false;
278
279 Aws::String m_templateMinorVersion;
280 bool m_templateMinorVersionHasBeenSet = false;
281
282 Aws::String m_templateName;
283 bool m_templateNameHasBeenSet = false;
284 };
285
286} // namespace Model
287} // namespace Proton
288} // 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