AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; }
51 inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); }
52 inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); }
53 inline AwsEcsClusterDetails& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
54 inline AwsEcsClusterDetails& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
55 inline AwsEcsClusterDetails& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
57
59
65 inline int GetActiveServicesCount() const{ return m_activeServicesCount; }
66 inline bool ActiveServicesCountHasBeenSet() const { return m_activeServicesCountHasBeenSet; }
67 inline void SetActiveServicesCount(int value) { m_activeServicesCountHasBeenSet = true; m_activeServicesCount = value; }
68 inline AwsEcsClusterDetails& WithActiveServicesCount(int value) { SetActiveServicesCount(value); return *this;}
70
72
76 inline const Aws::Vector<Aws::String>& GetCapacityProviders() const{ return m_capacityProviders; }
77 inline bool CapacityProvidersHasBeenSet() const { return m_capacityProvidersHasBeenSet; }
78 inline void SetCapacityProviders(const Aws::Vector<Aws::String>& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders = value; }
79 inline void SetCapacityProviders(Aws::Vector<Aws::String>&& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders = std::move(value); }
82 inline AwsEcsClusterDetails& AddCapacityProviders(const Aws::String& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(value); return *this; }
83 inline AwsEcsClusterDetails& AddCapacityProviders(Aws::String&& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(std::move(value)); return *this; }
84 inline AwsEcsClusterDetails& AddCapacityProviders(const char* value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(value); return *this; }
86
88
92 inline const Aws::Vector<AwsEcsClusterClusterSettingsDetails>& GetClusterSettings() const{ return m_clusterSettings; }
93 inline bool ClusterSettingsHasBeenSet() const { return m_clusterSettingsHasBeenSet; }
94 inline void SetClusterSettings(const Aws::Vector<AwsEcsClusterClusterSettingsDetails>& value) { m_clusterSettingsHasBeenSet = true; m_clusterSettings = value; }
95 inline void SetClusterSettings(Aws::Vector<AwsEcsClusterClusterSettingsDetails>&& value) { m_clusterSettingsHasBeenSet = true; m_clusterSettings = std::move(value); }
98 inline AwsEcsClusterDetails& AddClusterSettings(const AwsEcsClusterClusterSettingsDetails& value) { m_clusterSettingsHasBeenSet = true; m_clusterSettings.push_back(value); return *this; }
99 inline AwsEcsClusterDetails& AddClusterSettings(AwsEcsClusterClusterSettingsDetails&& value) { m_clusterSettingsHasBeenSet = true; m_clusterSettings.push_back(std::move(value)); return *this; }
101
103
106 inline const AwsEcsClusterConfigurationDetails& GetConfiguration() const{ return m_configuration; }
107 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
108 inline void SetConfiguration(const AwsEcsClusterConfigurationDetails& value) { m_configurationHasBeenSet = true; m_configuration = value; }
109 inline void SetConfiguration(AwsEcsClusterConfigurationDetails&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
113
115
120 inline const Aws::Vector<AwsEcsClusterDefaultCapacityProviderStrategyDetails>& GetDefaultCapacityProviderStrategy() const{ return m_defaultCapacityProviderStrategy; }
121 inline bool DefaultCapacityProviderStrategyHasBeenSet() const { return m_defaultCapacityProviderStrategyHasBeenSet; }
122 inline void SetDefaultCapacityProviderStrategy(const Aws::Vector<AwsEcsClusterDefaultCapacityProviderStrategyDetails>& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy = value; }
123 inline void SetDefaultCapacityProviderStrategy(Aws::Vector<AwsEcsClusterDefaultCapacityProviderStrategyDetails>&& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy = std::move(value); }
126 inline AwsEcsClusterDetails& AddDefaultCapacityProviderStrategy(const AwsEcsClusterDefaultCapacityProviderStrategyDetails& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy.push_back(value); return *this; }
127 inline AwsEcsClusterDetails& AddDefaultCapacityProviderStrategy(AwsEcsClusterDefaultCapacityProviderStrategyDetails&& value) { m_defaultCapacityProviderStrategyHasBeenSet = true; m_defaultCapacityProviderStrategy.push_back(std::move(value)); return *this; }
129
131
134 inline const Aws::String& GetClusterName() const{ return m_clusterName; }
135 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
136 inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
137 inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
138 inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
139 inline AwsEcsClusterDetails& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
140 inline AwsEcsClusterDetails& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
141 inline AwsEcsClusterDetails& WithClusterName(const char* value) { SetClusterName(value); return *this;}
143
145
150 inline int GetRegisteredContainerInstancesCount() const{ return m_registeredContainerInstancesCount; }
151 inline bool RegisteredContainerInstancesCountHasBeenSet() const { return m_registeredContainerInstancesCountHasBeenSet; }
152 inline void SetRegisteredContainerInstancesCount(int value) { m_registeredContainerInstancesCountHasBeenSet = true; m_registeredContainerInstancesCount = value; }
155
157
161 inline int GetRunningTasksCount() const{ return m_runningTasksCount; }
162 inline bool RunningTasksCountHasBeenSet() const { return m_runningTasksCountHasBeenSet; }
163 inline void SetRunningTasksCount(int value) { m_runningTasksCountHasBeenSet = true; m_runningTasksCount = value; }
164 inline AwsEcsClusterDetails& WithRunningTasksCount(int value) { SetRunningTasksCount(value); return *this;}
166
168
171 inline const Aws::String& GetStatus() const{ return m_status; }
172 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
173 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
174 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
175 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
176 inline AwsEcsClusterDetails& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
177 inline AwsEcsClusterDetails& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
178 inline AwsEcsClusterDetails& WithStatus(const char* value) { SetStatus(value); return *this;}
180 private:
181
182 Aws::String m_clusterArn;
183 bool m_clusterArnHasBeenSet = false;
184
185 int m_activeServicesCount;
186 bool m_activeServicesCountHasBeenSet = false;
187
188 Aws::Vector<Aws::String> m_capacityProviders;
189 bool m_capacityProvidersHasBeenSet = false;
190
192 bool m_clusterSettingsHasBeenSet = false;
193
194 AwsEcsClusterConfigurationDetails m_configuration;
195 bool m_configurationHasBeenSet = false;
196
198 bool m_defaultCapacityProviderStrategyHasBeenSet = false;
199
200 Aws::String m_clusterName;
201 bool m_clusterNameHasBeenSet = false;
202
203 int m_registeredContainerInstancesCount;
204 bool m_registeredContainerInstancesCountHasBeenSet = false;
205
206 int m_runningTasksCount;
207 bool m_runningTasksCountHasBeenSet = false;
208
209 Aws::String m_status;
210 bool m_statusHasBeenSet = false;
211 };
212
213} // namespace Model
214} // namespace SecurityHub
215} // namespace Aws
void SetClusterSettings(Aws::Vector< AwsEcsClusterClusterSettingsDetails > &&value)
AwsEcsClusterDetails & WithCapacityProviders(Aws::Vector< Aws::String > &&value)
AwsEcsClusterDetails & AddCapacityProviders(const char *value)
AwsEcsClusterDetails & AddClusterSettings(AwsEcsClusterClusterSettingsDetails &&value)
AwsEcsClusterDetails & WithStatus(const char *value)
void SetCapacityProviders(Aws::Vector< Aws::String > &&value)
void SetClusterSettings(const Aws::Vector< AwsEcsClusterClusterSettingsDetails > &value)
AwsEcsClusterDetails & AddDefaultCapacityProviderStrategy(const AwsEcsClusterDefaultCapacityProviderStrategyDetails &value)
const Aws::Vector< Aws::String > & GetCapacityProviders() const
void SetConfiguration(const AwsEcsClusterConfigurationDetails &value)
AwsEcsClusterDetails & WithClusterSettings(const Aws::Vector< AwsEcsClusterClusterSettingsDetails > &value)
AwsEcsClusterDetails & WithClusterSettings(Aws::Vector< AwsEcsClusterClusterSettingsDetails > &&value)
void SetDefaultCapacityProviderStrategy(const Aws::Vector< AwsEcsClusterDefaultCapacityProviderStrategyDetails > &value)
AwsEcsClusterDetails & WithClusterArn(const char *value)
AWS_SECURITYHUB_API AwsEcsClusterDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const AwsEcsClusterConfigurationDetails & GetConfiguration() const
void SetCapacityProviders(const Aws::Vector< Aws::String > &value)
AwsEcsClusterDetails & WithClusterName(Aws::String &&value)
const Aws::Vector< AwsEcsClusterDefaultCapacityProviderStrategyDetails > & GetDefaultCapacityProviderStrategy() const
void SetDefaultCapacityProviderStrategy(Aws::Vector< AwsEcsClusterDefaultCapacityProviderStrategyDetails > &&value)
AwsEcsClusterDetails & AddCapacityProviders(const Aws::String &value)
AwsEcsClusterDetails & WithClusterName(const char *value)
AwsEcsClusterDetails & WithConfiguration(const AwsEcsClusterConfigurationDetails &value)
AwsEcsClusterDetails & AddCapacityProviders(Aws::String &&value)
AwsEcsClusterDetails & AddDefaultCapacityProviderStrategy(AwsEcsClusterDefaultCapacityProviderStrategyDetails &&value)
AwsEcsClusterDetails & WithDefaultCapacityProviderStrategy(Aws::Vector< AwsEcsClusterDefaultCapacityProviderStrategyDetails > &&value)
AwsEcsClusterDetails & WithRegisteredContainerInstancesCount(int value)
void SetConfiguration(AwsEcsClusterConfigurationDetails &&value)
AwsEcsClusterDetails & AddClusterSettings(const AwsEcsClusterClusterSettingsDetails &value)
AwsEcsClusterDetails & WithClusterArn(Aws::String &&value)
AwsEcsClusterDetails & WithRunningTasksCount(int value)
AwsEcsClusterDetails & WithCapacityProviders(const Aws::Vector< Aws::String > &value)
AwsEcsClusterDetails & WithClusterArn(const Aws::String &value)
AwsEcsClusterDetails & WithConfiguration(AwsEcsClusterConfigurationDetails &&value)
const Aws::Vector< AwsEcsClusterClusterSettingsDetails > & GetClusterSettings() const
AwsEcsClusterDetails & WithClusterName(const Aws::String &value)
AwsEcsClusterDetails & WithStatus(Aws::String &&value)
AwsEcsClusterDetails & WithStatus(const Aws::String &value)
AwsEcsClusterDetails & WithActiveServicesCount(int value)
AWS_SECURITYHUB_API AwsEcsClusterDetails(Aws::Utils::Json::JsonView jsonValue)
AwsEcsClusterDetails & WithDefaultCapacityProviderStrategy(const Aws::Vector< AwsEcsClusterDefaultCapacityProviderStrategyDetails > &value)
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