7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/model/NetworkProtocol.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lightsail/model/PortAccessType.h>
11#include <aws/lightsail/model/AccessDirection.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
63 inline void SetFromPort(
int value) { m_fromPortHasBeenSet =
true; m_fromPort = value; }
85 inline void SetToPort(
int value) { m_toPortHasBeenSet =
true; m_toPort = value; }
132 template<
typename AccessFromT = Aws::String>
133 void SetAccessFrom(AccessFromT&& value) { m_accessFromHasBeenSet =
true; m_accessFrom = std::forward<AccessFromT>(value); }
134 template<
typename AccessFromT = Aws::String>
154 template<
typename CommonNameT = Aws::String>
155 void SetCommonName(CommonNameT&& value) { m_commonNameHasBeenSet =
true; m_commonName = std::forward<CommonNameT>(value); }
156 template<
typename CommonNameT = Aws::String>
184 template<
typename C
idrsT = Aws::Vector<Aws::String>>
185 void SetCidrs(CidrsT&& value) { m_cidrsHasBeenSet =
true; m_cidrs = std::forward<CidrsT>(value); }
186 template<
typename C
idrsT = Aws::Vector<Aws::String>>
188 template<
typename C
idrsT = Aws::String>
189 InstancePortInfo&
AddCidrs(CidrsT&& value) { m_cidrsHasBeenSet =
true; m_cidrs.emplace_back(std::forward<CidrsT>(value));
return *
this; }
205 template<
typename Ipv6C
idrsT = Aws::Vector<Aws::String>>
206 void SetIpv6Cidrs(Ipv6CidrsT&& value) { m_ipv6CidrsHasBeenSet =
true; m_ipv6Cidrs = std::forward<Ipv6CidrsT>(value); }
207 template<
typename Ipv6C
idrsT = Aws::Vector<Aws::String>>
209 template<
typename Ipv6C
idrsT = Aws::String>
210 InstancePortInfo&
AddIpv6Cidrs(Ipv6CidrsT&& value) { m_ipv6CidrsHasBeenSet =
true; m_ipv6Cidrs.emplace_back(std::forward<Ipv6CidrsT>(value));
return *
this; }
222 template<
typename C
idrListAliasesT = Aws::Vector<Aws::String>>
223 void SetCidrListAliases(CidrListAliasesT&& value) { m_cidrListAliasesHasBeenSet =
true; m_cidrListAliases = std::forward<CidrListAliasesT>(value); }
224 template<
typename C
idrListAliasesT = Aws::Vector<Aws::String>>
226 template<
typename C
idrListAliasesT = Aws::String>
227 InstancePortInfo&
AddCidrListAliases(CidrListAliasesT&& value) { m_cidrListAliasesHasBeenSet =
true; m_cidrListAliases.emplace_back(std::forward<CidrListAliasesT>(value));
return *
this; }
232 bool m_fromPortHasBeenSet =
false;
235 bool m_toPortHasBeenSet =
false;
238 bool m_protocolHasBeenSet =
false;
241 bool m_accessFromHasBeenSet =
false;
244 bool m_accessTypeHasBeenSet =
false;
247 bool m_commonNameHasBeenSet =
false;
250 bool m_accessDirectionHasBeenSet =
false;
253 bool m_cidrsHasBeenSet =
false;
256 bool m_ipv6CidrsHasBeenSet =
false;
259 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