7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10#include <aws/lightsail/model/NetworkProtocol.h>
57 m_fromPortHasBeenSet =
true;
85 m_toPortHasBeenSet =
true;
126 m_protocolHasBeenSet =
true;
151 template <
typename C
idrsT = Aws::Vector<Aws::String>>
153 m_cidrsHasBeenSet =
true;
154 m_cidrs = std::forward<CidrsT>(value);
156 template <
typename C
idrsT = Aws::Vector<Aws::String>>
158 SetCidrs(std::forward<CidrsT>(value));
161 template <
typename C
idrsT = Aws::String>
163 m_cidrsHasBeenSet =
true;
164 m_cidrs.emplace_back(std::forward<CidrsT>(value));
182 template <
typename Ipv6C
idrsT = Aws::Vector<Aws::String>>
184 m_ipv6CidrsHasBeenSet =
true;
185 m_ipv6Cidrs = std::forward<Ipv6CidrsT>(value);
187 template <
typename Ipv6C
idrsT = Aws::Vector<Aws::String>>
192 template <
typename Ipv6C
idrsT = Aws::String>
194 m_ipv6CidrsHasBeenSet =
true;
195 m_ipv6Cidrs.emplace_back(std::forward<Ipv6CidrsT>(value));
209 template <
typename C
idrListAliasesT = Aws::Vector<Aws::String>>
211 m_cidrListAliasesHasBeenSet =
true;
212 m_cidrListAliases = std::forward<CidrListAliasesT>(value);
214 template <
typename C
idrListAliasesT = Aws::Vector<Aws::String>>
219 template <
typename C
idrListAliasesT = Aws::String>
221 m_cidrListAliasesHasBeenSet =
true;
222 m_cidrListAliases.emplace_back(std::forward<CidrListAliasesT>(value));
238 bool m_fromPortHasBeenSet =
false;
239 bool m_toPortHasBeenSet =
false;
240 bool m_protocolHasBeenSet =
false;
241 bool m_cidrsHasBeenSet =
false;
242 bool m_ipv6CidrsHasBeenSet =
false;
243 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