AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DescribeDeviceResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
12#include <aws/snow-device-management/model/Capacity.h>
13#include <aws/snow-device-management/model/PhysicalNetworkInterface.h>
14#include <aws/snow-device-management/model/SoftwareInformation.h>
15#include <aws/snow-device-management/model/UnlockState.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace SnowDeviceManagement {
29namespace Model {
31 public:
32 AWS_SNOWDEVICEMANAGEMENT_API DescribeDeviceResult() = default;
35
37
40 inline const Aws::String& GetAssociatedWithJob() const { return m_associatedWithJob; }
41 template <typename AssociatedWithJobT = Aws::String>
42 void SetAssociatedWithJob(AssociatedWithJobT&& value) {
43 m_associatedWithJobHasBeenSet = true;
44 m_associatedWithJob = std::forward<AssociatedWithJobT>(value);
45 }
46 template <typename AssociatedWithJobT = Aws::String>
47 DescribeDeviceResult& WithAssociatedWithJob(AssociatedWithJobT&& value) {
48 SetAssociatedWithJob(std::forward<AssociatedWithJobT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Capacity>& GetDeviceCapacities() const { return m_deviceCapacities; }
58 template <typename DeviceCapacitiesT = Aws::Vector<Capacity>>
59 void SetDeviceCapacities(DeviceCapacitiesT&& value) {
60 m_deviceCapacitiesHasBeenSet = true;
61 m_deviceCapacities = std::forward<DeviceCapacitiesT>(value);
62 }
63 template <typename DeviceCapacitiesT = Aws::Vector<Capacity>>
64 DescribeDeviceResult& WithDeviceCapacities(DeviceCapacitiesT&& value) {
65 SetDeviceCapacities(std::forward<DeviceCapacitiesT>(value));
66 return *this;
67 }
68 template <typename DeviceCapacitiesT = Capacity>
69 DescribeDeviceResult& AddDeviceCapacities(DeviceCapacitiesT&& value) {
70 m_deviceCapacitiesHasBeenSet = true;
71 m_deviceCapacities.emplace_back(std::forward<DeviceCapacitiesT>(value));
72 return *this;
73 }
75
77
80 inline UnlockState GetDeviceState() const { return m_deviceState; }
81 inline void SetDeviceState(UnlockState value) {
82 m_deviceStateHasBeenSet = true;
83 m_deviceState = value;
84 }
86 SetDeviceState(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDeviceType() const { return m_deviceType; }
96 template <typename DeviceTypeT = Aws::String>
97 void SetDeviceType(DeviceTypeT&& value) {
98 m_deviceTypeHasBeenSet = true;
99 m_deviceType = std::forward<DeviceTypeT>(value);
100 }
101 template <typename DeviceTypeT = Aws::String>
102 DescribeDeviceResult& WithDeviceType(DeviceTypeT&& value) {
103 SetDeviceType(std::forward<DeviceTypeT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::Utils::DateTime& GetLastReachedOutAt() const { return m_lastReachedOutAt; }
114 template <typename LastReachedOutAtT = Aws::Utils::DateTime>
115 void SetLastReachedOutAt(LastReachedOutAtT&& value) {
116 m_lastReachedOutAtHasBeenSet = true;
117 m_lastReachedOutAt = std::forward<LastReachedOutAtT>(value);
118 }
119 template <typename LastReachedOutAtT = Aws::Utils::DateTime>
120 DescribeDeviceResult& WithLastReachedOutAt(LastReachedOutAtT&& value) {
121 SetLastReachedOutAt(std::forward<LastReachedOutAtT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
132 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
133 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
134 m_lastUpdatedAtHasBeenSet = true;
135 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
136 }
137 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
138 DescribeDeviceResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
139 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetManagedDeviceArn() const { return m_managedDeviceArn; }
149 template <typename ManagedDeviceArnT = Aws::String>
150 void SetManagedDeviceArn(ManagedDeviceArnT&& value) {
151 m_managedDeviceArnHasBeenSet = true;
152 m_managedDeviceArn = std::forward<ManagedDeviceArnT>(value);
153 }
154 template <typename ManagedDeviceArnT = Aws::String>
155 DescribeDeviceResult& WithManagedDeviceArn(ManagedDeviceArnT&& value) {
156 SetManagedDeviceArn(std::forward<ManagedDeviceArnT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetManagedDeviceId() const { return m_managedDeviceId; }
166 template <typename ManagedDeviceIdT = Aws::String>
167 void SetManagedDeviceId(ManagedDeviceIdT&& value) {
168 m_managedDeviceIdHasBeenSet = true;
169 m_managedDeviceId = std::forward<ManagedDeviceIdT>(value);
170 }
171 template <typename ManagedDeviceIdT = Aws::String>
172 DescribeDeviceResult& WithManagedDeviceId(ManagedDeviceIdT&& value) {
173 SetManagedDeviceId(std::forward<ManagedDeviceIdT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::Vector<PhysicalNetworkInterface>& GetPhysicalNetworkInterfaces() const { return m_physicalNetworkInterfaces; }
183 template <typename PhysicalNetworkInterfacesT = Aws::Vector<PhysicalNetworkInterface>>
184 void SetPhysicalNetworkInterfaces(PhysicalNetworkInterfacesT&& value) {
185 m_physicalNetworkInterfacesHasBeenSet = true;
186 m_physicalNetworkInterfaces = std::forward<PhysicalNetworkInterfacesT>(value);
187 }
188 template <typename PhysicalNetworkInterfacesT = Aws::Vector<PhysicalNetworkInterface>>
189 DescribeDeviceResult& WithPhysicalNetworkInterfaces(PhysicalNetworkInterfacesT&& value) {
190 SetPhysicalNetworkInterfaces(std::forward<PhysicalNetworkInterfacesT>(value));
191 return *this;
192 }
193 template <typename PhysicalNetworkInterfacesT = PhysicalNetworkInterface>
194 DescribeDeviceResult& AddPhysicalNetworkInterfaces(PhysicalNetworkInterfacesT&& value) {
195 m_physicalNetworkInterfacesHasBeenSet = true;
196 m_physicalNetworkInterfaces.emplace_back(std::forward<PhysicalNetworkInterfacesT>(value));
197 return *this;
198 }
200
202
205 inline const SoftwareInformation& GetSoftware() const { return m_software; }
206 template <typename SoftwareT = SoftwareInformation>
207 void SetSoftware(SoftwareT&& value) {
208 m_softwareHasBeenSet = true;
209 m_software = std::forward<SoftwareT>(value);
210 }
211 template <typename SoftwareT = SoftwareInformation>
212 DescribeDeviceResult& WithSoftware(SoftwareT&& value) {
213 SetSoftware(std::forward<SoftwareT>(value));
214 return *this;
215 }
217
219
224 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
225 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
226 void SetTags(TagsT&& value) {
227 m_tagsHasBeenSet = true;
228 m_tags = std::forward<TagsT>(value);
229 }
230 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
232 SetTags(std::forward<TagsT>(value));
233 return *this;
234 }
235 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
236 DescribeDeviceResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
237 m_tagsHasBeenSet = true;
238 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
239 return *this;
240 }
242
244
245 inline const Aws::String& GetRequestId() const { return m_requestId; }
246 template <typename RequestIdT = Aws::String>
247 void SetRequestId(RequestIdT&& value) {
248 m_requestIdHasBeenSet = true;
249 m_requestId = std::forward<RequestIdT>(value);
250 }
251 template <typename RequestIdT = Aws::String>
252 DescribeDeviceResult& WithRequestId(RequestIdT&& value) {
253 SetRequestId(std::forward<RequestIdT>(value));
254 return *this;
255 }
257 private:
258 Aws::String m_associatedWithJob;
259
260 Aws::Vector<Capacity> m_deviceCapacities;
261
262 UnlockState m_deviceState{UnlockState::NOT_SET};
263
264 Aws::String m_deviceType;
265
266 Aws::Utils::DateTime m_lastReachedOutAt{};
267
268 Aws::Utils::DateTime m_lastUpdatedAt{};
269
270 Aws::String m_managedDeviceArn;
271
272 Aws::String m_managedDeviceId;
273
274 Aws::Vector<PhysicalNetworkInterface> m_physicalNetworkInterfaces;
275
276 SoftwareInformation m_software;
277
279
280 Aws::String m_requestId;
281 bool m_associatedWithJobHasBeenSet = false;
282 bool m_deviceCapacitiesHasBeenSet = false;
283 bool m_deviceStateHasBeenSet = false;
284 bool m_deviceTypeHasBeenSet = false;
285 bool m_lastReachedOutAtHasBeenSet = false;
286 bool m_lastUpdatedAtHasBeenSet = false;
287 bool m_managedDeviceArnHasBeenSet = false;
288 bool m_managedDeviceIdHasBeenSet = false;
289 bool m_physicalNetworkInterfacesHasBeenSet = false;
290 bool m_softwareHasBeenSet = false;
291 bool m_tagsHasBeenSet = false;
292 bool m_requestIdHasBeenSet = false;
293};
294
295} // namespace Model
296} // namespace SnowDeviceManagement
297} // 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