AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
44
45
47
50 inline const Aws::String& GetBindIP() const{ return m_bindIP; }
51 inline bool BindIPHasBeenSet() const { return m_bindIPHasBeenSet; }
52 inline void SetBindIP(const Aws::String& value) { m_bindIPHasBeenSet = true; m_bindIP = value; }
53 inline void SetBindIP(Aws::String&& value) { m_bindIPHasBeenSet = true; m_bindIP = std::move(value); }
54 inline void SetBindIP(const char* value) { m_bindIPHasBeenSet = true; m_bindIP.assign(value); }
55 inline NetworkBinding& WithBindIP(const Aws::String& value) { SetBindIP(value); return *this;}
56 inline NetworkBinding& WithBindIP(Aws::String&& value) { SetBindIP(std::move(value)); return *this;}
57 inline NetworkBinding& WithBindIP(const char* value) { SetBindIP(value); return *this;}
59
61
64 inline int GetContainerPort() const{ return m_containerPort; }
65 inline bool ContainerPortHasBeenSet() const { return m_containerPortHasBeenSet; }
66 inline void SetContainerPort(int value) { m_containerPortHasBeenSet = true; m_containerPort = value; }
67 inline NetworkBinding& WithContainerPort(int value) { SetContainerPort(value); return *this;}
69
71
74 inline int GetHostPort() const{ return m_hostPort; }
75 inline bool HostPortHasBeenSet() const { return m_hostPortHasBeenSet; }
76 inline void SetHostPort(int value) { m_hostPortHasBeenSet = true; m_hostPort = value; }
77 inline NetworkBinding& WithHostPort(int value) { SetHostPort(value); return *this;}
79
81
84 inline const TransportProtocol& GetProtocol() const{ return m_protocol; }
85 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
86 inline void SetProtocol(const TransportProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
87 inline void SetProtocol(TransportProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
88 inline NetworkBinding& WithProtocol(const TransportProtocol& value) { SetProtocol(value); return *this;}
89 inline NetworkBinding& WithProtocol(TransportProtocol&& value) { SetProtocol(std::move(value)); return *this;}
91
93
128 inline const Aws::String& GetContainerPortRange() const{ return m_containerPortRange; }
129 inline bool ContainerPortRangeHasBeenSet() const { return m_containerPortRangeHasBeenSet; }
130 inline void SetContainerPortRange(const Aws::String& value) { m_containerPortRangeHasBeenSet = true; m_containerPortRange = value; }
131 inline void SetContainerPortRange(Aws::String&& value) { m_containerPortRangeHasBeenSet = true; m_containerPortRange = std::move(value); }
132 inline void SetContainerPortRange(const char* value) { m_containerPortRangeHasBeenSet = true; m_containerPortRange.assign(value); }
133 inline NetworkBinding& WithContainerPortRange(const Aws::String& value) { SetContainerPortRange(value); return *this;}
134 inline NetworkBinding& WithContainerPortRange(Aws::String&& value) { SetContainerPortRange(std::move(value)); return *this;}
135 inline NetworkBinding& WithContainerPortRange(const char* value) { SetContainerPortRange(value); return *this;}
137
139
143 inline const Aws::String& GetHostPortRange() const{ return m_hostPortRange; }
144 inline bool HostPortRangeHasBeenSet() const { return m_hostPortRangeHasBeenSet; }
145 inline void SetHostPortRange(const Aws::String& value) { m_hostPortRangeHasBeenSet = true; m_hostPortRange = value; }
146 inline void SetHostPortRange(Aws::String&& value) { m_hostPortRangeHasBeenSet = true; m_hostPortRange = std::move(value); }
147 inline void SetHostPortRange(const char* value) { m_hostPortRangeHasBeenSet = true; m_hostPortRange.assign(value); }
148 inline NetworkBinding& WithHostPortRange(const Aws::String& value) { SetHostPortRange(value); return *this;}
149 inline NetworkBinding& WithHostPortRange(Aws::String&& value) { SetHostPortRange(std::move(value)); return *this;}
150 inline NetworkBinding& WithHostPortRange(const char* value) { SetHostPortRange(value); return *this;}
152 private:
153
154 Aws::String m_bindIP;
155 bool m_bindIPHasBeenSet = false;
156
157 int m_containerPort;
158 bool m_containerPortHasBeenSet = false;
159
160 int m_hostPort;
161 bool m_hostPortHasBeenSet = false;
162
163 TransportProtocol m_protocol;
164 bool m_protocolHasBeenSet = false;
165
166 Aws::String m_containerPortRange;
167 bool m_containerPortRangeHasBeenSet = false;
168
169 Aws::String m_hostPortRange;
170 bool m_hostPortRangeHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace ECS
175} // namespace Aws
NetworkBinding & WithProtocol(TransportProtocol &&value)
void SetContainerPortRange(Aws::String &&value)
void SetHostPortRange(const Aws::String &value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetProtocol(TransportProtocol &&value)
void SetContainerPortRange(const Aws::String &value)
void SetBindIP(const char *value)
const Aws::String & GetHostPortRange() const
void SetProtocol(const TransportProtocol &value)
NetworkBinding & WithHostPort(int value)
NetworkBinding & WithHostPortRange(const Aws::String &value)
NetworkBinding & WithContainerPortRange(Aws::String &&value)
const TransportProtocol & GetProtocol() const
void SetBindIP(Aws::String &&value)
NetworkBinding & WithBindIP(const char *value)
NetworkBinding & WithContainerPortRange(const char *value)
const Aws::String & GetBindIP() const
void SetHostPortRange(Aws::String &&value)
AWS_ECS_API NetworkBinding & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBindIP(const Aws::String &value)
NetworkBinding & WithBindIP(Aws::String &&value)
void SetContainerPortRange(const char *value)
NetworkBinding & WithContainerPort(int value)
NetworkBinding & WithHostPortRange(const char *value)
const Aws::String & GetContainerPortRange() const
NetworkBinding & WithHostPortRange(Aws::String &&value)
AWS_ECS_API NetworkBinding(Aws::Utils::Json::JsonView jsonValue)
NetworkBinding & WithBindIP(const Aws::String &value)
NetworkBinding & WithProtocol(const TransportProtocol &value)
void SetHostPortRange(const char *value)
NetworkBinding & WithContainerPortRange(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue