AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
ServicePipeline.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/proton/Proton_EXPORTS.h>
10#include <aws/proton/model/DeploymentStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Proton {
22namespace Model {
23
31 public:
32 AWS_PROTON_API ServicePipeline() = default;
35 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 ServicePipeline& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
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) {
63 m_createdAtHasBeenSet = true;
64 m_createdAt = std::forward<CreatedAtT>(value);
65 }
66 template <typename CreatedAtT = Aws::Utils::DateTime>
67 ServicePipeline& WithCreatedAt(CreatedAtT&& value) {
68 SetCreatedAt(std::forward<CreatedAtT>(value));
69 return *this;
70 }
72
74
77 inline DeploymentStatus GetDeploymentStatus() const { return m_deploymentStatus; }
78 inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
80 m_deploymentStatusHasBeenSet = true;
81 m_deploymentStatus = value;
82 }
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDeploymentStatusMessage() const { return m_deploymentStatusMessage; }
94 inline bool DeploymentStatusMessageHasBeenSet() const { return m_deploymentStatusMessageHasBeenSet; }
95 template <typename DeploymentStatusMessageT = Aws::String>
96 void SetDeploymentStatusMessage(DeploymentStatusMessageT&& value) {
97 m_deploymentStatusMessageHasBeenSet = true;
98 m_deploymentStatusMessage = std::forward<DeploymentStatusMessageT>(value);
99 }
100 template <typename DeploymentStatusMessageT = Aws::String>
101 ServicePipeline& WithDeploymentStatusMessage(DeploymentStatusMessageT&& value) {
102 SetDeploymentStatusMessage(std::forward<DeploymentStatusMessageT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetLastAttemptedDeploymentId() const { return m_lastAttemptedDeploymentId; }
112 inline bool LastAttemptedDeploymentIdHasBeenSet() const { return m_lastAttemptedDeploymentIdHasBeenSet; }
113 template <typename LastAttemptedDeploymentIdT = Aws::String>
114 void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) {
115 m_lastAttemptedDeploymentIdHasBeenSet = true;
116 m_lastAttemptedDeploymentId = std::forward<LastAttemptedDeploymentIdT>(value);
117 }
118 template <typename LastAttemptedDeploymentIdT = Aws::String>
119 ServicePipeline& WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT&& value) {
120 SetLastAttemptedDeploymentId(std::forward<LastAttemptedDeploymentIdT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetLastDeploymentAttemptedAt() const { return m_lastDeploymentAttemptedAt; }
130 inline bool LastDeploymentAttemptedAtHasBeenSet() const { return m_lastDeploymentAttemptedAtHasBeenSet; }
131 template <typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
132 void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) {
133 m_lastDeploymentAttemptedAtHasBeenSet = true;
134 m_lastDeploymentAttemptedAt = std::forward<LastDeploymentAttemptedAtT>(value);
135 }
136 template <typename LastDeploymentAttemptedAtT = Aws::Utils::DateTime>
137 ServicePipeline& WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT&& value) {
138 SetLastDeploymentAttemptedAt(std::forward<LastDeploymentAttemptedAtT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Utils::DateTime& GetLastDeploymentSucceededAt() const { return m_lastDeploymentSucceededAt; }
148 inline bool LastDeploymentSucceededAtHasBeenSet() const { return m_lastDeploymentSucceededAtHasBeenSet; }
149 template <typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
150 void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) {
151 m_lastDeploymentSucceededAtHasBeenSet = true;
152 m_lastDeploymentSucceededAt = std::forward<LastDeploymentSucceededAtT>(value);
153 }
154 template <typename LastDeploymentSucceededAtT = Aws::Utils::DateTime>
155 ServicePipeline& WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT&& value) {
156 SetLastDeploymentSucceededAt(std::forward<LastDeploymentSucceededAtT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetLastSucceededDeploymentId() const { return m_lastSucceededDeploymentId; }
166 inline bool LastSucceededDeploymentIdHasBeenSet() const { return m_lastSucceededDeploymentIdHasBeenSet; }
167 template <typename LastSucceededDeploymentIdT = Aws::String>
168 void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) {
169 m_lastSucceededDeploymentIdHasBeenSet = true;
170 m_lastSucceededDeploymentId = std::forward<LastSucceededDeploymentIdT>(value);
171 }
172 template <typename LastSucceededDeploymentIdT = Aws::String>
173 ServicePipeline& WithLastSucceededDeploymentId(LastSucceededDeploymentIdT&& value) {
174 SetLastSucceededDeploymentId(std::forward<LastSucceededDeploymentIdT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::String& GetSpec() const { return m_spec; }
184 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
185 template <typename SpecT = Aws::String>
186 void SetSpec(SpecT&& value) {
187 m_specHasBeenSet = true;
188 m_spec = std::forward<SpecT>(value);
189 }
190 template <typename SpecT = Aws::String>
191 ServicePipeline& WithSpec(SpecT&& value) {
192 SetSpec(std::forward<SpecT>(value));
193 return *this;
194 }
196
198
202 inline const Aws::String& GetTemplateMajorVersion() const { return m_templateMajorVersion; }
203 inline bool TemplateMajorVersionHasBeenSet() const { return m_templateMajorVersionHasBeenSet; }
204 template <typename TemplateMajorVersionT = Aws::String>
205 void SetTemplateMajorVersion(TemplateMajorVersionT&& value) {
206 m_templateMajorVersionHasBeenSet = true;
207 m_templateMajorVersion = std::forward<TemplateMajorVersionT>(value);
208 }
209 template <typename TemplateMajorVersionT = Aws::String>
210 ServicePipeline& WithTemplateMajorVersion(TemplateMajorVersionT&& value) {
211 SetTemplateMajorVersion(std::forward<TemplateMajorVersionT>(value));
212 return *this;
213 }
215
217
221 inline const Aws::String& GetTemplateMinorVersion() const { return m_templateMinorVersion; }
222 inline bool TemplateMinorVersionHasBeenSet() const { return m_templateMinorVersionHasBeenSet; }
223 template <typename TemplateMinorVersionT = Aws::String>
224 void SetTemplateMinorVersion(TemplateMinorVersionT&& value) {
225 m_templateMinorVersionHasBeenSet = true;
226 m_templateMinorVersion = std::forward<TemplateMinorVersionT>(value);
227 }
228 template <typename TemplateMinorVersionT = Aws::String>
229 ServicePipeline& WithTemplateMinorVersion(TemplateMinorVersionT&& value) {
230 SetTemplateMinorVersion(std::forward<TemplateMinorVersionT>(value));
231 return *this;
232 }
234
236
240 inline const Aws::String& GetTemplateName() const { return m_templateName; }
241 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
242 template <typename TemplateNameT = Aws::String>
243 void SetTemplateName(TemplateNameT&& value) {
244 m_templateNameHasBeenSet = true;
245 m_templateName = std::forward<TemplateNameT>(value);
246 }
247 template <typename TemplateNameT = Aws::String>
248 ServicePipeline& WithTemplateName(TemplateNameT&& value) {
249 SetTemplateName(std::forward<TemplateNameT>(value));
250 return *this;
251 }
253 private:
254 Aws::String m_arn;
255
256 Aws::Utils::DateTime m_createdAt{};
257
259
260 Aws::String m_deploymentStatusMessage;
261
262 Aws::String m_lastAttemptedDeploymentId;
263
264 Aws::Utils::DateTime m_lastDeploymentAttemptedAt{};
265
266 Aws::Utils::DateTime m_lastDeploymentSucceededAt{};
267
268 Aws::String m_lastSucceededDeploymentId;
269
270 Aws::String m_spec;
271
272 Aws::String m_templateMajorVersion;
273
274 Aws::String m_templateMinorVersion;
275
276 Aws::String m_templateName;
277 bool m_arnHasBeenSet = false;
278 bool m_createdAtHasBeenSet = false;
279 bool m_deploymentStatusHasBeenSet = false;
280 bool m_deploymentStatusMessageHasBeenSet = false;
281 bool m_lastAttemptedDeploymentIdHasBeenSet = false;
282 bool m_lastDeploymentAttemptedAtHasBeenSet = false;
283 bool m_lastDeploymentSucceededAtHasBeenSet = false;
284 bool m_lastSucceededDeploymentIdHasBeenSet = false;
285 bool m_specHasBeenSet = false;
286 bool m_templateMajorVersionHasBeenSet = false;
287 bool m_templateMinorVersionHasBeenSet = false;
288 bool m_templateNameHasBeenSet = false;
289};
290
291} // namespace Model
292} // namespace Proton
293} // namespace Aws
ServicePipeline & WithLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
const Aws::String & GetLastSucceededDeploymentId() const
ServicePipeline & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetArn() const
void SetTemplateMajorVersion(TemplateMajorVersionT &&value)
ServicePipeline & WithDeploymentStatus(DeploymentStatus value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PROTON_API ServicePipeline & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT &&value)
void SetLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
void SetTemplateName(TemplateNameT &&value)
const Aws::String & GetDeploymentStatusMessage() const
ServicePipeline & WithArn(ArnT &&value)
const Aws::String & GetLastAttemptedDeploymentId() const
ServicePipeline & WithLastDeploymentAttemptedAt(LastDeploymentAttemptedAtT &&value)
void SetLastAttemptedDeploymentId(LastAttemptedDeploymentIdT &&value)
void SetDeploymentStatus(DeploymentStatus value)
ServicePipeline & WithTemplateName(TemplateNameT &&value)
const Aws::String & GetTemplateMajorVersion() const
AWS_PROTON_API ServicePipeline(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTemplateMinorVersion() const
void SetDeploymentStatusMessage(DeploymentStatusMessageT &&value)
ServicePipeline & WithTemplateMajorVersion(TemplateMajorVersionT &&value)
ServicePipeline & WithLastDeploymentSucceededAt(LastDeploymentSucceededAtT &&value)
AWS_PROTON_API ServicePipeline()=default
const Aws::Utils::DateTime & GetLastDeploymentSucceededAt() const
const Aws::Utils::DateTime & GetLastDeploymentAttemptedAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetCreatedAt(CreatedAtT &&value)
ServicePipeline & WithTemplateMinorVersion(TemplateMinorVersionT &&value)
ServicePipeline & WithDeploymentStatusMessage(DeploymentStatusMessageT &&value)
DeploymentStatus GetDeploymentStatus() const
const Aws::String & GetTemplateName() const
const Aws::String & GetSpec() const
void SetTemplateMinorVersion(TemplateMinorVersionT &&value)
ServicePipeline & WithLastSucceededDeploymentId(LastSucceededDeploymentIdT &&value)
ServicePipeline & WithSpec(SpecT &&value)
void SetLastDeploymentSucceededAt(LastDeploymentSucceededAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue