AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EnvironmentSummary.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 <aws/proton/model/Provisioning.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Proton
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_PROTON_API EnvironmentSummary() = default;
41 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetArn() const { return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 template<typename ArnT = Aws::String>
51 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
52 template<typename ArnT = Aws::String>
53 EnvironmentSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
55
57
67 inline const Aws::String& GetComponentRoleArn() const { return m_componentRoleArn; }
68 inline bool ComponentRoleArnHasBeenSet() const { return m_componentRoleArnHasBeenSet; }
69 template<typename ComponentRoleArnT = Aws::String>
70 void SetComponentRoleArn(ComponentRoleArnT&& value) { m_componentRoleArnHasBeenSet = true; m_componentRoleArn = std::forward<ComponentRoleArnT>(value); }
71 template<typename ComponentRoleArnT = Aws::String>
72 EnvironmentSummary& WithComponentRoleArn(ComponentRoleArnT&& value) { SetComponentRoleArn(std::forward<ComponentRoleArnT>(value)); return *this;}
74
76
79 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
80 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
81 template<typename CreatedAtT = Aws::Utils::DateTime>
82 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
83 template<typename CreatedAtT = Aws::Utils::DateTime>
84 EnvironmentSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
86
88
91 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
92 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
93 inline void SetDeploymentStatus(DeploymentStatus value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = value; }
96
98
101 inline const Aws::String& GetDeploymentStatusMessage() const { return m_deploymentStatusMessage; }
102 inline bool DeploymentStatusMessageHasBeenSet() const { return m_deploymentStatusMessageHasBeenSet; }
103 template<typename DeploymentStatusMessageT = Aws::String>
104 void SetDeploymentStatusMessage(DeploymentStatusMessageT&& value) { m_deploymentStatusMessageHasBeenSet = true; m_deploymentStatusMessage = std::forward<DeploymentStatusMessageT>(value); }
105 template<typename DeploymentStatusMessageT = Aws::String>
106 EnvironmentSummary& WithDeploymentStatusMessage(DeploymentStatusMessageT&& value) { SetDeploymentStatusMessage(std::forward<DeploymentStatusMessageT>(value)); return *this;}
108
110
113 inline const Aws::String& GetDescription() const { return m_description; }
114 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
115 template<typename DescriptionT = Aws::String>
116 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
117 template<typename DescriptionT = Aws::String>
118 EnvironmentSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
120
122
126 inline const Aws::String& GetEnvironmentAccountConnectionId() const { return m_environmentAccountConnectionId; }
127 inline bool EnvironmentAccountConnectionIdHasBeenSet() const { return m_environmentAccountConnectionIdHasBeenSet; }
128 template<typename EnvironmentAccountConnectionIdT = Aws::String>
129 void SetEnvironmentAccountConnectionId(EnvironmentAccountConnectionIdT&& value) { m_environmentAccountConnectionIdHasBeenSet = true; m_environmentAccountConnectionId = std::forward<EnvironmentAccountConnectionIdT>(value); }
130 template<typename EnvironmentAccountConnectionIdT = Aws::String>
131 EnvironmentSummary& WithEnvironmentAccountConnectionId(EnvironmentAccountConnectionIdT&& value) { SetEnvironmentAccountConnectionId(std::forward<EnvironmentAccountConnectionIdT>(value)); return *this;}
133
135
139 inline const Aws::String& GetEnvironmentAccountId() const { return m_environmentAccountId; }
140 inline bool EnvironmentAccountIdHasBeenSet() const { return m_environmentAccountIdHasBeenSet; }
141 template<typename EnvironmentAccountIdT = Aws::String>
142 void SetEnvironmentAccountId(EnvironmentAccountIdT&& value) { m_environmentAccountIdHasBeenSet = true; m_environmentAccountId = std::forward<EnvironmentAccountIdT>(value); }
143 template<typename EnvironmentAccountIdT = Aws::String>
144 EnvironmentSummary& WithEnvironmentAccountId(EnvironmentAccountIdT&& value) { SetEnvironmentAccountId(std::forward<EnvironmentAccountIdT>(value)); return *this;}
146
148
151 inline const Aws::String& GetLastAttemptedDeploymentId() const { return m_lastAttemptedDeploymentId; }
152 inline bool LastAttemptedDeploymentIdHasBeenSet() const { return m_lastAttemptedDeploymentIdHasBeenSet; }
153 template<typename LastAttemptedDeploymentIdT = Aws::String>
154 void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) { m_lastAttemptedDeploymentIdHasBeenSet = true; m_lastAttemptedDeploymentId = std::forward<LastAttemptedDeploymentIdT>(value); }
155 template<typename LastAttemptedDeploymentIdT = Aws::String>
156 EnvironmentSummary& WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) { SetLastAttemptedDeploymentId(std::forward<LastAttemptedDeploymentIdT>(value)); return *this;}
158
160
163 inline const Aws::Utils::DateTime& GetLastDeploymentAttemptedAt() const { return m_lastDeploymentAttemptedAt; }
164 inline bool LastDeploymentAttemptedAtHasBeenSet() const { return m_lastDeploymentAttemptedAtHasBeenSet; }
165 template<typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
166 void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) { m_lastDeploymentAttemptedAtHasBeenSet = true; m_lastDeploymentAttemptedAt = std::forward<LastDeploymentAttemptedAtT>(value); }
167 template<typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
168 EnvironmentSummary& WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) { SetLastDeploymentAttemptedAt(std::forward<LastDeploymentAttemptedAtT>(value)); return *this;}
170
172
175 inline const Aws::Utils::DateTime& GetLastDeploymentSucceededAt() const { return m_lastDeploymentSucceededAt; }
176 inline bool LastDeploymentSucceededAtHasBeenSet() const { return m_lastDeploymentSucceededAtHasBeenSet; }
177 template<typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
178 void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) { m_lastDeploymentSucceededAtHasBeenSet = true; m_lastDeploymentSucceededAt = std::forward<LastDeploymentSucceededAtT>(value); }
179 template<typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
180 EnvironmentSummary& WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) { SetLastDeploymentSucceededAt(std::forward<LastDeploymentSucceededAtT>(value)); return *this;}
182
184
187 inline const Aws::String& GetLastSucceededDeploymentId() const { return m_lastSucceededDeploymentId; }
188 inline bool LastSucceededDeploymentIdHasBeenSet() const { return m_lastSucceededDeploymentIdHasBeenSet; }
189 template<typename LastSucceededDeploymentIdT = Aws::String>
190 void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) { m_lastSucceededDeploymentIdHasBeenSet = true; m_lastSucceededDeploymentId = std::forward<LastSucceededDeploymentIdT>(value); }
191 template<typename LastSucceededDeploymentIdT = Aws::String>
192 EnvironmentSummary& WithLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) { SetLastSucceededDeploymentId(std::forward<LastSucceededDeploymentIdT>(value)); return *this;}
194
196
199 inline const Aws::String& GetName() const { return m_name; }
200 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
201 template<typename NameT = Aws::String>
202 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
203 template<typename NameT = Aws::String>
204 EnvironmentSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
206
208
212 inline const Aws::String& GetProtonServiceRoleArn() const { return m_protonServiceRoleArn; }
213 inline bool ProtonServiceRoleArnHasBeenSet() const { return m_protonServiceRoleArnHasBeenSet; }
214 template<typename ProtonServiceRoleArnT = Aws::String>
215 void SetProtonServiceRoleArn(ProtonServiceRoleArnT&& value) { m_protonServiceRoleArnHasBeenSet = true; m_protonServiceRoleArn = std::forward<ProtonServiceRoleArnT>(value); }
216 template<typename ProtonServiceRoleArnT = Aws::String>
217 EnvironmentSummary& WithProtonServiceRoleArn(ProtonServiceRoleArnT&& value) { SetProtonServiceRoleArn(std::forward<ProtonServiceRoleArnT>(value)); return *this;}
219
221
225 inline Provisioning GetProvisioning() const { return m_provisioning; }
226 inline bool ProvisioningHasBeenSet() const { return m_provisioningHasBeenSet; }
227 inline void SetProvisioning(Provisioning value) { m_provisioningHasBeenSet = true; m_provisioning = value; }
228 inline EnvironmentSummary& WithProvisioning(Provisioning value) { SetProvisioning(value); return *this;}
230
232
235 inline const Aws::String& GetTemplateMajorVersion() const { return m_templateMajorVersion; }
236 inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; }
237 template<typename TemplateMajorVersionT = Aws::String>
238 void SetTemplateMajorVersion(TemplateMajorVersionT&& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = std::forward<TemplateMajorVersionT>(value); }
239 template<typename TemplateMajorVersionT = Aws::String>
240 EnvironmentSummary& WithTemplateMajorVersion(TemplateMajorVersionT&& value) { SetTemplateMajorVersion(std::forward<TemplateMajorVersionT>(value)); return *this;}
242
244
247 inline const Aws::String& GetTemplateMinorVersion() const { return m_templateMinorVersion; }
248 inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; }
249 template<typename TemplateMinorVersionT = Aws::String>
250 void SetTemplateMinorVersion(TemplateMinorVersionT&& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = std::forward<TemplateMinorVersionT>(value); }
251 template<typename TemplateMinorVersionT = Aws::String>
252 EnvironmentSummary& WithTemplateMinorVersion(TemplateMinorVersionT&& value) { SetTemplateMinorVersion(std::forward<TemplateMinorVersionT>(value)); return *this;}
254
256
259 inline const Aws::String& GetTemplateName() const { return m_templateName; }
260 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
261 template<typename TemplateNameT = Aws::String>
262 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
263 template<typename TemplateNameT = Aws::String>
264 EnvironmentSummary& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
266 private:
267
268 Aws::String m_arn;
269 bool m_arnHasBeenSet = false;
270
271 Aws::String m_componentRoleArn;
272 bool m_componentRoleArnHasBeenSet = false;
273
274 Aws::Utils::DateTime m_createdAt{};
275 bool m_createdAtHasBeenSet = false;
276
278 bool m_deploymentStatusHasBeenSet = false;
279
280 Aws::String m_deploymentStatusMessage;
281 bool m_deploymentStatusMessageHasBeenSet = false;
282
283 Aws::String m_description;
284 bool m_descriptionHasBeenSet = false;
285
286 Aws::String m_environmentAccountConnectionId;
287 bool m_environmentAccountConnectionIdHasBeenSet = false;
288
289 Aws::String m_environmentAccountId;
290 bool m_environmentAccountIdHasBeenSet = false;
291
292 Aws::String m_lastAttemptedDeploymentId;
293 bool m_lastAttemptedDeploymentIdHasBeenSet = false;
294
295 Aws::Utils::DateTime m_lastDeploymentAttemptedAt{};
296 bool m_lastDeploymentAttemptedAtHasBeenSet = false;
297
298 Aws::Utils::DateTime m_lastDeploymentSucceededAt{};
299 bool m_lastDeploymentSucceededAtHasBeenSet = false;
300
301 Aws::String m_lastSucceededDeploymentId;
302 bool m_lastSucceededDeploymentIdHasBeenSet = false;
303
304 Aws::String m_name;
305 bool m_nameHasBeenSet = false;
306
307 Aws::String m_protonServiceRoleArn;
308 bool m_protonServiceRoleArnHasBeenSet = false;
309
310 Provisioning m_provisioning{Provisioning::NOT_SET};
311 bool m_provisioningHasBeenSet = false;
312
313 Aws::String m_templateMajorVersion;
314 bool m_templateMajorVersionHasBeenSet = false;
315
316 Aws::String m_templateMinorVersion;
317 bool m_templateMinorVersionHasBeenSet = false;
318
319 Aws::String m_templateName;
320 bool m_templateNameHasBeenSet = false;
321 };
322
323} // namespace Model
324} // namespace Proton
325} // namespace Aws
EnvironmentSummary & WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT &&value)
const Aws::Utils::DateTime & GetLastDeploymentSucceededAt() const
DeploymentStatus GetDeploymentStatus() const
EnvironmentSummary & WithArn(ArnT &&value)
EnvironmentSummary & WithCreatedAt(CreatedAtT &&value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTemplateMajorVersion(TemplateMajorVersionT &&value)
const Aws::String & GetComponentRoleArn() const
void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
const Aws::String & GetDeploymentStatusMessage() const
EnvironmentSummary & WithEnvironmentAccountConnectionId(EnvironmentAccountConnectionIdT &&value)
void SetTemplateName(TemplateNameT &&value)
const Aws::String & GetLastSucceededDeploymentId() const
const Aws::Utils::DateTime & GetLastDeploymentAttemptedAt() const
const Aws::String & GetLastAttemptedDeploymentId() const
EnvironmentSummary & WithDeploymentStatusMessage(DeploymentStatusMessageT &&value)
EnvironmentSummary & WithComponentRoleArn(ComponentRoleArnT &&value)
const Aws::String & GetTemplateMajorVersion() const
void SetEnvironmentAccountConnectionId(EnvironmentAccountConnectionIdT &&value)
EnvironmentSummary & WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT &&value)
const Aws::String & GetTemplateName() const
EnvironmentSummary & WithProtonServiceRoleArn(ProtonServiceRoleArnT &&value)
EnvironmentSummary & WithProvisioning(Provisioning value)
void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
AWS_PROTON_API EnvironmentSummary()=default
void SetDeploymentStatusMessage(DeploymentStatusMessageT &&value)
EnvironmentSummary & WithDeploymentStatus(DeploymentStatus value)
void SetProtonServiceRoleArn(ProtonServiceRoleArnT &&value)
EnvironmentSummary & WithTemplateMinorVersion(TemplateMinorVersionT &&value)
void SetDeploymentStatus(DeploymentStatus value)
void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT &&value)
EnvironmentSummary & WithEnvironmentAccountId(EnvironmentAccountIdT &&value)
void SetEnvironmentAccountId(EnvironmentAccountIdT &&value)
EnvironmentSummary & WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
const Aws::String & GetTemplateMinorVersion() const
void SetTemplateMinorVersion(TemplateMinorVersionT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
EnvironmentSummary & WithTemplateMajorVersion(TemplateMajorVersionT &&value)
EnvironmentSummary & WithTemplateName(TemplateNameT &&value)
EnvironmentSummary & WithName(NameT &&value)
const Aws::String & GetEnvironmentAccountId() const
AWS_PROTON_API EnvironmentSummary(Aws::Utils::Json::JsonView jsonValue)
void SetComponentRoleArn(ComponentRoleArnT &&value)
EnvironmentSummary & WithLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
EnvironmentSummary & WithDescription(DescriptionT &&value)
AWS_PROTON_API EnvironmentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
const Aws::String & GetEnvironmentAccountConnectionId() const
void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetProtonServiceRoleArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue