AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
InstanceNetworking.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9#include <aws/lightsail/model/InstancePortInfo.h>
10#include <aws/lightsail/model/MonthlyTransfer.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lightsail {
22namespace Model {
23
31 public:
32 AWS_LIGHTSAIL_API InstanceNetworking() = default;
33 AWS_LIGHTSAIL_API InstanceNetworking(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const MonthlyTransfer& GetMonthlyTransfer() const { return m_monthlyTransfer; }
42 inline bool MonthlyTransferHasBeenSet() const { return m_monthlyTransferHasBeenSet; }
43 template <typename MonthlyTransferT = MonthlyTransfer>
44 void SetMonthlyTransfer(MonthlyTransferT&& value) {
45 m_monthlyTransferHasBeenSet = true;
46 m_monthlyTransfer = std::forward<MonthlyTransferT>(value);
47 }
48 template <typename MonthlyTransferT = MonthlyTransfer>
49 InstanceNetworking& WithMonthlyTransfer(MonthlyTransferT&& value) {
50 SetMonthlyTransfer(std::forward<MonthlyTransferT>(value));
51 return *this;
52 }
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) {
64 m_portsHasBeenSet = true;
65 m_ports = std::forward<PortsT>(value);
66 }
67 template <typename PortsT = Aws::Vector<InstancePortInfo>>
68 InstanceNetworking& WithPorts(PortsT&& value) {
69 SetPorts(std::forward<PortsT>(value));
70 return *this;
71 }
72 template <typename PortsT = InstancePortInfo>
73 InstanceNetworking& AddPorts(PortsT&& value) {
74 m_portsHasBeenSet = true;
75 m_ports.emplace_back(std::forward<PortsT>(value));
76 return *this;
77 }
79 private:
80 MonthlyTransfer m_monthlyTransfer;
81
83 bool m_monthlyTransferHasBeenSet = false;
84 bool m_portsHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace Lightsail
89} // 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