AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
PortOverride.h
1
6#pragma once
7#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace GlobalAccelerator {
17namespace Model {
18
32 public:
33 AWS_GLOBALACCELERATOR_API PortOverride() = default;
34 AWS_GLOBALACCELERATOR_API PortOverride(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GLOBALACCELERATOR_API PortOverride& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline int GetListenerPort() const { return m_listenerPort; }
44 inline bool ListenerPortHasBeenSet() const { return m_listenerPortHasBeenSet; }
45 inline void SetListenerPort(int value) {
46 m_listenerPortHasBeenSet = true;
47 m_listenerPort = value;
48 }
49 inline PortOverride& WithListenerPort(int value) {
50 SetListenerPort(value);
51 return *this;
52 }
54
56
61 inline int GetEndpointPort() const { return m_endpointPort; }
62 inline bool EndpointPortHasBeenSet() const { return m_endpointPortHasBeenSet; }
63 inline void SetEndpointPort(int value) {
64 m_endpointPortHasBeenSet = true;
65 m_endpointPort = value;
66 }
67 inline PortOverride& WithEndpointPort(int value) {
68 SetEndpointPort(value);
69 return *this;
70 }
72 private:
73 int m_listenerPort{0};
74
75 int m_endpointPort{0};
76 bool m_listenerPortHasBeenSet = false;
77 bool m_endpointPortHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace GlobalAccelerator
82} // namespace Aws
PortOverride & WithListenerPort(int value)
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLOBALACCELERATOR_API PortOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API PortOverride(Aws::Utils::Json::JsonView jsonValue)
PortOverride & WithEndpointPort(int value)
AWS_GLOBALACCELERATOR_API PortOverride()=default
Aws::Utils::Json::JsonValue JsonValue