AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Environment.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 <aws/proton/model/RepositoryBranch.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Proton
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_PROTON_API Environment() = default;
40 AWS_PROTON_API Environment(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetArn() const { return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 template<typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
53 template<typename ArnT = Aws::String>
54 Environment& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
56
58
62 inline const Aws::String& GetCodebuildRoleArn() const { return m_codebuildRoleArn; }
63 inline bool CodebuildRoleArnHasBeenSet() const { return m_codebuildRoleArnHasBeenSet; }
64 template<typename CodebuildRoleArnT = Aws::String>
65 void SetCodebuildRoleArn(CodebuildRoleArnT&& value) { m_codebuildRoleArnHasBeenSet = true; m_codebuildRoleArn = std::forward<CodebuildRoleArnT>(value); }
66 template<typename CodebuildRoleArnT = Aws::String>
67 Environment& WithCodebuildRoleArn(CodebuildRoleArnT&& value) { SetCodebuildRoleArn(std::forward<CodebuildRoleArnT>(value)); return *this;}
69
71
81 inline const Aws::String& GetComponentRoleArn() const { return m_componentRoleArn; }
82 inline bool ComponentRoleArnHasBeenSet() const { return m_componentRoleArnHasBeenSet; }
83 template<typename ComponentRoleArnT = Aws::String>
84 void SetComponentRoleArn(ComponentRoleArnT&& value) { m_componentRoleArnHasBeenSet = true; m_componentRoleArn = std::forward<ComponentRoleArnT>(value); }
85 template<typename ComponentRoleArnT = Aws::String>
86 Environment& WithComponentRoleArn(ComponentRoleArnT&& value) { SetComponentRoleArn(std::forward<ComponentRoleArnT>(value)); return *this;}
88
90
93 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
94 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
95 template<typename CreatedAtT = Aws::Utils::DateTime>
96 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
97 template<typename CreatedAtT = Aws::Utils::DateTime>
98 Environment& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
100
102
105 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
106 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
107 inline void SetDeploymentStatus(DeploymentStatus value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = value; }
110
112
115 inline const Aws::String& GetDeploymentStatusMessage() const { return m_deploymentStatusMessage; }
116 inline bool DeploymentStatusMessageHasBeenSet() const { return m_deploymentStatusMessageHasBeenSet; }
117 template<typename DeploymentStatusMessageT = Aws::String>
118 void SetDeploymentStatusMessage(DeploymentStatusMessageT&& value) { m_deploymentStatusMessageHasBeenSet = true; m_deploymentStatusMessage = std::forward<DeploymentStatusMessageT>(value); }
119 template<typename DeploymentStatusMessageT = Aws::String>
120 Environment& WithDeploymentStatusMessage(DeploymentStatusMessageT&& value) { SetDeploymentStatusMessage(std::forward<DeploymentStatusMessageT>(value)); return *this;}
122
124
127 inline const Aws::String& GetDescription() const { return m_description; }
128 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
129 template<typename DescriptionT = Aws::String>
130 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
131 template<typename DescriptionT = Aws::String>
132 Environment& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
134
136
140 inline const Aws::String& GetEnvironmentAccountConnectionId() const { return m_environmentAccountConnectionId; }
141 inline bool EnvironmentAccountConnectionIdHasBeenSet() const { return m_environmentAccountConnectionIdHasBeenSet; }
142 template<typename EnvironmentAccountConnectionIdT = Aws::String>
143 void SetEnvironmentAccountConnectionId(EnvironmentAccountConnectionIdT&& value) { m_environmentAccountConnectionIdHasBeenSet = true; m_environmentAccountConnectionId = std::forward<EnvironmentAccountConnectionIdT>(value); }
144 template<typename EnvironmentAccountConnectionIdT = Aws::String>
145 Environment& WithEnvironmentAccountConnectionId(EnvironmentAccountConnectionIdT&& value) { SetEnvironmentAccountConnectionId(std::forward<EnvironmentAccountConnectionIdT>(value)); return *this;}
147
149
153 inline const Aws::String& GetEnvironmentAccountId() const { return m_environmentAccountId; }
154 inline bool EnvironmentAccountIdHasBeenSet() const { return m_environmentAccountIdHasBeenSet; }
155 template<typename EnvironmentAccountIdT = Aws::String>
156 void SetEnvironmentAccountId(EnvironmentAccountIdT&& value) { m_environmentAccountIdHasBeenSet = true; m_environmentAccountId = std::forward<EnvironmentAccountIdT>(value); }
157 template<typename EnvironmentAccountIdT = Aws::String>
158 Environment& WithEnvironmentAccountId(EnvironmentAccountIdT&& value) { SetEnvironmentAccountId(std::forward<EnvironmentAccountIdT>(value)); return *this;}
160
162
165 inline const Aws::String& GetLastAttemptedDeploymentId() const { return m_lastAttemptedDeploymentId; }
166 inline bool LastAttemptedDeploymentIdHasBeenSet() const { return m_lastAttemptedDeploymentIdHasBeenSet; }
167 template<typename LastAttemptedDeploymentIdT = Aws::String>
168 void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) { m_lastAttemptedDeploymentIdHasBeenSet = true; m_lastAttemptedDeploymentId = std::forward<LastAttemptedDeploymentIdT>(value); }
169 template<typename LastAttemptedDeploymentIdT = Aws::String>
170 Environment& WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) { SetLastAttemptedDeploymentId(std::forward<LastAttemptedDeploymentIdT>(value)); return *this;}
172
174
177 inline const Aws::Utils::DateTime& GetLastDeploymentAttemptedAt() const { return m_lastDeploymentAttemptedAt; }
178 inline bool LastDeploymentAttemptedAtHasBeenSet() const { return m_lastDeploymentAttemptedAtHasBeenSet; }
179 template<typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
180 void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) { m_lastDeploymentAttemptedAtHasBeenSet = true; m_lastDeploymentAttemptedAt = std::forward<LastDeploymentAttemptedAtT>(value); }
181 template<typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
182 Environment& WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) { SetLastDeploymentAttemptedAt(std::forward<LastDeploymentAttemptedAtT>(value)); return *this;}
184
186
189 inline const Aws::Utils::DateTime& GetLastDeploymentSucceededAt() const { return m_lastDeploymentSucceededAt; }
190 inline bool LastDeploymentSucceededAtHasBeenSet() const { return m_lastDeploymentSucceededAtHasBeenSet; }
191 template<typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
192 void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) { m_lastDeploymentSucceededAtHasBeenSet = true; m_lastDeploymentSucceededAt = std::forward<LastDeploymentSucceededAtT>(value); }
193 template<typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
194 Environment& WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) { SetLastDeploymentSucceededAt(std::forward<LastDeploymentSucceededAtT>(value)); return *this;}
196
198
201 inline const Aws::String& GetLastSucceededDeploymentId() const { return m_lastSucceededDeploymentId; }
202 inline bool LastSucceededDeploymentIdHasBeenSet() const { return m_lastSucceededDeploymentIdHasBeenSet; }
203 template<typename LastSucceededDeploymentIdT = Aws::String>
204 void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) { m_lastSucceededDeploymentIdHasBeenSet = true; m_lastSucceededDeploymentId = std::forward<LastSucceededDeploymentIdT>(value); }
205 template<typename LastSucceededDeploymentIdT = Aws::String>
206 Environment& WithLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) { SetLastSucceededDeploymentId(std::forward<LastSucceededDeploymentIdT>(value)); return *this;}
208
210
213 inline const Aws::String& GetName() const { return m_name; }
214 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
215 template<typename NameT = Aws::String>
216 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
217 template<typename NameT = Aws::String>
218 Environment& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
220
222
226 inline const Aws::String& GetProtonServiceRoleArn() const { return m_protonServiceRoleArn; }
227 inline bool ProtonServiceRoleArnHasBeenSet() const { return m_protonServiceRoleArnHasBeenSet; }
228 template<typename ProtonServiceRoleArnT = Aws::String>
229 void SetProtonServiceRoleArn(ProtonServiceRoleArnT&& value) { m_protonServiceRoleArnHasBeenSet = true; m_protonServiceRoleArn = std::forward<ProtonServiceRoleArnT>(value); }
230 template<typename ProtonServiceRoleArnT = Aws::String>
231 Environment& WithProtonServiceRoleArn(ProtonServiceRoleArnT&& value) { SetProtonServiceRoleArn(std::forward<ProtonServiceRoleArnT>(value)); return *this;}
233
235
239 inline Provisioning GetProvisioning() const { return m_provisioning; }
240 inline bool ProvisioningHasBeenSet() const { return m_provisioningHasBeenSet; }
241 inline void SetProvisioning(Provisioning value) { m_provisioningHasBeenSet = true; m_provisioning = value; }
242 inline Environment& WithProvisioning(Provisioning value) { SetProvisioning(value); return *this;}
244
246
252 inline const RepositoryBranch& GetProvisioningRepository() const { return m_provisioningRepository; }
253 inline bool ProvisioningRepositoryHasBeenSet() const { return m_provisioningRepositoryHasBeenSet; }
254 template<typename ProvisioningRepositoryT = RepositoryBranch>
255 void SetProvisioningRepository(ProvisioningRepositoryT&& value) { m_provisioningRepositoryHasBeenSet = true; m_provisioningRepository = std::forward<ProvisioningRepositoryT>(value); }
256 template<typename ProvisioningRepositoryT = RepositoryBranch>
257 Environment& WithProvisioningRepository(ProvisioningRepositoryT&& value) { SetProvisioningRepository(std::forward<ProvisioningRepositoryT>(value)); return *this;}
259
261
264 inline const Aws::String& GetSpec() const { return m_spec; }
265 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
266 template<typename SpecT = Aws::String>
267 void SetSpec(SpecT&& value) { m_specHasBeenSet = true; m_spec = std::forward<SpecT>(value); }
268 template<typename SpecT = Aws::String>
269 Environment& WithSpec(SpecT&& value) { SetSpec(std::forward<SpecT>(value)); return *this;}
271
273
276 inline const Aws::String& GetTemplateMajorVersion() const { return m_templateMajorVersion; }
277 inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; }
278 template<typename TemplateMajorVersionT = Aws::String>
279 void SetTemplateMajorVersion(TemplateMajorVersionT&& value) { m_templateMajorVersionHasBeenSet = true; m_templateMajorVersion = std::forward<TemplateMajorVersionT>(value); }
280 template<typename TemplateMajorVersionT = Aws::String>
281 Environment& WithTemplateMajorVersion(TemplateMajorVersionT&& value) { SetTemplateMajorVersion(std::forward<TemplateMajorVersionT>(value)); return *this;}
283
285
288 inline const Aws::String& GetTemplateMinorVersion() const { return m_templateMinorVersion; }
289 inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; }
290 template<typename TemplateMinorVersionT = Aws::String>
291 void SetTemplateMinorVersion(TemplateMinorVersionT&& value) { m_templateMinorVersionHasBeenSet = true; m_templateMinorVersion = std::forward<TemplateMinorVersionT>(value); }
292 template<typename TemplateMinorVersionT = Aws::String>
293 Environment& WithTemplateMinorVersion(TemplateMinorVersionT&& value) { SetTemplateMinorVersion(std::forward<TemplateMinorVersionT>(value)); return *this;}
295
297
300 inline const Aws::String& GetTemplateName() const { return m_templateName; }
301 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
302 template<typename TemplateNameT = Aws::String>
303 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
304 template<typename TemplateNameT = Aws::String>
305 Environment& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
307 private:
308
309 Aws::String m_arn;
310 bool m_arnHasBeenSet = false;
311
312 Aws::String m_codebuildRoleArn;
313 bool m_codebuildRoleArnHasBeenSet = false;
314
315 Aws::String m_componentRoleArn;
316 bool m_componentRoleArnHasBeenSet = false;
317
318 Aws::Utils::DateTime m_createdAt{};
319 bool m_createdAtHasBeenSet = false;
320
322 bool m_deploymentStatusHasBeenSet = false;
323
324 Aws::String m_deploymentStatusMessage;
325 bool m_deploymentStatusMessageHasBeenSet = false;
326
327 Aws::String m_description;
328 bool m_descriptionHasBeenSet = false;
329
330 Aws::String m_environmentAccountConnectionId;
331 bool m_environmentAccountConnectionIdHasBeenSet = false;
332
333 Aws::String m_environmentAccountId;
334 bool m_environmentAccountIdHasBeenSet = false;
335
336 Aws::String m_lastAttemptedDeploymentId;
337 bool m_lastAttemptedDeploymentIdHasBeenSet = false;
338
339 Aws::Utils::DateTime m_lastDeploymentAttemptedAt{};
340 bool m_lastDeploymentAttemptedAtHasBeenSet = false;
341
342 Aws::Utils::DateTime m_lastDeploymentSucceededAt{};
343 bool m_lastDeploymentSucceededAtHasBeenSet = false;
344
345 Aws::String m_lastSucceededDeploymentId;
346 bool m_lastSucceededDeploymentIdHasBeenSet = false;
347
348 Aws::String m_name;
349 bool m_nameHasBeenSet = false;
350
351 Aws::String m_protonServiceRoleArn;
352 bool m_protonServiceRoleArnHasBeenSet = false;
353
354 Provisioning m_provisioning{Provisioning::NOT_SET};
355 bool m_provisioningHasBeenSet = false;
356
357 RepositoryBranch m_provisioningRepository;
358 bool m_provisioningRepositoryHasBeenSet = false;
359
360 Aws::String m_spec;
361 bool m_specHasBeenSet = false;
362
363 Aws::String m_templateMajorVersion;
364 bool m_templateMajorVersionHasBeenSet = false;
365
366 Aws::String m_templateMinorVersion;
367 bool m_templateMinorVersionHasBeenSet = false;
368
369 Aws::String m_templateName;
370 bool m_templateNameHasBeenSet = false;
371 };
372
373} // namespace Model
374} // namespace Proton
375} // namespace Aws
Environment & WithDeploymentStatus(DeploymentStatus value)
bool CodebuildRoleArnHasBeenSet() const
Definition Environment.h:63
const Aws::String & GetSpec() const
Environment & WithTemplateMinorVersion(TemplateMinorVersionT &&value)
const Aws::String & GetDescription() const
Environment & WithEnvironmentAccountId(EnvironmentAccountIdT &&value)
bool TemplateMajorVersionHasBeenSet() const
const Aws::String & GetTemplateName() const
void SetProtonServiceRoleArn(ProtonServiceRoleArnT &&value)
const Aws::String & GetEnvironmentAccountConnectionId() const
void SetEnvironmentAccountId(EnvironmentAccountIdT &&value)
void SetComponentRoleArn(ComponentRoleArnT &&value)
Definition Environment.h:84
Environment & WithProvisioningRepository(ProvisioningRepositoryT &&value)
const Aws::Utils::DateTime & GetLastDeploymentSucceededAt() const
void SetName(NameT &&value)
Provisioning GetProvisioning() const
Environment & WithTemplateName(TemplateNameT &&value)
void SetProvisioningRepository(ProvisioningRepositoryT &&value)
Environment & WithSpec(SpecT &&value)
bool ComponentRoleArnHasBeenSet() const
Definition Environment.h:82
bool EnvironmentAccountConnectionIdHasBeenSet() const
Environment & WithArn(ArnT &&value)
Definition Environment.h:54
void SetEnvironmentAccountConnectionId(EnvironmentAccountConnectionIdT &&value)
void SetDeploymentStatusMessage(DeploymentStatusMessageT &&value)
Environment & WithDescription(DescriptionT &&value)
void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
const Aws::String & GetLastAttemptedDeploymentId() const
Environment & WithDeploymentStatusMessage(DeploymentStatusMessageT &&value)
bool DeploymentStatusMessageHasBeenSet() const
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
Environment & WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
Environment & WithCodebuildRoleArn(CodebuildRoleArnT &&value)
Definition Environment.h:67
const Aws::String & GetTemplateMajorVersion() const
bool LastDeploymentSucceededAtHasBeenSet() const
bool LastDeploymentAttemptedAtHasBeenSet() const
const Aws::String & GetEnvironmentAccountId() const
bool ProvisioningRepositoryHasBeenSet() const
const Aws::String & GetLastSucceededDeploymentId() const
const Aws::String & GetName() const
Environment & WithCreatedAt(CreatedAtT &&value)
Definition Environment.h:98
Environment & WithProtonServiceRoleArn(ProtonServiceRoleArnT &&value)
bool TemplateMinorVersionHasBeenSet() const
void SetTemplateMinorVersion(TemplateMinorVersionT &&value)
bool EnvironmentAccountIdHasBeenSet() const
const Aws::String & GetCodebuildRoleArn() const
Definition Environment.h:62
const RepositoryBranch & GetProvisioningRepository() const
Environment & WithName(NameT &&value)
void SetSpec(SpecT &&value)
void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Environment.h:93
Environment & WithProvisioning(Provisioning value)
Environment & WithEnvironmentAccountConnectionId(EnvironmentAccountConnectionIdT &&value)
void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
const Aws::String & GetProtonServiceRoleArn() const
bool ProtonServiceRoleArnHasBeenSet() const
void SetTemplateMajorVersion(TemplateMajorVersionT &&value)
DeploymentStatus GetDeploymentStatus() const
bool LastSucceededDeploymentIdHasBeenSet() const
Environment & WithLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT &&value)
Environment & WithComponentRoleArn(ComponentRoleArnT &&value)
Definition Environment.h:86
void SetDescription(DescriptionT &&value)
bool LastAttemptedDeploymentIdHasBeenSet() const
Environment & WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT &&value)
Environment & WithTemplateMajorVersion(TemplateMajorVersionT &&value)
void SetCodebuildRoleArn(CodebuildRoleArnT &&value)
Definition Environment.h:65
void SetTemplateName(TemplateNameT &&value)
void SetDeploymentStatus(DeploymentStatus value)
void SetCreatedAt(CreatedAtT &&value)
Definition Environment.h:96
const Aws::String & GetTemplateMinorVersion() const
const Aws::Utils::DateTime & GetLastDeploymentAttemptedAt() const
const Aws::String & GetComponentRoleArn() const
Definition Environment.h:81
const Aws::String & GetArn() const
Definition Environment.h:49
AWS_PROTON_API Environment()=default
Environment & WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT &&value)
const Aws::String & GetDeploymentStatusMessage() const
void SetProvisioning(Provisioning value)
AWS_PROTON_API Environment(Aws::Utils::Json::JsonView jsonValue)
AWS_PROTON_API Environment & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue