AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
ServiceRevisionSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ECS {
20namespace Model {
21
29 public:
30 AWS_ECS_API ServiceRevisionSummary() = default;
34
36
39 inline const Aws::String& GetArn() const { return m_arn; }
40 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
41 template <typename ArnT = Aws::String>
42 void SetArn(ArnT&& value) {
43 m_arnHasBeenSet = true;
44 m_arn = std::forward<ArnT>(value);
45 }
46 template <typename ArnT = Aws::String>
48 SetArn(std::forward<ArnT>(value));
49 return *this;
50 }
52
54
57 inline int GetRequestedTaskCount() const { return m_requestedTaskCount; }
58 inline bool RequestedTaskCountHasBeenSet() const { return m_requestedTaskCountHasBeenSet; }
59 inline void SetRequestedTaskCount(int value) {
60 m_requestedTaskCountHasBeenSet = true;
61 m_requestedTaskCount = value;
62 }
65 return *this;
66 }
68
70
73 inline int GetRunningTaskCount() const { return m_runningTaskCount; }
74 inline bool RunningTaskCountHasBeenSet() const { return m_runningTaskCountHasBeenSet; }
75 inline void SetRunningTaskCount(int value) {
76 m_runningTaskCountHasBeenSet = true;
77 m_runningTaskCount = value;
78 }
81 return *this;
82 }
84
86
89 inline int GetPendingTaskCount() const { return m_pendingTaskCount; }
90 inline bool PendingTaskCountHasBeenSet() const { return m_pendingTaskCountHasBeenSet; }
91 inline void SetPendingTaskCount(int value) {
92 m_pendingTaskCountHasBeenSet = true;
93 m_pendingTaskCount = value;
94 }
97 return *this;
98 }
100
102
107 inline double GetRequestedTestTrafficWeight() const { return m_requestedTestTrafficWeight; }
108 inline bool RequestedTestTrafficWeightHasBeenSet() const { return m_requestedTestTrafficWeightHasBeenSet; }
109 inline void SetRequestedTestTrafficWeight(double value) {
110 m_requestedTestTrafficWeightHasBeenSet = true;
111 m_requestedTestTrafficWeight = value;
112 }
115 return *this;
116 }
118
120
126 inline double GetRequestedProductionTrafficWeight() const { return m_requestedProductionTrafficWeight; }
127 inline bool RequestedProductionTrafficWeightHasBeenSet() const { return m_requestedProductionTrafficWeightHasBeenSet; }
128 inline void SetRequestedProductionTrafficWeight(double value) {
129 m_requestedProductionTrafficWeightHasBeenSet = true;
130 m_requestedProductionTrafficWeight = value;
131 }
134 return *this;
135 }
137 private:
138 Aws::String m_arn;
139
140 int m_requestedTaskCount{0};
141
142 int m_runningTaskCount{0};
143
144 int m_pendingTaskCount{0};
145
146 double m_requestedTestTrafficWeight{0.0};
147
148 double m_requestedProductionTrafficWeight{0.0};
149 bool m_arnHasBeenSet = false;
150 bool m_requestedTaskCountHasBeenSet = false;
151 bool m_runningTaskCountHasBeenSet = false;
152 bool m_pendingTaskCountHasBeenSet = false;
153 bool m_requestedTestTrafficWeightHasBeenSet = false;
154 bool m_requestedProductionTrafficWeightHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace ECS
159} // namespace Aws
AWS_ECS_API ServiceRevisionSummary()=default
AWS_ECS_API ServiceRevisionSummary(Aws::Utils::Json::JsonView jsonValue)
ServiceRevisionSummary & WithRequestedProductionTrafficWeight(double value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceRevisionSummary & WithRunningTaskCount(int value)
AWS_ECS_API ServiceRevisionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceRevisionSummary & WithArn(ArnT &&value)
ServiceRevisionSummary & WithRequestedTestTrafficWeight(double value)
ServiceRevisionSummary & WithPendingTaskCount(int value)
ServiceRevisionSummary & WithRequestedTaskCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue