AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ECSTaskSet.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/TargetGroupInfo.h>
9#include <aws/codedeploy/model/TargetLabel.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeDeploy {
22namespace Model {
23
35 public:
36 AWS_CODEDEPLOY_API ECSTaskSet() = default;
37 AWS_CODEDEPLOY_API ECSTaskSet(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEDEPLOY_API ECSTaskSet& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetIdentifer() const { return m_identifer; }
46 inline bool IdentiferHasBeenSet() const { return m_identiferHasBeenSet; }
47 template <typename IdentiferT = Aws::String>
48 void SetIdentifer(IdentiferT&& value) {
49 m_identiferHasBeenSet = true;
50 m_identifer = std::forward<IdentiferT>(value);
51 }
52 template <typename IdentiferT = Aws::String>
53 ECSTaskSet& WithIdentifer(IdentiferT&& value) {
54 SetIdentifer(std::forward<IdentiferT>(value));
55 return *this;
56 }
58
60
66 inline long long GetDesiredCount() const { return m_desiredCount; }
67 inline bool DesiredCountHasBeenSet() const { return m_desiredCountHasBeenSet; }
68 inline void SetDesiredCount(long long value) {
69 m_desiredCountHasBeenSet = true;
70 m_desiredCount = value;
71 }
72 inline ECSTaskSet& WithDesiredCount(long long value) {
73 SetDesiredCount(value);
74 return *this;
75 }
77
79
86 inline long long GetPendingCount() const { return m_pendingCount; }
87 inline bool PendingCountHasBeenSet() const { return m_pendingCountHasBeenSet; }
88 inline void SetPendingCount(long long value) {
89 m_pendingCountHasBeenSet = true;
90 m_pendingCount = value;
91 }
92 inline ECSTaskSet& WithPendingCount(long long value) {
93 SetPendingCount(value);
94 return *this;
95 }
97
99
104 inline long long GetRunningCount() const { return m_runningCount; }
105 inline bool RunningCountHasBeenSet() const { return m_runningCountHasBeenSet; }
106 inline void SetRunningCount(long long value) {
107 m_runningCountHasBeenSet = true;
108 m_runningCount = value;
109 }
110 inline ECSTaskSet& WithRunningCount(long long value) {
111 SetRunningCount(value);
112 return *this;
113 }
115
117
125 inline const Aws::String& GetStatus() const { return m_status; }
126 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
127 template <typename StatusT = Aws::String>
128 void SetStatus(StatusT&& value) {
129 m_statusHasBeenSet = true;
130 m_status = std::forward<StatusT>(value);
131 }
132 template <typename StatusT = Aws::String>
133 ECSTaskSet& WithStatus(StatusT&& value) {
134 SetStatus(std::forward<StatusT>(value));
135 return *this;
136 }
138
140
143 inline double GetTrafficWeight() const { return m_trafficWeight; }
144 inline bool TrafficWeightHasBeenSet() const { return m_trafficWeightHasBeenSet; }
145 inline void SetTrafficWeight(double value) {
146 m_trafficWeightHasBeenSet = true;
147 m_trafficWeight = value;
148 }
149 inline ECSTaskSet& WithTrafficWeight(double value) {
150 SetTrafficWeight(value);
151 return *this;
152 }
154
156
160 inline const TargetGroupInfo& GetTargetGroup() const { return m_targetGroup; }
161 inline bool TargetGroupHasBeenSet() const { return m_targetGroupHasBeenSet; }
162 template <typename TargetGroupT = TargetGroupInfo>
163 void SetTargetGroup(TargetGroupT&& value) {
164 m_targetGroupHasBeenSet = true;
165 m_targetGroup = std::forward<TargetGroupT>(value);
166 }
167 template <typename TargetGroupT = TargetGroupInfo>
168 ECSTaskSet& WithTargetGroup(TargetGroupT&& value) {
169 SetTargetGroup(std::forward<TargetGroupT>(value));
170 return *this;
171 }
173
175
179 inline TargetLabel GetTaskSetLabel() const { return m_taskSetLabel; }
180 inline bool TaskSetLabelHasBeenSet() const { return m_taskSetLabelHasBeenSet; }
181 inline void SetTaskSetLabel(TargetLabel value) {
182 m_taskSetLabelHasBeenSet = true;
183 m_taskSetLabel = value;
184 }
186 SetTaskSetLabel(value);
187 return *this;
188 }
190 private:
191 Aws::String m_identifer;
192
193 long long m_desiredCount{0};
194
195 long long m_pendingCount{0};
196
197 long long m_runningCount{0};
198
199 Aws::String m_status;
200
201 double m_trafficWeight{0.0};
202
203 TargetGroupInfo m_targetGroup;
204
205 TargetLabel m_taskSetLabel{TargetLabel::NOT_SET};
206 bool m_identiferHasBeenSet = false;
207 bool m_desiredCountHasBeenSet = false;
208 bool m_pendingCountHasBeenSet = false;
209 bool m_runningCountHasBeenSet = false;
210 bool m_statusHasBeenSet = false;
211 bool m_trafficWeightHasBeenSet = false;
212 bool m_targetGroupHasBeenSet = false;
213 bool m_taskSetLabelHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace CodeDeploy
218} // namespace Aws
void SetIdentifer(IdentiferT &&value)
Definition ECSTaskSet.h:48
ECSTaskSet & WithStatus(StatusT &&value)
Definition ECSTaskSet.h:133
ECSTaskSet & WithTaskSetLabel(TargetLabel value)
Definition ECSTaskSet.h:185
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
TargetLabel GetTaskSetLabel() const
Definition ECSTaskSet.h:179
const Aws::String & GetIdentifer() const
Definition ECSTaskSet.h:45
void SetPendingCount(long long value)
Definition ECSTaskSet.h:88
const TargetGroupInfo & GetTargetGroup() const
Definition ECSTaskSet.h:160
void SetDesiredCount(long long value)
Definition ECSTaskSet.h:68
ECSTaskSet & WithRunningCount(long long value)
Definition ECSTaskSet.h:110
ECSTaskSet & WithTargetGroup(TargetGroupT &&value)
Definition ECSTaskSet.h:168
ECSTaskSet & WithTrafficWeight(double value)
Definition ECSTaskSet.h:149
void SetStatus(StatusT &&value)
Definition ECSTaskSet.h:128
AWS_CODEDEPLOY_API ECSTaskSet()=default
void SetRunningCount(long long value)
Definition ECSTaskSet.h:106
void SetTrafficWeight(double value)
Definition ECSTaskSet.h:145
ECSTaskSet & WithDesiredCount(long long value)
Definition ECSTaskSet.h:72
AWS_CODEDEPLOY_API ECSTaskSet(Aws::Utils::Json::JsonView jsonValue)
void SetTargetGroup(TargetGroupT &&value)
Definition ECSTaskSet.h:163
AWS_CODEDEPLOY_API ECSTaskSet & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStatus() const
Definition ECSTaskSet.h:125
ECSTaskSet & WithPendingCount(long long value)
Definition ECSTaskSet.h:92
long long GetPendingCount() const
Definition ECSTaskSet.h:86
void SetTaskSetLabel(TargetLabel value)
Definition ECSTaskSet.h:181
ECSTaskSet & WithIdentifer(IdentiferT &&value)
Definition ECSTaskSet.h:53
long long GetDesiredCount() const
Definition ECSTaskSet.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue