AWS SDK for C++  1.9.20
AWS SDK for C++
PortMapping.h
Go to the documentation of this file.
1 
6 #pragma once
8 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Json
14 {
15  class JsonValue;
16  class JsonView;
17 } // namespace Json
18 } // namespace Utils
19 namespace RoboMaker
20 {
21 namespace Model
22 {
23 
30  {
31  public:
36 
37 
42  inline int GetJobPort() const{ return m_jobPort; }
43 
48  inline bool JobPortHasBeenSet() const { return m_jobPortHasBeenSet; }
49 
54  inline void SetJobPort(int value) { m_jobPortHasBeenSet = true; m_jobPort = value; }
55 
60  inline PortMapping& WithJobPort(int value) { SetJobPort(value); return *this;}
61 
62 
66  inline int GetApplicationPort() const{ return m_applicationPort; }
67 
71  inline bool ApplicationPortHasBeenSet() const { return m_applicationPortHasBeenSet; }
72 
76  inline void SetApplicationPort(int value) { m_applicationPortHasBeenSet = true; m_applicationPort = value; }
77 
81  inline PortMapping& WithApplicationPort(int value) { SetApplicationPort(value); return *this;}
82 
83 
87  inline bool GetEnableOnPublicIp() const{ return m_enableOnPublicIp; }
88 
92  inline bool EnableOnPublicIpHasBeenSet() const { return m_enableOnPublicIpHasBeenSet; }
93 
97  inline void SetEnableOnPublicIp(bool value) { m_enableOnPublicIpHasBeenSet = true; m_enableOnPublicIp = value; }
98 
102  inline PortMapping& WithEnableOnPublicIp(bool value) { SetEnableOnPublicIp(value); return *this;}
103 
104  private:
105 
106  int m_jobPort;
107  bool m_jobPortHasBeenSet;
108 
109  int m_applicationPort;
110  bool m_applicationPortHasBeenSet;
111 
112  bool m_enableOnPublicIp;
113  bool m_enableOnPublicIpHasBeenSet;
114  };
115 
116 } // namespace Model
117 } // namespace RoboMaker
118 } // namespace Aws
Aws::RoboMaker::Model::PortMapping::GetEnableOnPublicIp
bool GetEnableOnPublicIp() const
Definition: PortMapping.h:87
Aws::RoboMaker::Model::PortMapping::SetJobPort
void SetJobPort(int value)
Definition: PortMapping.h:54
Aws::RoboMaker::Model::PortMapping::PortMapping
PortMapping(Aws::Utils::Json::JsonView jsonValue)
Aws::RoboMaker::Model::PortMapping::SetEnableOnPublicIp
void SetEnableOnPublicIp(bool value)
Definition: PortMapping.h:97
Aws::RoboMaker::Model::PortMapping::WithJobPort
PortMapping & WithJobPort(int value)
Definition: PortMapping.h:60
Aws::RoboMaker::Model::PortMapping::ApplicationPortHasBeenSet
bool ApplicationPortHasBeenSet() const
Definition: PortMapping.h:71
Aws::RoboMaker::Model::PortMapping::SetApplicationPort
void SetApplicationPort(int value)
Definition: PortMapping.h:76
Aws::RoboMaker::Model::PortMapping::operator=
PortMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::RoboMaker::Model::PortMapping::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::RoboMaker::Model::PortMapping::GetJobPort
int GetJobPort() const
Definition: PortMapping.h:42
Aws::RoboMaker::Model::PortMapping::JobPortHasBeenSet
bool JobPortHasBeenSet() const
Definition: PortMapping.h:48
AWS_ROBOMAKER_API
#define AWS_ROBOMAKER_API
Definition: RoboMaker_EXPORTS.h:28
RoboMaker_EXPORTS.h
Aws::RoboMaker::Model::PortMapping
Definition: PortMapping.h:30
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::RoboMaker::Model::PortMapping::WithApplicationPort
PortMapping & WithApplicationPort(int value)
Definition: PortMapping.h:81
Aws::RoboMaker::Model::PortMapping::WithEnableOnPublicIp
PortMapping & WithEnableOnPublicIp(bool value)
Definition: PortMapping.h:102
Aws::RoboMaker::Model::PortMapping::EnableOnPublicIpHasBeenSet
bool EnableOnPublicIpHasBeenSet() const
Definition: PortMapping.h:92
Aws
Definition: AccessManagementClient.h:15
Aws::RoboMaker::Model::PortMapping::PortMapping
PortMapping()
Aws::RoboMaker::Model::PortMapping::GetApplicationPort
int GetApplicationPort() const
Definition: PortMapping.h:66