7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/model/NetworkProtocol.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
62 inline void SetFromPort(
int value) { m_fromPortHasBeenSet =
true; m_fromPort = value; }
84 inline void SetToPort(
int value) { m_toPortHasBeenSet =
true; m_toPort = value; }
147 inline PortInfo&
AddCidrs(
const char* value) { m_cidrsHasBeenSet =
true; m_cidrs.push_back(value);
return *
this; }
169 inline PortInfo&
AddIpv6Cidrs(
const char* value) { m_ipv6CidrsHasBeenSet =
true; m_ipv6Cidrs.push_back(value);
return *
this; }
187 inline PortInfo&
AddCidrListAliases(
const char* value) { m_cidrListAliasesHasBeenSet =
true; m_cidrListAliases.push_back(value);
return *
this; }
192 bool m_fromPortHasBeenSet =
false;
195 bool m_toPortHasBeenSet =
false;
198 bool m_protocolHasBeenSet =
false;
201 bool m_cidrsHasBeenSet =
false;
204 bool m_ipv6CidrsHasBeenSet =
false;
207 bool m_cidrListAliasesHasBeenSet =
false;
PortInfo & AddCidrs(Aws::String &&value)
PortInfo & WithFromPort(int value)
PortInfo & AddCidrListAliases(const Aws::String &value)
PortInfo & AddCidrs(const Aws::String &value)
bool CidrsHasBeenSet() const
void SetCidrListAliases(Aws::Vector< Aws::String > &&value)
PortInfo & WithCidrListAliases(Aws::Vector< Aws::String > &&value)
AWS_LIGHTSAIL_API PortInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCidrs(Aws::Vector< Aws::String > &&value)
bool FromPortHasBeenSet() const
PortInfo & AddIpv6Cidrs(const Aws::String &value)
PortInfo & WithProtocol(const NetworkProtocol &value)
PortInfo & AddCidrListAliases(Aws::String &&value)
PortInfo & WithToPort(int value)
bool ProtocolHasBeenSet() const
AWS_LIGHTSAIL_API PortInfo()
PortInfo & AddCidrs(const char *value)
void SetIpv6Cidrs(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetCidrs() const
PortInfo & AddIpv6Cidrs(Aws::String &&value)
bool Ipv6CidrsHasBeenSet() const
void SetCidrs(const Aws::Vector< Aws::String > &value)
void SetFromPort(int value)
void SetProtocol(NetworkProtocol &&value)
const Aws::Vector< Aws::String > & GetIpv6Cidrs() const
const Aws::Vector< Aws::String > & GetCidrListAliases() const
void SetToPort(int value)
PortInfo & WithCidrs(Aws::Vector< Aws::String > &&value)
bool CidrListAliasesHasBeenSet() const
void SetProtocol(const NetworkProtocol &value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
PortInfo & WithCidrs(const Aws::Vector< Aws::String > &value)
void SetIpv6Cidrs(Aws::Vector< Aws::String > &&value)
PortInfo & AddIpv6Cidrs(const char *value)
void SetCidrListAliases(const Aws::Vector< Aws::String > &value)
PortInfo & WithIpv6Cidrs(Aws::Vector< Aws::String > &&value)
PortInfo & AddCidrListAliases(const char *value)
PortInfo & WithCidrListAliases(const Aws::Vector< Aws::String > &value)
AWS_LIGHTSAIL_API PortInfo(Aws::Utils::Json::JsonView jsonValue)
bool ToPortHasBeenSet() const
const NetworkProtocol & GetProtocol() const
PortInfo & WithIpv6Cidrs(const Aws::Vector< Aws::String > &value)
PortInfo & WithProtocol(NetworkProtocol &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue