AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDeviceProfileRequest.h
1
6#pragma once
7#include <aws/iotwireless/IoTWireless_EXPORTS.h>
8#include <aws/iotwireless/IoTWirelessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iotwireless/model/LoRaWANDeviceProfile.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iotwireless/model/SidewalkCreateDeviceProfile.h>
13#include <aws/iotwireless/model/Tag.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace IoTWireless
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_IOTWIRELESS_API CreateDeviceProfileRequest() = default;
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 "CreateDeviceProfile"; }
36
37 AWS_IOTWIRELESS_API Aws::String SerializePayload() const override;
38
39
41
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 CreateDeviceProfileRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
57 inline const LoRaWANDeviceProfile& GetLoRaWAN() const { return m_loRaWAN; }
58 inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; }
59 template<typename LoRaWANT = LoRaWANDeviceProfile>
60 void SetLoRaWAN(LoRaWANT&& value) { m_loRaWANHasBeenSet = true; m_loRaWAN = std::forward<LoRaWANT>(value); }
61 template<typename LoRaWANT = LoRaWANDeviceProfile>
62 CreateDeviceProfileRequest& WithLoRaWAN(LoRaWANT&& value) { SetLoRaWAN(std::forward<LoRaWANT>(value)); return *this;}
64
66
70 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
71 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
72 template<typename TagsT = Aws::Vector<Tag>>
73 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
74 template<typename TagsT = Aws::Vector<Tag>>
75 CreateDeviceProfileRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
76 template<typename TagsT = Tag>
77 CreateDeviceProfileRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
79
81
92 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
93 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
94 template<typename ClientRequestTokenT = Aws::String>
95 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
96 template<typename ClientRequestTokenT = Aws::String>
97 CreateDeviceProfileRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
99
101
105 inline const SidewalkCreateDeviceProfile& GetSidewalk() const { return m_sidewalk; }
106 inline bool SidewalkHasBeenSet() const { return m_sidewalkHasBeenSet; }
107 template<typename SidewalkT = SidewalkCreateDeviceProfile>
108 void SetSidewalk(SidewalkT&& value) { m_sidewalkHasBeenSet = true; m_sidewalk = std::forward<SidewalkT>(value); }
109 template<typename SidewalkT = SidewalkCreateDeviceProfile>
110 CreateDeviceProfileRequest& WithSidewalk(SidewalkT&& value) { SetSidewalk(std::forward<SidewalkT>(value)); return *this;}
112 private:
113
114 Aws::String m_name;
115 bool m_nameHasBeenSet = false;
116
117 LoRaWANDeviceProfile m_loRaWAN;
118 bool m_loRaWANHasBeenSet = false;
119
120 Aws::Vector<Tag> m_tags;
121 bool m_tagsHasBeenSet = false;
122
123 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
124 bool m_clientRequestTokenHasBeenSet = true;
125
126 SidewalkCreateDeviceProfile m_sidewalk;
127 bool m_sidewalkHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace IoTWireless
132} // 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