7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/model/NetworkProtocol.h>
9#include <aws/lightsail/model/PortState.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#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; }
134 inline void SetState(
PortState&& value) { m_stateHasBeenSet =
true; m_state = std::move(value); }
202 bool m_fromPortHasBeenSet =
false;
205 bool m_toPortHasBeenSet =
false;
208 bool m_protocolHasBeenSet =
false;
211 bool m_stateHasBeenSet =
false;
214 bool m_cidrsHasBeenSet =
false;
217 bool m_ipv6CidrsHasBeenSet =
false;
220 bool m_cidrListAliasesHasBeenSet =
false;
void SetCidrs(Aws::Vector< Aws::String > &&value)
InstancePortState & WithCidrListAliases(const Aws::Vector< Aws::String > &value)
InstancePortState & WithCidrListAliases(Aws::Vector< Aws::String > &&value)
InstancePortState & WithFromPort(int value)
void SetProtocol(NetworkProtocol &&value)
InstancePortState & WithIpv6Cidrs(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetIpv6Cidrs() const
InstancePortState & WithProtocol(const NetworkProtocol &value)
InstancePortState & WithCidrs(Aws::Vector< Aws::String > &&value)
InstancePortState & AddCidrListAliases(Aws::String &&value)
void SetIpv6Cidrs(Aws::Vector< Aws::String > &&value)
InstancePortState & WithIpv6Cidrs(Aws::Vector< Aws::String > &&value)
InstancePortState & AddCidrListAliases(const char *value)
InstancePortState & WithState(PortState &&value)
void SetIpv6Cidrs(const Aws::Vector< Aws::String > &value)
void SetToPort(int value)
InstancePortState & WithState(const PortState &value)
const Aws::Vector< Aws::String > & GetCidrs() const
InstancePortState & WithCidrs(const Aws::Vector< Aws::String > &value)
InstancePortState & AddCidrs(const char *value)
AWS_LIGHTSAIL_API InstancePortState()
bool ToPortHasBeenSet() const
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCidrs(const Aws::Vector< Aws::String > &value)
InstancePortState & WithProtocol(NetworkProtocol &&value)
void SetFromPort(int value)
void SetProtocol(const NetworkProtocol &value)
void SetState(const PortState &value)
void SetState(PortState &&value)
bool CidrListAliasesHasBeenSet() const
InstancePortState & AddIpv6Cidrs(const char *value)
AWS_LIGHTSAIL_API InstancePortState(Aws::Utils::Json::JsonView jsonValue)
InstancePortState & AddCidrs(const Aws::String &value)
void SetCidrListAliases(const Aws::Vector< Aws::String > &value)
bool Ipv6CidrsHasBeenSet() const
InstancePortState & AddCidrs(Aws::String &&value)
bool StateHasBeenSet() const
const NetworkProtocol & GetProtocol() const
const Aws::Vector< Aws::String > & GetCidrListAliases() const
bool CidrsHasBeenSet() const
InstancePortState & AddCidrListAliases(const Aws::String &value)
const PortState & GetState() const
InstancePortState & WithToPort(int value)
bool ProtocolHasBeenSet() const
void SetCidrListAliases(Aws::Vector< Aws::String > &&value)
AWS_LIGHTSAIL_API InstancePortState & operator=(Aws::Utils::Json::JsonView jsonValue)
bool FromPortHasBeenSet() const
InstancePortState & AddIpv6Cidrs(const Aws::String &value)
InstancePortState & AddIpv6Cidrs(Aws::String &&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