AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMonthlyTransfer(const MonthlyTransfer& value) { m_monthlyTransferHasBeenSet = true; m_monthlyTransfer = value; }
50 inline void SetMonthlyTransfer(MonthlyTransfer&& value) { m_monthlyTransferHasBeenSet = true; m_monthlyTransfer = std::move(value); }
51 inline InstanceNetworking& WithMonthlyTransfer(const MonthlyTransfer& value) { SetMonthlyTransfer(value); return *this;}
52 inline InstanceNetworking& WithMonthlyTransfer(MonthlyTransfer&& value) { SetMonthlyTransfer(std::move(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 inline void SetPorts(const Aws::Vector<InstancePortInfo>& value) { m_portsHasBeenSet = true; m_ports = value; }
63 inline void SetPorts(Aws::Vector<InstancePortInfo>&& value) { m_portsHasBeenSet = true; m_ports = std::move(value); }
64 inline InstanceNetworking& WithPorts(const Aws::Vector<InstancePortInfo>& value) { SetPorts(value); return *this;}
65 inline InstanceNetworking& WithPorts(Aws::Vector<InstancePortInfo>&& value) { SetPorts(std::move(value)); return *this;}
66 inline InstanceNetworking& AddPorts(const InstancePortInfo& value) { m_portsHasBeenSet = true; m_ports.push_back(value); return *this; }
67 inline InstanceNetworking& AddPorts(InstancePortInfo&& value) { m_portsHasBeenSet = true; m_ports.push_back(std::move(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
InstanceNetworking & AddPorts(const InstancePortInfo &value)
void SetPorts(Aws::Vector< InstancePortInfo > &&value)
void SetPorts(const Aws::Vector< InstancePortInfo > &value)
InstanceNetworking & WithPorts(const Aws::Vector< InstancePortInfo > &value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceNetworking & WithMonthlyTransfer(MonthlyTransfer &&value)
InstanceNetworking & AddPorts(InstancePortInfo &&value)
InstanceNetworking & WithPorts(Aws::Vector< InstancePortInfo > &&value)
AWS_LIGHTSAIL_API InstanceNetworking(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< InstancePortInfo > & GetPorts() const
InstanceNetworking & WithMonthlyTransfer(const MonthlyTransfer &value)
void SetMonthlyTransfer(const MonthlyTransfer &value)
AWS_LIGHTSAIL_API InstanceNetworking & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMonthlyTransfer(MonthlyTransfer &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue