AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
ServiceCurrentRevisionSummary.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 ServiceCurrentRevisionSummary() = 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 private:
101 Aws::String m_arn;
102
103 int m_requestedTaskCount{0};
104
105 int m_runningTaskCount{0};
106
107 int m_pendingTaskCount{0};
108 bool m_arnHasBeenSet = false;
109 bool m_requestedTaskCountHasBeenSet = false;
110 bool m_runningTaskCountHasBeenSet = false;
111 bool m_pendingTaskCountHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace ECS
116} // namespace Aws
ServiceCurrentRevisionSummary & WithRequestedTaskCount(int value)
ServiceCurrentRevisionSummary & WithRunningTaskCount(int value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API ServiceCurrentRevisionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API ServiceCurrentRevisionSummary(Aws::Utils::Json::JsonView jsonValue)
ServiceCurrentRevisionSummary & WithPendingTaskCount(int value)
ServiceCurrentRevisionSummary & WithArn(ArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue