AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Component.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
37 {
38 public:
39 AWS_PROTON_API Component() = default;
40 AWS_PROTON_API Component(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 Component& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
62 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
63 template<typename CreatedAtT = Aws::Utils::DateTime>
64 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
65 template<typename CreatedAtT = Aws::Utils::DateTime>
66 Component& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
68
70
73 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
74 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
75 inline void SetDeploymentStatus(DeploymentStatus value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = value; }
78
80
83 inline const Aws::String& GetDeploymentStatusMessage() const { return m_deploymentStatusMessage; }
84 inline bool DeploymentStatusMessageHasBeenSet() const { return m_deploymentStatusMessageHasBeenSet; }
85 template<typename DeploymentStatusMessageT = Aws::String>
86 void SetDeploymentStatusMessage(DeploymentStatusMessageT&& value) { m_deploymentStatusMessageHasBeenSet = true; m_deploymentStatusMessage = std::forward<DeploymentStatusMessageT>(value); }
87 template<typename DeploymentStatusMessageT = Aws::String>
88 Component& WithDeploymentStatusMessage(DeploymentStatusMessageT&& value) { SetDeploymentStatusMessage(std::forward<DeploymentStatusMessageT>(value)); return *this;}
90
92
95 inline const Aws::String& GetDescription() const { return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 template<typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
99 template<typename DescriptionT = Aws::String>
100 Component& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
102
104
108 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
109 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
110 template<typename EnvironmentNameT = Aws::String>
111 void SetEnvironmentName(EnvironmentNameT&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::forward<EnvironmentNameT>(value); }
112 template<typename EnvironmentNameT = Aws::String>
113 Component& WithEnvironmentName(EnvironmentNameT&& value) { SetEnvironmentName(std::forward<EnvironmentNameT>(value)); return *this;}
115
117
120 inline const Aws::String& GetLastAttemptedDeploymentId() const { return m_lastAttemptedDeploymentId; }
121 inline bool LastAttemptedDeploymentIdHasBeenSet() const { return m_lastAttemptedDeploymentIdHasBeenSet; }
122 template<typename LastAttemptedDeploymentIdT = Aws::String>
123 void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) { m_lastAttemptedDeploymentIdHasBeenSet = true; m_lastAttemptedDeploymentId = std::forward<LastAttemptedDeploymentIdT>(value); }
124 template<typename LastAttemptedDeploymentIdT = Aws::String>
125 Component& WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) { SetLastAttemptedDeploymentId(std::forward<LastAttemptedDeploymentIdT>(value)); return *this;}
127
129
132 inline const Aws::String& GetLastClientRequestToken() const { return m_lastClientRequestToken; }
133 inline bool LastClientRequestTokenHasBeenSet() const { return m_lastClientRequestTokenHasBeenSet; }
134 template<typename LastClientRequestTokenT = Aws::String>
135 void SetLastClientRequestToken(LastClientRequestTokenT&& value) { m_lastClientRequestTokenHasBeenSet = true; m_lastClientRequestToken = std::forward<LastClientRequestTokenT>(value); }
136 template<typename LastClientRequestTokenT = Aws::String>
137 Component& WithLastClientRequestToken(LastClientRequestTokenT&& value) { SetLastClientRequestToken(std::forward<LastClientRequestTokenT>(value)); return *this;}
139
141
144 inline const Aws::Utils::DateTime& GetLastDeploymentAttemptedAt() const { return m_lastDeploymentAttemptedAt; }
145 inline bool LastDeploymentAttemptedAtHasBeenSet() const { return m_lastDeploymentAttemptedAtHasBeenSet; }
146 template<typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
147 void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) { m_lastDeploymentAttemptedAtHasBeenSet = true; m_lastDeploymentAttemptedAt = std::forward<LastDeploymentAttemptedAtT>(value); }
148 template<typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
149 Component& WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) { SetLastDeploymentAttemptedAt(std::forward<LastDeploymentAttemptedAtT>(value)); return *this;}
151
153
156 inline const Aws::Utils::DateTime& GetLastDeploymentSucceededAt() const { return m_lastDeploymentSucceededAt; }
157 inline bool LastDeploymentSucceededAtHasBeenSet() const { return m_lastDeploymentSucceededAtHasBeenSet; }
158 template<typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
159 void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) { m_lastDeploymentSucceededAtHasBeenSet = true; m_lastDeploymentSucceededAt = std::forward<LastDeploymentSucceededAtT>(value); }
160 template<typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
161 Component& WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) { SetLastDeploymentSucceededAt(std::forward<LastDeploymentSucceededAtT>(value)); return *this;}
163
165
168 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
169 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
170 template<typename LastModifiedAtT = Aws::Utils::DateTime>
171 void SetLastModifiedAt(LastModifiedAtT&& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = std::forward<LastModifiedAtT>(value); }
172 template<typename LastModifiedAtT = Aws::Utils::DateTime>
173 Component& WithLastModifiedAt(LastModifiedAtT&& value) { SetLastModifiedAt(std::forward<LastModifiedAtT>(value)); return *this;}
175
177
180 inline const Aws::String& GetLastSucceededDeploymentId() const { return m_lastSucceededDeploymentId; }
181 inline bool LastSucceededDeploymentIdHasBeenSet() const { return m_lastSucceededDeploymentIdHasBeenSet; }
182 template<typename LastSucceededDeploymentIdT = Aws::String>
183 void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) { m_lastSucceededDeploymentIdHasBeenSet = true; m_lastSucceededDeploymentId = std::forward<LastSucceededDeploymentIdT>(value); }
184 template<typename LastSucceededDeploymentIdT = Aws::String>
185 Component& WithLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) { SetLastSucceededDeploymentId(std::forward<LastSucceededDeploymentIdT>(value)); return *this;}
187
189
192 inline const Aws::String& GetName() const { return m_name; }
193 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
194 template<typename NameT = Aws::String>
195 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
196 template<typename NameT = Aws::String>
197 Component& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
199
201
205 inline const Aws::String& GetServiceInstanceName() const { return m_serviceInstanceName; }
206 inline bool ServiceInstanceNameHasBeenSet() const { return m_serviceInstanceNameHasBeenSet; }
207 template<typename ServiceInstanceNameT = Aws::String>
208 void SetServiceInstanceName(ServiceInstanceNameT&& value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName = std::forward<ServiceInstanceNameT>(value); }
209 template<typename ServiceInstanceNameT = Aws::String>
210 Component& WithServiceInstanceName(ServiceInstanceNameT&& value) { SetServiceInstanceName(std::forward<ServiceInstanceNameT>(value)); return *this;}
212
214
218 inline const Aws::String& GetServiceName() const { return m_serviceName; }
219 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
220 template<typename ServiceNameT = Aws::String>
221 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
222 template<typename ServiceNameT = Aws::String>
223 Component& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
225
227
231 inline const Aws::String& GetServiceSpec() const { return m_serviceSpec; }
232 inline bool ServiceSpecHasBeenSet() const { return m_serviceSpecHasBeenSet; }
233 template<typename ServiceSpecT = Aws::String>
234 void SetServiceSpec(ServiceSpecT&& value) { m_serviceSpecHasBeenSet = true; m_serviceSpec = std::forward<ServiceSpecT>(value); }
235 template<typename ServiceSpecT = Aws::String>
236 Component& WithServiceSpec(ServiceSpecT&& value) { SetServiceSpec(std::forward<ServiceSpecT>(value)); return *this;}
238 private:
239
240 Aws::String m_arn;
241 bool m_arnHasBeenSet = false;
242
243 Aws::Utils::DateTime m_createdAt{};
244 bool m_createdAtHasBeenSet = false;
245
247 bool m_deploymentStatusHasBeenSet = false;
248
249 Aws::String m_deploymentStatusMessage;
250 bool m_deploymentStatusMessageHasBeenSet = false;
251
252 Aws::String m_description;
253 bool m_descriptionHasBeenSet = false;
254
255 Aws::String m_environmentName;
256 bool m_environmentNameHasBeenSet = false;
257
258 Aws::String m_lastAttemptedDeploymentId;
259 bool m_lastAttemptedDeploymentIdHasBeenSet = false;
260
261 Aws::String m_lastClientRequestToken;
262 bool m_lastClientRequestTokenHasBeenSet = false;
263
264 Aws::Utils::DateTime m_lastDeploymentAttemptedAt{};
265 bool m_lastDeploymentAttemptedAtHasBeenSet = false;
266
267 Aws::Utils::DateTime m_lastDeploymentSucceededAt{};
268 bool m_lastDeploymentSucceededAtHasBeenSet = false;
269
270 Aws::Utils::DateTime m_lastModifiedAt{};
271 bool m_lastModifiedAtHasBeenSet = false;
272
273 Aws::String m_lastSucceededDeploymentId;
274 bool m_lastSucceededDeploymentIdHasBeenSet = false;
275
276 Aws::String m_name;
277 bool m_nameHasBeenSet = false;
278
279 Aws::String m_serviceInstanceName;
280 bool m_serviceInstanceNameHasBeenSet = false;
281
282 Aws::String m_serviceName;
283 bool m_serviceNameHasBeenSet = false;
284
285 Aws::String m_serviceSpec;
286 bool m_serviceSpecHasBeenSet = false;
287 };
288
289} // namespace Model
290} // namespace Proton
291} // namespace Aws
Component & WithArn(ArnT &&value)
Definition Component.h:54
Component & WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT &&value)
Definition Component.h:149
void SetArn(ArnT &&value)
Definition Component.h:52
const Aws::String & GetEnvironmentName() const
Definition Component.h:108
Component & WithDeploymentStatusMessage(DeploymentStatusMessageT &&value)
Definition Component.h:88
bool LastSucceededDeploymentIdHasBeenSet() const
Definition Component.h:181
const Aws::Utils::DateTime & GetLastDeploymentAttemptedAt() const
Definition Component.h:144
Component & WithServiceName(ServiceNameT &&value)
Definition Component.h:223
bool DeploymentStatusHasBeenSet() const
Definition Component.h:74
const Aws::String & GetServiceInstanceName() const
Definition Component.h:205
void SetServiceName(ServiceNameT &&value)
Definition Component.h:221
const Aws::String & GetLastClientRequestToken() const
Definition Component.h:132
void SetDeploymentStatus(DeploymentStatus value)
Definition Component.h:75
Component & WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT &&value)
Definition Component.h:161
void SetDeploymentStatusMessage(DeploymentStatusMessageT &&value)
Definition Component.h:86
AWS_PROTON_API Component()=default
Component & WithServiceSpec(ServiceSpecT &&value)
Definition Component.h:236
void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT &&value)
Definition Component.h:159
bool ServiceInstanceNameHasBeenSet() const
Definition Component.h:206
Component & WithDescription(DescriptionT &&value)
Definition Component.h:100
void SetLastModifiedAt(LastModifiedAtT &&value)
Definition Component.h:171
void SetServiceSpec(ServiceSpecT &&value)
Definition Component.h:234
bool LastAttemptedDeploymentIdHasBeenSet() const
Definition Component.h:121
void SetServiceInstanceName(ServiceInstanceNameT &&value)
Definition Component.h:208
const Aws::Utils::DateTime & GetLastModifiedAt() const
Definition Component.h:168
bool LastDeploymentAttemptedAtHasBeenSet() const
Definition Component.h:145
void SetEnvironmentName(EnvironmentNameT &&value)
Definition Component.h:111
Component & WithEnvironmentName(EnvironmentNameT &&value)
Definition Component.h:113
DeploymentStatus GetDeploymentStatus() const
Definition Component.h:73
const Aws::String & GetServiceName() const
Definition Component.h:218
Component & WithLastModifiedAt(LastModifiedAtT &&value)
Definition Component.h:173
bool DescriptionHasBeenSet() const
Definition Component.h:96
const Aws::String & GetLastAttemptedDeploymentId() const
Definition Component.h:120
const Aws::String & GetDeploymentStatusMessage() const
Definition Component.h:83
Component & WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
Definition Component.h:125
const Aws::Utils::DateTime & GetLastDeploymentSucceededAt() const
Definition Component.h:156
void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT &&value)
Definition Component.h:147
const Aws::String & GetDescription() const
Definition Component.h:95
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetServiceSpec() const
Definition Component.h:231
void SetName(NameT &&value)
Definition Component.h:195
Component & WithName(NameT &&value)
Definition Component.h:197
bool CreatedAtHasBeenSet() const
Definition Component.h:62
void SetDescription(DescriptionT &&value)
Definition Component.h:98
Component & WithDeploymentStatus(DeploymentStatus value)
Definition Component.h:76
void SetCreatedAt(CreatedAtT &&value)
Definition Component.h:64
bool EnvironmentNameHasBeenSet() const
Definition Component.h:109
const Aws::String & GetName() const
Definition Component.h:192
bool ServiceSpecHasBeenSet() const
Definition Component.h:232
bool ServiceNameHasBeenSet() const
Definition Component.h:219
void SetLastClientRequestToken(LastClientRequestTokenT &&value)
Definition Component.h:135
AWS_PROTON_API Component(Aws::Utils::Json::JsonView jsonValue)
Component & WithLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
Definition Component.h:185
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Component.h:61
const Aws::String & GetLastSucceededDeploymentId() const
Definition Component.h:180
Component & WithCreatedAt(CreatedAtT &&value)
Definition Component.h:66
Component & WithServiceInstanceName(ServiceInstanceNameT &&value)
Definition Component.h:210
bool DeploymentStatusMessageHasBeenSet() const
Definition Component.h:84
bool LastModifiedAtHasBeenSet() const
Definition Component.h:169
AWS_PROTON_API Component & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
Definition Component.h:49
void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
Definition Component.h:123
bool LastClientRequestTokenHasBeenSet() const
Definition Component.h:133
Component & WithLastClientRequestToken(LastClientRequestTokenT &&value)
Definition Component.h:137
void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
Definition Component.h:183
bool LastDeploymentSucceededAtHasBeenSet() const
Definition Component.h:157
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue