AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
StartDeviceDiscoveryRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iot-managed-integrations/IoTManagedIntegrationsRequest.h>
11#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
12#include <aws/iot-managed-integrations/model/DiscoveryAuthMaterialType.h>
13#include <aws/iot-managed-integrations/model/DiscoveryType.h>
14#include <aws/iot-managed-integrations/model/ProtocolType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace IoTManagedIntegrations {
20namespace Model {
21
25 public:
26 AWS_IOTMANAGEDINTEGRATIONS_API StartDeviceDiscoveryRequest() = 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 "StartDeviceDiscovery"; }
33
34 AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override;
35
37
41 inline DiscoveryType GetDiscoveryType() const { return m_discoveryType; }
42 inline bool DiscoveryTypeHasBeenSet() const { return m_discoveryTypeHasBeenSet; }
43 inline void SetDiscoveryType(DiscoveryType value) {
44 m_discoveryTypeHasBeenSet = true;
45 m_discoveryType = value;
46 }
48 SetDiscoveryType(value);
49 return *this;
50 }
52
54
60 inline const Aws::Map<Aws::String, Aws::String>& GetCustomProtocolDetail() const { return m_customProtocolDetail; }
61 inline bool CustomProtocolDetailHasBeenSet() const { return m_customProtocolDetailHasBeenSet; }
62 template <typename CustomProtocolDetailT = Aws::Map<Aws::String, Aws::String>>
63 void SetCustomProtocolDetail(CustomProtocolDetailT&& value) {
64 m_customProtocolDetailHasBeenSet = true;
65 m_customProtocolDetail = std::forward<CustomProtocolDetailT>(value);
66 }
67 template <typename CustomProtocolDetailT = Aws::Map<Aws::String, Aws::String>>
68 StartDeviceDiscoveryRequest& WithCustomProtocolDetail(CustomProtocolDetailT&& value) {
69 SetCustomProtocolDetail(std::forward<CustomProtocolDetailT>(value));
70 return *this;
71 }
72 template <typename CustomProtocolDetailKeyT = Aws::String, typename CustomProtocolDetailValueT = Aws::String>
73 StartDeviceDiscoveryRequest& AddCustomProtocolDetail(CustomProtocolDetailKeyT&& key, CustomProtocolDetailValueT&& value) {
74 m_customProtocolDetailHasBeenSet = true;
75 m_customProtocolDetail.emplace(std::forward<CustomProtocolDetailKeyT>(key), std::forward<CustomProtocolDetailValueT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetControllerIdentifier() const { return m_controllerIdentifier; }
85 inline bool ControllerIdentifierHasBeenSet() const { return m_controllerIdentifierHasBeenSet; }
86 template <typename ControllerIdentifierT = Aws::String>
87 void SetControllerIdentifier(ControllerIdentifierT&& value) {
88 m_controllerIdentifierHasBeenSet = true;
89 m_controllerIdentifier = std::forward<ControllerIdentifierT>(value);
90 }
91 template <typename ControllerIdentifierT = Aws::String>
92 StartDeviceDiscoveryRequest& WithControllerIdentifier(ControllerIdentifierT&& value) {
93 SetControllerIdentifier(std::forward<ControllerIdentifierT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetAccountAssociationId() const { return m_accountAssociationId; }
104 inline bool AccountAssociationIdHasBeenSet() const { return m_accountAssociationIdHasBeenSet; }
105 template <typename AccountAssociationIdT = Aws::String>
106 void SetAccountAssociationId(AccountAssociationIdT&& value) {
107 m_accountAssociationIdHasBeenSet = true;
108 m_accountAssociationId = std::forward<AccountAssociationIdT>(value);
109 }
110 template <typename AccountAssociationIdT = Aws::String>
112 SetAccountAssociationId(std::forward<AccountAssociationIdT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetAuthenticationMaterial() const { return m_authenticationMaterial; }
123 inline bool AuthenticationMaterialHasBeenSet() const { return m_authenticationMaterialHasBeenSet; }
124 template <typename AuthenticationMaterialT = Aws::String>
125 void SetAuthenticationMaterial(AuthenticationMaterialT&& value) {
126 m_authenticationMaterialHasBeenSet = true;
127 m_authenticationMaterial = std::forward<AuthenticationMaterialT>(value);
128 }
129 template <typename AuthenticationMaterialT = Aws::String>
130 StartDeviceDiscoveryRequest& WithAuthenticationMaterial(AuthenticationMaterialT&& value) {
131 SetAuthenticationMaterial(std::forward<AuthenticationMaterialT>(value));
132 return *this;
133 }
135
137
140 inline DiscoveryAuthMaterialType GetAuthenticationMaterialType() const { return m_authenticationMaterialType; }
141 inline bool AuthenticationMaterialTypeHasBeenSet() const { return m_authenticationMaterialTypeHasBeenSet; }
143 m_authenticationMaterialTypeHasBeenSet = true;
144 m_authenticationMaterialType = value;
145 }
151
153
158 inline const Aws::String& GetClientToken() const { return m_clientToken; }
159 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
160 template <typename ClientTokenT = Aws::String>
161 void SetClientToken(ClientTokenT&& value) {
162 m_clientTokenHasBeenSet = true;
163 m_clientToken = std::forward<ClientTokenT>(value);
164 }
165 template <typename ClientTokenT = Aws::String>
167 SetClientToken(std::forward<ClientTokenT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::Vector<Aws::String>& GetConnectorDeviceIdList() const { return m_connectorDeviceIdList; }
177 inline bool ConnectorDeviceIdListHasBeenSet() const { return m_connectorDeviceIdListHasBeenSet; }
178 template <typename ConnectorDeviceIdListT = Aws::Vector<Aws::String>>
179 void SetConnectorDeviceIdList(ConnectorDeviceIdListT&& value) {
180 m_connectorDeviceIdListHasBeenSet = true;
181 m_connectorDeviceIdList = std::forward<ConnectorDeviceIdListT>(value);
182 }
183 template <typename ConnectorDeviceIdListT = Aws::Vector<Aws::String>>
185 SetConnectorDeviceIdList(std::forward<ConnectorDeviceIdListT>(value));
186 return *this;
187 }
188 template <typename ConnectorDeviceIdListT = Aws::String>
189 StartDeviceDiscoveryRequest& AddConnectorDeviceIdList(ConnectorDeviceIdListT&& value) {
190 m_connectorDeviceIdListHasBeenSet = true;
191 m_connectorDeviceIdList.emplace_back(std::forward<ConnectorDeviceIdListT>(value));
192 return *this;
193 }
195
197
202 inline ProtocolType GetProtocol() const { return m_protocol; }
203 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
204 inline void SetProtocol(ProtocolType value) {
205 m_protocolHasBeenSet = true;
206 m_protocol = value;
207 }
209 SetProtocol(value);
210 return *this;
211 }
213
215
220 inline const Aws::String& GetEndDeviceIdentifier() const { return m_endDeviceIdentifier; }
221 inline bool EndDeviceIdentifierHasBeenSet() const { return m_endDeviceIdentifierHasBeenSet; }
222 template <typename EndDeviceIdentifierT = Aws::String>
223 void SetEndDeviceIdentifier(EndDeviceIdentifierT&& value) {
224 m_endDeviceIdentifierHasBeenSet = true;
225 m_endDeviceIdentifier = std::forward<EndDeviceIdentifierT>(value);
226 }
227 template <typename EndDeviceIdentifierT = Aws::String>
229 SetEndDeviceIdentifier(std::forward<EndDeviceIdentifierT>(value));
230 return *this;
231 }
233 private:
234 DiscoveryType m_discoveryType{DiscoveryType::NOT_SET};
235
236 Aws::Map<Aws::String, Aws::String> m_customProtocolDetail;
237
238 Aws::String m_controllerIdentifier;
239
240 Aws::String m_accountAssociationId;
241
242 Aws::String m_authenticationMaterial;
243
245
246 Aws::String m_clientToken;
247
248 Aws::Vector<Aws::String> m_connectorDeviceIdList;
249
251
252 Aws::String m_endDeviceIdentifier;
253 bool m_discoveryTypeHasBeenSet = false;
254 bool m_customProtocolDetailHasBeenSet = false;
255 bool m_controllerIdentifierHasBeenSet = false;
256 bool m_accountAssociationIdHasBeenSet = false;
257 bool m_authenticationMaterialHasBeenSet = false;
258 bool m_authenticationMaterialTypeHasBeenSet = false;
259 bool m_clientTokenHasBeenSet = false;
260 bool m_connectorDeviceIdListHasBeenSet = false;
261 bool m_protocolHasBeenSet = false;
262 bool m_endDeviceIdentifierHasBeenSet = false;
263};
264
265} // namespace Model
266} // namespace IoTManagedIntegrations
267} // namespace Aws
StartDeviceDiscoveryRequest & WithAuthenticationMaterialType(DiscoveryAuthMaterialType value)
StartDeviceDiscoveryRequest & WithControllerIdentifier(ControllerIdentifierT &&value)
StartDeviceDiscoveryRequest & WithEndDeviceIdentifier(EndDeviceIdentifierT &&value)
StartDeviceDiscoveryRequest & AddCustomProtocolDetail(CustomProtocolDetailKeyT &&key, CustomProtocolDetailValueT &&value)
StartDeviceDiscoveryRequest & WithCustomProtocolDetail(CustomProtocolDetailT &&value)
StartDeviceDiscoveryRequest & WithDiscoveryType(DiscoveryType value)
AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override
StartDeviceDiscoveryRequest & WithAuthenticationMaterial(AuthenticationMaterialT &&value)
StartDeviceDiscoveryRequest & WithClientToken(ClientTokenT &&value)
StartDeviceDiscoveryRequest & AddConnectorDeviceIdList(ConnectorDeviceIdListT &&value)
StartDeviceDiscoveryRequest & WithAccountAssociationId(AccountAssociationIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomProtocolDetail() const
StartDeviceDiscoveryRequest & WithConnectorDeviceIdList(ConnectorDeviceIdListT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API StartDeviceDiscoveryRequest()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector