AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
StartDeviceDiscoveryRequest.h
1
6#pragma once
7#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
8#include <aws/iot-managed-integrations/IoTManagedIntegrationsRequest.h>
9#include <aws/iot-managed-integrations/model/DiscoveryType.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/iot-managed-integrations/model/DiscoveryAuthMaterialType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace IoTManagedIntegrations
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_IOTMANAGEDINTEGRATIONS_API StartDeviceDiscoveryRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartDeviceDiscovery"; }
34
35 AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override;
36
37
39
43 inline DiscoveryType GetDiscoveryType() const { return m_discoveryType; }
44 inline bool DiscoveryTypeHasBeenSet() const { return m_discoveryTypeHasBeenSet; }
45 inline void SetDiscoveryType(DiscoveryType value) { m_discoveryTypeHasBeenSet = true; m_discoveryType = value; }
48
50
56 inline const Aws::Map<Aws::String, Aws::String>& GetCustomProtocolDetail() const { return m_customProtocolDetail; }
57 inline bool CustomProtocolDetailHasBeenSet() const { return m_customProtocolDetailHasBeenSet; }
58 template<typename CustomProtocolDetailT = Aws::Map<Aws::String, Aws::String>>
59 void SetCustomProtocolDetail(CustomProtocolDetailT&& value) { m_customProtocolDetailHasBeenSet = true; m_customProtocolDetail = std::forward<CustomProtocolDetailT>(value); }
60 template<typename CustomProtocolDetailT = Aws::Map<Aws::String, Aws::String>>
61 StartDeviceDiscoveryRequest& WithCustomProtocolDetail(CustomProtocolDetailT&& value) { SetCustomProtocolDetail(std::forward<CustomProtocolDetailT>(value)); return *this;}
62 template<typename CustomProtocolDetailKeyT = Aws::String, typename CustomProtocolDetailValueT = Aws::String>
63 StartDeviceDiscoveryRequest& AddCustomProtocolDetail(CustomProtocolDetailKeyT&& key, CustomProtocolDetailValueT&& value) {
64 m_customProtocolDetailHasBeenSet = true; m_customProtocolDetail.emplace(std::forward<CustomProtocolDetailKeyT>(key), std::forward<CustomProtocolDetailValueT>(value)); return *this;
65 }
67
69
72 inline const Aws::String& GetControllerIdentifier() const { return m_controllerIdentifier; }
73 inline bool ControllerIdentifierHasBeenSet() const { return m_controllerIdentifierHasBeenSet; }
74 template<typename ControllerIdentifierT = Aws::String>
75 void SetControllerIdentifier(ControllerIdentifierT&& value) { m_controllerIdentifierHasBeenSet = true; m_controllerIdentifier = std::forward<ControllerIdentifierT>(value); }
76 template<typename ControllerIdentifierT = Aws::String>
77 StartDeviceDiscoveryRequest& WithControllerIdentifier(ControllerIdentifierT&& value) { SetControllerIdentifier(std::forward<ControllerIdentifierT>(value)); return *this;}
79
81
85 inline const Aws::String& GetAccountAssociationId() const { return m_accountAssociationId; }
86 inline bool AccountAssociationIdHasBeenSet() const { return m_accountAssociationIdHasBeenSet; }
87 template<typename AccountAssociationIdT = Aws::String>
88 void SetAccountAssociationId(AccountAssociationIdT&& value) { m_accountAssociationIdHasBeenSet = true; m_accountAssociationId = std::forward<AccountAssociationIdT>(value); }
89 template<typename AccountAssociationIdT = Aws::String>
90 StartDeviceDiscoveryRequest& WithAccountAssociationId(AccountAssociationIdT&& value) { SetAccountAssociationId(std::forward<AccountAssociationIdT>(value)); return *this;}
92
94
98 inline const Aws::String& GetAuthenticationMaterial() const { return m_authenticationMaterial; }
99 inline bool AuthenticationMaterialHasBeenSet() const { return m_authenticationMaterialHasBeenSet; }
100 template<typename AuthenticationMaterialT = Aws::String>
101 void SetAuthenticationMaterial(AuthenticationMaterialT&& value) { m_authenticationMaterialHasBeenSet = true; m_authenticationMaterial = std::forward<AuthenticationMaterialT>(value); }
102 template<typename AuthenticationMaterialT = Aws::String>
103 StartDeviceDiscoveryRequest& WithAuthenticationMaterial(AuthenticationMaterialT&& value) { SetAuthenticationMaterial(std::forward<AuthenticationMaterialT>(value)); return *this;}
105
107
110 inline DiscoveryAuthMaterialType GetAuthenticationMaterialType() const { return m_authenticationMaterialType; }
111 inline bool AuthenticationMaterialTypeHasBeenSet() const { return m_authenticationMaterialTypeHasBeenSet; }
112 inline void SetAuthenticationMaterialType(DiscoveryAuthMaterialType value) { m_authenticationMaterialTypeHasBeenSet = true; m_authenticationMaterialType = value; }
115
117
122 inline const Aws::String& GetClientToken() const { return m_clientToken; }
123 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
124 template<typename ClientTokenT = Aws::String>
125 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
126 template<typename ClientTokenT = Aws::String>
127 StartDeviceDiscoveryRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
129 private:
130
131 DiscoveryType m_discoveryType{DiscoveryType::NOT_SET};
132 bool m_discoveryTypeHasBeenSet = false;
133
134 Aws::Map<Aws::String, Aws::String> m_customProtocolDetail;
135 bool m_customProtocolDetailHasBeenSet = false;
136
137 Aws::String m_controllerIdentifier;
138 bool m_controllerIdentifierHasBeenSet = false;
139
140 Aws::String m_accountAssociationId;
141 bool m_accountAssociationIdHasBeenSet = false;
142
143 Aws::String m_authenticationMaterial;
144 bool m_authenticationMaterialHasBeenSet = false;
145
147 bool m_authenticationMaterialTypeHasBeenSet = false;
148
149 Aws::String m_clientToken;
150 bool m_clientTokenHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace IoTManagedIntegrations
155} // namespace Aws
StartDeviceDiscoveryRequest & WithAuthenticationMaterialType(DiscoveryAuthMaterialType value)
StartDeviceDiscoveryRequest & WithControllerIdentifier(ControllerIdentifierT &&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 & WithAccountAssociationId(AccountAssociationIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomProtocolDetail() const
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