AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeDeviceResult.h
1
6#pragma once
7#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/snow-device-management/model/UnlockState.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/snow-device-management/model/SoftwareInformation.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/snow-device-management/model/Capacity.h>
15#include <aws/snow-device-management/model/PhysicalNetworkInterface.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace SnowDeviceManagement
31{
32namespace Model
33{
35 {
36 public:
37 AWS_SNOWDEVICEMANAGEMENT_API DescribeDeviceResult() = default;
40
41
43
46 inline const Aws::String& GetAssociatedWithJob() const { return m_associatedWithJob; }
47 template<typename AssociatedWithJobT = Aws::String>
48 void SetAssociatedWithJob(AssociatedWithJobT&& value) { m_associatedWithJobHasBeenSet = true; m_associatedWithJob = std::forward<AssociatedWithJobT>(value); }
49 template<typename AssociatedWithJobT = Aws::String>
50 DescribeDeviceResult& WithAssociatedWithJob(AssociatedWithJobT&& value) { SetAssociatedWithJob(std::forward<AssociatedWithJobT>(value)); return *this;}
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) { m_deviceCapacitiesHasBeenSet = true; m_deviceCapacities = std::forward<DeviceCapacitiesT>(value); }
60 template<typename DeviceCapacitiesT = Aws::Vector<Capacity>>
61 DescribeDeviceResult& WithDeviceCapacities(DeviceCapacitiesT&& value) { SetDeviceCapacities(std::forward<DeviceCapacitiesT>(value)); return *this;}
62 template<typename DeviceCapacitiesT = Capacity>
63 DescribeDeviceResult& AddDeviceCapacities(DeviceCapacitiesT&& value) { m_deviceCapacitiesHasBeenSet = true; m_deviceCapacities.emplace_back(std::forward<DeviceCapacitiesT>(value)); return *this; }
65
67
70 inline UnlockState GetDeviceState() const { return m_deviceState; }
71 inline void SetDeviceState(UnlockState value) { m_deviceStateHasBeenSet = true; m_deviceState = value; }
72 inline DescribeDeviceResult& WithDeviceState(UnlockState value) { SetDeviceState(value); return *this;}
74
76
79 inline const Aws::String& GetDeviceType() const { return m_deviceType; }
80 template<typename DeviceTypeT = Aws::String>
81 void SetDeviceType(DeviceTypeT&& value) { m_deviceTypeHasBeenSet = true; m_deviceType = std::forward<DeviceTypeT>(value); }
82 template<typename DeviceTypeT = Aws::String>
83 DescribeDeviceResult& WithDeviceType(DeviceTypeT&& value) { SetDeviceType(std::forward<DeviceTypeT>(value)); return *this;}
85
87
91 inline const Aws::Utils::DateTime& GetLastReachedOutAt() const { return m_lastReachedOutAt; }
92 template<typename LastReachedOutAtT = Aws::Utils::DateTime>
93 void SetLastReachedOutAt(LastReachedOutAtT&& value) { m_lastReachedOutAtHasBeenSet = true; m_lastReachedOutAt = std::forward<LastReachedOutAtT>(value); }
94 template<typename LastReachedOutAtT = Aws::Utils::DateTime>
95 DescribeDeviceResult& WithLastReachedOutAt(LastReachedOutAtT&& value) { SetLastReachedOutAt(std::forward<LastReachedOutAtT>(value)); return *this;}
97
99
103 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
104 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
105 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
106 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
107 DescribeDeviceResult& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
109
111
114 inline const Aws::String& GetManagedDeviceArn() const { return m_managedDeviceArn; }
115 template<typename ManagedDeviceArnT = Aws::String>
116 void SetManagedDeviceArn(ManagedDeviceArnT&& value) { m_managedDeviceArnHasBeenSet = true; m_managedDeviceArn = std::forward<ManagedDeviceArnT>(value); }
117 template<typename ManagedDeviceArnT = Aws::String>
118 DescribeDeviceResult& WithManagedDeviceArn(ManagedDeviceArnT&& value) { SetManagedDeviceArn(std::forward<ManagedDeviceArnT>(value)); return *this;}
120
122
125 inline const Aws::String& GetManagedDeviceId() const { return m_managedDeviceId; }
126 template<typename ManagedDeviceIdT = Aws::String>
127 void SetManagedDeviceId(ManagedDeviceIdT&& value) { m_managedDeviceIdHasBeenSet = true; m_managedDeviceId = std::forward<ManagedDeviceIdT>(value); }
128 template<typename ManagedDeviceIdT = Aws::String>
129 DescribeDeviceResult& WithManagedDeviceId(ManagedDeviceIdT&& value) { SetManagedDeviceId(std::forward<ManagedDeviceIdT>(value)); return *this;}
131
133
136 inline const Aws::Vector<PhysicalNetworkInterface>& GetPhysicalNetworkInterfaces() const { return m_physicalNetworkInterfaces; }
137 template<typename PhysicalNetworkInterfacesT = Aws::Vector<PhysicalNetworkInterface>>
138 void SetPhysicalNetworkInterfaces(PhysicalNetworkInterfacesT&& value) { m_physicalNetworkInterfacesHasBeenSet = true; m_physicalNetworkInterfaces = std::forward<PhysicalNetworkInterfacesT>(value); }
139 template<typename PhysicalNetworkInterfacesT = Aws::Vector<PhysicalNetworkInterface>>
140 DescribeDeviceResult& WithPhysicalNetworkInterfaces(PhysicalNetworkInterfacesT&& value) { SetPhysicalNetworkInterfaces(std::forward<PhysicalNetworkInterfacesT>(value)); return *this;}
141 template<typename PhysicalNetworkInterfacesT = PhysicalNetworkInterface>
142 DescribeDeviceResult& AddPhysicalNetworkInterfaces(PhysicalNetworkInterfacesT&& value) { m_physicalNetworkInterfacesHasBeenSet = true; m_physicalNetworkInterfaces.emplace_back(std::forward<PhysicalNetworkInterfacesT>(value)); return *this; }
144
146
149 inline const SoftwareInformation& GetSoftware() const { return m_software; }
150 template<typename SoftwareT = SoftwareInformation>
151 void SetSoftware(SoftwareT&& value) { m_softwareHasBeenSet = true; m_software = std::forward<SoftwareT>(value); }
152 template<typename SoftwareT = SoftwareInformation>
153 DescribeDeviceResult& WithSoftware(SoftwareT&& value) { SetSoftware(std::forward<SoftwareT>(value)); return *this;}
155
157
162 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
163 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
164 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
165 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
166 DescribeDeviceResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
167 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
168 DescribeDeviceResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
169 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
170 }
172
174
175 inline const Aws::String& GetRequestId() const { return m_requestId; }
176 template<typename RequestIdT = Aws::String>
177 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
178 template<typename RequestIdT = Aws::String>
179 DescribeDeviceResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
181 private:
182
183 Aws::String m_associatedWithJob;
184 bool m_associatedWithJobHasBeenSet = false;
185
186 Aws::Vector<Capacity> m_deviceCapacities;
187 bool m_deviceCapacitiesHasBeenSet = false;
188
189 UnlockState m_deviceState{UnlockState::NOT_SET};
190 bool m_deviceStateHasBeenSet = false;
191
192 Aws::String m_deviceType;
193 bool m_deviceTypeHasBeenSet = false;
194
195 Aws::Utils::DateTime m_lastReachedOutAt{};
196 bool m_lastReachedOutAtHasBeenSet = false;
197
198 Aws::Utils::DateTime m_lastUpdatedAt{};
199 bool m_lastUpdatedAtHasBeenSet = false;
200
201 Aws::String m_managedDeviceArn;
202 bool m_managedDeviceArnHasBeenSet = false;
203
204 Aws::String m_managedDeviceId;
205 bool m_managedDeviceIdHasBeenSet = false;
206
207 Aws::Vector<PhysicalNetworkInterface> m_physicalNetworkInterfaces;
208 bool m_physicalNetworkInterfacesHasBeenSet = false;
209
210 SoftwareInformation m_software;
211 bool m_softwareHasBeenSet = false;
212
214 bool m_tagsHasBeenSet = false;
215
216 Aws::String m_requestId;
217 bool m_requestIdHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace SnowDeviceManagement
222} // 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)
const Aws::Utils::DateTime & GetLastReachedOutAt() const
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