AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ECSTaskSet.h
Go to the documentation of this file.
1
6#pragma once
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 CodeDeploy
24{
25namespace Model
26{
27
39 {
40 public:
45
46
50 inline const Aws::String& GetIdentifer() const{ return m_identifer; }
51
55 inline bool IdentiferHasBeenSet() const { return m_identiferHasBeenSet; }
56
60 inline void SetIdentifer(const Aws::String& value) { m_identiferHasBeenSet = true; m_identifer = value; }
61
65 inline void SetIdentifer(Aws::String&& value) { m_identiferHasBeenSet = true; m_identifer = std::move(value); }
66
70 inline void SetIdentifer(const char* value) { m_identiferHasBeenSet = true; m_identifer.assign(value); }
71
75 inline ECSTaskSet& WithIdentifer(const Aws::String& value) { SetIdentifer(value); return *this;}
76
80 inline ECSTaskSet& WithIdentifer(Aws::String&& value) { SetIdentifer(std::move(value)); return *this;}
81
85 inline ECSTaskSet& WithIdentifer(const char* value) { SetIdentifer(value); return *this;}
86
87
94 inline long long GetDesiredCount() const{ return m_desiredCount; }
95
102 inline bool DesiredCountHasBeenSet() const { return m_desiredCountHasBeenSet; }
103
110 inline void SetDesiredCount(long long value) { m_desiredCountHasBeenSet = true; m_desiredCount = value; }
111
118 inline ECSTaskSet& WithDesiredCount(long long value) { SetDesiredCount(value); return *this;}
119
120
128 inline long long GetPendingCount() const{ return m_pendingCount; }
129
137 inline bool PendingCountHasBeenSet() const { return m_pendingCountHasBeenSet; }
138
146 inline void SetPendingCount(long long value) { m_pendingCountHasBeenSet = true; m_pendingCount = value; }
147
155 inline ECSTaskSet& WithPendingCount(long long value) { SetPendingCount(value); return *this;}
156
157
163 inline long long GetRunningCount() const{ return m_runningCount; }
164
170 inline bool RunningCountHasBeenSet() const { return m_runningCountHasBeenSet; }
171
177 inline void SetRunningCount(long long value) { m_runningCountHasBeenSet = true; m_runningCount = value; }
178
184 inline ECSTaskSet& WithRunningCount(long long value) { SetRunningCount(value); return *this;}
185
186
195 inline const Aws::String& GetStatus() const{ return m_status; }
196
205 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
206
215 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
216
225 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
226
235 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
236
245 inline ECSTaskSet& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
246
255 inline ECSTaskSet& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
256
265 inline ECSTaskSet& WithStatus(const char* value) { SetStatus(value); return *this;}
266
267
271 inline double GetTrafficWeight() const{ return m_trafficWeight; }
272
276 inline bool TrafficWeightHasBeenSet() const { return m_trafficWeightHasBeenSet; }
277
281 inline void SetTrafficWeight(double value) { m_trafficWeightHasBeenSet = true; m_trafficWeight = value; }
282
286 inline ECSTaskSet& WithTrafficWeight(double value) { SetTrafficWeight(value); return *this;}
287
288
293 inline const TargetGroupInfo& GetTargetGroup() const{ return m_targetGroup; }
294
299 inline bool TargetGroupHasBeenSet() const { return m_targetGroupHasBeenSet; }
300
305 inline void SetTargetGroup(const TargetGroupInfo& value) { m_targetGroupHasBeenSet = true; m_targetGroup = value; }
306
311 inline void SetTargetGroup(TargetGroupInfo&& value) { m_targetGroupHasBeenSet = true; m_targetGroup = std::move(value); }
312
317 inline ECSTaskSet& WithTargetGroup(const TargetGroupInfo& value) { SetTargetGroup(value); return *this;}
318
323 inline ECSTaskSet& WithTargetGroup(TargetGroupInfo&& value) { SetTargetGroup(std::move(value)); return *this;}
324
325
330 inline const TargetLabel& GetTaskSetLabel() const{ return m_taskSetLabel; }
331
336 inline bool TaskSetLabelHasBeenSet() const { return m_taskSetLabelHasBeenSet; }
337
342 inline void SetTaskSetLabel(const TargetLabel& value) { m_taskSetLabelHasBeenSet = true; m_taskSetLabel = value; }
343
348 inline void SetTaskSetLabel(TargetLabel&& value) { m_taskSetLabelHasBeenSet = true; m_taskSetLabel = std::move(value); }
349
354 inline ECSTaskSet& WithTaskSetLabel(const TargetLabel& value) { SetTaskSetLabel(value); return *this;}
355
360 inline ECSTaskSet& WithTaskSetLabel(TargetLabel&& value) { SetTaskSetLabel(std::move(value)); return *this;}
361
362 private:
363
364 Aws::String m_identifer;
365 bool m_identiferHasBeenSet = false;
366
367 long long m_desiredCount;
368 bool m_desiredCountHasBeenSet = false;
369
370 long long m_pendingCount;
371 bool m_pendingCountHasBeenSet = false;
372
373 long long m_runningCount;
374 bool m_runningCountHasBeenSet = false;
375
376 Aws::String m_status;
377 bool m_statusHasBeenSet = false;
378
379 double m_trafficWeight;
380 bool m_trafficWeightHasBeenSet = false;
381
382 TargetGroupInfo m_targetGroup;
383 bool m_targetGroupHasBeenSet = false;
384
385 TargetLabel m_taskSetLabel;
386 bool m_taskSetLabelHasBeenSet = false;
387 };
388
389} // namespace Model
390} // namespace CodeDeploy
391} // namespace Aws
#define AWS_CODEDEPLOY_API
ECSTaskSet & WithTargetGroup(const TargetGroupInfo &value)
Definition: ECSTaskSet.h:317
void SetTargetGroup(TargetGroupInfo &&value)
Definition: ECSTaskSet.h:311
ECSTaskSet & WithStatus(const Aws::String &value)
Definition: ECSTaskSet.h:245
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetIdentifer() const
Definition: ECSTaskSet.h:50
void SetPendingCount(long long value)
Definition: ECSTaskSet.h:146
const TargetGroupInfo & GetTargetGroup() const
Definition: ECSTaskSet.h:293
void SetTaskSetLabel(TargetLabel &&value)
Definition: ECSTaskSet.h:348
void SetDesiredCount(long long value)
Definition: ECSTaskSet.h:110
ECSTaskSet & WithRunningCount(long long value)
Definition: ECSTaskSet.h:184
ECSTaskSet & WithTrafficWeight(double value)
Definition: ECSTaskSet.h:286
ECSTaskSet & WithTargetGroup(TargetGroupInfo &&value)
Definition: ECSTaskSet.h:323
void SetRunningCount(long long value)
Definition: ECSTaskSet.h:177
ECSTaskSet & WithStatus(Aws::String &&value)
Definition: ECSTaskSet.h:255
void SetTrafficWeight(double value)
Definition: ECSTaskSet.h:281
ECSTaskSet & WithDesiredCount(long long value)
Definition: ECSTaskSet.h:118
void SetTargetGroup(const TargetGroupInfo &value)
Definition: ECSTaskSet.h:305
ECSTaskSet & WithTaskSetLabel(TargetLabel &&value)
Definition: ECSTaskSet.h:360
ECSTaskSet & WithTaskSetLabel(const TargetLabel &value)
Definition: ECSTaskSet.h:354
AWS_CODEDEPLOY_API ECSTaskSet(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API ECSTaskSet & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStatus() const
Definition: ECSTaskSet.h:195
void SetStatus(const char *value)
Definition: ECSTaskSet.h:235
void SetIdentifer(Aws::String &&value)
Definition: ECSTaskSet.h:65
AWS_CODEDEPLOY_API ECSTaskSet()
ECSTaskSet & WithIdentifer(Aws::String &&value)
Definition: ECSTaskSet.h:80
void SetIdentifer(const char *value)
Definition: ECSTaskSet.h:70
void SetIdentifer(const Aws::String &value)
Definition: ECSTaskSet.h:60
void SetStatus(Aws::String &&value)
Definition: ECSTaskSet.h:225
void SetStatus(const Aws::String &value)
Definition: ECSTaskSet.h:215
ECSTaskSet & WithPendingCount(long long value)
Definition: ECSTaskSet.h:155
long long GetPendingCount() const
Definition: ECSTaskSet.h:128
ECSTaskSet & WithStatus(const char *value)
Definition: ECSTaskSet.h:265
long long GetRunningCount() const
Definition: ECSTaskSet.h:163
ECSTaskSet & WithIdentifer(const Aws::String &value)
Definition: ECSTaskSet.h:75
const TargetLabel & GetTaskSetLabel() const
Definition: ECSTaskSet.h:330
ECSTaskSet & WithIdentifer(const char *value)
Definition: ECSTaskSet.h:85
long long GetDesiredCount() const
Definition: ECSTaskSet.h:94
void SetTaskSetLabel(const TargetLabel &value)
Definition: ECSTaskSet.h:342
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String