AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VirtualNodeSpec.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/BackendDefaults.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/appmesh/model/Logging.h>
11#include <aws/appmesh/model/ServiceDiscovery.h>
12#include <aws/appmesh/model/Backend.h>
13#include <aws/appmesh/model/Listener.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace AppMesh
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_APPMESH_API VirtualNodeSpec();
41 AWS_APPMESH_API VirtualNodeSpec(Aws::Utils::Json::JsonView jsonValue);
43 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const BackendDefaults& GetBackendDefaults() const{ return m_backendDefaults; }
51 inline bool BackendDefaultsHasBeenSet() const { return m_backendDefaultsHasBeenSet; }
52 inline void SetBackendDefaults(const BackendDefaults& value) { m_backendDefaultsHasBeenSet = true; m_backendDefaults = value; }
53 inline void SetBackendDefaults(BackendDefaults&& value) { m_backendDefaultsHasBeenSet = true; m_backendDefaults = std::move(value); }
54 inline VirtualNodeSpec& WithBackendDefaults(const BackendDefaults& value) { SetBackendDefaults(value); return *this;}
55 inline VirtualNodeSpec& WithBackendDefaults(BackendDefaults&& value) { SetBackendDefaults(std::move(value)); return *this;}
57
59
63 inline const Aws::Vector<Backend>& GetBackends() const{ return m_backends; }
64 inline bool BackendsHasBeenSet() const { return m_backendsHasBeenSet; }
65 inline void SetBackends(const Aws::Vector<Backend>& value) { m_backendsHasBeenSet = true; m_backends = value; }
66 inline void SetBackends(Aws::Vector<Backend>&& value) { m_backendsHasBeenSet = true; m_backends = std::move(value); }
67 inline VirtualNodeSpec& WithBackends(const Aws::Vector<Backend>& value) { SetBackends(value); return *this;}
68 inline VirtualNodeSpec& WithBackends(Aws::Vector<Backend>&& value) { SetBackends(std::move(value)); return *this;}
69 inline VirtualNodeSpec& AddBackends(const Backend& value) { m_backendsHasBeenSet = true; m_backends.push_back(value); return *this; }
70 inline VirtualNodeSpec& AddBackends(Backend&& value) { m_backendsHasBeenSet = true; m_backends.push_back(std::move(value)); return *this; }
72
74
78 inline const Aws::Vector<Listener>& GetListeners() const{ return m_listeners; }
79 inline bool ListenersHasBeenSet() const { return m_listenersHasBeenSet; }
80 inline void SetListeners(const Aws::Vector<Listener>& value) { m_listenersHasBeenSet = true; m_listeners = value; }
81 inline void SetListeners(Aws::Vector<Listener>&& value) { m_listenersHasBeenSet = true; m_listeners = std::move(value); }
82 inline VirtualNodeSpec& WithListeners(const Aws::Vector<Listener>& value) { SetListeners(value); return *this;}
83 inline VirtualNodeSpec& WithListeners(Aws::Vector<Listener>&& value) { SetListeners(std::move(value)); return *this;}
84 inline VirtualNodeSpec& AddListeners(const Listener& value) { m_listenersHasBeenSet = true; m_listeners.push_back(value); return *this; }
85 inline VirtualNodeSpec& AddListeners(Listener&& value) { m_listenersHasBeenSet = true; m_listeners.push_back(std::move(value)); return *this; }
87
89
92 inline const Logging& GetLogging() const{ return m_logging; }
93 inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; }
94 inline void SetLogging(const Logging& value) { m_loggingHasBeenSet = true; m_logging = value; }
95 inline void SetLogging(Logging&& value) { m_loggingHasBeenSet = true; m_logging = std::move(value); }
96 inline VirtualNodeSpec& WithLogging(const Logging& value) { SetLogging(value); return *this;}
97 inline VirtualNodeSpec& WithLogging(Logging&& value) { SetLogging(std::move(value)); return *this;}
99
101
106 inline const ServiceDiscovery& GetServiceDiscovery() const{ return m_serviceDiscovery; }
107 inline bool ServiceDiscoveryHasBeenSet() const { return m_serviceDiscoveryHasBeenSet; }
108 inline void SetServiceDiscovery(const ServiceDiscovery& value) { m_serviceDiscoveryHasBeenSet = true; m_serviceDiscovery = value; }
109 inline void SetServiceDiscovery(ServiceDiscovery&& value) { m_serviceDiscoveryHasBeenSet = true; m_serviceDiscovery = std::move(value); }
110 inline VirtualNodeSpec& WithServiceDiscovery(const ServiceDiscovery& value) { SetServiceDiscovery(value); return *this;}
111 inline VirtualNodeSpec& WithServiceDiscovery(ServiceDiscovery&& value) { SetServiceDiscovery(std::move(value)); return *this;}
113 private:
114
115 BackendDefaults m_backendDefaults;
116 bool m_backendDefaultsHasBeenSet = false;
117
118 Aws::Vector<Backend> m_backends;
119 bool m_backendsHasBeenSet = false;
120
121 Aws::Vector<Listener> m_listeners;
122 bool m_listenersHasBeenSet = false;
123
124 Logging m_logging;
125 bool m_loggingHasBeenSet = false;
126
127 ServiceDiscovery m_serviceDiscovery;
128 bool m_serviceDiscoveryHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace AppMesh
133} // namespace Aws
VirtualNodeSpec & WithLogging(const Logging &value)
VirtualNodeSpec & WithServiceDiscovery(const ServiceDiscovery &value)
VirtualNodeSpec & WithBackendDefaults(BackendDefaults &&value)
void SetListeners(const Aws::Vector< Listener > &value)
const BackendDefaults & GetBackendDefaults() const
void SetListeners(Aws::Vector< Listener > &&value)
VirtualNodeSpec & WithBackendDefaults(const BackendDefaults &value)
const ServiceDiscovery & GetServiceDiscovery() const
void SetLogging(const Logging &value)
VirtualNodeSpec & WithListeners(const Aws::Vector< Listener > &value)
void SetBackends(const Aws::Vector< Backend > &value)
VirtualNodeSpec & WithBackends(Aws::Vector< Backend > &&value)
VirtualNodeSpec & WithListeners(Aws::Vector< Listener > &&value)
VirtualNodeSpec & WithBackends(const Aws::Vector< Backend > &value)
VirtualNodeSpec & AddBackends(const Backend &value)
const Aws::Vector< Listener > & GetListeners() const
VirtualNodeSpec & WithServiceDiscovery(ServiceDiscovery &&value)
AWS_APPMESH_API VirtualNodeSpec & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API VirtualNodeSpec(Aws::Utils::Json::JsonView jsonValue)
void SetBackendDefaults(BackendDefaults &&value)
const Aws::Vector< Backend > & GetBackends() const
VirtualNodeSpec & AddListeners(const Listener &value)
VirtualNodeSpec & AddBackends(Backend &&value)
void SetServiceDiscovery(const ServiceDiscovery &value)
void SetServiceDiscovery(ServiceDiscovery &&value)
void SetBackendDefaults(const BackendDefaults &value)
VirtualNodeSpec & WithLogging(Logging &&value)
VirtualNodeSpec & AddListeners(Listener &&value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBackends(Aws::Vector< Backend > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue