7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9#include <aws/ecs/model/ApplicationProtocol.h>
10#include <aws/ecs/model/TransportProtocol.h>
67 m_containerPortHasBeenSet =
true;
68 m_containerPort = value;
115 m_hostPortHasBeenSet =
true;
135 m_protocolHasBeenSet =
true;
154 template <
typename NameT = Aws::String>
156 m_nameHasBeenSet =
true;
157 m_name = std::forward<NameT>(value);
159 template <
typename NameT = Aws::String>
161 SetName(std::forward<NameT>(value));
189 m_appProtocolHasBeenSet =
true;
190 m_appProtocol = value;
236 template <
typename ContainerPortRangeT = Aws::String>
238 m_containerPortRangeHasBeenSet =
true;
239 m_containerPortRange = std::forward<ContainerPortRangeT>(value);
241 template <
typename ContainerPortRangeT = Aws::String>
248 int m_containerPort{0};
259 bool m_containerPortHasBeenSet =
false;
260 bool m_hostPortHasBeenSet =
false;
261 bool m_protocolHasBeenSet =
false;
262 bool m_nameHasBeenSet =
false;
263 bool m_appProtocolHasBeenSet =
false;
264 bool m_containerPortRangeHasBeenSet =
false;
int GetContainerPort() const
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
TransportProtocol GetProtocol() const
PortMapping & WithName(NameT &&value)
AWS_ECS_API PortMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
bool AppProtocolHasBeenSet() const
bool ProtocolHasBeenSet() const
void SetProtocol(TransportProtocol value)
void SetHostPort(int value)
void SetContainerPort(int value)
PortMapping & WithContainerPort(int value)
AWS_ECS_API PortMapping(Aws::Utils::Json::JsonView jsonValue)
bool NameHasBeenSet() const
PortMapping & WithHostPort(int value)
const Aws::String & GetName() const
PortMapping & WithAppProtocol(ApplicationProtocol value)
PortMapping & WithContainerPortRange(ContainerPortRangeT &&value)
void SetContainerPortRange(ContainerPortRangeT &&value)
bool ContainerPortRangeHasBeenSet() const
bool ContainerPortHasBeenSet() const
void SetName(NameT &&value)
PortMapping & WithProtocol(TransportProtocol value)
const Aws::String & GetContainerPortRange() const
void SetAppProtocol(ApplicationProtocol value)
bool HostPortHasBeenSet() const
AWS_ECS_API PortMapping()=default
ApplicationProtocol GetAppProtocol() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue