AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
GetDeviceDiscoveryResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
11#include <aws/iot-managed-integrations/model/DeviceDiscoveryStatus.h>
12#include <aws/iot-managed-integrations/model/DiscoveryType.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace IoTManagedIntegrations {
26namespace Model {
28 public:
29 AWS_IOTMANAGEDINTEGRATIONS_API GetDeviceDiscoveryResult() = default;
31 AWS_IOTMANAGEDINTEGRATIONS_API GetDeviceDiscoveryResult& operator=(
33
35
38 inline const Aws::String& GetId() const { return m_id; }
39 template <typename IdT = Aws::String>
40 void SetId(IdT&& value) {
41 m_idHasBeenSet = true;
42 m_id = std::forward<IdT>(value);
43 }
44 template <typename IdT = Aws::String>
46 SetId(std::forward<IdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetArn() const { return m_arn; }
56 template <typename ArnT = Aws::String>
57 void SetArn(ArnT&& value) {
58 m_arnHasBeenSet = true;
59 m_arn = std::forward<ArnT>(value);
60 }
61 template <typename ArnT = Aws::String>
63 SetArn(std::forward<ArnT>(value));
64 return *this;
65 }
67
69
73 inline DiscoveryType GetDiscoveryType() const { return m_discoveryType; }
74 inline void SetDiscoveryType(DiscoveryType value) {
75 m_discoveryTypeHasBeenSet = true;
76 m_discoveryType = value;
77 }
79 SetDiscoveryType(value);
80 return *this;
81 }
83
85
88 inline DeviceDiscoveryStatus GetStatus() const { return m_status; }
89 inline void SetStatus(DeviceDiscoveryStatus value) {
90 m_statusHasBeenSet = true;
91 m_status = value;
92 }
94 SetStatus(value);
95 return *this;
96 }
98
100
103 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
104 template <typename StartedAtT = Aws::Utils::DateTime>
105 void SetStartedAt(StartedAtT&& value) {
106 m_startedAtHasBeenSet = true;
107 m_startedAt = std::forward<StartedAtT>(value);
108 }
109 template <typename StartedAtT = Aws::Utils::DateTime>
111 SetStartedAt(std::forward<StartedAtT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetControllerId() const { return m_controllerId; }
121 template <typename ControllerIdT = Aws::String>
122 void SetControllerId(ControllerIdT&& value) {
123 m_controllerIdHasBeenSet = true;
124 m_controllerId = std::forward<ControllerIdT>(value);
125 }
126 template <typename ControllerIdT = Aws::String>
128 SetControllerId(std::forward<ControllerIdT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetAccountAssociationId() const { return m_accountAssociationId; }
138 template <typename AccountAssociationIdT = Aws::String>
139 void SetAccountAssociationId(AccountAssociationIdT&& value) {
140 m_accountAssociationIdHasBeenSet = true;
141 m_accountAssociationId = std::forward<AccountAssociationIdT>(value);
142 }
143 template <typename AccountAssociationIdT = Aws::String>
144 GetDeviceDiscoveryResult& WithAccountAssociationId(AccountAssociationIdT&& value) {
145 SetAccountAssociationId(std::forward<AccountAssociationIdT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::Utils::DateTime& GetFinishedAt() const { return m_finishedAt; }
155 template <typename FinishedAtT = Aws::Utils::DateTime>
156 void SetFinishedAt(FinishedAtT&& value) {
157 m_finishedAtHasBeenSet = true;
158 m_finishedAt = std::forward<FinishedAtT>(value);
159 }
160 template <typename FinishedAtT = Aws::Utils::DateTime>
162 SetFinishedAt(std::forward<FinishedAtT>(value));
163 return *this;
164 }
166
168
169 inline const Aws::String& GetRequestId() const { return m_requestId; }
170 template <typename RequestIdT = Aws::String>
171 void SetRequestId(RequestIdT&& value) {
172 m_requestIdHasBeenSet = true;
173 m_requestId = std::forward<RequestIdT>(value);
174 }
175 template <typename RequestIdT = Aws::String>
177 SetRequestId(std::forward<RequestIdT>(value));
178 return *this;
179 }
181 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
182
183 private:
184 Aws::String m_id;
185
186 Aws::String m_arn;
187
188 DiscoveryType m_discoveryType{DiscoveryType::NOT_SET};
189
191
192 Aws::Utils::DateTime m_startedAt{};
193
194 Aws::String m_controllerId;
195
196 Aws::String m_accountAssociationId;
197
198 Aws::Utils::DateTime m_finishedAt{};
199
200 Aws::String m_requestId;
201 Aws::Http::HttpResponseCode m_HttpResponseCode;
202 bool m_idHasBeenSet = false;
203 bool m_arnHasBeenSet = false;
204 bool m_discoveryTypeHasBeenSet = false;
205 bool m_statusHasBeenSet = false;
206 bool m_startedAtHasBeenSet = false;
207 bool m_controllerIdHasBeenSet = false;
208 bool m_accountAssociationIdHasBeenSet = false;
209 bool m_finishedAtHasBeenSet = false;
210 bool m_requestIdHasBeenSet = false;
211};
212
213} // namespace Model
214} // namespace IoTManagedIntegrations
215} // namespace Aws
AWS_IOTMANAGEDINTEGRATIONS_API GetDeviceDiscoveryResult()=default
GetDeviceDiscoveryResult & WithDiscoveryType(DiscoveryType value)
GetDeviceDiscoveryResult & WithControllerId(ControllerIdT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API GetDeviceDiscoveryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_IOTMANAGEDINTEGRATIONS_API GetDeviceDiscoveryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDeviceDiscoveryResult & WithStartedAt(StartedAtT &&value)
GetDeviceDiscoveryResult & WithFinishedAt(FinishedAtT &&value)
GetDeviceDiscoveryResult & WithRequestId(RequestIdT &&value)
GetDeviceDiscoveryResult & WithStatus(DeviceDiscoveryStatus value)
GetDeviceDiscoveryResult & WithAccountAssociationId(AccountAssociationIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue