AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AwsEcsClusterDetails.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/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsEcsClusterClusterSettingsDetails.h>
11#include <aws/securityhub/model/AwsEcsClusterConfigurationDetails.h>
12#include <aws/securityhub/model/AwsEcsClusterDefaultCapacityProviderStrategyDetails.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub {
24namespace Model {
25
32 public:
33 AWS_SECURITYHUB_API AwsEcsClusterDetails() = default;
34 AWS_SECURITYHUB_API AwsEcsClusterDetails(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
43 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
44 template <typename ClusterArnT = Aws::String>
45 void SetClusterArn(ClusterArnT&& value) {
46 m_clusterArnHasBeenSet = true;
47 m_clusterArn = std::forward<ClusterArnT>(value);
48 }
49 template <typename ClusterArnT = Aws::String>
50 AwsEcsClusterDetails& WithClusterArn(ClusterArnT&& value) {
51 SetClusterArn(std::forward<ClusterArnT>(value));
52 return *this;
53 }
55
57
63 inline int GetActiveServicesCount() const { return m_activeServicesCount; }
64 inline bool ActiveServicesCountHasBeenSet() const { return m_activeServicesCountHasBeenSet; }
65 inline void SetActiveServicesCount(int value) {
66 m_activeServicesCountHasBeenSet = true;
67 m_activeServicesCount = value;
68 }
71 return *this;
72 }
74
76
80 inline const Aws::Vector<Aws::String>& GetCapacityProviders() const { return m_capacityProviders; }
81 inline bool CapacityProvidersHasBeenSet() const { return m_capacityProvidersHasBeenSet; }
82 template <typename CapacityProvidersT = Aws::Vector<Aws::String>>
83 void SetCapacityProviders(CapacityProvidersT&& value) {
84 m_capacityProvidersHasBeenSet = true;
85 m_capacityProviders = std::forward<CapacityProvidersT>(value);
86 }
87 template <typename CapacityProvidersT = Aws::Vector<Aws::String>>
88 AwsEcsClusterDetails& WithCapacityProviders(CapacityProvidersT&& value) {
89 SetCapacityProviders(std::forward<CapacityProvidersT>(value));
90 return *this;
91 }
92 template <typename CapacityProvidersT = Aws::String>
93 AwsEcsClusterDetails& AddCapacityProviders(CapacityProvidersT&& value) {
94 m_capacityProvidersHasBeenSet = true;
95 m_capacityProviders.emplace_back(std::forward<CapacityProvidersT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::Vector<AwsEcsClusterClusterSettingsDetails>& GetClusterSettings() const { return m_clusterSettings; }
106 inline bool ClusterSettingsHasBeenSet() const { return m_clusterSettingsHasBeenSet; }
107 template <typename ClusterSettingsT = Aws::Vector<AwsEcsClusterClusterSettingsDetails>>
108 void SetClusterSettings(ClusterSettingsT&& value) {
109 m_clusterSettingsHasBeenSet = true;
110 m_clusterSettings = std::forward<ClusterSettingsT>(value);
111 }
112 template <typename ClusterSettingsT = Aws::Vector<AwsEcsClusterClusterSettingsDetails>>
113 AwsEcsClusterDetails& WithClusterSettings(ClusterSettingsT&& value) {
114 SetClusterSettings(std::forward<ClusterSettingsT>(value));
115 return *this;
116 }
117 template <typename ClusterSettingsT = AwsEcsClusterClusterSettingsDetails>
118 AwsEcsClusterDetails& AddClusterSettings(ClusterSettingsT&& value) {
119 m_clusterSettingsHasBeenSet = true;
120 m_clusterSettings.emplace_back(std::forward<ClusterSettingsT>(value));
121 return *this;
122 }
124
126
129 inline const AwsEcsClusterConfigurationDetails& GetConfiguration() const { return m_configuration; }
130 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
131 template <typename ConfigurationT = AwsEcsClusterConfigurationDetails>
132 void SetConfiguration(ConfigurationT&& value) {
133 m_configurationHasBeenSet = true;
134 m_configuration = std::forward<ConfigurationT>(value);
135 }
136 template <typename ConfigurationT = AwsEcsClusterConfigurationDetails>
137 AwsEcsClusterDetails& WithConfiguration(ConfigurationT&& value) {
138 SetConfiguration(std::forward<ConfigurationT>(value));
139 return *this;
140 }
142
144
150 return m_defaultCapacityProviderStrategy;
151 }
152 inline bool DefaultCapacityProviderStrategyHasBeenSet() const { return m_defaultCapacityProviderStrategyHasBeenSet; }
153 template <typename DefaultCapacityProviderStrategyT = Aws::Vector<AwsEcsClusterDefaultCapacityProviderStrategyDetails>>
154 void SetDefaultCapacityProviderStrategy(DefaultCapacityProviderStrategyT&& value) {
155 m_defaultCapacityProviderStrategyHasBeenSet = true;
156 m_defaultCapacityProviderStrategy = std::forward<DefaultCapacityProviderStrategyT>(value);
157 }
158 template <typename DefaultCapacityProviderStrategyT = Aws::Vector<AwsEcsClusterDefaultCapacityProviderStrategyDetails>>
159 AwsEcsClusterDetails& WithDefaultCapacityProviderStrategy(DefaultCapacityProviderStrategyT&& value) {
160 SetDefaultCapacityProviderStrategy(std::forward<DefaultCapacityProviderStrategyT>(value));
161 return *this;
162 }
163 template <typename DefaultCapacityProviderStrategyT = AwsEcsClusterDefaultCapacityProviderStrategyDetails>
164 AwsEcsClusterDetails& AddDefaultCapacityProviderStrategy(DefaultCapacityProviderStrategyT&& value) {
165 m_defaultCapacityProviderStrategyHasBeenSet = true;
166 m_defaultCapacityProviderStrategy.emplace_back(std::forward<DefaultCapacityProviderStrategyT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetClusterName() const { return m_clusterName; }
176 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
177 template <typename ClusterNameT = Aws::String>
178 void SetClusterName(ClusterNameT&& value) {
179 m_clusterNameHasBeenSet = true;
180 m_clusterName = std::forward<ClusterNameT>(value);
181 }
182 template <typename ClusterNameT = Aws::String>
183 AwsEcsClusterDetails& WithClusterName(ClusterNameT&& value) {
184 SetClusterName(std::forward<ClusterNameT>(value));
185 return *this;
186 }
188
190
195 inline int GetRegisteredContainerInstancesCount() const { return m_registeredContainerInstancesCount; }
196 inline bool RegisteredContainerInstancesCountHasBeenSet() const { return m_registeredContainerInstancesCountHasBeenSet; }
198 m_registeredContainerInstancesCountHasBeenSet = true;
199 m_registeredContainerInstancesCount = value;
200 }
203 return *this;
204 }
206
208
212 inline int GetRunningTasksCount() const { return m_runningTasksCount; }
213 inline bool RunningTasksCountHasBeenSet() const { return m_runningTasksCountHasBeenSet; }
214 inline void SetRunningTasksCount(int value) {
215 m_runningTasksCountHasBeenSet = true;
216 m_runningTasksCount = value;
217 }
220 return *this;
221 }
223
225
228 inline const Aws::String& GetStatus() const { return m_status; }
229 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
230 template <typename StatusT = Aws::String>
231 void SetStatus(StatusT&& value) {
232 m_statusHasBeenSet = true;
233 m_status = std::forward<StatusT>(value);
234 }
235 template <typename StatusT = Aws::String>
237 SetStatus(std::forward<StatusT>(value));
238 return *this;
239 }
241 private:
242 Aws::String m_clusterArn;
243
244 int m_activeServicesCount{0};
245
246 Aws::Vector<Aws::String> m_capacityProviders;
247
249
250 AwsEcsClusterConfigurationDetails m_configuration;
251
253
254 Aws::String m_clusterName;
255
256 int m_registeredContainerInstancesCount{0};
257
258 int m_runningTasksCount{0};
259
260 Aws::String m_status;
261 bool m_clusterArnHasBeenSet = false;
262 bool m_activeServicesCountHasBeenSet = false;
263 bool m_capacityProvidersHasBeenSet = false;
264 bool m_clusterSettingsHasBeenSet = false;
265 bool m_configurationHasBeenSet = false;
266 bool m_defaultCapacityProviderStrategyHasBeenSet = false;
267 bool m_clusterNameHasBeenSet = false;
268 bool m_registeredContainerInstancesCountHasBeenSet = false;
269 bool m_runningTasksCountHasBeenSet = false;
270 bool m_statusHasBeenSet = false;
271};
272
273} // namespace Model
274} // namespace SecurityHub
275} // namespace Aws
AwsEcsClusterDetails & AddDefaultCapacityProviderStrategy(DefaultCapacityProviderStrategyT &&value)
const Aws::Vector< Aws::String > & GetCapacityProviders() const
AwsEcsClusterDetails & WithConfiguration(ConfigurationT &&value)
AwsEcsClusterDetails & WithDefaultCapacityProviderStrategy(DefaultCapacityProviderStrategyT &&value)
void SetCapacityProviders(CapacityProvidersT &&value)
AWS_SECURITYHUB_API AwsEcsClusterDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const AwsEcsClusterConfigurationDetails & GetConfiguration() const
AwsEcsClusterDetails & AddClusterSettings(ClusterSettingsT &&value)
const Aws::Vector< AwsEcsClusterDefaultCapacityProviderStrategyDetails > & GetDefaultCapacityProviderStrategy() const
AwsEcsClusterDetails & WithClusterSettings(ClusterSettingsT &&value)
AwsEcsClusterDetails & WithCapacityProviders(CapacityProvidersT &&value)
AwsEcsClusterDetails & AddCapacityProviders(CapacityProvidersT &&value)
AwsEcsClusterDetails & WithRegisteredContainerInstancesCount(int value)
AwsEcsClusterDetails & WithRunningTasksCount(int value)
void SetDefaultCapacityProviderStrategy(DefaultCapacityProviderStrategyT &&value)
AwsEcsClusterDetails & WithClusterName(ClusterNameT &&value)
const Aws::Vector< AwsEcsClusterClusterSettingsDetails > & GetClusterSettings() const
AwsEcsClusterDetails & WithActiveServicesCount(int value)
AWS_SECURITYHUB_API AwsEcsClusterDetails(Aws::Utils::Json::JsonView jsonValue)
AwsEcsClusterDetails & WithStatus(StatusT &&value)
AwsEcsClusterDetails & WithClusterArn(ClusterArnT &&value)
AWS_SECURITYHUB_API AwsEcsClusterDetails()=default
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() 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