AWS SDK for C++  1.9.125
AWS SDK for C++
VirtualGatewayPortMapping.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 
32  {
33  public:
38 
39 
43  inline int GetPort() const{ return m_port; }
44 
48  inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
49 
53  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
54 
58  inline VirtualGatewayPortMapping& WithPort(int value) { SetPort(value); return *this;}
59 
60 
64  inline const VirtualGatewayPortProtocol& GetProtocol() const{ return m_protocol; }
65 
69  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
70 
74  inline void SetProtocol(const VirtualGatewayPortProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
75 
79  inline void SetProtocol(VirtualGatewayPortProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
80 
84  inline VirtualGatewayPortMapping& WithProtocol(const VirtualGatewayPortProtocol& value) { SetProtocol(value); return *this;}
85 
89  inline VirtualGatewayPortMapping& WithProtocol(VirtualGatewayPortProtocol&& value) { SetProtocol(std::move(value)); return *this;}
90 
91  private:
92 
93  int m_port;
94  bool m_portHasBeenSet;
95 
96  VirtualGatewayPortProtocol m_protocol;
97  bool m_protocolHasBeenSet;
98  };
99 
100 } // namespace Model
101 } // namespace AppMesh
102 } // namespace Aws
Aws::AppMesh::Model::VirtualGatewayPortMapping::PortHasBeenSet
bool PortHasBeenSet() const
Definition: VirtualGatewayPortMapping.h:48
Aws::AppMesh::Model::VirtualGatewayPortProtocol
VirtualGatewayPortProtocol
Definition: VirtualGatewayPortProtocol.h:17
Aws::AppMesh::Model::VirtualGatewayPortMapping::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: VirtualGatewayPortMapping.h:69
Aws::AppMesh::Model::VirtualGatewayPortMapping::operator=
VirtualGatewayPortMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::VirtualGatewayPortMapping::WithProtocol
VirtualGatewayPortMapping & WithProtocol(const VirtualGatewayPortProtocol &value)
Definition: VirtualGatewayPortMapping.h:84
Aws::AppMesh::Model::VirtualGatewayPortMapping::GetPort
int GetPort() const
Definition: VirtualGatewayPortMapping.h:43
Aws::AppMesh::Model::VirtualGatewayPortMapping::GetProtocol
const VirtualGatewayPortProtocol & GetProtocol() const
Definition: VirtualGatewayPortMapping.h:64
Aws::AppMesh::Model::VirtualGatewayPortMapping::VirtualGatewayPortMapping
VirtualGatewayPortMapping()
AppMesh_EXPORTS.h
Aws::AppMesh::Model::VirtualGatewayPortMapping::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::VirtualGatewayPortMapping::WithProtocol
VirtualGatewayPortMapping & WithProtocol(VirtualGatewayPortProtocol &&value)
Definition: VirtualGatewayPortMapping.h:89
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::VirtualGatewayPortMapping::WithPort
VirtualGatewayPortMapping & WithPort(int value)
Definition: VirtualGatewayPortMapping.h:58
Aws::AppMesh::Model::VirtualGatewayPortMapping::SetProtocol
void SetProtocol(const VirtualGatewayPortProtocol &value)
Definition: VirtualGatewayPortMapping.h:74
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::VirtualGatewayPortMapping::VirtualGatewayPortMapping
VirtualGatewayPortMapping(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::VirtualGatewayPortMapping
Definition: VirtualGatewayPortMapping.h:32
Aws::AppMesh::Model::VirtualGatewayPortMapping::SetPort
void SetPort(int value)
Definition: VirtualGatewayPortMapping.h:53
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::VirtualGatewayPortMapping::SetProtocol
void SetProtocol(VirtualGatewayPortProtocol &&value)
Definition: VirtualGatewayPortMapping.h:79
VirtualGatewayPortProtocol.h