AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateDeviceRequest.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/networkmanager/NetworkManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/networkmanager/model/AWSLocation.h>
11#include <aws/networkmanager/model/Location.h>
12#include <utility>
13
14namespace Aws
15{
16namespace NetworkManager
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_NETWORKMANAGER_API UpdateDeviceRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateDevice"; }
33
34 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
42 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
43 template<typename GlobalNetworkIdT = Aws::String>
44 void SetGlobalNetworkId(GlobalNetworkIdT&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::forward<GlobalNetworkIdT>(value); }
45 template<typename GlobalNetworkIdT = Aws::String>
46 UpdateDeviceRequest& WithGlobalNetworkId(GlobalNetworkIdT&& value) { SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
54 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
55 template<typename DeviceIdT = Aws::String>
56 void SetDeviceId(DeviceIdT&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::forward<DeviceIdT>(value); }
57 template<typename DeviceIdT = Aws::String>
58 UpdateDeviceRequest& WithDeviceId(DeviceIdT&& value) { SetDeviceId(std::forward<DeviceIdT>(value)); return *this;}
60
62
66 inline const AWSLocation& GetAWSLocation() const { return m_aWSLocation; }
67 inline bool AWSLocationHasBeenSet() const { return m_aWSLocationHasBeenSet; }
68 template<typename AWSLocationT = AWSLocation>
69 void SetAWSLocation(AWSLocationT&& value) { m_aWSLocationHasBeenSet = true; m_aWSLocation = std::forward<AWSLocationT>(value); }
70 template<typename AWSLocationT = AWSLocation>
71 UpdateDeviceRequest& WithAWSLocation(AWSLocationT&& value) { SetAWSLocation(std::forward<AWSLocationT>(value)); return *this;}
73
75
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template<typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
83 template<typename DescriptionT = Aws::String>
84 UpdateDeviceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
86
88
91 inline const Aws::String& GetType() const { return m_type; }
92 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
93 template<typename TypeT = Aws::String>
94 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
95 template<typename TypeT = Aws::String>
96 UpdateDeviceRequest& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
98
100
104 inline const Aws::String& GetVendor() const { return m_vendor; }
105 inline bool VendorHasBeenSet() const { return m_vendorHasBeenSet; }
106 template<typename VendorT = Aws::String>
107 void SetVendor(VendorT&& value) { m_vendorHasBeenSet = true; m_vendor = std::forward<VendorT>(value); }
108 template<typename VendorT = Aws::String>
109 UpdateDeviceRequest& WithVendor(VendorT&& value) { SetVendor(std::forward<VendorT>(value)); return *this;}
111
113
117 inline const Aws::String& GetModel() const { return m_model; }
118 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
119 template<typename ModelT = Aws::String>
120 void SetModel(ModelT&& value) { m_modelHasBeenSet = true; m_model = std::forward<ModelT>(value); }
121 template<typename ModelT = Aws::String>
122 UpdateDeviceRequest& WithModel(ModelT&& value) { SetModel(std::forward<ModelT>(value)); return *this;}
124
126
130 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
131 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
132 template<typename SerialNumberT = Aws::String>
133 void SetSerialNumber(SerialNumberT&& value) { m_serialNumberHasBeenSet = true; m_serialNumber = std::forward<SerialNumberT>(value); }
134 template<typename SerialNumberT = Aws::String>
135 UpdateDeviceRequest& WithSerialNumber(SerialNumberT&& value) { SetSerialNumber(std::forward<SerialNumberT>(value)); return *this;}
137
139
140 inline const Location& GetLocation() const { return m_location; }
141 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
142 template<typename LocationT = Location>
143 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
144 template<typename LocationT = Location>
145 UpdateDeviceRequest& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
147
149
152 inline const Aws::String& GetSiteId() const { return m_siteId; }
153 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
154 template<typename SiteIdT = Aws::String>
155 void SetSiteId(SiteIdT&& value) { m_siteIdHasBeenSet = true; m_siteId = std::forward<SiteIdT>(value); }
156 template<typename SiteIdT = Aws::String>
157 UpdateDeviceRequest& WithSiteId(SiteIdT&& value) { SetSiteId(std::forward<SiteIdT>(value)); return *this;}
159 private:
160
161 Aws::String m_globalNetworkId;
162 bool m_globalNetworkIdHasBeenSet = false;
163
164 Aws::String m_deviceId;
165 bool m_deviceIdHasBeenSet = false;
166
167 AWSLocation m_aWSLocation;
168 bool m_aWSLocationHasBeenSet = false;
169
170 Aws::String m_description;
171 bool m_descriptionHasBeenSet = false;
172
173 Aws::String m_type;
174 bool m_typeHasBeenSet = false;
175
176 Aws::String m_vendor;
177 bool m_vendorHasBeenSet = false;
178
179 Aws::String m_model;
180 bool m_modelHasBeenSet = false;
181
182 Aws::String m_serialNumber;
183 bool m_serialNumberHasBeenSet = false;
184
185 Location m_location;
186 bool m_locationHasBeenSet = false;
187
188 Aws::String m_siteId;
189 bool m_siteIdHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace NetworkManager
194} // 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