AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PortMapping.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/PortProtocol.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 PortMapping();
35 AWS_APPMESH_API PortMapping(Aws::Utils::Json::JsonView jsonValue);
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 PortMapping& WithPort(int value) { SetPort(value); return *this;}
49
51
54 inline const PortProtocol& GetProtocol() const{ return m_protocol; }
55 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
56 inline void SetProtocol(const PortProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
57 inline void SetProtocol(PortProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
58 inline PortMapping& WithProtocol(const PortProtocol& value) { SetProtocol(value); return *this;}
59 inline PortMapping& WithProtocol(PortProtocol&& value) { SetProtocol(std::move(value)); return *this;}
61 private:
62
63 int m_port;
64 bool m_portHasBeenSet = false;
65
66 PortProtocol m_protocol;
67 bool m_protocolHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace AppMesh
72} // namespace Aws
AWS_APPMESH_API PortMapping(Aws::Utils::Json::JsonView jsonValue)
const PortProtocol & GetProtocol() const
Definition PortMapping.h:54
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPMESH_API PortMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
PortMapping & WithProtocol(PortProtocol &&value)
Definition PortMapping.h:59
PortMapping & WithPort(int value)
Definition PortMapping.h:47
PortMapping & WithProtocol(const PortProtocol &value)
Definition PortMapping.h:58
void SetProtocol(const PortProtocol &value)
Definition PortMapping.h:56
void SetProtocol(PortProtocol &&value)
Definition PortMapping.h:57
Aws::Utils::Json::JsonValue JsonValue