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