AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsEcsClusterDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/AwsEcsClusterConfigurationDetails.h>
11#include <aws/securityhub/model/AwsEcsClusterClusterSettingsDetails.h>
12#include <aws/securityhub/model/AwsEcsClusterDefaultCapacityProviderStrategyDetails.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SecurityHub
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_SECURITYHUB_API AwsEcsClusterDetails() = default;
39 AWS_SECURITYHUB_API AwsEcsClusterDetails(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
49 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
50 template<typename ClusterArnT = Aws::String>
51 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
52 template<typename ClusterArnT = Aws::String>
53 AwsEcsClusterDetails& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
55
57
63 inline int GetActiveServicesCount() const { return m_activeServicesCount; }
64 inline bool ActiveServicesCountHasBeenSet() const { return m_activeServicesCountHasBeenSet; }
65 inline void SetActiveServicesCount(int value) { m_activeServicesCountHasBeenSet = true; m_activeServicesCount = value; }
66 inline AwsEcsClusterDetails& WithActiveServicesCount(int value) { SetActiveServicesCount(value); return *this;}
68
70
74 inline const Aws::Vector<Aws::String>& GetCapacityProviders() const { return m_capacityProviders; }
75 inline bool CapacityProvidersHasBeenSet() const { return m_capacityProvidersHasBeenSet; }
76 template<typename CapacityProvidersT = Aws::Vector<Aws::String>>
77 void SetCapacityProviders(CapacityProvidersT&& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders = std::forward<CapacityProvidersT>(value); }
78 template<typename CapacityProvidersT = Aws::Vector<Aws::String>>
79 AwsEcsClusterDetails& WithCapacityProviders(CapacityProvidersT&& value) { SetCapacityProviders(std::forward<CapacityProvidersT>(value)); return *this;}
80 template<typename CapacityProvidersT = Aws::String>
81 AwsEcsClusterDetails& AddCapacityProviders(CapacityProvidersT&& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.emplace_back(std::forward<CapacityProvidersT>(value)); return *this; }
83
85
89 inline const Aws::Vector<AwsEcsClusterClusterSettingsDetails>& GetClusterSettings() const { return m_clusterSettings; }
90 inline bool ClusterSettingsHasBeenSet() const { return m_clusterSettingsHasBeenSet; }
91 template<typename ClusterSettingsT = Aws::Vector<AwsEcsClusterClusterSettingsDetails>>
92 void SetClusterSettings(ClusterSettingsT&& value) { m_clusterSettingsHasBeenSet = true; m_clusterSettings = std::forward<ClusterSettingsT>(value); }
93 template<typename ClusterSettingsT = Aws::Vector<AwsEcsClusterClusterSettingsDetails>>
94 AwsEcsClusterDetails& WithClusterSettings(ClusterSettingsT&& value) { SetClusterSettings(std::forward<ClusterSettingsT>(value)); return *this;}
95 template<typename ClusterSettingsT = AwsEcsClusterClusterSettingsDetails>
96 AwsEcsClusterDetails& AddClusterSettings(ClusterSettingsT&& value) { m_clusterSettingsHasBeenSet = true; m_clusterSettings.emplace_back(std::forward<ClusterSettingsT>(value)); return *this; }
98
100
103 inline const AwsEcsClusterConfigurationDetails& GetConfiguration() const { return m_configuration; }
104 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
105 template<typename ConfigurationT = AwsEcsClusterConfigurationDetails>
106 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
107 template<typename ConfigurationT = AwsEcsClusterConfigurationDetails>
108 AwsEcsClusterDetails& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
110
112
117 inline const Aws::Vector<AwsEcsClusterDefaultCapacityProviderStrategyDetails>& GetDefaultCapacityProviderStrategy() const { return m_defaultCapacityProviderStrategy; }
118 inline bool DefaultCapacityProviderStrategyHasBeenSet() const { return m_defaultCapacityProviderStrategyHasBeenSet; }
119 template<typename DefaultCapacityProviderStrategyT = Aws::Vector<AwsEcsClusterDefaultCapacityProviderStrategyDetails>>
120 void SetDefaultCapacityProviderStrategy(DefaultCapacityProviderStrategyT&& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy = std::forward<DefaultCapacityProviderStrategyT>(value); }
121 template<typename DefaultCapacityProviderStrategyT = Aws::Vector<AwsEcsClusterDefaultCapacityProviderStrategyDetails>>
122 AwsEcsClusterDetails& WithDefaultCapacityProviderStrategy(DefaultCapacityProviderStrategyT&& value) { SetDefaultCapacityProviderStrategy(std::forward<DefaultCapacityProviderStrategyT>(value)); return *this;}
123 template<typename DefaultCapacityProviderStrategyT = AwsEcsClusterDefaultCapacityProviderStrategyDetails>
124 AwsEcsClusterDetails& AddDefaultCapacityProviderStrategy(DefaultCapacityProviderStrategyT&& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy.emplace_back(std::forward<DefaultCapacityProviderStrategyT>(value)); return *this; }
126
128
131 inline const Aws::String& GetClusterName() const { return m_clusterName; }
132 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
133 template<typename ClusterNameT = Aws::String>
134 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
135 template<typename ClusterNameT = Aws::String>
136 AwsEcsClusterDetails& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
138
140
145 inline int GetRegisteredContainerInstancesCount() const { return m_registeredContainerInstancesCount; }
146 inline bool RegisteredContainerInstancesCountHasBeenSet() const { return m_registeredContainerInstancesCountHasBeenSet; }
147 inline void SetRegisteredContainerInstancesCount(int value) { m_registeredContainerInstancesCountHasBeenSet = true; m_registeredContainerInstancesCount = value; }
150
152
156 inline int GetRunningTasksCount() const { return m_runningTasksCount; }
157 inline bool RunningTasksCountHasBeenSet() const { return m_runningTasksCountHasBeenSet; }
158 inline void SetRunningTasksCount(int value) { m_runningTasksCountHasBeenSet = true; m_runningTasksCount = value; }
159 inline AwsEcsClusterDetails& WithRunningTasksCount(int value) { SetRunningTasksCount(value); return *this;}
161
163
166 inline const Aws::String& GetStatus() const { return m_status; }
167 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
168 template<typename StatusT = Aws::String>
169 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
170 template<typename StatusT = Aws::String>
171 AwsEcsClusterDetails& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
173 private:
174
175 Aws::String m_clusterArn;
176 bool m_clusterArnHasBeenSet = false;
177
178 int m_activeServicesCount{0};
179 bool m_activeServicesCountHasBeenSet = false;
180
181 Aws::Vector<Aws::String> m_capacityProviders;
182 bool m_capacityProvidersHasBeenSet = false;
183
185 bool m_clusterSettingsHasBeenSet = false;
186
187 AwsEcsClusterConfigurationDetails m_configuration;
188 bool m_configurationHasBeenSet = false;
189
191 bool m_defaultCapacityProviderStrategyHasBeenSet = false;
192
193 Aws::String m_clusterName;
194 bool m_clusterNameHasBeenSet = false;
195
196 int m_registeredContainerInstancesCount{0};
197 bool m_registeredContainerInstancesCountHasBeenSet = false;
198
199 int m_runningTasksCount{0};
200 bool m_runningTasksCountHasBeenSet = false;
201
202 Aws::String m_status;
203 bool m_statusHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace SecurityHub
208} // 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)
void SetClusterSettings(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