AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ECSTarget.h
Go to the documentation of this file.
1
6#pragma once
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CodeDeploy
27{
28namespace Model
29{
30
38 {
39 public:
44
45
49 inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
50
54 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
55
59 inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
60
64 inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
65
69 inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
70
74 inline ECSTarget& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
75
79 inline ECSTarget& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
80
84 inline ECSTarget& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
85
86
91 inline const Aws::String& GetTargetId() const{ return m_targetId; }
92
97 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
98
103 inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
104
109 inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
110
115 inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
116
121 inline ECSTarget& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
122
127 inline ECSTarget& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
128
133 inline ECSTarget& WithTargetId(const char* value) { SetTargetId(value); return *this;}
134
135
139 inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
140
144 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
145
149 inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
150
154 inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
155
159 inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
160
164 inline ECSTarget& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
165
169 inline ECSTarget& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
170
174 inline ECSTarget& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
175
176
181 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
182
187 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
188
193 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
194
199 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
200
205 inline ECSTarget& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
206
211 inline ECSTarget& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
212
213
218 inline const Aws::Vector<LifecycleEvent>& GetLifecycleEvents() const{ return m_lifecycleEvents; }
219
224 inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; }
225
230 inline void SetLifecycleEvents(const Aws::Vector<LifecycleEvent>& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = value; }
231
236 inline void SetLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = std::move(value); }
237
243
248 inline ECSTarget& WithLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { SetLifecycleEvents(std::move(value)); return *this;}
249
254 inline ECSTarget& AddLifecycleEvents(const LifecycleEvent& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(value); return *this; }
255
260 inline ECSTarget& AddLifecycleEvents(LifecycleEvent&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(std::move(value)); return *this; }
261
262
266 inline const TargetStatus& GetStatus() const{ return m_status; }
267
271 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
272
276 inline void SetStatus(const TargetStatus& value) { m_statusHasBeenSet = true; m_status = value; }
277
281 inline void SetStatus(TargetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
282
286 inline ECSTarget& WithStatus(const TargetStatus& value) { SetStatus(value); return *this;}
287
291 inline ECSTarget& WithStatus(TargetStatus&& value) { SetStatus(std::move(value)); return *this;}
292
293
297 inline const Aws::Vector<ECSTaskSet>& GetTaskSetsInfo() const{ return m_taskSetsInfo; }
298
302 inline bool TaskSetsInfoHasBeenSet() const { return m_taskSetsInfoHasBeenSet; }
303
307 inline void SetTaskSetsInfo(const Aws::Vector<ECSTaskSet>& value) { m_taskSetsInfoHasBeenSet = true; m_taskSetsInfo = value; }
308
312 inline void SetTaskSetsInfo(Aws::Vector<ECSTaskSet>&& value) { m_taskSetsInfoHasBeenSet = true; m_taskSetsInfo = std::move(value); }
313
317 inline ECSTarget& WithTaskSetsInfo(const Aws::Vector<ECSTaskSet>& value) { SetTaskSetsInfo(value); return *this;}
318
322 inline ECSTarget& WithTaskSetsInfo(Aws::Vector<ECSTaskSet>&& value) { SetTaskSetsInfo(std::move(value)); return *this;}
323
327 inline ECSTarget& AddTaskSetsInfo(const ECSTaskSet& value) { m_taskSetsInfoHasBeenSet = true; m_taskSetsInfo.push_back(value); return *this; }
328
332 inline ECSTarget& AddTaskSetsInfo(ECSTaskSet&& value) { m_taskSetsInfoHasBeenSet = true; m_taskSetsInfo.push_back(std::move(value)); return *this; }
333
334 private:
335
336 Aws::String m_deploymentId;
337 bool m_deploymentIdHasBeenSet = false;
338
339 Aws::String m_targetId;
340 bool m_targetIdHasBeenSet = false;
341
342 Aws::String m_targetArn;
343 bool m_targetArnHasBeenSet = false;
344
345 Aws::Utils::DateTime m_lastUpdatedAt;
346 bool m_lastUpdatedAtHasBeenSet = false;
347
348 Aws::Vector<LifecycleEvent> m_lifecycleEvents;
349 bool m_lifecycleEventsHasBeenSet = false;
350
351 TargetStatus m_status;
352 bool m_statusHasBeenSet = false;
353
354 Aws::Vector<ECSTaskSet> m_taskSetsInfo;
355 bool m_taskSetsInfoHasBeenSet = false;
356 };
357
358} // namespace Model
359} // namespace CodeDeploy
360} // namespace Aws
#define AWS_CODEDEPLOY_API
ECSTarget & AddLifecycleEvents(const LifecycleEvent &value)
Definition: ECSTarget.h:254
ECSTarget & AddTaskSetsInfo(ECSTaskSet &&value)
Definition: ECSTarget.h:332
ECSTarget & AddLifecycleEvents(LifecycleEvent &&value)
Definition: ECSTarget.h:260
void SetTargetId(const Aws::String &value)
Definition: ECSTarget.h:103
ECSTarget & WithTargetId(const Aws::String &value)
Definition: ECSTarget.h:121
bool LifecycleEventsHasBeenSet() const
Definition: ECSTarget.h:224
void SetStatus(const TargetStatus &value)
Definition: ECSTarget.h:276
void SetTargetId(const char *value)
Definition: ECSTarget.h:115
ECSTarget & WithDeploymentId(Aws::String &&value)
Definition: ECSTarget.h:79
ECSTarget & WithTaskSetsInfo(const Aws::Vector< ECSTaskSet > &value)
Definition: ECSTarget.h:317
ECSTarget & WithLifecycleEvents(const Aws::Vector< LifecycleEvent > &value)
Definition: ECSTarget.h:242
ECSTarget & WithLifecycleEvents(Aws::Vector< LifecycleEvent > &&value)
Definition: ECSTarget.h:248
void SetDeploymentId(const char *value)
Definition: ECSTarget.h:69
ECSTarget & WithStatus(const TargetStatus &value)
Definition: ECSTarget.h:286
AWS_CODEDEPLOY_API ECSTarget(Aws::Utils::Json::JsonView jsonValue)
const TargetStatus & GetStatus() const
Definition: ECSTarget.h:266
void SetTaskSetsInfo(const Aws::Vector< ECSTaskSet > &value)
Definition: ECSTarget.h:307
ECSTarget & WithDeploymentId(const Aws::String &value)
Definition: ECSTarget.h:74
void SetTargetArn(const Aws::String &value)
Definition: ECSTarget.h:149
const Aws::Vector< ECSTaskSet > & GetTaskSetsInfo() const
Definition: ECSTarget.h:297
ECSTarget & WithTargetArn(const Aws::String &value)
Definition: ECSTarget.h:164
void SetLifecycleEvents(const Aws::Vector< LifecycleEvent > &value)
Definition: ECSTarget.h:230
const Aws::String & GetTargetArn() const
Definition: ECSTarget.h:139
void SetDeploymentId(Aws::String &&value)
Definition: ECSTarget.h:64
ECSTarget & WithStatus(TargetStatus &&value)
Definition: ECSTarget.h:291
ECSTarget & WithTargetArn(const char *value)
Definition: ECSTarget.h:174
ECSTarget & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition: ECSTarget.h:211
AWS_CODEDEPLOY_API ECSTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTargetArn(Aws::String &&value)
Definition: ECSTarget.h:154
ECSTarget & WithTargetId(const char *value)
Definition: ECSTarget.h:133
ECSTarget & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition: ECSTarget.h:205
void SetTaskSetsInfo(Aws::Vector< ECSTaskSet > &&value)
Definition: ECSTarget.h:312
void SetStatus(TargetStatus &&value)
Definition: ECSTarget.h:281
ECSTarget & WithTaskSetsInfo(Aws::Vector< ECSTaskSet > &&value)
Definition: ECSTarget.h:322
const Aws::String & GetTargetId() const
Definition: ECSTarget.h:91
ECSTarget & WithDeploymentId(const char *value)
Definition: ECSTarget.h:84
AWS_CODEDEPLOY_API ECSTarget()
ECSTarget & WithTargetId(Aws::String &&value)
Definition: ECSTarget.h:127
void SetDeploymentId(const Aws::String &value)
Definition: ECSTarget.h:59
void SetLifecycleEvents(Aws::Vector< LifecycleEvent > &&value)
Definition: ECSTarget.h:236
ECSTarget & AddTaskSetsInfo(const ECSTaskSet &value)
Definition: ECSTarget.h:327
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetArn(const char *value)
Definition: ECSTarget.h:159
ECSTarget & WithTargetArn(Aws::String &&value)
Definition: ECSTarget.h:169
const Aws::Vector< LifecycleEvent > & GetLifecycleEvents() const
Definition: ECSTarget.h:218
const Aws::String & GetDeploymentId() const
Definition: ECSTarget.h:49
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition: ECSTarget.h:199
void SetTargetId(Aws::String &&value)
Definition: ECSTarget.h:109
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition: ECSTarget.h:181
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition: ECSTarget.h:193
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector