AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
47 AWS_ECS_API ServiceConnectConfiguration() = default;
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 template<typename NamespaceT = Aws::String>
75 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
76 template<typename NamespaceT = Aws::String>
77 ServiceConnectConfiguration& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
79
81
92 inline const Aws::Vector<ServiceConnectService>& GetServices() const { return m_services; }
93 inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
94 template<typename ServicesT = Aws::Vector<ServiceConnectService>>
95 void SetServices(ServicesT&& value) { m_servicesHasBeenSet = true; m_services = std::forward<ServicesT>(value); }
96 template<typename ServicesT = Aws::Vector<ServiceConnectService>>
97 ServiceConnectConfiguration& WithServices(ServicesT&& value) { SetServices(std::forward<ServicesT>(value)); return *this;}
98 template<typename ServicesT = ServiceConnectService>
99 ServiceConnectConfiguration& AddServices(ServicesT&& value) { m_servicesHasBeenSet = true; m_services.emplace_back(std::forward<ServicesT>(value)); return *this; }
101
103
104 inline const LogConfiguration& GetLogConfiguration() const { return m_logConfiguration; }
105 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
106 template<typename LogConfigurationT = LogConfiguration>
107 void SetLogConfiguration(LogConfigurationT&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::forward<LogConfigurationT>(value); }
108 template<typename LogConfigurationT = LogConfiguration>
109 ServiceConnectConfiguration& WithLogConfiguration(LogConfigurationT&& value) { SetLogConfiguration(std::forward<LogConfigurationT>(value)); return *this;}
111 private:
112
113 bool m_enabled{false};
114 bool m_enabledHasBeenSet = false;
115
116 Aws::String m_namespace;
117 bool m_namespaceHasBeenSet = false;
118
120 bool m_servicesHasBeenSet = false;
121
122 LogConfiguration m_logConfiguration;
123 bool m_logConfigurationHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace ECS
128} // namespace Aws
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API ServiceConnectConfiguration()=default
ServiceConnectConfiguration & WithEnabled(bool value)
ServiceConnectConfiguration & AddServices(ServicesT &&value)
const Aws::Vector< ServiceConnectService > & GetServices() const
ServiceConnectConfiguration & WithNamespace(NamespaceT &&value)
AWS_ECS_API ServiceConnectConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API ServiceConnectConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
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