AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
DescribeDeviceResult.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
13#include <aws/snow-device-management/model/Capacity.h>
14#include <aws/snow-device-management/model/PhysicalNetworkInterface.h>
15#include <aws/snow-device-management/model/SoftwareInformation.h>
16#include <aws/snow-device-management/model/UnlockState.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace SnowDeviceManagement {
30namespace Model {
32 public:
33 AWS_SNOWDEVICEMANAGEMENT_API DescribeDeviceResult() = default;
36
38
41 inline const Aws::String& GetAssociatedWithJob() const { return m_associatedWithJob; }
42 template <typename AssociatedWithJobT = Aws::String>
43 void SetAssociatedWithJob(AssociatedWithJobT&& value) {
44 m_associatedWithJobHasBeenSet = true;
45 m_associatedWithJob = std::forward<AssociatedWithJobT>(value);
46 }
47 template <typename AssociatedWithJobT = Aws::String>
48 DescribeDeviceResult& WithAssociatedWithJob(AssociatedWithJobT&& value) {
49 SetAssociatedWithJob(std::forward<AssociatedWithJobT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Capacity>& GetDeviceCapacities() const { return m_deviceCapacities; }
59 template <typename DeviceCapacitiesT = Aws::Vector<Capacity>>
60 void SetDeviceCapacities(DeviceCapacitiesT&& value) {
61 m_deviceCapacitiesHasBeenSet = true;
62 m_deviceCapacities = std::forward<DeviceCapacitiesT>(value);
63 }
64 template <typename DeviceCapacitiesT = Aws::Vector<Capacity>>
65 DescribeDeviceResult& WithDeviceCapacities(DeviceCapacitiesT&& value) {
66 SetDeviceCapacities(std::forward<DeviceCapacitiesT>(value));
67 return *this;
68 }
69 template <typename DeviceCapacitiesT = Capacity>
70 DescribeDeviceResult& AddDeviceCapacities(DeviceCapacitiesT&& value) {
71 m_deviceCapacitiesHasBeenSet = true;
72 m_deviceCapacities.emplace_back(std::forward<DeviceCapacitiesT>(value));
73 return *this;
74 }
76
78
81 inline UnlockState GetDeviceState() const { return m_deviceState; }
82 inline void SetDeviceState(UnlockState value) {
83 m_deviceStateHasBeenSet = true;
84 m_deviceState = value;
85 }
87 SetDeviceState(value);
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDeviceType() const { return m_deviceType; }
97 template <typename DeviceTypeT = Aws::String>
98 void SetDeviceType(DeviceTypeT&& value) {
99 m_deviceTypeHasBeenSet = true;
100 m_deviceType = std::forward<DeviceTypeT>(value);
101 }
102 template <typename DeviceTypeT = Aws::String>
103 DescribeDeviceResult& WithDeviceType(DeviceTypeT&& value) {
104 SetDeviceType(std::forward<DeviceTypeT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Utils::DateTime& GetLastReachedOutAt() const { return m_lastReachedOutAt; }
115 template <typename LastReachedOutAtT = Aws::Utils::DateTime>
116 void SetLastReachedOutAt(LastReachedOutAtT&& value) {
117 m_lastReachedOutAtHasBeenSet = true;
118 m_lastReachedOutAt = std::forward<LastReachedOutAtT>(value);
119 }
120 template <typename LastReachedOutAtT = Aws::Utils::DateTime>
121 DescribeDeviceResult& WithLastReachedOutAt(LastReachedOutAtT&& value) {
122 SetLastReachedOutAt(std::forward<LastReachedOutAtT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
133 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
134 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
135 m_lastUpdatedAtHasBeenSet = true;
136 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
137 }
138 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
139 DescribeDeviceResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
140 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetManagedDeviceArn() const { return m_managedDeviceArn; }
150 template <typename ManagedDeviceArnT = Aws::String>
151 void SetManagedDeviceArn(ManagedDeviceArnT&& value) {
152 m_managedDeviceArnHasBeenSet = true;
153 m_managedDeviceArn = std::forward<ManagedDeviceArnT>(value);
154 }
155 template <typename ManagedDeviceArnT = Aws::String>
156 DescribeDeviceResult& WithManagedDeviceArn(ManagedDeviceArnT&& value) {
157 SetManagedDeviceArn(std::forward<ManagedDeviceArnT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetManagedDeviceId() const { return m_managedDeviceId; }
167 template <typename ManagedDeviceIdT = Aws::String>
168 void SetManagedDeviceId(ManagedDeviceIdT&& value) {
169 m_managedDeviceIdHasBeenSet = true;
170 m_managedDeviceId = std::forward<ManagedDeviceIdT>(value);
171 }
172 template <typename ManagedDeviceIdT = Aws::String>
173 DescribeDeviceResult& WithManagedDeviceId(ManagedDeviceIdT&& value) {
174 SetManagedDeviceId(std::forward<ManagedDeviceIdT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::Vector<PhysicalNetworkInterface>& GetPhysicalNetworkInterfaces() const { return m_physicalNetworkInterfaces; }
184 template <typename PhysicalNetworkInterfacesT = Aws::Vector<PhysicalNetworkInterface>>
185 void SetPhysicalNetworkInterfaces(PhysicalNetworkInterfacesT&& value) {
186 m_physicalNetworkInterfacesHasBeenSet = true;
187 m_physicalNetworkInterfaces = std::forward<PhysicalNetworkInterfacesT>(value);
188 }
189 template <typename PhysicalNetworkInterfacesT = Aws::Vector<PhysicalNetworkInterface>>
190 DescribeDeviceResult& WithPhysicalNetworkInterfaces(PhysicalNetworkInterfacesT&& value) {
191 SetPhysicalNetworkInterfaces(std::forward<PhysicalNetworkInterfacesT>(value));
192 return *this;
193 }
194 template <typename PhysicalNetworkInterfacesT = PhysicalNetworkInterface>
195 DescribeDeviceResult& AddPhysicalNetworkInterfaces(PhysicalNetworkInterfacesT&& value) {
196 m_physicalNetworkInterfacesHasBeenSet = true;
197 m_physicalNetworkInterfaces.emplace_back(std::forward<PhysicalNetworkInterfacesT>(value));
198 return *this;
199 }
201
203
206 inline const SoftwareInformation& GetSoftware() const { return m_software; }
207 template <typename SoftwareT = SoftwareInformation>
208 void SetSoftware(SoftwareT&& value) {
209 m_softwareHasBeenSet = true;
210 m_software = std::forward<SoftwareT>(value);
211 }
212 template <typename SoftwareT = SoftwareInformation>
213 DescribeDeviceResult& WithSoftware(SoftwareT&& value) {
214 SetSoftware(std::forward<SoftwareT>(value));
215 return *this;
216 }
218
220
225 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
226 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
227 void SetTags(TagsT&& value) {
228 m_tagsHasBeenSet = true;
229 m_tags = std::forward<TagsT>(value);
230 }
231 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
233 SetTags(std::forward<TagsT>(value));
234 return *this;
235 }
236 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
237 DescribeDeviceResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
238 m_tagsHasBeenSet = true;
239 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
240 return *this;
241 }
243
245
246 inline const Aws::String& GetRequestId() const { return m_requestId; }
247 template <typename RequestIdT = Aws::String>
248 void SetRequestId(RequestIdT&& value) {
249 m_requestIdHasBeenSet = true;
250 m_requestId = std::forward<RequestIdT>(value);
251 }
252 template <typename RequestIdT = Aws::String>
253 DescribeDeviceResult& WithRequestId(RequestIdT&& value) {
254 SetRequestId(std::forward<RequestIdT>(value));
255 return *this;
256 }
258 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
259
260 private:
261 Aws::String m_associatedWithJob;
262
263 Aws::Vector<Capacity> m_deviceCapacities;
264
265 UnlockState m_deviceState{UnlockState::NOT_SET};
266
267 Aws::String m_deviceType;
268
269 Aws::Utils::DateTime m_lastReachedOutAt{};
270
271 Aws::Utils::DateTime m_lastUpdatedAt{};
272
273 Aws::String m_managedDeviceArn;
274
275 Aws::String m_managedDeviceId;
276
277 Aws::Vector<PhysicalNetworkInterface> m_physicalNetworkInterfaces;
278
279 SoftwareInformation m_software;
280
282
283 Aws::String m_requestId;
284 Aws::Http::HttpResponseCode m_HttpResponseCode;
285 bool m_associatedWithJobHasBeenSet = false;
286 bool m_deviceCapacitiesHasBeenSet = false;
287 bool m_deviceStateHasBeenSet = false;
288 bool m_deviceTypeHasBeenSet = false;
289 bool m_lastReachedOutAtHasBeenSet = false;
290 bool m_lastUpdatedAtHasBeenSet = false;
291 bool m_managedDeviceArnHasBeenSet = false;
292 bool m_managedDeviceIdHasBeenSet = false;
293 bool m_physicalNetworkInterfacesHasBeenSet = false;
294 bool m_softwareHasBeenSet = false;
295 bool m_tagsHasBeenSet = false;
296 bool m_requestIdHasBeenSet = false;
297};
298
299} // namespace Model
300} // namespace SnowDeviceManagement
301} // namespace Aws
DescribeDeviceResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Vector< PhysicalNetworkInterface > & GetPhysicalNetworkInterfaces() const
DescribeDeviceResult & WithAssociatedWithJob(AssociatedWithJobT &&value)
AWS_SNOWDEVICEMANAGEMENT_API DescribeDeviceResult()=default
void SetPhysicalNetworkInterfaces(PhysicalNetworkInterfacesT &&value)
DescribeDeviceResult & WithManagedDeviceId(ManagedDeviceIdT &&value)
DescribeDeviceResult & WithManagedDeviceArn(ManagedDeviceArnT &&value)
AWS_SNOWDEVICEMANAGEMENT_API DescribeDeviceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeDeviceResult & AddDeviceCapacities(DeviceCapacitiesT &&value)
AWS_SNOWDEVICEMANAGEMENT_API DescribeDeviceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeDeviceResult & WithDeviceCapacities(DeviceCapacitiesT &&value)
const Aws::Vector< Capacity > & GetDeviceCapacities() const
DescribeDeviceResult & WithSoftware(SoftwareT &&value)
DescribeDeviceResult & AddPhysicalNetworkInterfaces(PhysicalNetworkInterfacesT &&value)
DescribeDeviceResult & WithPhysicalNetworkInterfaces(PhysicalNetworkInterfacesT &&value)
DescribeDeviceResult & WithLastReachedOutAt(LastReachedOutAtT &&value)
DescribeDeviceResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
DescribeDeviceResult & WithRequestId(RequestIdT &&value)
DescribeDeviceResult & WithDeviceType(DeviceTypeT &&value)
DescribeDeviceResult & WithDeviceState(UnlockState value)
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
Aws::Utils::Json::JsonValue JsonValue