AWS SDK for C++  1.9.108
AWS SDK for C++
CreateWirelessDeviceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 #include <aws/core/utils/UUID.h>
16 
17 namespace Aws
18 {
19 namespace IoTWireless
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateWirelessDevice"; }
36 
37  Aws::String SerializePayload() const override;
38 
39 
43  inline const WirelessDeviceType& GetType() const{ return m_type; }
44 
48  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 
53  inline void SetType(const WirelessDeviceType& value) { m_typeHasBeenSet = true; m_type = value; }
54 
58  inline void SetType(WirelessDeviceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
59 
63  inline CreateWirelessDeviceRequest& WithType(const WirelessDeviceType& value) { SetType(value); return *this;}
64 
68  inline CreateWirelessDeviceRequest& WithType(WirelessDeviceType&& value) { SetType(std::move(value)); return *this;}
69 
70 
74  inline const Aws::String& GetName() const{ return m_name; }
75 
79  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 
84  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
85 
89  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
90 
94  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
95 
99  inline CreateWirelessDeviceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
100 
104  inline CreateWirelessDeviceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
105 
109  inline CreateWirelessDeviceRequest& WithName(const char* value) { SetName(value); return *this;}
110 
111 
115  inline const Aws::String& GetDescription() const{ return m_description; }
116 
120  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
121 
125  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
126 
130  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
131 
135  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
136 
140  inline CreateWirelessDeviceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
141 
145  inline CreateWirelessDeviceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
146 
150  inline CreateWirelessDeviceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
151 
152 
156  inline const Aws::String& GetDestinationName() const{ return m_destinationName; }
157 
161  inline bool DestinationNameHasBeenSet() const { return m_destinationNameHasBeenSet; }
162 
166  inline void SetDestinationName(const Aws::String& value) { m_destinationNameHasBeenSet = true; m_destinationName = value; }
167 
171  inline void SetDestinationName(Aws::String&& value) { m_destinationNameHasBeenSet = true; m_destinationName = std::move(value); }
172 
176  inline void SetDestinationName(const char* value) { m_destinationNameHasBeenSet = true; m_destinationName.assign(value); }
177 
181  inline CreateWirelessDeviceRequest& WithDestinationName(const Aws::String& value) { SetDestinationName(value); return *this;}
182 
186  inline CreateWirelessDeviceRequest& WithDestinationName(Aws::String&& value) { SetDestinationName(std::move(value)); return *this;}
187 
191  inline CreateWirelessDeviceRequest& WithDestinationName(const char* value) { SetDestinationName(value); return *this;}
192 
193 
200  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
201 
208  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
209 
216  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
217 
224  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
225 
232  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
233 
240  inline CreateWirelessDeviceRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
241 
248  inline CreateWirelessDeviceRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
249 
256  inline CreateWirelessDeviceRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
257 
258 
263  inline const LoRaWANDevice& GetLoRaWAN() const{ return m_loRaWAN; }
264 
269  inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; }
270 
275  inline void SetLoRaWAN(const LoRaWANDevice& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = value; }
276 
281  inline void SetLoRaWAN(LoRaWANDevice&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::move(value); }
282 
287  inline CreateWirelessDeviceRequest& WithLoRaWAN(const LoRaWANDevice& value) { SetLoRaWAN(value); return *this;}
288 
293  inline CreateWirelessDeviceRequest& WithLoRaWAN(LoRaWANDevice&& value) { SetLoRaWAN(std::move(value)); return *this;}
294 
295 
300  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
301 
306  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
307 
312  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
313 
318  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
319 
324  inline CreateWirelessDeviceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
325 
330  inline CreateWirelessDeviceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
331 
336  inline CreateWirelessDeviceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
337 
342  inline CreateWirelessDeviceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
343 
344  private:
345 
346  WirelessDeviceType m_type;
347  bool m_typeHasBeenSet;
348 
349  Aws::String m_name;
350  bool m_nameHasBeenSet;
351 
352  Aws::String m_description;
353  bool m_descriptionHasBeenSet;
354 
355  Aws::String m_destinationName;
356  bool m_destinationNameHasBeenSet;
357 
358  Aws::String m_clientRequestToken;
359  bool m_clientRequestTokenHasBeenSet;
360 
361  LoRaWANDevice m_loRaWAN;
362  bool m_loRaWANHasBeenSet;
363 
364  Aws::Vector<Tag> m_tags;
365  bool m_tagsHasBeenSet;
366  };
367 
368 } // namespace Model
369 } // namespace IoTWireless
370 } // namespace Aws
Tag.h
AWS_IOTWIRELESS_API
#define AWS_IOTWIRELESS_API
Definition: IoTWireless_EXPORTS.h:28
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateWirelessDeviceRequest.h:300
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::SetType
void SetType(WirelessDeviceType &&value)
Definition: CreateWirelessDeviceRequest.h:58
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateWirelessDeviceRequest.h:318
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateWirelessDeviceRequest.h:79
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::WithClientRequestToken
CreateWirelessDeviceRequest & WithClientRequestToken(const Aws::String &value)
Definition: CreateWirelessDeviceRequest.h:240
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::SetType
void SetType(const WirelessDeviceType &value)
Definition: CreateWirelessDeviceRequest.h:53
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::WithTags
CreateWirelessDeviceRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateWirelessDeviceRequest.h:324
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::GetName
const Aws::String & GetName() const
Definition: CreateWirelessDeviceRequest.h:74
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CreateWirelessDeviceRequest.h:48
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::GetDestinationName
const Aws::String & GetDestinationName() const
Definition: CreateWirelessDeviceRequest.h:156
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::WithType
CreateWirelessDeviceRequest & WithType(WirelessDeviceType &&value)
Definition: CreateWirelessDeviceRequest.h:68
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::WithLoRaWAN
CreateWirelessDeviceRequest & WithLoRaWAN(const LoRaWANDevice &value)
Definition: CreateWirelessDeviceRequest.h:287
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::WithDescription
CreateWirelessDeviceRequest & WithDescription(const Aws::String &value)
Definition: CreateWirelessDeviceRequest.h:140
Aws::IoTWireless::Model::WirelessDeviceType
WirelessDeviceType
Definition: WirelessDeviceType.h:17
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
IoTWireless_EXPORTS.h
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::SetDestinationName
void SetDestinationName(const Aws::String &value)
Definition: CreateWirelessDeviceRequest.h:166
AWSVector.h
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::WithName
CreateWirelessDeviceRequest & WithName(const Aws::String &value)
Definition: CreateWirelessDeviceRequest.h:99
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::SetLoRaWAN
void SetLoRaWAN(LoRaWANDevice &&value)
Definition: CreateWirelessDeviceRequest.h:281
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateWirelessDeviceRequest.h:306
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateWirelessDeviceRequest.h:312
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::SetName
void SetName(const char *value)
Definition: CreateWirelessDeviceRequest.h:94
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::WithDestinationName
CreateWirelessDeviceRequest & WithDestinationName(const Aws::String &value)
Definition: CreateWirelessDeviceRequest.h:181
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::WithDestinationName
CreateWirelessDeviceRequest & WithDestinationName(const char *value)
Definition: CreateWirelessDeviceRequest.h:191
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateWirelessDeviceRequest.h:125
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::WithTags
CreateWirelessDeviceRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateWirelessDeviceRequest.h:330
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::WithName
CreateWirelessDeviceRequest & WithName(Aws::String &&value)
Definition: CreateWirelessDeviceRequest.h:104
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::WithClientRequestToken
CreateWirelessDeviceRequest & WithClientRequestToken(const char *value)
Definition: CreateWirelessDeviceRequest.h:256
Aws::IoTWireless::Model::LoRaWANDevice
Definition: LoRaWANDevice.h:36
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::WithDestinationName
CreateWirelessDeviceRequest & WithDestinationName(Aws::String &&value)
Definition: CreateWirelessDeviceRequest.h:186
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateWirelessDeviceRequest.h:115
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateWirelessDeviceRequest.h:120
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateWirelessDeviceRequest.h:35
Aws::IoTWireless::IoTWirelessRequest
Definition: IoTWirelessRequest.h:17
Aws::IoTWireless::Model::Tag
Definition: Tag.h:33
AWSString.h
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::SetDestinationName
void SetDestinationName(Aws::String &&value)
Definition: CreateWirelessDeviceRequest.h:171
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::GetLoRaWAN
const LoRaWANDevice & GetLoRaWAN() const
Definition: CreateWirelessDeviceRequest.h:263
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::WithDescription
CreateWirelessDeviceRequest & WithDescription(Aws::String &&value)
Definition: CreateWirelessDeviceRequest.h:145
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::GetType
const WirelessDeviceType & GetType() const
Definition: CreateWirelessDeviceRequest.h:43
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::WithName
CreateWirelessDeviceRequest & WithName(const char *value)
Definition: CreateWirelessDeviceRequest.h:109
Aws::IoTWireless::Model::CreateWirelessDeviceRequest
Definition: CreateWirelessDeviceRequest.h:27
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: CreateWirelessDeviceRequest.h:216
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateWirelessDeviceRequest.h:84
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateWirelessDeviceRequest.h:130
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: CreateWirelessDeviceRequest.h:224
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::SetDestinationName
void SetDestinationName(const char *value)
Definition: CreateWirelessDeviceRequest.h:176
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::LoRaWANHasBeenSet
bool LoRaWANHasBeenSet() const
Definition: CreateWirelessDeviceRequest.h:269
Aws
Definition: AccessManagementClient.h:15
IoTWirelessRequest.h
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::DestinationNameHasBeenSet
bool DestinationNameHasBeenSet() const
Definition: CreateWirelessDeviceRequest.h:161
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::AddTags
CreateWirelessDeviceRequest & AddTags(const Tag &value)
Definition: CreateWirelessDeviceRequest.h:336
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: CreateWirelessDeviceRequest.h:232
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::WithType
CreateWirelessDeviceRequest & WithType(const WirelessDeviceType &value)
Definition: CreateWirelessDeviceRequest.h:63
WirelessDeviceType.h
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateWirelessDeviceRequest.h:135
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::WithClientRequestToken
CreateWirelessDeviceRequest & WithClientRequestToken(Aws::String &&value)
Definition: CreateWirelessDeviceRequest.h:248
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: CreateWirelessDeviceRequest.h:208
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateWirelessDeviceRequest.h:89
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::SetLoRaWAN
void SetLoRaWAN(const LoRaWANDevice &value)
Definition: CreateWirelessDeviceRequest.h:275
UUID.h
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::WithLoRaWAN
CreateWirelessDeviceRequest & WithLoRaWAN(LoRaWANDevice &&value)
Definition: CreateWirelessDeviceRequest.h:293
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::CreateWirelessDeviceRequest
CreateWirelessDeviceRequest()
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::AddTags
CreateWirelessDeviceRequest & AddTags(Tag &&value)
Definition: CreateWirelessDeviceRequest.h:342
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::WithDescription
CreateWirelessDeviceRequest & WithDescription(const char *value)
Definition: CreateWirelessDeviceRequest.h:150
Aws::IoTWireless::Model::CreateWirelessDeviceRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: CreateWirelessDeviceRequest.h:200
LoRaWANDevice.h