AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ECSTaskSet.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codedeploy/model/TargetGroupInfo.h>
10#include <aws/codedeploy/model/TargetLabel.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 CodeDeploy
24{
25namespace Model
26{
27
39 {
40 public:
41 AWS_CODEDEPLOY_API ECSTaskSet();
42 AWS_CODEDEPLOY_API ECSTaskSet(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODEDEPLOY_API ECSTaskSet& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetIdentifer() const{ return m_identifer; }
52 inline bool IdentiferHasBeenSet() const { return m_identiferHasBeenSet; }
53 inline void SetIdentifer(const Aws::String& value) { m_identiferHasBeenSet = true; m_identifer = value; }
54 inline void SetIdentifer(Aws::String&& value) { m_identiferHasBeenSet = true; m_identifer = std::move(value); }
55 inline void SetIdentifer(const char* value) { m_identiferHasBeenSet = true; m_identifer.assign(value); }
56 inline ECSTaskSet& WithIdentifer(const Aws::String& value) { SetIdentifer(value); return *this;}
57 inline ECSTaskSet& WithIdentifer(Aws::String&& value) { SetIdentifer(std::move(value)); return *this;}
58 inline ECSTaskSet& WithIdentifer(const char* value) { SetIdentifer(value); return *this;}
60
62
68 inline long long GetDesiredCount() const{ return m_desiredCount; }
69 inline bool DesiredCountHasBeenSet() const { return m_desiredCountHasBeenSet; }
70 inline void SetDesiredCount(long long value) { m_desiredCountHasBeenSet = true; m_desiredCount = value; }
71 inline ECSTaskSet& WithDesiredCount(long long value) { SetDesiredCount(value); return *this;}
73
75
82 inline long long GetPendingCount() const{ return m_pendingCount; }
83 inline bool PendingCountHasBeenSet() const { return m_pendingCountHasBeenSet; }
84 inline void SetPendingCount(long long value) { m_pendingCountHasBeenSet = true; m_pendingCount = value; }
85 inline ECSTaskSet& WithPendingCount(long long value) { SetPendingCount(value); return *this;}
87
89
94 inline long long GetRunningCount() const{ return m_runningCount; }
95 inline bool RunningCountHasBeenSet() const { return m_runningCountHasBeenSet; }
96 inline void SetRunningCount(long long value) { m_runningCountHasBeenSet = true; m_runningCount = value; }
97 inline ECSTaskSet& WithRunningCount(long long value) { SetRunningCount(value); return *this;}
99
101
109 inline const Aws::String& GetStatus() const{ return m_status; }
110 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
111 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
112 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
113 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
114 inline ECSTaskSet& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
115 inline ECSTaskSet& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
116 inline ECSTaskSet& WithStatus(const char* value) { SetStatus(value); return *this;}
118
120
123 inline double GetTrafficWeight() const{ return m_trafficWeight; }
124 inline bool TrafficWeightHasBeenSet() const { return m_trafficWeightHasBeenSet; }
125 inline void SetTrafficWeight(double value) { m_trafficWeightHasBeenSet = true; m_trafficWeight = value; }
126 inline ECSTaskSet& WithTrafficWeight(double value) { SetTrafficWeight(value); return *this;}
128
130
134 inline const TargetGroupInfo& GetTargetGroup() const{ return m_targetGroup; }
135 inline bool TargetGroupHasBeenSet() const { return m_targetGroupHasBeenSet; }
136 inline void SetTargetGroup(const TargetGroupInfo& value) { m_targetGroupHasBeenSet = true; m_targetGroup = value; }
137 inline void SetTargetGroup(TargetGroupInfo&& value) { m_targetGroupHasBeenSet = true; m_targetGroup = std::move(value); }
138 inline ECSTaskSet& WithTargetGroup(const TargetGroupInfo& value) { SetTargetGroup(value); return *this;}
139 inline ECSTaskSet& WithTargetGroup(TargetGroupInfo&& value) { SetTargetGroup(std::move(value)); return *this;}
141
143
147 inline const TargetLabel& GetTaskSetLabel() const{ return m_taskSetLabel; }
148 inline bool TaskSetLabelHasBeenSet() const { return m_taskSetLabelHasBeenSet; }
149 inline void SetTaskSetLabel(const TargetLabel& value) { m_taskSetLabelHasBeenSet = true; m_taskSetLabel = value; }
150 inline void SetTaskSetLabel(TargetLabel&& value) { m_taskSetLabelHasBeenSet = true; m_taskSetLabel = std::move(value); }
151 inline ECSTaskSet& WithTaskSetLabel(const TargetLabel& value) { SetTaskSetLabel(value); return *this;}
152 inline ECSTaskSet& WithTaskSetLabel(TargetLabel&& value) { SetTaskSetLabel(std::move(value)); return *this;}
154 private:
155
156 Aws::String m_identifer;
157 bool m_identiferHasBeenSet = false;
158
159 long long m_desiredCount;
160 bool m_desiredCountHasBeenSet = false;
161
162 long long m_pendingCount;
163 bool m_pendingCountHasBeenSet = false;
164
165 long long m_runningCount;
166 bool m_runningCountHasBeenSet = false;
167
168 Aws::String m_status;
169 bool m_statusHasBeenSet = false;
170
171 double m_trafficWeight;
172 bool m_trafficWeightHasBeenSet = false;
173
174 TargetGroupInfo m_targetGroup;
175 bool m_targetGroupHasBeenSet = false;
176
177 TargetLabel m_taskSetLabel;
178 bool m_taskSetLabelHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace CodeDeploy
183} // namespace Aws
ECSTaskSet & WithTargetGroup(const TargetGroupInfo &value)
Definition ECSTaskSet.h:138
void SetTargetGroup(TargetGroupInfo &&value)
Definition ECSTaskSet.h:137
ECSTaskSet & WithStatus(const Aws::String &value)
Definition ECSTaskSet.h:114
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetIdentifer() const
Definition ECSTaskSet.h:51
void SetPendingCount(long long value)
Definition ECSTaskSet.h:84
const TargetGroupInfo & GetTargetGroup() const
Definition ECSTaskSet.h:134
void SetTaskSetLabel(TargetLabel &&value)
Definition ECSTaskSet.h:150
void SetDesiredCount(long long value)
Definition ECSTaskSet.h:70
ECSTaskSet & WithRunningCount(long long value)
Definition ECSTaskSet.h:97
ECSTaskSet & WithTrafficWeight(double value)
Definition ECSTaskSet.h:126
ECSTaskSet & WithTargetGroup(TargetGroupInfo &&value)
Definition ECSTaskSet.h:139
void SetRunningCount(long long value)
Definition ECSTaskSet.h:96
ECSTaskSet & WithStatus(Aws::String &&value)
Definition ECSTaskSet.h:115
void SetTrafficWeight(double value)
Definition ECSTaskSet.h:125
ECSTaskSet & WithDesiredCount(long long value)
Definition ECSTaskSet.h:71
void SetTargetGroup(const TargetGroupInfo &value)
Definition ECSTaskSet.h:136
ECSTaskSet & WithTaskSetLabel(TargetLabel &&value)
Definition ECSTaskSet.h:152
ECSTaskSet & WithTaskSetLabel(const TargetLabel &value)
Definition ECSTaskSet.h:151
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:109
void SetStatus(const char *value)
Definition ECSTaskSet.h:113
void SetIdentifer(Aws::String &&value)
Definition ECSTaskSet.h:54
AWS_CODEDEPLOY_API ECSTaskSet()
ECSTaskSet & WithIdentifer(Aws::String &&value)
Definition ECSTaskSet.h:57
void SetIdentifer(const char *value)
Definition ECSTaskSet.h:55
void SetIdentifer(const Aws::String &value)
Definition ECSTaskSet.h:53
void SetStatus(Aws::String &&value)
Definition ECSTaskSet.h:112
void SetStatus(const Aws::String &value)
Definition ECSTaskSet.h:111
ECSTaskSet & WithPendingCount(long long value)
Definition ECSTaskSet.h:85
long long GetPendingCount() const
Definition ECSTaskSet.h:82
ECSTaskSet & WithStatus(const char *value)
Definition ECSTaskSet.h:116
long long GetRunningCount() const
Definition ECSTaskSet.h:94
ECSTaskSet & WithIdentifer(const Aws::String &value)
Definition ECSTaskSet.h:56
const TargetLabel & GetTaskSetLabel() const
Definition ECSTaskSet.h:147
ECSTaskSet & WithIdentifer(const char *value)
Definition ECSTaskSet.h:58
long long GetDesiredCount() const
Definition ECSTaskSet.h:68
void SetTaskSetLabel(const TargetLabel &value)
Definition ECSTaskSet.h:149
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue