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; }
147 template<
typename C
idrsT = Aws::Vector<Aws::String>>
148 void SetCidrs(CidrsT&& value) { m_cidrsHasBeenSet =
true; m_cidrs = std::forward<CidrsT>(value); }
149 template<
typename C
idrsT = Aws::Vector<Aws::String>>
151 template<
typename C
idrsT = Aws::String>
152 InstancePortState&
AddCidrs(CidrsT&& value) { m_cidrsHasBeenSet =
true; m_cidrs.emplace_back(std::forward<CidrsT>(value));
return *
this; }
168 template<
typename Ipv6C
idrsT = Aws::Vector<Aws::String>>
169 void SetIpv6Cidrs(Ipv6CidrsT&& value) { m_ipv6CidrsHasBeenSet =
true; m_ipv6Cidrs = std::forward<Ipv6CidrsT>(value); }
170 template<
typename Ipv6C
idrsT = Aws::Vector<Aws::String>>
172 template<
typename Ipv6C
idrsT = Aws::String>
173 InstancePortState&
AddIpv6Cidrs(Ipv6CidrsT&& value) { m_ipv6CidrsHasBeenSet =
true; m_ipv6Cidrs.emplace_back(std::forward<Ipv6CidrsT>(value));
return *
this; }
185 template<
typename C
idrListAliasesT = Aws::Vector<Aws::String>>
186 void SetCidrListAliases(CidrListAliasesT&& value) { m_cidrListAliasesHasBeenSet =
true; m_cidrListAliases = std::forward<CidrListAliasesT>(value); }
187 template<
typename C
idrListAliasesT = Aws::Vector<Aws::String>>
189 template<
typename C
idrListAliasesT = Aws::String>
190 InstancePortState&
AddCidrListAliases(CidrListAliasesT&& value) { m_cidrListAliasesHasBeenSet =
true; m_cidrListAliases.emplace_back(std::forward<CidrListAliasesT>(value));
return *
this; }
195 bool m_fromPortHasBeenSet =
false;
198 bool m_toPortHasBeenSet =
false;
201 bool m_protocolHasBeenSet =
false;
204 bool m_stateHasBeenSet =
false;
207 bool m_cidrsHasBeenSet =
false;
210 bool m_ipv6CidrsHasBeenSet =
false;
213 bool m_cidrListAliasesHasBeenSet =
false;
InstancePortState & WithFromPort(int value)
const Aws::Vector< Aws::String > & GetIpv6Cidrs() const
InstancePortState & AddIpv6Cidrs(Ipv6CidrsT &&value)
void SetProtocol(NetworkProtocol value)
PortState GetState() const
InstancePortState & WithProtocol(NetworkProtocol value)
InstancePortState & WithIpv6Cidrs(Ipv6CidrsT &&value)
void SetToPort(int value)
InstancePortState & AddCidrs(CidrsT &&value)
const Aws::Vector< Aws::String > & GetCidrs() const
bool ToPortHasBeenSet() const
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
InstancePortState & WithCidrListAliases(CidrListAliasesT &&value)
InstancePortState & WithState(PortState value)
void SetFromPort(int value)
void SetState(PortState value)
bool CidrListAliasesHasBeenSet() const
AWS_LIGHTSAIL_API InstancePortState(Aws::Utils::Json::JsonView jsonValue)
void SetCidrListAliases(CidrListAliasesT &&value)
void SetIpv6Cidrs(Ipv6CidrsT &&value)
bool Ipv6CidrsHasBeenSet() const
InstancePortState & WithCidrs(CidrsT &&value)
NetworkProtocol GetProtocol() const
bool StateHasBeenSet() const
const Aws::Vector< Aws::String > & GetCidrListAliases() const
bool CidrsHasBeenSet() const
AWS_LIGHTSAIL_API InstancePortState()=default
InstancePortState & WithToPort(int value)
bool ProtocolHasBeenSet() const
AWS_LIGHTSAIL_API InstancePortState & operator=(Aws::Utils::Json::JsonView jsonValue)
bool FromPortHasBeenSet() const
void SetCidrs(CidrsT &&value)
InstancePortState & AddCidrListAliases(CidrListAliasesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue