7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/TransportProtocol.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ecs/model/ApplicationProtocol.h>
75 inline void SetContainerPort(
int value) { m_containerPortHasBeenSet =
true; m_containerPort = value; }
117 inline void SetHostPort(
int value) { m_hostPortHasBeenSet =
true; m_hostPort = value; }
151 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
225 inline void SetContainerPortRange(
const char* value) { m_containerPortRangeHasBeenSet =
true; m_containerPortRange.assign(value); }
233 bool m_containerPortHasBeenSet =
false;
236 bool m_hostPortHasBeenSet =
false;
239 bool m_protocolHasBeenSet =
false;
242 bool m_nameHasBeenSet =
false;
245 bool m_appProtocolHasBeenSet =
false;
248 bool m_containerPortRangeHasBeenSet =
false;
void SetName(const Aws::String &value)
int GetContainerPort() const
PortMapping & WithContainerPortRange(Aws::String &&value)
AWS_ECS_API PortMapping()
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(Aws::String &&value)
void SetProtocol(const TransportProtocol &value)
AWS_ECS_API PortMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
PortMapping & WithProtocol(TransportProtocol &&value)
PortMapping & WithContainerPortRange(const char *value)
bool AppProtocolHasBeenSet() const
PortMapping & WithName(Aws::String &&value)
PortMapping & WithContainerPortRange(const Aws::String &value)
bool ProtocolHasBeenSet() const
void SetHostPort(int value)
void SetContainerPort(int value)
PortMapping & WithContainerPort(int value)
PortMapping & WithProtocol(const TransportProtocol &value)
AWS_ECS_API PortMapping(Aws::Utils::Json::JsonView jsonValue)
bool NameHasBeenSet() const
void SetAppProtocol(ApplicationProtocol &&value)
PortMapping & WithHostPort(int value)
const Aws::String & GetName() const
const ApplicationProtocol & GetAppProtocol() const
void SetContainerPortRange(const Aws::String &value)
void SetContainerPortRange(Aws::String &&value)
void SetAppProtocol(const ApplicationProtocol &value)
bool ContainerPortRangeHasBeenSet() const
const TransportProtocol & GetProtocol() const
bool ContainerPortHasBeenSet() const
PortMapping & WithAppProtocol(const ApplicationProtocol &value)
PortMapping & WithName(const Aws::String &value)
const Aws::String & GetContainerPortRange() const
void SetProtocol(TransportProtocol &&value)
bool HostPortHasBeenSet() const
PortMapping & WithName(const char *value)
void SetName(const char *value)
PortMapping & WithAppProtocol(ApplicationProtocol &&value)
void SetContainerPortRange(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue