AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateNetworkProfileRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devicefarm/DeviceFarmRequest.h>
9#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
10#include <aws/devicefarm/model/NetworkProfileType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DeviceFarm {
16namespace Model {
17
21 public:
22 AWS_DEVICEFARM_API CreateNetworkProfileRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateNetworkProfile"; }
29
30 AWS_DEVICEFARM_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetProjectArn() const { return m_projectArn; }
40 inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; }
41 template <typename ProjectArnT = Aws::String>
42 void SetProjectArn(ProjectArnT&& value) {
43 m_projectArnHasBeenSet = true;
44 m_projectArn = std::forward<ProjectArnT>(value);
45 }
46 template <typename ProjectArnT = Aws::String>
48 SetProjectArn(std::forward<ProjectArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
93 inline NetworkProfileType GetType() const { return m_type; }
94 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
95 inline void SetType(NetworkProfileType value) {
96 m_typeHasBeenSet = true;
97 m_type = value;
98 }
100 SetType(value);
101 return *this;
102 }
104
106
110 inline long long GetUplinkBandwidthBits() const { return m_uplinkBandwidthBits; }
111 inline bool UplinkBandwidthBitsHasBeenSet() const { return m_uplinkBandwidthBitsHasBeenSet; }
112 inline void SetUplinkBandwidthBits(long long value) {
113 m_uplinkBandwidthBitsHasBeenSet = true;
114 m_uplinkBandwidthBits = value;
115 }
118 return *this;
119 }
121
123
127 inline long long GetDownlinkBandwidthBits() const { return m_downlinkBandwidthBits; }
128 inline bool DownlinkBandwidthBitsHasBeenSet() const { return m_downlinkBandwidthBitsHasBeenSet; }
129 inline void SetDownlinkBandwidthBits(long long value) {
130 m_downlinkBandwidthBitsHasBeenSet = true;
131 m_downlinkBandwidthBits = value;
132 }
135 return *this;
136 }
138
140
144 inline long long GetUplinkDelayMs() const { return m_uplinkDelayMs; }
145 inline bool UplinkDelayMsHasBeenSet() const { return m_uplinkDelayMsHasBeenSet; }
146 inline void SetUplinkDelayMs(long long value) {
147 m_uplinkDelayMsHasBeenSet = true;
148 m_uplinkDelayMs = value;
149 }
151 SetUplinkDelayMs(value);
152 return *this;
153 }
155
157
161 inline long long GetDownlinkDelayMs() const { return m_downlinkDelayMs; }
162 inline bool DownlinkDelayMsHasBeenSet() const { return m_downlinkDelayMsHasBeenSet; }
163 inline void SetDownlinkDelayMs(long long value) {
164 m_downlinkDelayMsHasBeenSet = true;
165 m_downlinkDelayMs = value;
166 }
168 SetDownlinkDelayMs(value);
169 return *this;
170 }
172
174
178 inline long long GetUplinkJitterMs() const { return m_uplinkJitterMs; }
179 inline bool UplinkJitterMsHasBeenSet() const { return m_uplinkJitterMsHasBeenSet; }
180 inline void SetUplinkJitterMs(long long value) {
181 m_uplinkJitterMsHasBeenSet = true;
182 m_uplinkJitterMs = value;
183 }
185 SetUplinkJitterMs(value);
186 return *this;
187 }
189
191
195 inline long long GetDownlinkJitterMs() const { return m_downlinkJitterMs; }
196 inline bool DownlinkJitterMsHasBeenSet() const { return m_downlinkJitterMsHasBeenSet; }
197 inline void SetDownlinkJitterMs(long long value) {
198 m_downlinkJitterMsHasBeenSet = true;
199 m_downlinkJitterMs = value;
200 }
202 SetDownlinkJitterMs(value);
203 return *this;
204 }
206
208
212 inline int GetUplinkLossPercent() const { return m_uplinkLossPercent; }
213 inline bool UplinkLossPercentHasBeenSet() const { return m_uplinkLossPercentHasBeenSet; }
214 inline void SetUplinkLossPercent(int value) {
215 m_uplinkLossPercentHasBeenSet = true;
216 m_uplinkLossPercent = value;
217 }
220 return *this;
221 }
223
225
228 inline int GetDownlinkLossPercent() const { return m_downlinkLossPercent; }
229 inline bool DownlinkLossPercentHasBeenSet() const { return m_downlinkLossPercentHasBeenSet; }
230 inline void SetDownlinkLossPercent(int value) {
231 m_downlinkLossPercentHasBeenSet = true;
232 m_downlinkLossPercent = value;
233 }
236 return *this;
237 }
239 private:
240 Aws::String m_projectArn;
241
242 Aws::String m_name;
243
244 Aws::String m_description;
245
247
248 long long m_uplinkBandwidthBits{0};
249
250 long long m_downlinkBandwidthBits{0};
251
252 long long m_uplinkDelayMs{0};
253
254 long long m_downlinkDelayMs{0};
255
256 long long m_uplinkJitterMs{0};
257
258 long long m_downlinkJitterMs{0};
259
260 int m_uplinkLossPercent{0};
261
262 int m_downlinkLossPercent{0};
263 bool m_projectArnHasBeenSet = false;
264 bool m_nameHasBeenSet = false;
265 bool m_descriptionHasBeenSet = false;
266 bool m_typeHasBeenSet = false;
267 bool m_uplinkBandwidthBitsHasBeenSet = false;
268 bool m_downlinkBandwidthBitsHasBeenSet = false;
269 bool m_uplinkDelayMsHasBeenSet = false;
270 bool m_downlinkDelayMsHasBeenSet = false;
271 bool m_uplinkJitterMsHasBeenSet = false;
272 bool m_downlinkJitterMsHasBeenSet = false;
273 bool m_uplinkLossPercentHasBeenSet = false;
274 bool m_downlinkLossPercentHasBeenSet = false;
275};
276
277} // namespace Model
278} // namespace DeviceFarm
279} // namespace Aws
CreateNetworkProfileRequest & WithDownlinkBandwidthBits(long long value)
CreateNetworkProfileRequest & WithName(NameT &&value)
CreateNetworkProfileRequest & WithUplinkJitterMs(long long value)
CreateNetworkProfileRequest & WithDownlinkDelayMs(long long value)
CreateNetworkProfileRequest & WithDownlinkJitterMs(long long value)
CreateNetworkProfileRequest & WithUplinkLossPercent(int value)
AWS_DEVICEFARM_API Aws::String SerializePayload() const override
CreateNetworkProfileRequest & WithProjectArn(ProjectArnT &&value)
AWS_DEVICEFARM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateNetworkProfileRequest & WithType(NetworkProfileType value)
CreateNetworkProfileRequest & WithUplinkBandwidthBits(long long value)
AWS_DEVICEFARM_API CreateNetworkProfileRequest()=default
CreateNetworkProfileRequest & WithDownlinkLossPercent(int value)
CreateNetworkProfileRequest & WithDescription(DescriptionT &&value)
CreateNetworkProfileRequest & WithUplinkDelayMs(long long value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String