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/robomaker/RoboMaker_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace RoboMaker
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_ROBOMAKER_API PortMapping();
33 AWS_ROBOMAKER_API PortMapping(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ROBOMAKER_API PortMapping& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
37
39
43 inline int GetJobPort() const{ return m_jobPort; }
44 inline bool JobPortHasBeenSet() const { return m_jobPortHasBeenSet; }
45 inline void SetJobPort(int value) { m_jobPortHasBeenSet = true; m_jobPort = value; }
46 inline PortMapping& WithJobPort(int value) { SetJobPort(value); return *this;}
48
50
53 inline int GetApplicationPort() const{ return m_applicationPort; }
54 inline bool ApplicationPortHasBeenSet() const { return m_applicationPortHasBeenSet; }
55 inline void SetApplicationPort(int value) { m_applicationPortHasBeenSet = true; m_applicationPort = value; }
56 inline PortMapping& WithApplicationPort(int value) { SetApplicationPort(value); return *this;}
58
60
63 inline bool GetEnableOnPublicIp() const{ return m_enableOnPublicIp; }
64 inline bool EnableOnPublicIpHasBeenSet() const { return m_enableOnPublicIpHasBeenSet; }
65 inline void SetEnableOnPublicIp(bool value) { m_enableOnPublicIpHasBeenSet = true; m_enableOnPublicIp = value; }
66 inline PortMapping& WithEnableOnPublicIp(bool value) { SetEnableOnPublicIp(value); return *this;}
68 private:
69
70 int m_jobPort;
71 bool m_jobPortHasBeenSet = false;
72
73 int m_applicationPort;
74 bool m_applicationPortHasBeenSet = false;
75
76 bool m_enableOnPublicIp;
77 bool m_enableOnPublicIpHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace RoboMaker
82} // namespace Aws
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
PortMapping & WithEnableOnPublicIp(bool value)
Definition PortMapping.h:66
AWS_ROBOMAKER_API PortMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
PortMapping & WithApplicationPort(int value)
Definition PortMapping.h:56
AWS_ROBOMAKER_API PortMapping(Aws::Utils::Json::JsonView jsonValue)
PortMapping & WithJobPort(int value)
Definition PortMapping.h:46
Aws::Utils::Json::JsonValue JsonValue