AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
UpdateDeviceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/networkmanager/NetworkManagerRequest.h>
9#include <aws/networkmanager/NetworkManager_EXPORTS.h>
10#include <aws/networkmanager/model/AWSLocation.h>
11#include <aws/networkmanager/model/Location.h>
12
13#include <utility>
14
15namespace Aws {
16namespace NetworkManager {
17namespace Model {
18
22 public:
23 AWS_NETWORKMANAGER_API UpdateDeviceRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateDevice"; }
30
31 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
38 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
39 template <typename GlobalNetworkIdT = Aws::String>
40 void SetGlobalNetworkId(GlobalNetworkIdT&& value) {
41 m_globalNetworkIdHasBeenSet = true;
42 m_globalNetworkId = std::forward<GlobalNetworkIdT>(value);
43 }
44 template <typename GlobalNetworkIdT = Aws::String>
45 UpdateDeviceRequest& WithGlobalNetworkId(GlobalNetworkIdT&& value) {
46 SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
56 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
57 template <typename DeviceIdT = Aws::String>
58 void SetDeviceId(DeviceIdT&& value) {
59 m_deviceIdHasBeenSet = true;
60 m_deviceId = std::forward<DeviceIdT>(value);
61 }
62 template <typename DeviceIdT = Aws::String>
63 UpdateDeviceRequest& WithDeviceId(DeviceIdT&& value) {
64 SetDeviceId(std::forward<DeviceIdT>(value));
65 return *this;
66 }
68
70
74 inline const AWSLocation& GetAWSLocation() const { return m_aWSLocation; }
75 inline bool AWSLocationHasBeenSet() const { return m_aWSLocationHasBeenSet; }
76 template <typename AWSLocationT = AWSLocation>
77 void SetAWSLocation(AWSLocationT&& value) {
78 m_aWSLocationHasBeenSet = true;
79 m_aWSLocation = std::forward<AWSLocationT>(value);
80 }
81 template <typename AWSLocationT = AWSLocation>
82 UpdateDeviceRequest& WithAWSLocation(AWSLocationT&& value) {
83 SetAWSLocation(std::forward<AWSLocationT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::String& GetDescription() const { return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 template <typename DescriptionT = Aws::String>
96 void SetDescription(DescriptionT&& value) {
97 m_descriptionHasBeenSet = true;
98 m_description = std::forward<DescriptionT>(value);
99 }
100 template <typename DescriptionT = Aws::String>
101 UpdateDeviceRequest& WithDescription(DescriptionT&& value) {
102 SetDescription(std::forward<DescriptionT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetType() const { return m_type; }
112 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
113 template <typename TypeT = Aws::String>
114 void SetType(TypeT&& value) {
115 m_typeHasBeenSet = true;
116 m_type = std::forward<TypeT>(value);
117 }
118 template <typename TypeT = Aws::String>
120 SetType(std::forward<TypeT>(value));
121 return *this;
122 }
124
126
130 inline const Aws::String& GetVendor() const { return m_vendor; }
131 inline bool VendorHasBeenSet() const { return m_vendorHasBeenSet; }
132 template <typename VendorT = Aws::String>
133 void SetVendor(VendorT&& value) {
134 m_vendorHasBeenSet = true;
135 m_vendor = std::forward<VendorT>(value);
136 }
137 template <typename VendorT = Aws::String>
138 UpdateDeviceRequest& WithVendor(VendorT&& value) {
139 SetVendor(std::forward<VendorT>(value));
140 return *this;
141 }
143
145
149 inline const Aws::String& GetModel() const { return m_model; }
150 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
151 template <typename ModelT = Aws::String>
152 void SetModel(ModelT&& value) {
153 m_modelHasBeenSet = true;
154 m_model = std::forward<ModelT>(value);
155 }
156 template <typename ModelT = Aws::String>
158 SetModel(std::forward<ModelT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
169 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
170 template <typename SerialNumberT = Aws::String>
171 void SetSerialNumber(SerialNumberT&& value) {
172 m_serialNumberHasBeenSet = true;
173 m_serialNumber = std::forward<SerialNumberT>(value);
174 }
175 template <typename SerialNumberT = Aws::String>
176 UpdateDeviceRequest& WithSerialNumber(SerialNumberT&& value) {
177 SetSerialNumber(std::forward<SerialNumberT>(value));
178 return *this;
179 }
181
183
184 inline const Location& GetLocation() const { return m_location; }
185 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
186 template <typename LocationT = Location>
187 void SetLocation(LocationT&& value) {
188 m_locationHasBeenSet = true;
189 m_location = std::forward<LocationT>(value);
190 }
191 template <typename LocationT = Location>
192 UpdateDeviceRequest& WithLocation(LocationT&& value) {
193 SetLocation(std::forward<LocationT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::String& GetSiteId() const { return m_siteId; }
203 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
204 template <typename SiteIdT = Aws::String>
205 void SetSiteId(SiteIdT&& value) {
206 m_siteIdHasBeenSet = true;
207 m_siteId = std::forward<SiteIdT>(value);
208 }
209 template <typename SiteIdT = Aws::String>
210 UpdateDeviceRequest& WithSiteId(SiteIdT&& value) {
211 SetSiteId(std::forward<SiteIdT>(value));
212 return *this;
213 }
215 private:
216 Aws::String m_globalNetworkId;
217
218 Aws::String m_deviceId;
219
220 AWSLocation m_aWSLocation;
221
222 Aws::String m_description;
223
224 Aws::String m_type;
225
226 Aws::String m_vendor;
227
228 Aws::String m_model;
229
230 Aws::String m_serialNumber;
231
232 Location m_location;
233
234 Aws::String m_siteId;
235 bool m_globalNetworkIdHasBeenSet = false;
236 bool m_deviceIdHasBeenSet = false;
237 bool m_aWSLocationHasBeenSet = false;
238 bool m_descriptionHasBeenSet = false;
239 bool m_typeHasBeenSet = false;
240 bool m_vendorHasBeenSet = false;
241 bool m_modelHasBeenSet = false;
242 bool m_serialNumberHasBeenSet = false;
243 bool m_locationHasBeenSet = false;
244 bool m_siteIdHasBeenSet = false;
245};
246
247} // namespace Model
248} // namespace NetworkManager
249} // namespace Aws
UpdateDeviceRequest & WithDeviceId(DeviceIdT &&value)
UpdateDeviceRequest & WithModel(ModelT &&value)
UpdateDeviceRequest & WithAWSLocation(AWSLocationT &&value)
AWS_NETWORKMANAGER_API UpdateDeviceRequest()=default
UpdateDeviceRequest & WithLocation(LocationT &&value)
UpdateDeviceRequest & WithType(TypeT &&value)
UpdateDeviceRequest & WithSerialNumber(SerialNumberT &&value)
UpdateDeviceRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
UpdateDeviceRequest & WithGlobalNetworkId(GlobalNetworkIdT &&value)
UpdateDeviceRequest & WithVendor(VendorT &&value)
UpdateDeviceRequest & WithSiteId(SiteIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String