AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 WirelessDeviceType GetType() const { return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(WirelessDeviceType value) { m_typeHasBeenSet = true; m_type = value; }
49 inline CreateWirelessDeviceRequest& WithType(WirelessDeviceType value) { SetType(value); return *this;}
51
53
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template<typename NameT = Aws::String>
60 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 CreateWirelessDeviceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
69 inline const Aws::String& GetDescription() const { return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 template<typename DescriptionT = Aws::String>
72 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
73 template<typename DescriptionT = Aws::String>
74 CreateWirelessDeviceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
76
78
81 inline const Aws::String& GetDestinationName() const { return m_destinationName; }
82 inline bool DestinationNameHasBeenSet() const { return m_destinationNameHasBeenSet; }
83 template<typename DestinationNameT = Aws::String>
84 void SetDestinationName(DestinationNameT&& value) { m_destinationNameHasBeenSet = true; m_destinationName = std::forward<DestinationNameT>(value); }
85 template<typename DestinationNameT = Aws::String>
86 CreateWirelessDeviceRequest& WithDestinationName(DestinationNameT&& value) { SetDestinationName(std::forward<DestinationNameT>(value)); return *this;}
88
90
101 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
102 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
103 template<typename ClientRequestTokenT = Aws::String>
104 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
105 template<typename ClientRequestTokenT = Aws::String>
106 CreateWirelessDeviceRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
108
110
114 inline const LoRaWANDevice& GetLoRaWAN() const { return m_loRaWAN; }
115 inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; }
116 template<typename LoRaWANT = LoRaWANDevice>
117 void SetLoRaWAN(LoRaWANT&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::forward<LoRaWANT>(value); }
118 template<typename LoRaWANT = LoRaWANDevice>
119 CreateWirelessDeviceRequest& WithLoRaWAN(LoRaWANT&& value) { SetLoRaWAN(std::forward<LoRaWANT>(value)); return *this;}
121
123
127 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
128 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
129 template<typename TagsT = Aws::Vector<Tag>>
130 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
131 template<typename TagsT = Aws::Vector<Tag>>
132 CreateWirelessDeviceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
133 template<typename TagsT = Tag>
134 CreateWirelessDeviceRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
136
138
142 inline PositioningConfigStatus GetPositioning() const { return m_positioning; }
143 inline bool PositioningHasBeenSet() const { return m_positioningHasBeenSet; }
144 inline void SetPositioning(PositioningConfigStatus value) { m_positioningHasBeenSet = true; m_positioning = value; }
147
149
153 inline const SidewalkCreateWirelessDevice& GetSidewalk() const { return m_sidewalk; }
154 inline bool SidewalkHasBeenSet() const { return m_sidewalkHasBeenSet; }
155 template<typename SidewalkT = SidewalkCreateWirelessDevice>
156 void SetSidewalk(SidewalkT&& value) { m_sidewalkHasBeenSet = true; m_sidewalk = std::forward<SidewalkT>(value); }
157 template<typename SidewalkT = SidewalkCreateWirelessDevice>
158 CreateWirelessDeviceRequest& WithSidewalk(SidewalkT&& value) { SetSidewalk(std::forward<SidewalkT>(value)); return *this;}
160 private:
161
163 bool m_typeHasBeenSet = false;
164
165 Aws::String m_name;
166 bool m_nameHasBeenSet = false;
167
168 Aws::String m_description;
169 bool m_descriptionHasBeenSet = false;
170
171 Aws::String m_destinationName;
172 bool m_destinationNameHasBeenSet = false;
173
174 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
175 bool m_clientRequestTokenHasBeenSet = true;
176
177 LoRaWANDevice m_loRaWAN;
178 bool m_loRaWANHasBeenSet = false;
179
180 Aws::Vector<Tag> m_tags;
181 bool m_tagsHasBeenSet = false;
182
184 bool m_positioningHasBeenSet = false;
185
186 SidewalkCreateWirelessDevice m_sidewalk;
187 bool m_sidewalkHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace IoTWireless
192} // namespace Aws
AWS_IOTWIRELESS_API Aws::String SerializePayload() const override
CreateWirelessDeviceRequest & WithDestinationName(DestinationNameT &&value)
CreateWirelessDeviceRequest & WithPositioning(PositioningConfigStatus value)
CreateWirelessDeviceRequest & AddTags(TagsT &&value)
CreateWirelessDeviceRequest & WithType(WirelessDeviceType value)
AWS_IOTWIRELESS_API CreateWirelessDeviceRequest()=default
CreateWirelessDeviceRequest & WithLoRaWAN(LoRaWANT &&value)
CreateWirelessDeviceRequest & WithName(NameT &&value)
CreateWirelessDeviceRequest & WithSidewalk(SidewalkT &&value)
CreateWirelessDeviceRequest & WithDescription(DescriptionT &&value)
CreateWirelessDeviceRequest & WithTags(TagsT &&value)
CreateWirelessDeviceRequest & WithClientRequestToken(ClientRequestTokenT &&value)
const SidewalkCreateWirelessDevice & GetSidewalk() const
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector