AWS SDK for C++

AWS SDK for C++ Version 1.11.915

Loading...
Searching...
No Matches
ServiceConnectConfiguration.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/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/LogConfiguration.h>
11#include <aws/ecs/model/ServiceConnectAccessLogConfiguration.h>
12#include <aws/ecs/model/ServiceConnectContainerConfiguration.h>
13#include <aws/ecs/model/ServiceConnectService.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ECS {
25namespace Model {
26
43 public:
44 AWS_ECS_API ServiceConnectConfiguration() = default;
48
50
53 inline bool GetEnabled() const { return m_enabled; }
54 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
55 inline void SetEnabled(bool value) {
56 m_enabledHasBeenSet = true;
57 m_enabled = value;
58 }
60 SetEnabled(value);
61 return *this;
62 }
64
66
74 inline const Aws::String& GetNamespace() const { return m_namespace; }
75 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
76 template <typename NamespaceT = Aws::String>
77 void SetNamespace(NamespaceT&& value) {
78 m_namespaceHasBeenSet = true;
79 m_namespace = std::forward<NamespaceT>(value);
80 }
81 template <typename NamespaceT = Aws::String>
83 SetNamespace(std::forward<NamespaceT>(value));
84 return *this;
85 }
87
89
100 inline const Aws::Vector<ServiceConnectService>& GetServices() const { return m_services; }
101 inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
102 template <typename ServicesT = Aws::Vector<ServiceConnectService>>
103 void SetServices(ServicesT&& value) {
104 m_servicesHasBeenSet = true;
105 m_services = std::forward<ServicesT>(value);
106 }
107 template <typename ServicesT = Aws::Vector<ServiceConnectService>>
109 SetServices(std::forward<ServicesT>(value));
110 return *this;
111 }
112 template <typename ServicesT = ServiceConnectService>
114 m_servicesHasBeenSet = true;
115 m_services.emplace_back(std::forward<ServicesT>(value));
116 return *this;
117 }
119
121
122 inline const LogConfiguration& GetLogConfiguration() const { return m_logConfiguration; }
123 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
124 template <typename LogConfigurationT = LogConfiguration>
125 void SetLogConfiguration(LogConfigurationT&& value) {
126 m_logConfigurationHasBeenSet = true;
127 m_logConfiguration = std::forward<LogConfigurationT>(value);
128 }
129 template <typename LogConfigurationT = LogConfiguration>
131 SetLogConfiguration(std::forward<LogConfigurationT>(value));
132 return *this;
133 }
135
137
147 inline const ServiceConnectAccessLogConfiguration& GetAccessLogConfiguration() const { return m_accessLogConfiguration; }
148 inline bool AccessLogConfigurationHasBeenSet() const { return m_accessLogConfigurationHasBeenSet; }
149 template <typename AccessLogConfigurationT = ServiceConnectAccessLogConfiguration>
150 void SetAccessLogConfiguration(AccessLogConfigurationT&& value) {
151 m_accessLogConfigurationHasBeenSet = true;
152 m_accessLogConfiguration = std::forward<AccessLogConfigurationT>(value);
153 }
154 template <typename AccessLogConfigurationT = ServiceConnectAccessLogConfiguration>
155 ServiceConnectConfiguration& WithAccessLogConfiguration(AccessLogConfigurationT&& value) {
156 SetAccessLogConfiguration(std::forward<AccessLogConfigurationT>(value));
157 return *this;
158 }
160
162
172 inline const Aws::Vector<ServiceConnectContainerConfiguration>& GetContainerConfigurations() const { return m_containerConfigurations; }
173 inline bool ContainerConfigurationsHasBeenSet() const { return m_containerConfigurationsHasBeenSet; }
174 template <typename ContainerConfigurationsT = Aws::Vector<ServiceConnectContainerConfiguration>>
175 void SetContainerConfigurations(ContainerConfigurationsT&& value) {
176 m_containerConfigurationsHasBeenSet = true;
177 m_containerConfigurations = std::forward<ContainerConfigurationsT>(value);
178 }
179 template <typename ContainerConfigurationsT = Aws::Vector<ServiceConnectContainerConfiguration>>
180 ServiceConnectConfiguration& WithContainerConfigurations(ContainerConfigurationsT&& value) {
181 SetContainerConfigurations(std::forward<ContainerConfigurationsT>(value));
182 return *this;
183 }
184 template <typename ContainerConfigurationsT = ServiceConnectContainerConfiguration>
185 ServiceConnectConfiguration& AddContainerConfigurations(ContainerConfigurationsT&& value) {
186 m_containerConfigurationsHasBeenSet = true;
187 m_containerConfigurations.emplace_back(std::forward<ContainerConfigurationsT>(value));
188 return *this;
189 }
191 private:
192 bool m_enabled{false};
193
194 Aws::String m_namespace;
195
197
198 LogConfiguration m_logConfiguration;
199
200 ServiceConnectAccessLogConfiguration m_accessLogConfiguration;
201
203 bool m_enabledHasBeenSet = false;
204 bool m_namespaceHasBeenSet = false;
205 bool m_servicesHasBeenSet = false;
206 bool m_logConfigurationHasBeenSet = false;
207 bool m_accessLogConfigurationHasBeenSet = false;
208 bool m_containerConfigurationsHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace ECS
213} // namespace Aws
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceConnectConfiguration & WithContainerConfigurations(ContainerConfigurationsT &&value)
AWS_ECS_API ServiceConnectConfiguration()=default
const Aws::Vector< ServiceConnectContainerConfiguration > & GetContainerConfigurations() const
void SetAccessLogConfiguration(AccessLogConfigurationT &&value)
ServiceConnectConfiguration & WithEnabled(bool value)
ServiceConnectConfiguration & AddServices(ServicesT &&value)
ServiceConnectConfiguration & AddContainerConfigurations(ContainerConfigurationsT &&value)
const Aws::Vector< ServiceConnectService > & GetServices() const
ServiceConnectConfiguration & WithNamespace(NamespaceT &&value)
ServiceConnectConfiguration & WithAccessLogConfiguration(AccessLogConfigurationT &&value)
AWS_ECS_API ServiceConnectConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API ServiceConnectConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const ServiceConnectAccessLogConfiguration & GetAccessLogConfiguration() const
ServiceConnectConfiguration & WithLogConfiguration(LogConfigurationT &&value)
void SetContainerConfigurations(ContainerConfigurationsT &&value)
ServiceConnectConfiguration & WithServices(ServicesT &&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