AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VirtualGatewayPortMapping.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/VirtualGatewayPortProtocol.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppMesh
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_APPMESH_API VirtualGatewayPortMapping();
37 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline int GetPort() const{ return m_port; }
45 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
46 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
47 inline VirtualGatewayPortMapping& WithPort(int value) { SetPort(value); return *this;}
49
51
54 inline const VirtualGatewayPortProtocol& GetProtocol() const{ return m_protocol; }
55 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
56 inline void SetProtocol(const VirtualGatewayPortProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
57 inline void SetProtocol(VirtualGatewayPortProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
59 inline VirtualGatewayPortMapping& WithProtocol(VirtualGatewayPortProtocol&& value) { SetProtocol(std::move(value)); return *this;}
61 private:
62
63 int m_port;
64 bool m_portHasBeenSet = false;
65
67 bool m_protocolHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace AppMesh
72} // namespace Aws
void SetProtocol(VirtualGatewayPortProtocol &&value)
const VirtualGatewayPortProtocol & GetProtocol() const
AWS_APPMESH_API VirtualGatewayPortMapping(Aws::Utils::Json::JsonView jsonValue)
VirtualGatewayPortMapping & WithProtocol(VirtualGatewayPortProtocol &&value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProtocol(const VirtualGatewayPortProtocol &value)
VirtualGatewayPortMapping & WithPort(int value)
AWS_APPMESH_API VirtualGatewayPortMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
VirtualGatewayPortMapping & WithProtocol(const VirtualGatewayPortProtocol &value)
Aws::Utils::Json::JsonValue JsonValue