AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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/ServiceConnectService.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECS {
24namespace Model {
25
42 public:
43 AWS_ECS_API ServiceConnectConfiguration() = default;
47
49
52 inline bool GetEnabled() const { return m_enabled; }
53 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
54 inline void SetEnabled(bool value) {
55 m_enabledHasBeenSet = true;
56 m_enabled = value;
57 }
59 SetEnabled(value);
60 return *this;
61 }
63
65
73 inline const Aws::String& GetNamespace() const { return m_namespace; }
74 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
75 template <typename NamespaceT = Aws::String>
76 void SetNamespace(NamespaceT&& value) {
77 m_namespaceHasBeenSet = true;
78 m_namespace = std::forward<NamespaceT>(value);
79 }
80 template <typename NamespaceT = Aws::String>
82 SetNamespace(std::forward<NamespaceT>(value));
83 return *this;
84 }
86
88
99 inline const Aws::Vector<ServiceConnectService>& GetServices() const { return m_services; }
100 inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
101 template <typename ServicesT = Aws::Vector<ServiceConnectService>>
102 void SetServices(ServicesT&& value) {
103 m_servicesHasBeenSet = true;
104 m_services = std::forward<ServicesT>(value);
105 }
106 template <typename ServicesT = Aws::Vector<ServiceConnectService>>
108 SetServices(std::forward<ServicesT>(value));
109 return *this;
110 }
111 template <typename ServicesT = ServiceConnectService>
113 m_servicesHasBeenSet = true;
114 m_services.emplace_back(std::forward<ServicesT>(value));
115 return *this;
116 }
118
120
121 inline const LogConfiguration& GetLogConfiguration() const { return m_logConfiguration; }
122 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
123 template <typename LogConfigurationT = LogConfiguration>
124 void SetLogConfiguration(LogConfigurationT&& value) {
125 m_logConfigurationHasBeenSet = true;
126 m_logConfiguration = std::forward<LogConfigurationT>(value);
127 }
128 template <typename LogConfigurationT = LogConfiguration>
130 SetLogConfiguration(std::forward<LogConfigurationT>(value));
131 return *this;
132 }
134
136
146 inline const ServiceConnectAccessLogConfiguration& GetAccessLogConfiguration() const { return m_accessLogConfiguration; }
147 inline bool AccessLogConfigurationHasBeenSet() const { return m_accessLogConfigurationHasBeenSet; }
148 template <typename AccessLogConfigurationT = ServiceConnectAccessLogConfiguration>
149 void SetAccessLogConfiguration(AccessLogConfigurationT&& value) {
150 m_accessLogConfigurationHasBeenSet = true;
151 m_accessLogConfiguration = std::forward<AccessLogConfigurationT>(value);
152 }
153 template <typename AccessLogConfigurationT = ServiceConnectAccessLogConfiguration>
154 ServiceConnectConfiguration& WithAccessLogConfiguration(AccessLogConfigurationT&& value) {
155 SetAccessLogConfiguration(std::forward<AccessLogConfigurationT>(value));
156 return *this;
157 }
159 private:
160 bool m_enabled{false};
161
162 Aws::String m_namespace;
163
165
166 LogConfiguration m_logConfiguration;
167
168 ServiceConnectAccessLogConfiguration m_accessLogConfiguration;
169 bool m_enabledHasBeenSet = false;
170 bool m_namespaceHasBeenSet = false;
171 bool m_servicesHasBeenSet = false;
172 bool m_logConfigurationHasBeenSet = false;
173 bool m_accessLogConfigurationHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace ECS
178} // namespace Aws
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API ServiceConnectConfiguration()=default
void SetAccessLogConfiguration(AccessLogConfigurationT &&value)
ServiceConnectConfiguration & WithEnabled(bool value)
ServiceConnectConfiguration & AddServices(ServicesT &&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)
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