AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
PortOverride.h
1
6#pragma once
7#include <aws/globalaccelerator/GlobalAccelerator_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 GlobalAccelerator
20{
21namespace Model
22{
23
37 {
38 public:
39 AWS_GLOBALACCELERATOR_API PortOverride() = default;
40 AWS_GLOBALACCELERATOR_API PortOverride(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GLOBALACCELERATOR_API PortOverride& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline int GetListenerPort() const { return m_listenerPort; }
51 inline bool ListenerPortHasBeenSet() const { return m_listenerPortHasBeenSet; }
52 inline void SetListenerPort(int value) { m_listenerPortHasBeenSet = true; m_listenerPort = value; }
53 inline PortOverride& WithListenerPort(int value) { SetListenerPort(value); return *this;}
55
57
62 inline int GetEndpointPort() const { return m_endpointPort; }
63 inline bool EndpointPortHasBeenSet() const { return m_endpointPortHasBeenSet; }
64 inline void SetEndpointPort(int value) { m_endpointPortHasBeenSet = true; m_endpointPort = value; }
65 inline PortOverride& WithEndpointPort(int value) { SetEndpointPort(value); return *this;}
67 private:
68
69 int m_listenerPort{0};
70 bool m_listenerPortHasBeenSet = false;
71
72 int m_endpointPort{0};
73 bool m_endpointPortHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace GlobalAccelerator
78} // 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