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;
134 m_protocolHasBeenSet =
true;
153 template <
typename NameT = Aws::String>
155 m_nameHasBeenSet =
true;
156 m_name = std::forward<NameT>(value);
158 template <
typename NameT = Aws::String>
160 SetName(std::forward<NameT>(value));
188 m_appProtocolHasBeenSet =
true;
189 m_appProtocol = value;
235 template <
typename ContainerPortRangeT = Aws::String>
237 m_containerPortRangeHasBeenSet =
true;
238 m_containerPortRange = std::forward<ContainerPortRangeT>(value);
240 template <
typename ContainerPortRangeT = Aws::String>
247 int m_containerPort{0};
258 bool m_containerPortHasBeenSet =
false;
259 bool m_hostPortHasBeenSet =
false;
260 bool m_protocolHasBeenSet =
false;
261 bool m_nameHasBeenSet =
false;
262 bool m_appProtocolHasBeenSet =
false;
263 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