AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateWirelessGatewayRequest.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/LoRaWANGateway.h>
13#include <aws/iotwireless/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace IoTWireless {
19namespace Model {
20
24 public:
25 AWS_IOTWIRELESS_API CreateWirelessGatewayRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateWirelessGateway"; }
32
33 AWS_IOTWIRELESS_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
77 inline const LoRaWANGateway& GetLoRaWAN() const { return m_loRaWAN; }
78 inline bool LoRaWANHasBeenSet() const { return m_loRaWANHasBeenSet; }
79 template <typename LoRaWANT = LoRaWANGateway>
80 void SetLoRaWAN(LoRaWANT&& value) {
81 m_loRaWANHasBeenSet = true;
82 m_loRaWAN = std::forward<LoRaWANT>(value);
83 }
84 template <typename LoRaWANT = LoRaWANGateway>
86 SetLoRaWAN(std::forward<LoRaWANT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
97 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
98 template <typename TagsT = Aws::Vector<Tag>>
99 void SetTags(TagsT&& value) {
100 m_tagsHasBeenSet = true;
101 m_tags = std::forward<TagsT>(value);
102 }
103 template <typename TagsT = Aws::Vector<Tag>>
105 SetTags(std::forward<TagsT>(value));
106 return *this;
107 }
108 template <typename TagsT = Tag>
110 m_tagsHasBeenSet = true;
111 m_tags.emplace_back(std::forward<TagsT>(value));
112 return *this;
113 }
115
117
128 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
129 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
130 template <typename ClientRequestTokenT = Aws::String>
131 void SetClientRequestToken(ClientRequestTokenT&& value) {
132 m_clientRequestTokenHasBeenSet = true;
133 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
134 }
135 template <typename ClientRequestTokenT = Aws::String>
137 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_name;
143
144 Aws::String m_description;
145
146 LoRaWANGateway m_loRaWAN;
147
148 Aws::Vector<Tag> m_tags;
149
150 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
151 bool m_nameHasBeenSet = false;
152 bool m_descriptionHasBeenSet = false;
153 bool m_loRaWANHasBeenSet = false;
154 bool m_tagsHasBeenSet = false;
155 bool m_clientRequestTokenHasBeenSet = true;
156};
157
158} // namespace Model
159} // namespace IoTWireless
160} // namespace Aws
CreateWirelessGatewayRequest & WithName(NameT &&value)
AWS_IOTWIRELESS_API CreateWirelessGatewayRequest()=default
AWS_IOTWIRELESS_API Aws::String SerializePayload() const override
CreateWirelessGatewayRequest & WithTags(TagsT &&value)
CreateWirelessGatewayRequest & WithLoRaWAN(LoRaWANT &&value)
CreateWirelessGatewayRequest & WithClientRequestToken(ClientRequestTokenT &&value)
CreateWirelessGatewayRequest & WithDescription(DescriptionT &&value)
CreateWirelessGatewayRequest & AddTags(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