AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VirtualRouterSpec.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/appmesh/model/VirtualRouterListener.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppMesh
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPMESH_API VirtualRouterSpec();
39 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<VirtualRouterListener>& GetListeners() const{ return m_listeners; }
48 inline bool ListenersHasBeenSet() const { return m_listenersHasBeenSet; }
49 inline void SetListeners(const Aws::Vector<VirtualRouterListener>& value) { m_listenersHasBeenSet = true; m_listeners = value; }
50 inline void SetListeners(Aws::Vector<VirtualRouterListener>&& value) { m_listenersHasBeenSet = true; m_listeners = std::move(value); }
52 inline VirtualRouterSpec& WithListeners(Aws::Vector<VirtualRouterListener>&& value) { SetListeners(std::move(value)); return *this;}
53 inline VirtualRouterSpec& AddListeners(const VirtualRouterListener& value) { m_listenersHasBeenSet = true; m_listeners.push_back(value); return *this; }
54 inline VirtualRouterSpec& AddListeners(VirtualRouterListener&& value) { m_listenersHasBeenSet = true; m_listeners.push_back(std::move(value)); return *this; }
56 private:
57
59 bool m_listenersHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace AppMesh
64} // namespace Aws
void SetListeners(Aws::Vector< VirtualRouterListener > &&value)
AWS_APPMESH_API VirtualRouterSpec & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetListeners(const Aws::Vector< VirtualRouterListener > &value)
VirtualRouterSpec & AddListeners(VirtualRouterListener &&value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
VirtualRouterSpec & AddListeners(const VirtualRouterListener &value)
const Aws::Vector< VirtualRouterListener > & GetListeners() const
AWS_APPMESH_API VirtualRouterSpec(Aws::Utils::Json::JsonView jsonValue)
VirtualRouterSpec & WithListeners(Aws::Vector< VirtualRouterListener > &&value)
VirtualRouterSpec & WithListeners(const Aws::Vector< VirtualRouterListener > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue