AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateWirelessDeviceRequest.h
1
6#pragma once
7#include <aws/iotwireless/IoTWireless_EXPORTS.h>
8#include <aws/iotwireless/IoTWirelessRequest.h>
9#include <aws/iotwireless/model/WirelessDeviceType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/iotwireless/model/LoRaWANDevice.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/iotwireless/model/PositioningConfigStatus.h>
14#include <aws/iotwireless/model/SidewalkCreateWirelessDevice.h>
15#include <aws/iotwireless/model/Tag.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace IoTWireless
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_IOTWIRELESS_API CreateWirelessDeviceRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateWirelessDevice"; }
38
39 AWS_IOTWIRELESS_API Aws::String SerializePayload() const override;
40
41
43
46 inline const WirelessDeviceType& GetType() const{ return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(const WirelessDeviceType& value) { m_typeHasBeenSet = true; m_type = value; }
49 inline void SetType(WirelessDeviceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
50 inline CreateWirelessDeviceRequest& WithType(const WirelessDeviceType& value) { SetType(value); return *this;}
51 inline CreateWirelessDeviceRequest& WithType(WirelessDeviceType&& value) { SetType(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 inline CreateWirelessDeviceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline CreateWirelessDeviceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline CreateWirelessDeviceRequest& WithName(const char* value) { SetName(value); return *this;}
67
69
72 inline const Aws::String& GetDescription() const{ return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
75 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
76 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
77 inline CreateWirelessDeviceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
78 inline CreateWirelessDeviceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
79 inline CreateWirelessDeviceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
81
83
86 inline const Aws::String& GetDestinationName() const{ return m_destinationName; }
87 inline bool DestinationNameHasBeenSet() const { return m_destinationNameHasBeenSet; }
88 inline void SetDestinationName(const Aws::String& value) { m_destinationNameHasBeenSet = true; m_destinationName = value; }
89 inline void SetDestinationName(Aws::String&& value) { m_destinationNameHasBeenSet = true; m_destinationName = std::move(value); }
90 inline void SetDestinationName(const char* value) { m_destinationNameHasBeenSet = true; m_destinationName.assign(value); }
92 inline CreateWirelessDeviceRequest& WithDestinationName(Aws::String&& value) { SetDestinationName(std::move(value)); return *this;}
93 inline CreateWirelessDeviceRequest& WithDestinationName(const char* value) { SetDestinationName(value); return *this;}
95
97
108 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
109 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
110 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
111 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
112 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
114 inline CreateWirelessDeviceRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
115 inline CreateWirelessDeviceRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
117
119
123 inline const LoRaWANDevice& GetLoRaWAN() const{ return m_loRaWAN; }
124 inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; }
125 inline void SetLoRaWAN(const LoRaWANDevice& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = value; }
126 inline void SetLoRaWAN(LoRaWANDevice&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::move(value); }
127 inline CreateWirelessDeviceRequest& WithLoRaWAN(const LoRaWANDevice& value) { SetLoRaWAN(value); return *this;}
128 inline CreateWirelessDeviceRequest& WithLoRaWAN(LoRaWANDevice&& value) { SetLoRaWAN(std::move(value)); return *this;}
130
132
136 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
139 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
140 inline CreateWirelessDeviceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
141 inline CreateWirelessDeviceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
142 inline CreateWirelessDeviceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
143 inline CreateWirelessDeviceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
145
147
151 inline const PositioningConfigStatus& GetPositioning() const{ return m_positioning; }
152 inline bool PositioningHasBeenSet() const { return m_positioningHasBeenSet; }
153 inline void SetPositioning(const PositioningConfigStatus& value) { m_positioningHasBeenSet = true; m_positioning = value; }
154 inline void SetPositioning(PositioningConfigStatus&& value) { m_positioningHasBeenSet = true; m_positioning = std::move(value); }
156 inline CreateWirelessDeviceRequest& WithPositioning(PositioningConfigStatus&& value) { SetPositioning(std::move(value)); return *this;}
158
160
164 inline const SidewalkCreateWirelessDevice& GetSidewalk() const{ return m_sidewalk; }
165 inline bool SidewalkHasBeenSet() const { return m_sidewalkHasBeenSet; }
166 inline void SetSidewalk(const SidewalkCreateWirelessDevice& value) { m_sidewalkHasBeenSet = true; m_sidewalk = value; }
167 inline void SetSidewalk(SidewalkCreateWirelessDevice&& value) { m_sidewalkHasBeenSet = true; m_sidewalk = std::move(value); }
169 inline CreateWirelessDeviceRequest& WithSidewalk(SidewalkCreateWirelessDevice&& value) { SetSidewalk(std::move(value)); return *this;}
171 private:
172
173 WirelessDeviceType m_type;
174 bool m_typeHasBeenSet = false;
175
176 Aws::String m_name;
177 bool m_nameHasBeenSet = false;
178
179 Aws::String m_description;
180 bool m_descriptionHasBeenSet = false;
181
182 Aws::String m_destinationName;
183 bool m_destinationNameHasBeenSet = false;
184
185 Aws::String m_clientRequestToken;
186 bool m_clientRequestTokenHasBeenSet = false;
187
188 LoRaWANDevice m_loRaWAN;
189 bool m_loRaWANHasBeenSet = false;
190
191 Aws::Vector<Tag> m_tags;
192 bool m_tagsHasBeenSet = false;
193
194 PositioningConfigStatus m_positioning;
195 bool m_positioningHasBeenSet = false;
196
198 bool m_sidewalkHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace IoTWireless
203} // namespace Aws
AWS_IOTWIRELESS_API Aws::String SerializePayload() const override
CreateWirelessDeviceRequest & WithDescription(const Aws::String &value)
CreateWirelessDeviceRequest & WithName(const char *value)
CreateWirelessDeviceRequest & WithDestinationName(Aws::String &&value)
CreateWirelessDeviceRequest & WithDescription(const char *value)
CreateWirelessDeviceRequest & WithDestinationName(const Aws::String &value)
void SetSidewalk(const SidewalkCreateWirelessDevice &value)
CreateWirelessDeviceRequest & WithClientRequestToken(const char *value)
CreateWirelessDeviceRequest & WithType(const WirelessDeviceType &value)
CreateWirelessDeviceRequest & AddTags(const Tag &value)
CreateWirelessDeviceRequest & WithSidewalk(const SidewalkCreateWirelessDevice &value)
CreateWirelessDeviceRequest & WithName(Aws::String &&value)
CreateWirelessDeviceRequest & WithClientRequestToken(Aws::String &&value)
CreateWirelessDeviceRequest & WithClientRequestToken(const Aws::String &value)
CreateWirelessDeviceRequest & WithDescription(Aws::String &&value)
CreateWirelessDeviceRequest & WithTags(Aws::Vector< Tag > &&value)
CreateWirelessDeviceRequest & WithPositioning(PositioningConfigStatus &&value)
void SetPositioning(const PositioningConfigStatus &value)
CreateWirelessDeviceRequest & WithSidewalk(SidewalkCreateWirelessDevice &&value)
CreateWirelessDeviceRequest & WithTags(const Aws::Vector< Tag > &value)
CreateWirelessDeviceRequest & WithType(WirelessDeviceType &&value)
CreateWirelessDeviceRequest & WithPositioning(const PositioningConfigStatus &value)
CreateWirelessDeviceRequest & WithDestinationName(const char *value)
const SidewalkCreateWirelessDevice & GetSidewalk() const
CreateWirelessDeviceRequest & WithName(const Aws::String &value)
CreateWirelessDeviceRequest & WithLoRaWAN(LoRaWANDevice &&value)
CreateWirelessDeviceRequest & WithLoRaWAN(const LoRaWANDevice &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector