AWS SDK for C++  1.9.17
AWS SDK for C++
VirtualRouterListener.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace AppMesh
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
41 
42  inline const PortMapping& GetPortMapping() const{ return m_portMapping; }
43 
44 
45  inline bool PortMappingHasBeenSet() const { return m_portMappingHasBeenSet; }
46 
47 
48  inline void SetPortMapping(const PortMapping& value) { m_portMappingHasBeenSet = true; m_portMapping = value; }
49 
50 
51  inline void SetPortMapping(PortMapping&& value) { m_portMappingHasBeenSet = true; m_portMapping = std::move(value); }
52 
53 
54  inline VirtualRouterListener& WithPortMapping(const PortMapping& value) { SetPortMapping(value); return *this;}
55 
56 
57  inline VirtualRouterListener& WithPortMapping(PortMapping&& value) { SetPortMapping(std::move(value)); return *this;}
58 
59  private:
60 
61  PortMapping m_portMapping;
62  bool m_portMappingHasBeenSet;
63  };
64 
65 } // namespace Model
66 } // namespace AppMesh
67 } // namespace Aws
Aws::AppMesh::Model::VirtualRouterListener
Definition: VirtualRouterListener.h:33
Aws::AppMesh::Model::VirtualRouterListener::WithPortMapping
VirtualRouterListener & WithPortMapping(PortMapping &&value)
Definition: VirtualRouterListener.h:57
PortMapping.h
Aws::AppMesh::Model::VirtualRouterListener::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::VirtualRouterListener::PortMappingHasBeenSet
bool PortMappingHasBeenSet() const
Definition: VirtualRouterListener.h:45
Aws::AppMesh::Model::VirtualRouterListener::SetPortMapping
void SetPortMapping(PortMapping &&value)
Definition: VirtualRouterListener.h:51
Aws::AppMesh::Model::PortMapping
Definition: PortMapping.h:32
AppMesh_EXPORTS.h
Aws::AppMesh::Model::VirtualRouterListener::SetPortMapping
void SetPortMapping(const PortMapping &value)
Definition: VirtualRouterListener.h:48
Aws::AppMesh::Model::VirtualRouterListener::VirtualRouterListener
VirtualRouterListener(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::AppMesh::Model::VirtualRouterListener::WithPortMapping
VirtualRouterListener & WithPortMapping(const PortMapping &value)
Definition: VirtualRouterListener.h:54
Aws::AppMesh::Model::VirtualRouterListener::VirtualRouterListener
VirtualRouterListener()
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::VirtualRouterListener::GetPortMapping
const PortMapping & GetPortMapping() const
Definition: VirtualRouterListener.h:42
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::VirtualRouterListener::operator=
VirtualRouterListener & operator=(Aws::Utils::Json::JsonView jsonValue)