AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
NetworkProfile.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
9#include <aws/devicefarm/model/NetworkProfileType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DeviceFarm {
21namespace Model {
22
30 public:
31 AWS_DEVICEFARM_API NetworkProfile() = default;
32 AWS_DEVICEFARM_API NetworkProfile(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEVICEFARM_API NetworkProfile& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
48 NetworkProfile& WithArn(ArnT&& value) {
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 NetworkProfile& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 NetworkProfile& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline NetworkProfileType GetType() const { return m_type; }
95 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
96 inline void SetType(NetworkProfileType value) {
97 m_typeHasBeenSet = true;
98 m_type = value;
99 }
101 SetType(value);
102 return *this;
103 }
105
107
111 inline long long GetUplinkBandwidthBits() const { return m_uplinkBandwidthBits; }
112 inline bool UplinkBandwidthBitsHasBeenSet() const { return m_uplinkBandwidthBitsHasBeenSet; }
113 inline void SetUplinkBandwidthBits(long long value) {
114 m_uplinkBandwidthBitsHasBeenSet = true;
115 m_uplinkBandwidthBits = value;
116 }
117 inline NetworkProfile& WithUplinkBandwidthBits(long long value) {
119 return *this;
120 }
122
124
128 inline long long GetDownlinkBandwidthBits() const { return m_downlinkBandwidthBits; }
129 inline bool DownlinkBandwidthBitsHasBeenSet() const { return m_downlinkBandwidthBitsHasBeenSet; }
130 inline void SetDownlinkBandwidthBits(long long value) {
131 m_downlinkBandwidthBitsHasBeenSet = true;
132 m_downlinkBandwidthBits = value;
133 }
134 inline NetworkProfile& WithDownlinkBandwidthBits(long long value) {
136 return *this;
137 }
139
141
145 inline long long GetUplinkDelayMs() const { return m_uplinkDelayMs; }
146 inline bool UplinkDelayMsHasBeenSet() const { return m_uplinkDelayMsHasBeenSet; }
147 inline void SetUplinkDelayMs(long long value) {
148 m_uplinkDelayMsHasBeenSet = true;
149 m_uplinkDelayMs = value;
150 }
151 inline NetworkProfile& WithUplinkDelayMs(long long value) {
152 SetUplinkDelayMs(value);
153 return *this;
154 }
156
158
162 inline long long GetDownlinkDelayMs() const { return m_downlinkDelayMs; }
163 inline bool DownlinkDelayMsHasBeenSet() const { return m_downlinkDelayMsHasBeenSet; }
164 inline void SetDownlinkDelayMs(long long value) {
165 m_downlinkDelayMsHasBeenSet = true;
166 m_downlinkDelayMs = value;
167 }
168 inline NetworkProfile& WithDownlinkDelayMs(long long value) {
169 SetDownlinkDelayMs(value);
170 return *this;
171 }
173
175
179 inline long long GetUplinkJitterMs() const { return m_uplinkJitterMs; }
180 inline bool UplinkJitterMsHasBeenSet() const { return m_uplinkJitterMsHasBeenSet; }
181 inline void SetUplinkJitterMs(long long value) {
182 m_uplinkJitterMsHasBeenSet = true;
183 m_uplinkJitterMs = value;
184 }
185 inline NetworkProfile& WithUplinkJitterMs(long long value) {
186 SetUplinkJitterMs(value);
187 return *this;
188 }
190
192
196 inline long long GetDownlinkJitterMs() const { return m_downlinkJitterMs; }
197 inline bool DownlinkJitterMsHasBeenSet() const { return m_downlinkJitterMsHasBeenSet; }
198 inline void SetDownlinkJitterMs(long long value) {
199 m_downlinkJitterMsHasBeenSet = true;
200 m_downlinkJitterMs = value;
201 }
202 inline NetworkProfile& WithDownlinkJitterMs(long long value) {
203 SetDownlinkJitterMs(value);
204 return *this;
205 }
207
209
213 inline int GetUplinkLossPercent() const { return m_uplinkLossPercent; }
214 inline bool UplinkLossPercentHasBeenSet() const { return m_uplinkLossPercentHasBeenSet; }
215 inline void SetUplinkLossPercent(int value) {
216 m_uplinkLossPercentHasBeenSet = true;
217 m_uplinkLossPercent = value;
218 }
221 return *this;
222 }
224
226
229 inline int GetDownlinkLossPercent() const { return m_downlinkLossPercent; }
230 inline bool DownlinkLossPercentHasBeenSet() const { return m_downlinkLossPercentHasBeenSet; }
231 inline void SetDownlinkLossPercent(int value) {
232 m_downlinkLossPercentHasBeenSet = true;
233 m_downlinkLossPercent = value;
234 }
237 return *this;
238 }
240 private:
241 Aws::String m_arn;
242
243 Aws::String m_name;
244
245 Aws::String m_description;
246
248
249 long long m_uplinkBandwidthBits{0};
250
251 long long m_downlinkBandwidthBits{0};
252
253 long long m_uplinkDelayMs{0};
254
255 long long m_downlinkDelayMs{0};
256
257 long long m_uplinkJitterMs{0};
258
259 long long m_downlinkJitterMs{0};
260
261 int m_uplinkLossPercent{0};
262
263 int m_downlinkLossPercent{0};
264 bool m_arnHasBeenSet = false;
265 bool m_nameHasBeenSet = false;
266 bool m_descriptionHasBeenSet = false;
267 bool m_typeHasBeenSet = false;
268 bool m_uplinkBandwidthBitsHasBeenSet = false;
269 bool m_downlinkBandwidthBitsHasBeenSet = false;
270 bool m_uplinkDelayMsHasBeenSet = false;
271 bool m_downlinkDelayMsHasBeenSet = false;
272 bool m_uplinkJitterMsHasBeenSet = false;
273 bool m_downlinkJitterMsHasBeenSet = false;
274 bool m_uplinkLossPercentHasBeenSet = false;
275 bool m_downlinkLossPercentHasBeenSet = false;
276};
277
278} // namespace Model
279} // namespace DeviceFarm
280} // namespace Aws
NetworkProfile & WithName(NameT &&value)
void SetDownlinkBandwidthBits(long long value)
NetworkProfile & WithDownlinkBandwidthBits(long long value)
void SetUplinkBandwidthBits(long long value)
const Aws::String & GetName() const
NetworkProfile & WithUplinkJitterMs(long long value)
void SetDescription(DescriptionT &&value)
AWS_DEVICEFARM_API NetworkProfile()=default
NetworkProfile & WithDescription(DescriptionT &&value)
NetworkProfile & WithDownlinkLossPercent(int value)
void SetType(NetworkProfileType value)
NetworkProfile & WithUplinkBandwidthBits(long long value)
NetworkProfile & WithArn(ArnT &&value)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkProfile & WithType(NetworkProfileType value)
const Aws::String & GetDescription() const
AWS_DEVICEFARM_API NetworkProfile(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
NetworkProfile & WithDownlinkJitterMs(long long value)
NetworkProfileType GetType() const
NetworkProfile & WithUplinkDelayMs(long long value)
AWS_DEVICEFARM_API NetworkProfile & operator=(Aws::Utils::Json::JsonView jsonValue)
NetworkProfile & WithUplinkLossPercent(int value)
NetworkProfile & WithDownlinkDelayMs(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue