AWS SDK for C++  1.8.126
AWS SDK for C++
InstanceNetworking.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Lightsail
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const MonthlyTransfer& GetMonthlyTransfer() const{ return m_monthlyTransfer; }
47 
51  inline bool MonthlyTransferHasBeenSet() const { return m_monthlyTransferHasBeenSet; }
52 
56  inline void SetMonthlyTransfer(const MonthlyTransfer& value) { m_monthlyTransferHasBeenSet = true; m_monthlyTransfer = value; }
57 
61  inline void SetMonthlyTransfer(MonthlyTransfer&& value) { m_monthlyTransferHasBeenSet = true; m_monthlyTransfer = std::move(value); }
62 
66  inline InstanceNetworking& WithMonthlyTransfer(const MonthlyTransfer& value) { SetMonthlyTransfer(value); return *this;}
67 
71  inline InstanceNetworking& WithMonthlyTransfer(MonthlyTransfer&& value) { SetMonthlyTransfer(std::move(value)); return *this;}
72 
73 
78  inline const Aws::Vector<InstancePortInfo>& GetPorts() const{ return m_ports; }
79 
84  inline bool PortsHasBeenSet() const { return m_portsHasBeenSet; }
85 
90  inline void SetPorts(const Aws::Vector<InstancePortInfo>& value) { m_portsHasBeenSet = true; m_ports = value; }
91 
96  inline void SetPorts(Aws::Vector<InstancePortInfo>&& value) { m_portsHasBeenSet = true; m_ports = std::move(value); }
97 
102  inline InstanceNetworking& WithPorts(const Aws::Vector<InstancePortInfo>& value) { SetPorts(value); return *this;}
103 
108  inline InstanceNetworking& WithPorts(Aws::Vector<InstancePortInfo>&& value) { SetPorts(std::move(value)); return *this;}
109 
114  inline InstanceNetworking& AddPorts(const InstancePortInfo& value) { m_portsHasBeenSet = true; m_ports.push_back(value); return *this; }
115 
120  inline InstanceNetworking& AddPorts(InstancePortInfo&& value) { m_portsHasBeenSet = true; m_ports.push_back(std::move(value)); return *this; }
121 
122  private:
123 
124  MonthlyTransfer m_monthlyTransfer;
125  bool m_monthlyTransferHasBeenSet;
126 
128  bool m_portsHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace Lightsail
133 } // namespace Aws
Aws::Lightsail::Model::InstanceNetworking::GetPorts
const Aws::Vector< InstancePortInfo > & GetPorts() const
Definition: InstanceNetworking.h:78
Aws::Lightsail::Model::InstanceNetworking::SetPorts
void SetPorts(Aws::Vector< InstancePortInfo > &&value)
Definition: InstanceNetworking.h:96
Aws::Lightsail::Model::InstanceNetworking::InstanceNetworking
InstanceNetworking()
Aws::Lightsail::Model::InstanceNetworking::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::InstanceNetworking::SetPorts
void SetPorts(const Aws::Vector< InstancePortInfo > &value)
Definition: InstanceNetworking.h:90
Aws::Lightsail::Model::InstanceNetworking::WithPorts
InstanceNetworking & WithPorts(const Aws::Vector< InstancePortInfo > &value)
Definition: InstanceNetworking.h:102
Aws::Lightsail::Model::InstanceNetworking::operator=
InstanceNetworking & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::InstanceNetworking::AddPorts
InstanceNetworking & AddPorts(const InstancePortInfo &value)
Definition: InstanceNetworking.h:114
Aws::Lightsail::Model::InstanceNetworking::WithPorts
InstanceNetworking & WithPorts(Aws::Vector< InstancePortInfo > &&value)
Definition: InstanceNetworking.h:108
Aws::Lightsail::Model::MonthlyTransfer
Definition: MonthlyTransfer.h:31
AWSVector.h
InstancePortInfo.h
Aws::Lightsail::Model::InstanceNetworking::WithMonthlyTransfer
InstanceNetworking & WithMonthlyTransfer(const MonthlyTransfer &value)
Definition: InstanceNetworking.h:66
Aws::Lightsail::Model::InstanceNetworking::PortsHasBeenSet
bool PortsHasBeenSet() const
Definition: InstanceNetworking.h:84
Aws::Lightsail::Model::InstanceNetworking::InstanceNetworking
InstanceNetworking(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Lightsail::Model::InstanceNetworking::AddPorts
InstanceNetworking & AddPorts(InstancePortInfo &&value)
Definition: InstanceNetworking.h:120
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Lightsail_EXPORTS.h
Aws::Lightsail::Model::InstanceNetworking::MonthlyTransferHasBeenSet
bool MonthlyTransferHasBeenSet() const
Definition: InstanceNetworking.h:51
Aws::Lightsail::Model::InstanceNetworking::SetMonthlyTransfer
void SetMonthlyTransfer(const MonthlyTransfer &value)
Definition: InstanceNetworking.h:56
Aws::Lightsail::Model::InstanceNetworking::GetMonthlyTransfer
const MonthlyTransfer & GetMonthlyTransfer() const
Definition: InstanceNetworking.h:46
Aws::Lightsail::Model::InstanceNetworking::SetMonthlyTransfer
void SetMonthlyTransfer(MonthlyTransfer &&value)
Definition: InstanceNetworking.h:61
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::InstancePortInfo
Definition: InstancePortInfo.h:37
Aws::Lightsail::Model::InstanceNetworking
Definition: InstanceNetworking.h:35
Aws::Lightsail::Model::InstanceNetworking::WithMonthlyTransfer
InstanceNetworking & WithMonthlyTransfer(MonthlyTransfer &&value)
Definition: InstanceNetworking.h:71
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
MonthlyTransfer.h