AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = 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 ServiceInstanceSummary& 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 ServiceInstanceSummary& 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 ServiceInstanceSummary& 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 ServiceInstanceSummary& 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 ServiceInstanceSummary& WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) { SetLastAttemptedDeploymentId(std::forward<LastAttemptedDeploymentIdT>(value)); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetLastDeploymentAttemptedAt() const { return m_lastDeploymentAttemptedAt; }
118 inline bool LastDeploymentAttemptedAtHasBeenSet() const { return m_lastDeploymentAttemptedAtHasBeenSet; }
119 template<typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
120 void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) { m_lastDeploymentAttemptedAtHasBeenSet = true; m_lastDeploymentAttemptedAt = std::forward<LastDeploymentAttemptedAtT>(value); }
121 template<typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
122 ServiceInstanceSummary& WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) { SetLastDeploymentAttemptedAt(std::forward<LastDeploymentAttemptedAtT>(value)); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetLastDeploymentSucceededAt() const { return m_lastDeploymentSucceededAt; }
130 inline bool LastDeploymentSucceededAtHasBeenSet() const { return m_lastDeploymentSucceededAtHasBeenSet; }
131 template<typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
132 void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) { m_lastDeploymentSucceededAtHasBeenSet = true; m_lastDeploymentSucceededAt = std::forward<LastDeploymentSucceededAtT>(value); }
133 template<typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
134 ServiceInstanceSummary& WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) { SetLastDeploymentSucceededAt(std::forward<LastDeploymentSucceededAtT>(value)); return *this;}
136
138
141 inline const Aws::String& GetLastSucceededDeploymentId() const { return m_lastSucceededDeploymentId; }
142 inline bool LastSucceededDeploymentIdHasBeenSet() const { return m_lastSucceededDeploymentIdHasBeenSet; }
143 template<typename LastSucceededDeploymentIdT = Aws::String>
144 void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) { m_lastSucceededDeploymentIdHasBeenSet = true; m_lastSucceededDeploymentId = std::forward<LastSucceededDeploymentIdT>(value); }
145 template<typename LastSucceededDeploymentIdT = Aws::String>
146 ServiceInstanceSummary& WithLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) { SetLastSucceededDeploymentId(std::forward<LastSucceededDeploymentIdT>(value)); return *this;}
148
150
153 inline const Aws::String& GetName() const { return m_name; }
154 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
155 template<typename NameT = Aws::String>
156 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
157 template<typename NameT = Aws::String>
158 ServiceInstanceSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
160
162
165 inline const Aws::String& GetServiceName() const { return m_serviceName; }
166 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
167 template<typename ServiceNameT = Aws::String>
168 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
169 template<typename ServiceNameT = Aws::String>
170 ServiceInstanceSummary& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
172
174
177 inline const Aws::String& GetTemplateMajorVersion() const { return m_templateMajorVersion; }
178 inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; }
179 template<typename TemplateMajorVersionT = Aws::String>
180 void SetTemplateMajorVersion(TemplateMajorVersionT&& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = std::forward<TemplateMajorVersionT>(value); }
181 template<typename TemplateMajorVersionT = Aws::String>
182 ServiceInstanceSummary& WithTemplateMajorVersion(TemplateMajorVersionT&& value) { SetTemplateMajorVersion(std::forward<TemplateMajorVersionT>(value)); return *this;}
184
186
189 inline const Aws::String& GetTemplateMinorVersion() const { return m_templateMinorVersion; }
190 inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; }
191 template<typename TemplateMinorVersionT = Aws::String>
192 void SetTemplateMinorVersion(TemplateMinorVersionT&& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = std::forward<TemplateMinorVersionT>(value); }
193 template<typename TemplateMinorVersionT = Aws::String>
194 ServiceInstanceSummary& WithTemplateMinorVersion(TemplateMinorVersionT&& value) { SetTemplateMinorVersion(std::forward<TemplateMinorVersionT>(value)); return *this;}
196
198
201 inline const Aws::String& GetTemplateName() const { return m_templateName; }
202 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
203 template<typename TemplateNameT = Aws::String>
204 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
205 template<typename TemplateNameT = Aws::String>
206 ServiceInstanceSummary& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
208 private:
209
210 Aws::String m_arn;
211 bool m_arnHasBeenSet = false;
212
213 Aws::Utils::DateTime m_createdAt{};
214 bool m_createdAtHasBeenSet = false;
215
217 bool m_deploymentStatusHasBeenSet = false;
218
219 Aws::String m_deploymentStatusMessage;
220 bool m_deploymentStatusMessageHasBeenSet = false;
221
222 Aws::String m_environmentName;
223 bool m_environmentNameHasBeenSet = false;
224
225 Aws::String m_lastAttemptedDeploymentId;
226 bool m_lastAttemptedDeploymentIdHasBeenSet = false;
227
228 Aws::Utils::DateTime m_lastDeploymentAttemptedAt{};
229 bool m_lastDeploymentAttemptedAtHasBeenSet = false;
230
231 Aws::Utils::DateTime m_lastDeploymentSucceededAt{};
232 bool m_lastDeploymentSucceededAtHasBeenSet = false;
233
234 Aws::String m_lastSucceededDeploymentId;
235 bool m_lastSucceededDeploymentIdHasBeenSet = false;
236
237 Aws::String m_name;
238 bool m_nameHasBeenSet = false;
239
240 Aws::String m_serviceName;
241 bool m_serviceNameHasBeenSet = false;
242
243 Aws::String m_templateMajorVersion;
244 bool m_templateMajorVersionHasBeenSet = false;
245
246 Aws::String m_templateMinorVersion;
247 bool m_templateMinorVersionHasBeenSet = false;
248
249 Aws::String m_templateName;
250 bool m_templateNameHasBeenSet = false;
251 };
252
253} // namespace Model
254} // namespace Proton
255} // 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