AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateDeviceProfileRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iotwireless/IoTWirelessRequest.h>
11#include <aws/iotwireless/IoTWireless_EXPORTS.h>
12#include <aws/iotwireless/model/LoRaWANDeviceProfile.h>
13#include <aws/iotwireless/model/SidewalkCreateDeviceProfile.h>
14#include <aws/iotwireless/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace IoTWireless {
20namespace Model {
21
25 public:
26 AWS_IOTWIRELESS_API CreateDeviceProfileRequest() = 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 "CreateDeviceProfile"; }
33
34 AWS_IOTWIRELESS_API Aws::String SerializePayload() const override;
35
37
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const LoRaWANDeviceProfile& GetLoRaWAN() const { return m_loRaWAN; }
60 inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; }
61 template <typename LoRaWANT = LoRaWANDeviceProfile>
62 void SetLoRaWAN(LoRaWANT&& value) {
63 m_loRaWANHasBeenSet = true;
64 m_loRaWAN = std::forward<LoRaWANT>(value);
65 }
66 template <typename LoRaWANT = LoRaWANDeviceProfile>
68 SetLoRaWAN(std::forward<LoRaWANT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
79 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
80 template <typename TagsT = Aws::Vector<Tag>>
81 void SetTags(TagsT&& value) {
82 m_tagsHasBeenSet = true;
83 m_tags = std::forward<TagsT>(value);
84 }
85 template <typename TagsT = Aws::Vector<Tag>>
87 SetTags(std::forward<TagsT>(value));
88 return *this;
89 }
90 template <typename TagsT = Tag>
92 m_tagsHasBeenSet = true;
93 m_tags.emplace_back(std::forward<TagsT>(value));
94 return *this;
95 }
97
99
110 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
111 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
112 template <typename ClientRequestTokenT = Aws::String>
113 void SetClientRequestToken(ClientRequestTokenT&& value) {
114 m_clientRequestTokenHasBeenSet = true;
115 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
116 }
117 template <typename ClientRequestTokenT = Aws::String>
119 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
120 return *this;
121 }
123
125
129 inline const SidewalkCreateDeviceProfile& GetSidewalk() const { return m_sidewalk; }
130 inline bool SidewalkHasBeenSet() const { return m_sidewalkHasBeenSet; }
131 template <typename SidewalkT = SidewalkCreateDeviceProfile>
132 void SetSidewalk(SidewalkT&& value) {
133 m_sidewalkHasBeenSet = true;
134 m_sidewalk = std::forward<SidewalkT>(value);
135 }
136 template <typename SidewalkT = SidewalkCreateDeviceProfile>
138 SetSidewalk(std::forward<SidewalkT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_name;
144
145 LoRaWANDeviceProfile m_loRaWAN;
146
147 Aws::Vector<Tag> m_tags;
148
149 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
150
151 SidewalkCreateDeviceProfile m_sidewalk;
152 bool m_nameHasBeenSet = false;
153 bool m_loRaWANHasBeenSet = false;
154 bool m_tagsHasBeenSet = false;
155 bool m_clientRequestTokenHasBeenSet = true;
156 bool m_sidewalkHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace IoTWireless
161} // namespace Aws
CreateDeviceProfileRequest & WithName(NameT &&value)
const SidewalkCreateDeviceProfile & GetSidewalk() const
CreateDeviceProfileRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_IOTWIRELESS_API CreateDeviceProfileRequest()=default
CreateDeviceProfileRequest & AddTags(TagsT &&value)
CreateDeviceProfileRequest & WithSidewalk(SidewalkT &&value)
CreateDeviceProfileRequest & WithLoRaWAN(LoRaWANT &&value)
AWS_IOTWIRELESS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateDeviceProfileRequest & WithTags(TagsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector