AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeploymentSummary.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/DeploymentTargetResourceType.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
35 {
36 public:
37 AWS_PROTON_API DeploymentSummary() = 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 DeploymentSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
54
56
59 inline const Aws::Utils::DateTime& GetCompletedAt() const { return m_completedAt; }
60 inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
61 template<typename CompletedAtT = Aws::Utils::DateTime>
62 void SetCompletedAt(CompletedAtT&& value) { m_completedAtHasBeenSet = true; m_completedAt = std::forward<CompletedAtT>(value); }
63 template<typename CompletedAtT = Aws::Utils::DateTime>
64 DeploymentSummary& WithCompletedAt(CompletedAtT&& value) { SetCompletedAt(std::forward<CompletedAtT>(value)); return *this;}
66
68
71 inline const Aws::String& GetComponentName() const { return m_componentName; }
72 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
73 template<typename ComponentNameT = Aws::String>
74 void SetComponentName(ComponentNameT&& value) { m_componentNameHasBeenSet = true; m_componentName = std::forward<ComponentNameT>(value); }
75 template<typename ComponentNameT = Aws::String>
76 DeploymentSummary& WithComponentName(ComponentNameT&& value) { SetComponentName(std::forward<ComponentNameT>(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
84 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
85 template<typename CreatedAtT = Aws::Utils::DateTime>
86 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
87 template<typename CreatedAtT = Aws::Utils::DateTime>
88 DeploymentSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
90
92
95 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
96 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
97 inline void SetDeploymentStatus(DeploymentStatus value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = value; }
100
102
105 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
106 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
107 template<typename EnvironmentNameT = Aws::String>
108 void SetEnvironmentName(EnvironmentNameT&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::forward<EnvironmentNameT>(value); }
109 template<typename EnvironmentNameT = Aws::String>
110 DeploymentSummary& WithEnvironmentName(EnvironmentNameT&& value) { SetEnvironmentName(std::forward<EnvironmentNameT>(value)); return *this;}
112
114
117 inline const Aws::String& GetId() const { return m_id; }
118 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
119 template<typename IdT = Aws::String>
120 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
121 template<typename IdT = Aws::String>
122 DeploymentSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
124
126
129 inline const Aws::String& GetLastAttemptedDeploymentId() const { return m_lastAttemptedDeploymentId; }
130 inline bool LastAttemptedDeploymentIdHasBeenSet() const { return m_lastAttemptedDeploymentIdHasBeenSet; }
131 template<typename LastAttemptedDeploymentIdT = Aws::String>
132 void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) { m_lastAttemptedDeploymentIdHasBeenSet = true; m_lastAttemptedDeploymentId = std::forward<LastAttemptedDeploymentIdT>(value); }
133 template<typename LastAttemptedDeploymentIdT = Aws::String>
134 DeploymentSummary& WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) { SetLastAttemptedDeploymentId(std::forward<LastAttemptedDeploymentIdT>(value)); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
142 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
143 template<typename LastModifiedAtT = Aws::Utils::DateTime>
144 void SetLastModifiedAt(LastModifiedAtT&& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = std::forward<LastModifiedAtT>(value); }
145 template<typename LastModifiedAtT = Aws::Utils::DateTime>
146 DeploymentSummary& WithLastModifiedAt(LastModifiedAtT&& value) { SetLastModifiedAt(std::forward<LastModifiedAtT>(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 DeploymentSummary& WithLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) { SetLastSucceededDeploymentId(std::forward<LastSucceededDeploymentIdT>(value)); return *this;}
160
162
165 inline const Aws::String& GetServiceInstanceName() const { return m_serviceInstanceName; }
166 inline bool ServiceInstanceNameHasBeenSet() const { return m_serviceInstanceNameHasBeenSet; }
167 template<typename ServiceInstanceNameT = Aws::String>
168 void SetServiceInstanceName(ServiceInstanceNameT&& value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName = std::forward<ServiceInstanceNameT>(value); }
169 template<typename ServiceInstanceNameT = Aws::String>
170 DeploymentSummary& WithServiceInstanceName(ServiceInstanceNameT&& value) { SetServiceInstanceName(std::forward<ServiceInstanceNameT>(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 DeploymentSummary& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
184
186
189 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
190 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
191 template<typename TargetArnT = Aws::String>
192 void SetTargetArn(TargetArnT&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::forward<TargetArnT>(value); }
193 template<typename TargetArnT = Aws::String>
194 DeploymentSummary& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
196
198
201 inline const Aws::Utils::DateTime& GetTargetResourceCreatedAt() const { return m_targetResourceCreatedAt; }
202 inline bool TargetResourceCreatedAtHasBeenSet() const { return m_targetResourceCreatedAtHasBeenSet; }
203 template<typename TargetResourceCreatedAtT = Aws::Utils::DateTime>
204 void SetTargetResourceCreatedAt(TargetResourceCreatedAtT&& value) { m_targetResourceCreatedAtHasBeenSet = true; m_targetResourceCreatedAt = std::forward<TargetResourceCreatedAtT>(value); }
205 template<typename TargetResourceCreatedAtT = Aws::Utils::DateTime>
206 DeploymentSummary& WithTargetResourceCreatedAt(TargetResourceCreatedAtT&& value) { SetTargetResourceCreatedAt(std::forward<TargetResourceCreatedAtT>(value)); return *this;}
208
210
214 inline DeploymentTargetResourceType GetTargetResourceType() const { return m_targetResourceType; }
215 inline bool TargetResourceTypeHasBeenSet() const { return m_targetResourceTypeHasBeenSet; }
216 inline void SetTargetResourceType(DeploymentTargetResourceType value) { m_targetResourceTypeHasBeenSet = true; m_targetResourceType = value; }
219 private:
220
221 Aws::String m_arn;
222 bool m_arnHasBeenSet = false;
223
224 Aws::Utils::DateTime m_completedAt{};
225 bool m_completedAtHasBeenSet = false;
226
227 Aws::String m_componentName;
228 bool m_componentNameHasBeenSet = false;
229
230 Aws::Utils::DateTime m_createdAt{};
231 bool m_createdAtHasBeenSet = false;
232
234 bool m_deploymentStatusHasBeenSet = false;
235
236 Aws::String m_environmentName;
237 bool m_environmentNameHasBeenSet = false;
238
239 Aws::String m_id;
240 bool m_idHasBeenSet = false;
241
242 Aws::String m_lastAttemptedDeploymentId;
243 bool m_lastAttemptedDeploymentIdHasBeenSet = false;
244
245 Aws::Utils::DateTime m_lastModifiedAt{};
246 bool m_lastModifiedAtHasBeenSet = false;
247
248 Aws::String m_lastSucceededDeploymentId;
249 bool m_lastSucceededDeploymentIdHasBeenSet = false;
250
251 Aws::String m_serviceInstanceName;
252 bool m_serviceInstanceNameHasBeenSet = false;
253
254 Aws::String m_serviceName;
255 bool m_serviceNameHasBeenSet = false;
256
257 Aws::String m_targetArn;
258 bool m_targetArnHasBeenSet = false;
259
260 Aws::Utils::DateTime m_targetResourceCreatedAt{};
261 bool m_targetResourceCreatedAtHasBeenSet = false;
262
264 bool m_targetResourceTypeHasBeenSet = false;
265 };
266
267} // namespace Model
268} // namespace Proton
269} // namespace Aws
void SetServiceName(ServiceNameT &&value)
void SetEnvironmentName(EnvironmentNameT &&value)
const Aws::String & GetTargetArn() const
void SetTargetResourceType(DeploymentTargetResourceType value)
const Aws::String & GetLastAttemptedDeploymentId() const
DeploymentTargetResourceType GetTargetResourceType() const
const Aws::String & GetLastSucceededDeploymentId() const
DeploymentSummary & WithComponentName(ComponentNameT &&value)
void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
void SetLastModifiedAt(LastModifiedAtT &&value)
const Aws::String & GetEnvironmentName() const
DeploymentSummary & WithTargetResourceCreatedAt(TargetResourceCreatedAtT &&value)
DeploymentSummary & WithEnvironmentName(EnvironmentNameT &&value)
const Aws::String & GetArn() const
const Aws::Utils::DateTime & GetLastModifiedAt() const
DeploymentSummary & WithTargetResourceType(DeploymentTargetResourceType value)
const Aws::Utils::DateTime & GetTargetResourceCreatedAt() const
void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
DeploymentSummary & WithTargetArn(TargetArnT &&value)
DeploymentSummary & WithLastModifiedAt(LastModifiedAtT &&value)
DeploymentSummary & WithServiceInstanceName(ServiceInstanceNameT &&value)
DeploymentSummary & WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
DeploymentSummary & WithId(IdT &&value)
const Aws::Utils::DateTime & GetCompletedAt() const
DeploymentSummary & WithServiceName(ServiceNameT &&value)
const Aws::String & GetServiceName() const
AWS_PROTON_API DeploymentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetComponentName(ComponentNameT &&value)
DeploymentSummary & WithCompletedAt(CompletedAtT &&value)
void SetCompletedAt(CompletedAtT &&value)
DeploymentSummary & WithDeploymentStatus(DeploymentStatus value)
const Aws::String & GetComponentName() const
const Aws::String & GetServiceInstanceName() const
DeploymentSummary & WithLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
DeploymentSummary & WithCreatedAt(CreatedAtT &&value)
void SetTargetResourceCreatedAt(TargetResourceCreatedAtT &&value)
DeploymentStatus GetDeploymentStatus() const
void SetDeploymentStatus(DeploymentStatus value)
DeploymentSummary & WithArn(ArnT &&value)
AWS_PROTON_API DeploymentSummary()=default
void SetServiceInstanceName(ServiceInstanceNameT &&value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PROTON_API DeploymentSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue