AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
EcsClusterDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/EcsTaskDetails.h>
11#include <aws/guardduty/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty {
23namespace Model {
24
32 public:
33 AWS_GUARDDUTY_API EcsClusterDetails() = default;
34 AWS_GUARDDUTY_API EcsClusterDetails(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 EcsClusterDetails& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetArn() const { return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 template <typename ArnT = Aws::String>
63 void SetArn(ArnT&& value) {
64 m_arnHasBeenSet = true;
65 m_arn = std::forward<ArnT>(value);
66 }
67 template <typename ArnT = Aws::String>
68 EcsClusterDetails& WithArn(ArnT&& value) {
69 SetArn(std::forward<ArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetStatus() const { return m_status; }
79 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 template <typename StatusT = Aws::String>
81 void SetStatus(StatusT&& value) {
82 m_statusHasBeenSet = true;
83 m_status = std::forward<StatusT>(value);
84 }
85 template <typename StatusT = Aws::String>
86 EcsClusterDetails& WithStatus(StatusT&& value) {
87 SetStatus(std::forward<StatusT>(value));
88 return *this;
89 }
91
93
97 inline int GetActiveServicesCount() const { return m_activeServicesCount; }
98 inline bool ActiveServicesCountHasBeenSet() const { return m_activeServicesCountHasBeenSet; }
99 inline void SetActiveServicesCount(int value) {
100 m_activeServicesCountHasBeenSet = true;
101 m_activeServicesCount = value;
102 }
105 return *this;
106 }
108
110
113 inline int GetRegisteredContainerInstancesCount() const { return m_registeredContainerInstancesCount; }
114 inline bool RegisteredContainerInstancesCountHasBeenSet() const { return m_registeredContainerInstancesCountHasBeenSet; }
116 m_registeredContainerInstancesCountHasBeenSet = true;
117 m_registeredContainerInstancesCount = value;
118 }
121 return *this;
122 }
124
126
129 inline int GetRunningTasksCount() const { return m_runningTasksCount; }
130 inline bool RunningTasksCountHasBeenSet() const { return m_runningTasksCountHasBeenSet; }
131 inline void SetRunningTasksCount(int value) {
132 m_runningTasksCountHasBeenSet = true;
133 m_runningTasksCount = value;
134 }
137 return *this;
138 }
140
142
145 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
146 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
147 template <typename TagsT = Aws::Vector<Tag>>
148 void SetTags(TagsT&& value) {
149 m_tagsHasBeenSet = true;
150 m_tags = std::forward<TagsT>(value);
151 }
152 template <typename TagsT = Aws::Vector<Tag>>
153 EcsClusterDetails& WithTags(TagsT&& value) {
154 SetTags(std::forward<TagsT>(value));
155 return *this;
156 }
157 template <typename TagsT = Tag>
158 EcsClusterDetails& AddTags(TagsT&& value) {
159 m_tagsHasBeenSet = true;
160 m_tags.emplace_back(std::forward<TagsT>(value));
161 return *this;
162 }
164
166
169 inline const EcsTaskDetails& GetTaskDetails() const { return m_taskDetails; }
170 inline bool TaskDetailsHasBeenSet() const { return m_taskDetailsHasBeenSet; }
171 template <typename TaskDetailsT = EcsTaskDetails>
172 void SetTaskDetails(TaskDetailsT&& value) {
173 m_taskDetailsHasBeenSet = true;
174 m_taskDetails = std::forward<TaskDetailsT>(value);
175 }
176 template <typename TaskDetailsT = EcsTaskDetails>
177 EcsClusterDetails& WithTaskDetails(TaskDetailsT&& value) {
178 SetTaskDetails(std::forward<TaskDetailsT>(value));
179 return *this;
180 }
182 private:
183 Aws::String m_name;
184
185 Aws::String m_arn;
186
187 Aws::String m_status;
188
189 int m_activeServicesCount{0};
190
191 int m_registeredContainerInstancesCount{0};
192
193 int m_runningTasksCount{0};
194
195 Aws::Vector<Tag> m_tags;
196
197 EcsTaskDetails m_taskDetails;
198 bool m_nameHasBeenSet = false;
199 bool m_arnHasBeenSet = false;
200 bool m_statusHasBeenSet = false;
201 bool m_activeServicesCountHasBeenSet = false;
202 bool m_registeredContainerInstancesCountHasBeenSet = false;
203 bool m_runningTasksCountHasBeenSet = false;
204 bool m_tagsHasBeenSet = false;
205 bool m_taskDetailsHasBeenSet = false;
206};
207
208} // namespace Model
209} // namespace GuardDuty
210} // namespace Aws
EcsClusterDetails & WithRunningTasksCount(int value)
EcsClusterDetails & WithRegisteredContainerInstancesCount(int value)
const Aws::Vector< Tag > & GetTags() const
EcsClusterDetails & WithStatus(StatusT &&value)
EcsClusterDetails & AddTags(TagsT &&value)
AWS_GUARDDUTY_API EcsClusterDetails()=default
AWS_GUARDDUTY_API EcsClusterDetails(Aws::Utils::Json::JsonView jsonValue)
EcsClusterDetails & WithActiveServicesCount(int value)
AWS_GUARDDUTY_API EcsClusterDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
EcsClusterDetails & WithTaskDetails(TaskDetailsT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
EcsClusterDetails & WithTags(TagsT &&value)
EcsClusterDetails & WithArn(ArnT &&value)
EcsClusterDetails & WithName(NameT &&value)
const EcsTaskDetails & GetTaskDetails() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue