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; }
139 template<
typename C
idrsT = Aws::Vector<Aws::String>>
140 void SetCidrs(CidrsT&& value) { m_cidrsHasBeenSet =
true; m_cidrs = std::forward<CidrsT>(value); }
141 template<
typename C
idrsT = Aws::Vector<Aws::String>>
143 template<
typename C
idrsT = Aws::String>
144 PortInfo&
AddCidrs(CidrsT&& value) { m_cidrsHasBeenSet =
true; m_cidrs.emplace_back(std::forward<CidrsT>(value));
return *
this; }
160 template<
typename Ipv6C
idrsT = Aws::Vector<Aws::String>>
161 void SetIpv6Cidrs(Ipv6CidrsT&& value) { m_ipv6CidrsHasBeenSet =
true; m_ipv6Cidrs = std::forward<Ipv6CidrsT>(value); }
162 template<
typename Ipv6C
idrsT = Aws::Vector<Aws::String>>
164 template<
typename Ipv6C
idrsT = Aws::String>
165 PortInfo&
AddIpv6Cidrs(Ipv6CidrsT&& value) { m_ipv6CidrsHasBeenSet =
true; m_ipv6Cidrs.emplace_back(std::forward<Ipv6CidrsT>(value));
return *
this; }
177 template<
typename C
idrListAliasesT = Aws::Vector<Aws::String>>
178 void SetCidrListAliases(CidrListAliasesT&& value) { m_cidrListAliasesHasBeenSet =
true; m_cidrListAliases = std::forward<CidrListAliasesT>(value); }
179 template<
typename C
idrListAliasesT = Aws::Vector<Aws::String>>
181 template<
typename C
idrListAliasesT = Aws::String>
182 PortInfo&
AddCidrListAliases(CidrListAliasesT&& value) { m_cidrListAliasesHasBeenSet =
true; m_cidrListAliases.emplace_back(std::forward<CidrListAliasesT>(value));
return *
this; }
187 bool m_fromPortHasBeenSet =
false;
190 bool m_toPortHasBeenSet =
false;
193 bool m_protocolHasBeenSet =
false;
196 bool m_cidrsHasBeenSet =
false;
199 bool m_ipv6CidrsHasBeenSet =
false;
202 bool m_cidrListAliasesHasBeenSet =
false;
PortInfo & WithFromPort(int value)
bool CidrsHasBeenSet() const
PortInfo & WithCidrs(CidrsT &&value)
AWS_LIGHTSAIL_API PortInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
bool FromPortHasBeenSet() const
PortInfo & AddCidrs(CidrsT &&value)
PortInfo & WithToPort(int value)
void SetCidrListAliases(CidrListAliasesT &&value)
bool ProtocolHasBeenSet() const
const Aws::Vector< Aws::String > & GetCidrs() const
NetworkProtocol GetProtocol() const
PortInfo & WithIpv6Cidrs(Ipv6CidrsT &&value)
AWS_LIGHTSAIL_API PortInfo()=default
bool Ipv6CidrsHasBeenSet() const
void SetFromPort(int value)
void SetIpv6Cidrs(Ipv6CidrsT &&value)
const Aws::Vector< Aws::String > & GetIpv6Cidrs() const
const Aws::Vector< Aws::String > & GetCidrListAliases() const
void SetToPort(int value)
void SetCidrs(CidrsT &&value)
bool CidrListAliasesHasBeenSet() const
PortInfo & WithCidrListAliases(CidrListAliasesT &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
PortInfo & AddIpv6Cidrs(Ipv6CidrsT &&value)
PortInfo & AddCidrListAliases(CidrListAliasesT &&value)
PortInfo & WithProtocol(NetworkProtocol value)
AWS_LIGHTSAIL_API PortInfo(Aws::Utils::Json::JsonView jsonValue)
bool ToPortHasBeenSet() const
void SetProtocol(NetworkProtocol value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue