AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
CreateDeviceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/networkmanager/NetworkManagerRequest.h>
10#include <aws/networkmanager/NetworkManager_EXPORTS.h>
11#include <aws/networkmanager/model/AWSLocation.h>
12#include <aws/networkmanager/model/Location.h>
13#include <aws/networkmanager/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace NetworkManager {
19namespace Model {
20
24 public:
25 AWS_NETWORKMANAGER_API CreateDeviceRequest() = 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 "CreateDevice"; }
32
33 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
40 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
41 template <typename GlobalNetworkIdT = Aws::String>
42 void SetGlobalNetworkId(GlobalNetworkIdT&& value) {
43 m_globalNetworkIdHasBeenSet = true;
44 m_globalNetworkId = std::forward<GlobalNetworkIdT>(value);
45 }
46 template <typename GlobalNetworkIdT = Aws::String>
47 CreateDeviceRequest& WithGlobalNetworkId(GlobalNetworkIdT&& value) {
48 SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value));
49 return *this;
50 }
52
54
58 inline const AWSLocation& GetAWSLocation() const { return m_aWSLocation; }
59 inline bool AWSLocationHasBeenSet() const { return m_aWSLocationHasBeenSet; }
60 template <typename AWSLocationT = AWSLocation>
61 void SetAWSLocation(AWSLocationT&& value) {
62 m_aWSLocationHasBeenSet = true;
63 m_aWSLocation = std::forward<AWSLocationT>(value);
64 }
65 template <typename AWSLocationT = AWSLocation>
66 CreateDeviceRequest& WithAWSLocation(AWSLocationT&& value) {
67 SetAWSLocation(std::forward<AWSLocationT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 CreateDeviceRequest& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetType() const { return m_type; }
96 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
97 template <typename TypeT = Aws::String>
98 void SetType(TypeT&& value) {
99 m_typeHasBeenSet = true;
100 m_type = std::forward<TypeT>(value);
101 }
102 template <typename TypeT = Aws::String>
104 SetType(std::forward<TypeT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetVendor() const { return m_vendor; }
115 inline bool VendorHasBeenSet() const { return m_vendorHasBeenSet; }
116 template <typename VendorT = Aws::String>
117 void SetVendor(VendorT&& value) {
118 m_vendorHasBeenSet = true;
119 m_vendor = std::forward<VendorT>(value);
120 }
121 template <typename VendorT = Aws::String>
122 CreateDeviceRequest& WithVendor(VendorT&& value) {
123 SetVendor(std::forward<VendorT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::String& GetModel() const { return m_model; }
134 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
135 template <typename ModelT = Aws::String>
136 void SetModel(ModelT&& value) {
137 m_modelHasBeenSet = true;
138 m_model = std::forward<ModelT>(value);
139 }
140 template <typename ModelT = Aws::String>
142 SetModel(std::forward<ModelT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
153 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
154 template <typename SerialNumberT = Aws::String>
155 void SetSerialNumber(SerialNumberT&& value) {
156 m_serialNumberHasBeenSet = true;
157 m_serialNumber = std::forward<SerialNumberT>(value);
158 }
159 template <typename SerialNumberT = Aws::String>
160 CreateDeviceRequest& WithSerialNumber(SerialNumberT&& value) {
161 SetSerialNumber(std::forward<SerialNumberT>(value));
162 return *this;
163 }
165
167
170 inline const Location& GetLocation() const { return m_location; }
171 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
172 template <typename LocationT = Location>
173 void SetLocation(LocationT&& value) {
174 m_locationHasBeenSet = true;
175 m_location = std::forward<LocationT>(value);
176 }
177 template <typename LocationT = Location>
178 CreateDeviceRequest& WithLocation(LocationT&& value) {
179 SetLocation(std::forward<LocationT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::String& GetSiteId() const { return m_siteId; }
189 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
190 template <typename SiteIdT = Aws::String>
191 void SetSiteId(SiteIdT&& value) {
192 m_siteIdHasBeenSet = true;
193 m_siteId = std::forward<SiteIdT>(value);
194 }
195 template <typename SiteIdT = Aws::String>
196 CreateDeviceRequest& WithSiteId(SiteIdT&& value) {
197 SetSiteId(std::forward<SiteIdT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
207 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
208 template <typename TagsT = Aws::Vector<Tag>>
209 void SetTags(TagsT&& value) {
210 m_tagsHasBeenSet = true;
211 m_tags = std::forward<TagsT>(value);
212 }
213 template <typename TagsT = Aws::Vector<Tag>>
215 SetTags(std::forward<TagsT>(value));
216 return *this;
217 }
218 template <typename TagsT = Tag>
219 CreateDeviceRequest& AddTags(TagsT&& value) {
220 m_tagsHasBeenSet = true;
221 m_tags.emplace_back(std::forward<TagsT>(value));
222 return *this;
223 }
225 private:
226 Aws::String m_globalNetworkId;
227
228 AWSLocation m_aWSLocation;
229
230 Aws::String m_description;
231
232 Aws::String m_type;
233
234 Aws::String m_vendor;
235
236 Aws::String m_model;
237
238 Aws::String m_serialNumber;
239
240 Location m_location;
241
242 Aws::String m_siteId;
243
244 Aws::Vector<Tag> m_tags;
245 bool m_globalNetworkIdHasBeenSet = false;
246 bool m_aWSLocationHasBeenSet = false;
247 bool m_descriptionHasBeenSet = false;
248 bool m_typeHasBeenSet = false;
249 bool m_vendorHasBeenSet = false;
250 bool m_modelHasBeenSet = false;
251 bool m_serialNumberHasBeenSet = false;
252 bool m_locationHasBeenSet = false;
253 bool m_siteIdHasBeenSet = false;
254 bool m_tagsHasBeenSet = false;
255};
256
257} // namespace Model
258} // namespace NetworkManager
259} // namespace Aws
CreateDeviceRequest & WithType(TypeT &&value)
CreateDeviceRequest & WithAWSLocation(AWSLocationT &&value)
CreateDeviceRequest & WithTags(TagsT &&value)
CreateDeviceRequest & WithDescription(DescriptionT &&value)
CreateDeviceRequest & WithSerialNumber(SerialNumberT &&value)
CreateDeviceRequest & WithModel(ModelT &&value)
CreateDeviceRequest & WithVendor(VendorT &&value)
CreateDeviceRequest & WithSiteId(SiteIdT &&value)
AWS_NETWORKMANAGER_API CreateDeviceRequest()=default
CreateDeviceRequest & WithGlobalNetworkId(GlobalNetworkIdT &&value)
CreateDeviceRequest & AddTags(TagsT &&value)
CreateDeviceRequest & WithLocation(LocationT &&value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector