AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateNetworkProfileRequest.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/devicefarm/DeviceFarmRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/devicefarm/model/NetworkProfileType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DeviceFarm
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_DEVICEFARM_API CreateNetworkProfileRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateNetworkProfile"; }
32
33 AWS_DEVICEFARM_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetProjectArn() const { return m_projectArn; }
44 inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; }
45 template<typename ProjectArnT = Aws::String>
46 void SetProjectArn(ProjectArnT&& value) { m_projectArnHasBeenSet = true; m_projectArn = std::forward<ProjectArnT>(value); }
47 template<typename ProjectArnT = Aws::String>
48 CreateNetworkProfileRequest& WithProjectArn(ProjectArnT&& value) { SetProjectArn(std::forward<ProjectArnT>(value)); return *this;}
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template<typename NameT = Aws::String>
58 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
59 template<typename NameT = Aws::String>
60 CreateNetworkProfileRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
62
64
67 inline const Aws::String& GetDescription() const { return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 template<typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
71 template<typename DescriptionT = Aws::String>
72 CreateNetworkProfileRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
74
76
79 inline NetworkProfileType GetType() const { return m_type; }
80 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
81 inline void SetType(NetworkProfileType value) { m_typeHasBeenSet = true; m_type = value; }
82 inline CreateNetworkProfileRequest& WithType(NetworkProfileType value) { SetType(value); return *this;}
84
86
90 inline long long GetUplinkBandwidthBits() const { return m_uplinkBandwidthBits; }
91 inline bool UplinkBandwidthBitsHasBeenSet() const { return m_uplinkBandwidthBitsHasBeenSet; }
92 inline void SetUplinkBandwidthBits(long long value) { m_uplinkBandwidthBitsHasBeenSet = true; m_uplinkBandwidthBits = value; }
93 inline CreateNetworkProfileRequest& WithUplinkBandwidthBits(long long value) { SetUplinkBandwidthBits(value); return *this;}
95
97
101 inline long long GetDownlinkBandwidthBits() const { return m_downlinkBandwidthBits; }
102 inline bool DownlinkBandwidthBitsHasBeenSet() const { return m_downlinkBandwidthBitsHasBeenSet; }
103 inline void SetDownlinkBandwidthBits(long long value) { m_downlinkBandwidthBitsHasBeenSet = true; m_downlinkBandwidthBits = value; }
106
108
112 inline long long GetUplinkDelayMs() const { return m_uplinkDelayMs; }
113 inline bool UplinkDelayMsHasBeenSet() const { return m_uplinkDelayMsHasBeenSet; }
114 inline void SetUplinkDelayMs(long long value) { m_uplinkDelayMsHasBeenSet = true; m_uplinkDelayMs = value; }
115 inline CreateNetworkProfileRequest& WithUplinkDelayMs(long long value) { SetUplinkDelayMs(value); return *this;}
117
119
123 inline long long GetDownlinkDelayMs() const { return m_downlinkDelayMs; }
124 inline bool DownlinkDelayMsHasBeenSet() const { return m_downlinkDelayMsHasBeenSet; }
125 inline void SetDownlinkDelayMs(long long value) { m_downlinkDelayMsHasBeenSet = true; m_downlinkDelayMs = value; }
126 inline CreateNetworkProfileRequest& WithDownlinkDelayMs(long long value) { SetDownlinkDelayMs(value); return *this;}
128
130
134 inline long long GetUplinkJitterMs() const { return m_uplinkJitterMs; }
135 inline bool UplinkJitterMsHasBeenSet() const { return m_uplinkJitterMsHasBeenSet; }
136 inline void SetUplinkJitterMs(long long value) { m_uplinkJitterMsHasBeenSet = true; m_uplinkJitterMs = value; }
137 inline CreateNetworkProfileRequest& WithUplinkJitterMs(long long value) { SetUplinkJitterMs(value); return *this;}
139
141
145 inline long long GetDownlinkJitterMs() const { return m_downlinkJitterMs; }
146 inline bool DownlinkJitterMsHasBeenSet() const { return m_downlinkJitterMsHasBeenSet; }
147 inline void SetDownlinkJitterMs(long long value) { m_downlinkJitterMsHasBeenSet = true; m_downlinkJitterMs = value; }
148 inline CreateNetworkProfileRequest& WithDownlinkJitterMs(long long value) { SetDownlinkJitterMs(value); return *this;}
150
152
156 inline int GetUplinkLossPercent() const { return m_uplinkLossPercent; }
157 inline bool UplinkLossPercentHasBeenSet() const { return m_uplinkLossPercentHasBeenSet; }
158 inline void SetUplinkLossPercent(int value) { m_uplinkLossPercentHasBeenSet = true; m_uplinkLossPercent = value; }
161
163
166 inline int GetDownlinkLossPercent() const { return m_downlinkLossPercent; }
167 inline bool DownlinkLossPercentHasBeenSet() const { return m_downlinkLossPercentHasBeenSet; }
168 inline void SetDownlinkLossPercent(int value) { m_downlinkLossPercentHasBeenSet = true; m_downlinkLossPercent = value; }
171 private:
172
173 Aws::String m_projectArn;
174 bool m_projectArnHasBeenSet = false;
175
176 Aws::String m_name;
177 bool m_nameHasBeenSet = false;
178
179 Aws::String m_description;
180 bool m_descriptionHasBeenSet = false;
181
183 bool m_typeHasBeenSet = false;
184
185 long long m_uplinkBandwidthBits{0};
186 bool m_uplinkBandwidthBitsHasBeenSet = false;
187
188 long long m_downlinkBandwidthBits{0};
189 bool m_downlinkBandwidthBitsHasBeenSet = false;
190
191 long long m_uplinkDelayMs{0};
192 bool m_uplinkDelayMsHasBeenSet = false;
193
194 long long m_downlinkDelayMs{0};
195 bool m_downlinkDelayMsHasBeenSet = false;
196
197 long long m_uplinkJitterMs{0};
198 bool m_uplinkJitterMsHasBeenSet = false;
199
200 long long m_downlinkJitterMs{0};
201 bool m_downlinkJitterMsHasBeenSet = false;
202
203 int m_uplinkLossPercent{0};
204 bool m_uplinkLossPercentHasBeenSet = false;
205
206 int m_downlinkLossPercent{0};
207 bool m_downlinkLossPercentHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace DeviceFarm
212} // 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