AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
InstanceNetworking.h
1
6#pragma once
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>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Lightsail
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_LIGHTSAIL_API InstanceNetworking() = default;
38 AWS_LIGHTSAIL_API InstanceNetworking(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const MonthlyTransfer& GetMonthlyTransfer() const { return m_monthlyTransfer; }
48 inline bool MonthlyTransferHasBeenSet() const { return m_monthlyTransferHasBeenSet; }
49 template<typename MonthlyTransferT = MonthlyTransfer>
50 void SetMonthlyTransfer(MonthlyTransferT&& value) { m_monthlyTransferHasBeenSet = true; m_monthlyTransfer = std::forward<MonthlyTransferT>(value); }
51 template<typename MonthlyTransferT = MonthlyTransfer>
52 InstanceNetworking& WithMonthlyTransfer(MonthlyTransferT&& value) { SetMonthlyTransfer(std::forward<MonthlyTransferT>(value)); return *this;}
54
56
60 inline const Aws::Vector<InstancePortInfo>& GetPorts() const { return m_ports; }
61 inline bool PortsHasBeenSet() const { return m_portsHasBeenSet; }
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>>
65 InstanceNetworking& WithPorts(PortsT&& value) { SetPorts(std::forward<PortsT>(value)); return *this;}
66 template<typename PortsT = InstancePortInfo>
67 InstanceNetworking& AddPorts(PortsT&& value) { m_portsHasBeenSet = true; m_ports.emplace_back(std::forward<PortsT>(value)); return *this; }
69 private:
70
71 MonthlyTransfer m_monthlyTransfer;
72 bool m_monthlyTransferHasBeenSet = false;
73
75 bool m_portsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Lightsail
80} // namespace Aws
const MonthlyTransfer & GetMonthlyTransfer() const
void SetMonthlyTransfer(MonthlyTransferT &&value)
InstanceNetworking & WithPorts(PortsT &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
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)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue