AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ServiceConnectConfiguration.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ECS
25{
26namespace Model
27{
28
45 {
46 public:
51
52
56 inline bool GetEnabled() const{ return m_enabled; }
57
61 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
62
66 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
67
71 inline ServiceConnectConfiguration& WithEnabled(bool value) { SetEnabled(value); return *this;}
72
73
82 inline const Aws::String& GetNamespace() const{ return m_namespace; }
83
92 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
93
102 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
103
112 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
113
122 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
123
132 inline ServiceConnectConfiguration& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
133
142 inline ServiceConnectConfiguration& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
143
152 inline ServiceConnectConfiguration& WithNamespace(const char* value) { SetNamespace(value); return *this;}
153
154
166 inline const Aws::Vector<ServiceConnectService>& GetServices() const{ return m_services; }
167
179 inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
180
192 inline void SetServices(const Aws::Vector<ServiceConnectService>& value) { m_servicesHasBeenSet = true; m_services = value; }
193
205 inline void SetServices(Aws::Vector<ServiceConnectService>&& value) { m_servicesHasBeenSet = true; m_services = std::move(value); }
206
219
232
244 inline ServiceConnectConfiguration& AddServices(const ServiceConnectService& value) { m_servicesHasBeenSet = true; m_services.push_back(value); return *this; }
245
257 inline ServiceConnectConfiguration& AddServices(ServiceConnectService&& value) { m_servicesHasBeenSet = true; m_services.push_back(std::move(value)); return *this; }
258
259
260
261 inline const LogConfiguration& GetLogConfiguration() const{ return m_logConfiguration; }
262
263
264 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
265
266
267 inline void SetLogConfiguration(const LogConfiguration& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = value; }
268
269
270 inline void SetLogConfiguration(LogConfiguration&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::move(value); }
271
272
274
275
277
278 private:
279
280 bool m_enabled;
281 bool m_enabledHasBeenSet = false;
282
283 Aws::String m_namespace;
284 bool m_namespaceHasBeenSet = false;
285
287 bool m_servicesHasBeenSet = false;
288
289 LogConfiguration m_logConfiguration;
290 bool m_logConfigurationHasBeenSet = false;
291 };
292
293} // namespace Model
294} // namespace ECS
295} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceConnectConfiguration & WithNamespace(const Aws::String &value)
ServiceConnectConfiguration & WithServices(const Aws::Vector< ServiceConnectService > &value)
ServiceConnectConfiguration & AddServices(const ServiceConnectService &value)
void SetServices(const Aws::Vector< ServiceConnectService > &value)
ServiceConnectConfiguration & WithEnabled(bool value)
ServiceConnectConfiguration & WithLogConfiguration(const LogConfiguration &value)
ServiceConnectConfiguration & WithNamespace(Aws::String &&value)
const Aws::Vector< ServiceConnectService > & GetServices() const
ServiceConnectConfiguration & AddServices(ServiceConnectService &&value)
void SetServices(Aws::Vector< ServiceConnectService > &&value)
AWS_ECS_API ServiceConnectConfiguration(Aws::Utils::Json::JsonView jsonValue)
ServiceConnectConfiguration & WithNamespace(const char *value)
AWS_ECS_API ServiceConnectConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceConnectConfiguration & WithServices(Aws::Vector< ServiceConnectService > &&value)
void SetLogConfiguration(const LogConfiguration &value)
ServiceConnectConfiguration & WithLogConfiguration(LogConfiguration &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector