AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdentiferT = Aws::String>
54 void SetIdentifer(IdentiferT&& value) { m_identiferHasBeenSet = true; m_identifer = std::forward<IdentiferT>(value); }
55 template<typename IdentiferT = Aws::String>
56 ECSTaskSet& WithIdentifer(IdentiferT&& value) { SetIdentifer(std::forward<IdentiferT>(value)); return *this;}
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) { m_desiredCountHasBeenSet = true; m_desiredCount = value; }
69 inline ECSTaskSet& WithDesiredCount(long long value) { SetDesiredCount(value); return *this;}
71
73
80 inline long long GetPendingCount() const { return m_pendingCount; }
81 inline bool PendingCountHasBeenSet() const { return m_pendingCountHasBeenSet; }
82 inline void SetPendingCount(long long value) { m_pendingCountHasBeenSet = true; m_pendingCount = value; }
83 inline ECSTaskSet& WithPendingCount(long long value) { SetPendingCount(value); return *this;}
85
87
92 inline long long GetRunningCount() const { return m_runningCount; }
93 inline bool RunningCountHasBeenSet() const { return m_runningCountHasBeenSet; }
94 inline void SetRunningCount(long long value) { m_runningCountHasBeenSet = true; m_runningCount = value; }
95 inline ECSTaskSet& WithRunningCount(long long value) { SetRunningCount(value); return *this;}
97
99
107 inline const Aws::String& GetStatus() const { return m_status; }
108 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
109 template<typename StatusT = Aws::String>
110 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
111 template<typename StatusT = Aws::String>
112 ECSTaskSet& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
114
116
119 inline double GetTrafficWeight() const { return m_trafficWeight; }
120 inline bool TrafficWeightHasBeenSet() const { return m_trafficWeightHasBeenSet; }
121 inline void SetTrafficWeight(double value) { m_trafficWeightHasBeenSet = true; m_trafficWeight = value; }
122 inline ECSTaskSet& WithTrafficWeight(double value) { SetTrafficWeight(value); return *this;}
124
126
130 inline const TargetGroupInfo& GetTargetGroup() const { return m_targetGroup; }
131 inline bool TargetGroupHasBeenSet() const { return m_targetGroupHasBeenSet; }
132 template<typename TargetGroupT = TargetGroupInfo>
133 void SetTargetGroup(TargetGroupT&& value) { m_targetGroupHasBeenSet = true; m_targetGroup = std::forward<TargetGroupT>(value); }
134 template<typename TargetGroupT = TargetGroupInfo>
135 ECSTaskSet& WithTargetGroup(TargetGroupT&& value) { SetTargetGroup(std::forward<TargetGroupT>(value)); return *this;}
137
139
143 inline TargetLabel GetTaskSetLabel() const { return m_taskSetLabel; }
144 inline bool TaskSetLabelHasBeenSet() const { return m_taskSetLabelHasBeenSet; }
145 inline void SetTaskSetLabel(TargetLabel value) { m_taskSetLabelHasBeenSet = true; m_taskSetLabel = value; }
146 inline ECSTaskSet& WithTaskSetLabel(TargetLabel value) { SetTaskSetLabel(value); return *this;}
148 private:
149
150 Aws::String m_identifer;
151 bool m_identiferHasBeenSet = false;
152
153 long long m_desiredCount{0};
154 bool m_desiredCountHasBeenSet = false;
155
156 long long m_pendingCount{0};
157 bool m_pendingCountHasBeenSet = false;
158
159 long long m_runningCount{0};
160 bool m_runningCountHasBeenSet = false;
161
162 Aws::String m_status;
163 bool m_statusHasBeenSet = false;
164
165 double m_trafficWeight{0.0};
166 bool m_trafficWeightHasBeenSet = false;
167
168 TargetGroupInfo m_targetGroup;
169 bool m_targetGroupHasBeenSet = false;
170
171 TargetLabel m_taskSetLabel{TargetLabel::NOT_SET};
172 bool m_taskSetLabelHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace CodeDeploy
177} // namespace Aws
void SetIdentifer(IdentiferT &&value)
Definition ECSTaskSet.h:54
ECSTaskSet & WithStatus(StatusT &&value)
Definition ECSTaskSet.h:112
ECSTaskSet & WithTaskSetLabel(TargetLabel value)
Definition ECSTaskSet.h:146
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
TargetLabel GetTaskSetLabel() const
Definition ECSTaskSet.h:143
const Aws::String & GetIdentifer() const
Definition ECSTaskSet.h:51
void SetPendingCount(long long value)
Definition ECSTaskSet.h:82
const TargetGroupInfo & GetTargetGroup() const
Definition ECSTaskSet.h:130
void SetDesiredCount(long long value)
Definition ECSTaskSet.h:68
ECSTaskSet & WithRunningCount(long long value)
Definition ECSTaskSet.h:95
ECSTaskSet & WithTargetGroup(TargetGroupT &&value)
Definition ECSTaskSet.h:135
ECSTaskSet & WithTrafficWeight(double value)
Definition ECSTaskSet.h:122
void SetStatus(StatusT &&value)
Definition ECSTaskSet.h:110
AWS_CODEDEPLOY_API ECSTaskSet()=default
void SetRunningCount(long long value)
Definition ECSTaskSet.h:94
void SetTrafficWeight(double value)
Definition ECSTaskSet.h:121
ECSTaskSet & WithDesiredCount(long long value)
Definition ECSTaskSet.h:69
AWS_CODEDEPLOY_API ECSTaskSet(Aws::Utils::Json::JsonView jsonValue)
void SetTargetGroup(TargetGroupT &&value)
Definition ECSTaskSet.h:133
AWS_CODEDEPLOY_API ECSTaskSet & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStatus() const
Definition ECSTaskSet.h:107
ECSTaskSet & WithPendingCount(long long value)
Definition ECSTaskSet.h:83
long long GetPendingCount() const
Definition ECSTaskSet.h:80
void SetTaskSetLabel(TargetLabel value)
Definition ECSTaskSet.h:145
long long GetRunningCount() const
Definition ECSTaskSet.h:92
ECSTaskSet & WithIdentifer(IdentiferT &&value)
Definition ECSTaskSet.h:56
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