AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NetworkBinding.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecs/model/TransportProtocol.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECS
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_ECS_API NetworkBinding() = default;
44
45
47
50 inline const Aws::String& GetBindIP() const { return m_bindIP; }
51 inline bool BindIPHasBeenSet() const { return m_bindIPHasBeenSet; }
52 template<typename BindIPT = Aws::String>
53 void SetBindIP(BindIPT&& value) { m_bindIPHasBeenSet = true; m_bindIP = std::forward<BindIPT>(value); }
54 template<typename BindIPT = Aws::String>
55 NetworkBinding& WithBindIP(BindIPT&& value) { SetBindIP(std::forward<BindIPT>(value)); return *this;}
57
59
62 inline int GetContainerPort() const { return m_containerPort; }
63 inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
64 inline void SetContainerPort(int value) { m_containerPortHasBeenSet = true; m_containerPort = value; }
65 inline NetworkBinding& WithContainerPort(int value) { SetContainerPort(value); return *this;}
67
69
72 inline int GetHostPort() const { return m_hostPort; }
73 inline bool HostPortHasBeenSet() const { return m_hostPortHasBeenSet; }
74 inline void SetHostPort(int value) { m_hostPortHasBeenSet = true; m_hostPort = value; }
75 inline NetworkBinding& WithHostPort(int value) { SetHostPort(value); return *this;}
77
79
82 inline TransportProtocol GetProtocol() const { return m_protocol; }
83 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
84 inline void SetProtocol(TransportProtocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
85 inline NetworkBinding& WithProtocol(TransportProtocol value) { SetProtocol(value); return *this;}
87
89
124 inline const Aws::String& GetContainerPortRange() const { return m_containerPortRange; }
125 inline bool ContainerPortRangeHasBeenSet() const { return m_containerPortRangeHasBeenSet; }
126 template<typename ContainerPortRangeT = Aws::String>
127 void SetContainerPortRange(ContainerPortRangeT&& value) { m_containerPortRangeHasBeenSet = true; m_containerPortRange = std::forward<ContainerPortRangeT>(value); }
128 template<typename ContainerPortRangeT = Aws::String>
129 NetworkBinding& WithContainerPortRange(ContainerPortRangeT&& value) { SetContainerPortRange(std::forward<ContainerPortRangeT>(value)); return *this;}
131
133
137 inline const Aws::String& GetHostPortRange() const { return m_hostPortRange; }
138 inline bool HostPortRangeHasBeenSet() const { return m_hostPortRangeHasBeenSet; }
139 template<typename HostPortRangeT = Aws::String>
140 void SetHostPortRange(HostPortRangeT&& value) { m_hostPortRangeHasBeenSet = true; m_hostPortRange = std::forward<HostPortRangeT>(value); }
141 template<typename HostPortRangeT = Aws::String>
142 NetworkBinding& WithHostPortRange(HostPortRangeT&& value) { SetHostPortRange(std::forward<HostPortRangeT>(value)); return *this;}
144 private:
145
146 Aws::String m_bindIP;
147 bool m_bindIPHasBeenSet = false;
148
149 int m_containerPort{0};
150 bool m_containerPortHasBeenSet = false;
151
152 int m_hostPort{0};
153 bool m_hostPortHasBeenSet = false;
154
156 bool m_protocolHasBeenSet = false;
157
158 Aws::String m_containerPortRange;
159 bool m_containerPortRangeHasBeenSet = false;
160
161 Aws::String m_hostPortRange;
162 bool m_hostPortRangeHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace ECS
167} // namespace Aws
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkBinding & WithHostPortRange(HostPortRangeT &&value)
const Aws::String & GetHostPortRange() const
NetworkBinding & WithHostPort(int value)
NetworkBinding & WithProtocol(TransportProtocol value)
void SetHostPortRange(HostPortRangeT &&value)
TransportProtocol GetProtocol() const
NetworkBinding & WithContainerPortRange(ContainerPortRangeT &&value)
AWS_ECS_API NetworkBinding()=default
const Aws::String & GetBindIP() const
AWS_ECS_API NetworkBinding & operator=(Aws::Utils::Json::JsonView jsonValue)
NetworkBinding & WithBindIP(BindIPT &&value)
NetworkBinding & WithContainerPort(int value)
void SetProtocol(TransportProtocol value)
const Aws::String & GetContainerPortRange() const
void SetContainerPortRange(ContainerPortRangeT &&value)
void SetBindIP(BindIPT &&value)
AWS_ECS_API NetworkBinding(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue