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/AccessDirection.h>
11#include <aws/lightsail/model/NetworkProtocol.h>
12#include <aws/lightsail/model/PortAccessType.h>
58 m_fromPortHasBeenSet =
true;
86 m_toPortHasBeenSet =
true;
127 m_protocolHasBeenSet =
true;
144 template <
typename AccessFromT = Aws::String>
146 m_accessFromHasBeenSet =
true;
147 m_accessFrom = std::forward<AccessFromT>(value);
149 template <
typename AccessFromT = Aws::String>
163 m_accessTypeHasBeenSet =
true;
164 m_accessType = value;
178 template <
typename CommonNameT = Aws::String>
180 m_commonNameHasBeenSet =
true;
181 m_commonName = std::forward<CommonNameT>(value);
183 template <
typename CommonNameT = Aws::String>
199 m_accessDirectionHasBeenSet =
true;
200 m_accessDirection = value;
220 template <
typename C
idrsT = Aws::Vector<Aws::String>>
222 m_cidrsHasBeenSet =
true;
223 m_cidrs = std::forward<CidrsT>(value);
225 template <
typename C
idrsT = Aws::Vector<Aws::String>>
227 SetCidrs(std::forward<CidrsT>(value));
230 template <
typename C
idrsT = Aws::String>
232 m_cidrsHasBeenSet =
true;
233 m_cidrs.emplace_back(std::forward<CidrsT>(value));
251 template <
typename Ipv6C
idrsT = Aws::Vector<Aws::String>>
253 m_ipv6CidrsHasBeenSet =
true;
254 m_ipv6Cidrs = std::forward<Ipv6CidrsT>(value);
256 template <
typename Ipv6C
idrsT = Aws::Vector<Aws::String>>
261 template <
typename Ipv6C
idrsT = Aws::String>
263 m_ipv6CidrsHasBeenSet =
true;
264 m_ipv6Cidrs.emplace_back(std::forward<Ipv6CidrsT>(value));
278 template <
typename C
idrListAliasesT = Aws::Vector<Aws::String>>
280 m_cidrListAliasesHasBeenSet =
true;
281 m_cidrListAliases = std::forward<CidrListAliasesT>(value);
283 template <
typename C
idrListAliasesT = Aws::Vector<Aws::String>>
288 template <
typename C
idrListAliasesT = Aws::String>
290 m_cidrListAliasesHasBeenSet =
true;
291 m_cidrListAliases.emplace_back(std::forward<CidrListAliasesT>(value));
315 bool m_fromPortHasBeenSet =
false;
316 bool m_toPortHasBeenSet =
false;
317 bool m_protocolHasBeenSet =
false;
318 bool m_accessFromHasBeenSet =
false;
319 bool m_accessTypeHasBeenSet =
false;
320 bool m_commonNameHasBeenSet =
false;
321 bool m_accessDirectionHasBeenSet =
false;
322 bool m_cidrsHasBeenSet =
false;
323 bool m_ipv6CidrsHasBeenSet =
false;
324 bool m_cidrListAliasesHasBeenSet =
false;
NetworkProtocol GetProtocol() const
void SetAccessDirection(AccessDirection value)
const Aws::Vector< Aws::String > & GetCidrListAliases() const
InstancePortInfo & AddCidrListAliases(CidrListAliasesT &&value)
bool ProtocolHasBeenSet() const
AccessDirection GetAccessDirection() const
AWS_LIGHTSAIL_API InstancePortInfo(Aws::Utils::Json::JsonView jsonValue)
void SetIpv6Cidrs(Ipv6CidrsT &&value)
bool ToPortHasBeenSet() const
void SetCidrs(CidrsT &&value)
bool AccessTypeHasBeenSet() const
bool CidrListAliasesHasBeenSet() const
bool CommonNameHasBeenSet() const
bool AccessDirectionHasBeenSet() const
void SetCommonName(CommonNameT &&value)
InstancePortInfo & WithCidrListAliases(CidrListAliasesT &&value)
InstancePortInfo & WithAccessDirection(AccessDirection value)
InstancePortInfo & AddCidrs(CidrsT &&value)
const Aws::String & GetAccessFrom() const
bool AccessFromHasBeenSet() const
void SetAccessFrom(AccessFromT &&value)
const Aws::Vector< Aws::String > & GetIpv6Cidrs() const
InstancePortInfo & WithAccessType(PortAccessType value)
InstancePortInfo & WithProtocol(NetworkProtocol value)
void SetFromPort(int value)
bool FromPortHasBeenSet() const
const Aws::Vector< Aws::String > & GetCidrs() const
void SetToPort(int value)
void SetAccessType(PortAccessType value)
bool CidrsHasBeenSet() const
const Aws::String & GetCommonName() const
InstancePortInfo & WithCommonName(CommonNameT &&value)
bool Ipv6CidrsHasBeenSet() const
InstancePortInfo & WithCidrs(CidrsT &&value)
AWS_LIGHTSAIL_API InstancePortInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
PortAccessType GetAccessType() const
InstancePortInfo & WithAccessFrom(AccessFromT &&value)
void SetCidrListAliases(CidrListAliasesT &&value)
AWS_LIGHTSAIL_API InstancePortInfo()=default
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
InstancePortInfo & WithFromPort(int value)
InstancePortInfo & WithIpv6Cidrs(Ipv6CidrsT &&value)
InstancePortInfo & AddIpv6Cidrs(Ipv6CidrsT &&value)
void SetProtocol(NetworkProtocol value)
InstancePortInfo & WithToPort(int 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