AWS SDK for C++  1.9.124
AWS SDK for C++
VirtualNodeSpec.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace AppMesh
27 {
28 namespace Model
29 {
30 
38  {
39  public:
44 
45 
49  inline const BackendDefaults& GetBackendDefaults() const{ return m_backendDefaults; }
50 
54  inline bool BackendDefaultsHasBeenSet() const { return m_backendDefaultsHasBeenSet; }
55 
59  inline void SetBackendDefaults(const BackendDefaults& value) { m_backendDefaultsHasBeenSet = true; m_backendDefaults = value; }
60 
64  inline void SetBackendDefaults(BackendDefaults&& value) { m_backendDefaultsHasBeenSet = true; m_backendDefaults = std::move(value); }
65 
69  inline VirtualNodeSpec& WithBackendDefaults(const BackendDefaults& value) { SetBackendDefaults(value); return *this;}
70 
74  inline VirtualNodeSpec& WithBackendDefaults(BackendDefaults&& value) { SetBackendDefaults(std::move(value)); return *this;}
75 
76 
81  inline const Aws::Vector<Backend>& GetBackends() const{ return m_backends; }
82 
87  inline bool BackendsHasBeenSet() const { return m_backendsHasBeenSet; }
88 
93  inline void SetBackends(const Aws::Vector<Backend>& value) { m_backendsHasBeenSet = true; m_backends = value; }
94 
99  inline void SetBackends(Aws::Vector<Backend>&& value) { m_backendsHasBeenSet = true; m_backends = std::move(value); }
100 
105  inline VirtualNodeSpec& WithBackends(const Aws::Vector<Backend>& value) { SetBackends(value); return *this;}
106 
111  inline VirtualNodeSpec& WithBackends(Aws::Vector<Backend>&& value) { SetBackends(std::move(value)); return *this;}
112 
117  inline VirtualNodeSpec& AddBackends(const Backend& value) { m_backendsHasBeenSet = true; m_backends.push_back(value); return *this; }
118 
123  inline VirtualNodeSpec& AddBackends(Backend&& value) { m_backendsHasBeenSet = true; m_backends.push_back(std::move(value)); return *this; }
124 
125 
130  inline const Aws::Vector<Listener>& GetListeners() const{ return m_listeners; }
131 
136  inline bool ListenersHasBeenSet() const { return m_listenersHasBeenSet; }
137 
142  inline void SetListeners(const Aws::Vector<Listener>& value) { m_listenersHasBeenSet = true; m_listeners = value; }
143 
148  inline void SetListeners(Aws::Vector<Listener>&& value) { m_listenersHasBeenSet = true; m_listeners = std::move(value); }
149 
154  inline VirtualNodeSpec& WithListeners(const Aws::Vector<Listener>& value) { SetListeners(value); return *this;}
155 
160  inline VirtualNodeSpec& WithListeners(Aws::Vector<Listener>&& value) { SetListeners(std::move(value)); return *this;}
161 
166  inline VirtualNodeSpec& AddListeners(const Listener& value) { m_listenersHasBeenSet = true; m_listeners.push_back(value); return *this; }
167 
172  inline VirtualNodeSpec& AddListeners(Listener&& value) { m_listenersHasBeenSet = true; m_listeners.push_back(std::move(value)); return *this; }
173 
174 
178  inline const Logging& GetLogging() const{ return m_logging; }
179 
183  inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; }
184 
188  inline void SetLogging(const Logging& value) { m_loggingHasBeenSet = true; m_logging = value; }
189 
193  inline void SetLogging(Logging&& value) { m_loggingHasBeenSet = true; m_logging = std::move(value); }
194 
198  inline VirtualNodeSpec& WithLogging(const Logging& value) { SetLogging(value); return *this;}
199 
203  inline VirtualNodeSpec& WithLogging(Logging&& value) { SetLogging(std::move(value)); return *this;}
204 
205 
211  inline const ServiceDiscovery& GetServiceDiscovery() const{ return m_serviceDiscovery; }
212 
218  inline bool ServiceDiscoveryHasBeenSet() const { return m_serviceDiscoveryHasBeenSet; }
219 
225  inline void SetServiceDiscovery(const ServiceDiscovery& value) { m_serviceDiscoveryHasBeenSet = true; m_serviceDiscovery = value; }
226 
232  inline void SetServiceDiscovery(ServiceDiscovery&& value) { m_serviceDiscoveryHasBeenSet = true; m_serviceDiscovery = std::move(value); }
233 
239  inline VirtualNodeSpec& WithServiceDiscovery(const ServiceDiscovery& value) { SetServiceDiscovery(value); return *this;}
240 
246  inline VirtualNodeSpec& WithServiceDiscovery(ServiceDiscovery&& value) { SetServiceDiscovery(std::move(value)); return *this;}
247 
248  private:
249 
250  BackendDefaults m_backendDefaults;
251  bool m_backendDefaultsHasBeenSet;
252 
253  Aws::Vector<Backend> m_backends;
254  bool m_backendsHasBeenSet;
255 
256  Aws::Vector<Listener> m_listeners;
257  bool m_listenersHasBeenSet;
258 
259  Logging m_logging;
260  bool m_loggingHasBeenSet;
261 
262  ServiceDiscovery m_serviceDiscovery;
263  bool m_serviceDiscoveryHasBeenSet;
264  };
265 
266 } // namespace Model
267 } // namespace AppMesh
268 } // namespace Aws
Aws::AppMesh::Model::VirtualNodeSpec::ListenersHasBeenSet
bool ListenersHasBeenSet() const
Definition: VirtualNodeSpec.h:136
Aws::AppMesh::Model::VirtualNodeSpec::SetServiceDiscovery
void SetServiceDiscovery(const ServiceDiscovery &value)
Definition: VirtualNodeSpec.h:225
Aws::AppMesh::Model::VirtualNodeSpec::LoggingHasBeenSet
bool LoggingHasBeenSet() const
Definition: VirtualNodeSpec.h:183
Aws::AppMesh::Model::VirtualNodeSpec::SetBackendDefaults
void SetBackendDefaults(BackendDefaults &&value)
Definition: VirtualNodeSpec.h:64
Aws::AppMesh::Model::VirtualNodeSpec::WithLogging
VirtualNodeSpec & WithLogging(Logging &&value)
Definition: VirtualNodeSpec.h:203
Aws::AppMesh::Model::VirtualNodeSpec::AddBackends
VirtualNodeSpec & AddBackends(const Backend &value)
Definition: VirtualNodeSpec.h:117
Backend.h
Aws::AppMesh::Model::VirtualNodeSpec::SetLogging
void SetLogging(const Logging &value)
Definition: VirtualNodeSpec.h:188
Aws::AppMesh::Model::VirtualNodeSpec::AddBackends
VirtualNodeSpec & AddBackends(Backend &&value)
Definition: VirtualNodeSpec.h:123
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AppMesh::Model::Logging
Definition: Logging.h:33
Aws::AppMesh::Model::VirtualNodeSpec::WithBackends
VirtualNodeSpec & WithBackends(Aws::Vector< Backend > &&value)
Definition: VirtualNodeSpec.h:111
AppMesh_EXPORTS.h
AWSVector.h
Aws::AppMesh::Model::VirtualNodeSpec::GetLogging
const Logging & GetLogging() const
Definition: VirtualNodeSpec.h:178
BackendDefaults.h
Aws::AppMesh::Model::VirtualNodeSpec::VirtualNodeSpec
VirtualNodeSpec()
Aws::AppMesh::Model::VirtualNodeSpec::BackendsHasBeenSet
bool BackendsHasBeenSet() const
Definition: VirtualNodeSpec.h:87
Aws::AppMesh::Model::VirtualNodeSpec::WithListeners
VirtualNodeSpec & WithListeners(const Aws::Vector< Listener > &value)
Definition: VirtualNodeSpec.h:154
Aws::AppMesh::Model::VirtualNodeSpec::ServiceDiscoveryHasBeenSet
bool ServiceDiscoveryHasBeenSet() const
Definition: VirtualNodeSpec.h:218
Aws::AppMesh::Model::BackendDefaults
Definition: BackendDefaults.h:33
Aws::AppMesh::Model::VirtualNodeSpec::BackendDefaultsHasBeenSet
bool BackendDefaultsHasBeenSet() const
Definition: VirtualNodeSpec.h:54
Logging.h
Aws::AppMesh::Model::VirtualNodeSpec::SetBackendDefaults
void SetBackendDefaults(const BackendDefaults &value)
Definition: VirtualNodeSpec.h:59
ServiceDiscovery.h
Aws::AppMesh::Model::VirtualNodeSpec::WithListeners
VirtualNodeSpec & WithListeners(Aws::Vector< Listener > &&value)
Definition: VirtualNodeSpec.h:160
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::AppMesh::Model::VirtualNodeSpec::VirtualNodeSpec
VirtualNodeSpec(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::VirtualNodeSpec::SetLogging
void SetLogging(Logging &&value)
Definition: VirtualNodeSpec.h:193
Aws::AppMesh::Model::VirtualNodeSpec::GetServiceDiscovery
const ServiceDiscovery & GetServiceDiscovery() const
Definition: VirtualNodeSpec.h:211
Aws::AppMesh::Model::VirtualNodeSpec::AddListeners
VirtualNodeSpec & AddListeners(const Listener &value)
Definition: VirtualNodeSpec.h:166
Listener.h
Aws::AppMesh::Model::ServiceDiscovery
Definition: ServiceDiscovery.h:34
Aws::AppMesh::Model::VirtualNodeSpec::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::VirtualNodeSpec::WithLogging
VirtualNodeSpec & WithLogging(const Logging &value)
Definition: VirtualNodeSpec.h:198
Aws::AppMesh::Model::VirtualNodeSpec::GetBackendDefaults
const BackendDefaults & GetBackendDefaults() const
Definition: VirtualNodeSpec.h:49
Aws::AppMesh::Model::VirtualNodeSpec::AddListeners
VirtualNodeSpec & AddListeners(Listener &&value)
Definition: VirtualNodeSpec.h:172
Aws::AppMesh::Model::VirtualNodeSpec::SetBackends
void SetBackends(const Aws::Vector< Backend > &value)
Definition: VirtualNodeSpec.h:93
Aws::AppMesh::Model::VirtualNodeSpec::WithBackends
VirtualNodeSpec & WithBackends(const Aws::Vector< Backend > &value)
Definition: VirtualNodeSpec.h:105
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::Backend
Definition: Backend.h:33
Aws::AppMesh::Model::VirtualNodeSpec
Definition: VirtualNodeSpec.h:38
Aws::AppMesh::Model::VirtualNodeSpec::SetServiceDiscovery
void SetServiceDiscovery(ServiceDiscovery &&value)
Definition: VirtualNodeSpec.h:232
Aws::AppMesh::Model::VirtualNodeSpec::SetListeners
void SetListeners(const Aws::Vector< Listener > &value)
Definition: VirtualNodeSpec.h:142
Aws::AppMesh::Model::VirtualNodeSpec::SetListeners
void SetListeners(Aws::Vector< Listener > &&value)
Definition: VirtualNodeSpec.h:148
Aws::AppMesh::Model::VirtualNodeSpec::WithBackendDefaults
VirtualNodeSpec & WithBackendDefaults(BackendDefaults &&value)
Definition: VirtualNodeSpec.h:74
Aws::AppMesh::Model::VirtualNodeSpec::WithServiceDiscovery
VirtualNodeSpec & WithServiceDiscovery(ServiceDiscovery &&value)
Definition: VirtualNodeSpec.h:246
Aws::AppMesh::Model::VirtualNodeSpec::SetBackends
void SetBackends(Aws::Vector< Backend > &&value)
Definition: VirtualNodeSpec.h:99
Aws::AppMesh::Model::VirtualNodeSpec::GetListeners
const Aws::Vector< Listener > & GetListeners() const
Definition: VirtualNodeSpec.h:130
Aws::AppMesh::Model::Listener
Definition: Listener.h:38
Aws::AppMesh::Model::VirtualNodeSpec::WithServiceDiscovery
VirtualNodeSpec & WithServiceDiscovery(const ServiceDiscovery &value)
Definition: VirtualNodeSpec.h:239
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::VirtualNodeSpec::operator=
VirtualNodeSpec & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::VirtualNodeSpec::GetBackends
const Aws::Vector< Backend > & GetBackends() const
Definition: VirtualNodeSpec.h:81
Aws::AppMesh::Model::VirtualNodeSpec::WithBackendDefaults
VirtualNodeSpec & WithBackendDefaults(const BackendDefaults &value)
Definition: VirtualNodeSpec.h:69