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; }
136 inline void SetAccessFrom(
const char* value) { m_accessFromHasBeenSet =
true; m_accessFrom.assign(value); }
162 inline void SetCommonName(
const char* value) { m_commonNameHasBeenSet =
true; m_commonName.assign(value); }
245 bool m_fromPortHasBeenSet =
false;
248 bool m_toPortHasBeenSet =
false;
251 bool m_protocolHasBeenSet =
false;
254 bool m_accessFromHasBeenSet =
false;
257 bool m_accessTypeHasBeenSet =
false;
260 bool m_commonNameHasBeenSet =
false;
263 bool m_accessDirectionHasBeenSet =
false;
266 bool m_cidrsHasBeenSet =
false;
269 bool m_ipv6CidrsHasBeenSet =
false;
272 bool m_cidrListAliasesHasBeenSet =
false;
void SetCommonName(const Aws::String &value)
InstancePortInfo & AddIpv6Cidrs(Aws::String &&value)
const Aws::Vector< Aws::String > & GetCidrListAliases() const
void SetProtocol(const NetworkProtocol &value)
bool ProtocolHasBeenSet() const
const NetworkProtocol & GetProtocol() const
AWS_LIGHTSAIL_API InstancePortInfo(Aws::Utils::Json::JsonView jsonValue)
const AccessDirection & GetAccessDirection() const
InstancePortInfo & WithAccessType(const PortAccessType &value)
bool ToPortHasBeenSet() const
InstancePortInfo & WithCommonName(const Aws::String &value)
void SetCidrListAliases(Aws::Vector< Aws::String > &&value)
InstancePortInfo & WithCidrs(const Aws::Vector< Aws::String > &value)
void SetAccessFrom(const char *value)
bool AccessTypeHasBeenSet() const
void SetIpv6Cidrs(Aws::Vector< Aws::String > &&value)
void SetAccessFrom(Aws::String &&value)
InstancePortInfo & WithAccessFrom(const Aws::String &value)
bool CidrListAliasesHasBeenSet() const
InstancePortInfo & WithProtocol(NetworkProtocol &&value)
bool CommonNameHasBeenSet() const
bool AccessDirectionHasBeenSet() const
InstancePortInfo & WithCidrs(Aws::Vector< Aws::String > &&value)
void SetCidrs(Aws::Vector< Aws::String > &&value)
void SetCidrs(const Aws::Vector< Aws::String > &value)
void SetCommonName(const char *value)
InstancePortInfo & WithIpv6Cidrs(const Aws::Vector< Aws::String > &value)
InstancePortInfo & AddIpv6Cidrs(const Aws::String &value)
InstancePortInfo & WithAccessFrom(const char *value)
void SetCidrListAliases(const Aws::Vector< Aws::String > &value)
InstancePortInfo & WithIpv6Cidrs(Aws::Vector< Aws::String > &&value)
void SetCommonName(Aws::String &&value)
const Aws::String & GetAccessFrom() const
bool AccessFromHasBeenSet() const
InstancePortInfo & WithAccessType(PortAccessType &&value)
InstancePortInfo & WithCidrListAliases(Aws::Vector< Aws::String > &&value)
InstancePortInfo & AddCidrListAliases(Aws::String &&value)
InstancePortInfo & WithAccessDirection(AccessDirection &&value)
const Aws::Vector< Aws::String > & GetIpv6Cidrs() const
InstancePortInfo & WithCommonName(Aws::String &&value)
InstancePortInfo & AddIpv6Cidrs(const char *value)
InstancePortInfo & AddCidrListAliases(const Aws::String &value)
void SetFromPort(int value)
void SetAccessDirection(AccessDirection &&value)
InstancePortInfo & WithAccessFrom(Aws::String &&value)
bool FromPortHasBeenSet() const
void SetAccessType(PortAccessType &&value)
const PortAccessType & GetAccessType() const
void SetAccessDirection(const AccessDirection &value)
const Aws::Vector< Aws::String > & GetCidrs() const
void SetToPort(int value)
bool CidrsHasBeenSet() const
InstancePortInfo & WithProtocol(const NetworkProtocol &value)
void SetAccessType(const PortAccessType &value)
void SetIpv6Cidrs(const Aws::Vector< Aws::String > &value)
const Aws::String & GetCommonName() const
bool Ipv6CidrsHasBeenSet() const
AWS_LIGHTSAIL_API InstancePortInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
InstancePortInfo & WithCommonName(const char *value)
AWS_LIGHTSAIL_API InstancePortInfo()
InstancePortInfo & AddCidrListAliases(const char *value)
InstancePortInfo & AddCidrs(Aws::String &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
InstancePortInfo & WithAccessDirection(const AccessDirection &value)
InstancePortInfo & WithFromPort(int value)
void SetAccessFrom(const Aws::String &value)
InstancePortInfo & AddCidrs(const char *value)
InstancePortInfo & AddCidrs(const Aws::String &value)
void SetProtocol(NetworkProtocol &&value)
InstancePortInfo & WithCidrListAliases(const Aws::Vector< Aws::String > &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