AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 PortProtocol GetProtocol() const { return m_protocol; }
55 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
56 inline void SetProtocol(PortProtocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
57 inline PortMapping& WithProtocol(PortProtocol value) { SetProtocol(value); return *this;}
59 private:
60
61 int m_port{0};
62 bool m_portHasBeenSet = false;
63
65 bool m_protocolHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace AppMesh
70} // namespace Aws
AWS_APPMESH_API PortMapping(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API PortMapping()=default
void SetProtocol(PortProtocol value)
Definition PortMapping.h:56
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
PortMapping & WithProtocol(PortProtocol value)
Definition PortMapping.h:57
AWS_APPMESH_API PortMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
PortMapping & WithPort(int value)
Definition PortMapping.h:47
PortProtocol GetProtocol() const
Definition PortMapping.h:54
Aws::Utils::Json::JsonValue JsonValue