AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceConnectConfiguration.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/model/LogConfiguration.h>
11#include <aws/ecs/model/ServiceConnectService.h>
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
54
57 inline bool GetEnabled() const{ return m_enabled; }
58 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
59 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
60 inline ServiceConnectConfiguration& WithEnabled(bool value) { SetEnabled(value); return *this;}
62
64
72 inline const Aws::String& GetNamespace() const{ return m_namespace; }
73 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
74 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
75 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
76 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
77 inline ServiceConnectConfiguration& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
78 inline ServiceConnectConfiguration& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
79 inline ServiceConnectConfiguration& WithNamespace(const char* value) { SetNamespace(value); return *this;}
81
83
94 inline const Aws::Vector<ServiceConnectService>& GetServices() const{ return m_services; }
95 inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
96 inline void SetServices(const Aws::Vector<ServiceConnectService>& value) { m_servicesHasBeenSet = true; m_services = value; }
97 inline void SetServices(Aws::Vector<ServiceConnectService>&& value) { m_servicesHasBeenSet = true; m_services = std::move(value); }
100 inline ServiceConnectConfiguration& AddServices(const ServiceConnectService& value) { m_servicesHasBeenSet = true; m_services.push_back(value); return *this; }
101 inline ServiceConnectConfiguration& AddServices(ServiceConnectService&& value) { m_servicesHasBeenSet = true; m_services.push_back(std::move(value)); return *this; }
103
105
106 inline const LogConfiguration& GetLogConfiguration() const{ return m_logConfiguration; }
107 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
108 inline void SetLogConfiguration(const LogConfiguration& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = value; }
109 inline void SetLogConfiguration(LogConfiguration&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::move(value); }
113 private:
114
115 bool m_enabled;
116 bool m_enabledHasBeenSet = false;
117
118 Aws::String m_namespace;
119 bool m_namespaceHasBeenSet = false;
120
122 bool m_servicesHasBeenSet = false;
123
124 LogConfiguration m_logConfiguration;
125 bool m_logConfigurationHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace ECS
130} // namespace Aws
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
Aws::Utils::Json::JsonValue JsonValue