7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/model/MonthlyTransfer.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lightsail/model/InstancePortInfo.h>
49 template<
typename MonthlyTransferT = MonthlyTransfer>
50 void SetMonthlyTransfer(MonthlyTransferT&& value) { m_monthlyTransferHasBeenSet =
true; m_monthlyTransfer = std::forward<MonthlyTransferT>(value); }
51 template<
typename MonthlyTransferT = MonthlyTransfer>
62 template<
typename PortsT = Aws::Vector<InstancePortInfo>>
63 void SetPorts(PortsT&& value) { m_portsHasBeenSet =
true; m_ports = std::forward<PortsT>(value); }
64 template<
typename PortsT = Aws::Vector<InstancePortInfo>>
66 template<
typename PortsT = InstancePortInfo>
67 InstanceNetworking&
AddPorts(PortsT&& value) { m_portsHasBeenSet =
true; m_ports.emplace_back(std::forward<PortsT>(value));
return *
this; }
72 bool m_monthlyTransferHasBeenSet =
false;
75 bool m_portsHasBeenSet =
false;
const MonthlyTransfer & GetMonthlyTransfer() const
void SetMonthlyTransfer(MonthlyTransferT &&value)
InstanceNetworking & WithPorts(PortsT &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPorts(PortsT &&value)
AWS_LIGHTSAIL_API InstanceNetworking(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API InstanceNetworking()=default
const Aws::Vector< InstancePortInfo > & GetPorts() const
InstanceNetworking & WithMonthlyTransfer(MonthlyTransferT &&value)
AWS_LIGHTSAIL_API InstanceNetworking & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceNetworking & AddPorts(PortsT &&value)
bool MonthlyTransferHasBeenSet() const
bool PortsHasBeenSet() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue