AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Device.h
1
6#pragma once
7#include <aws/panorama/Panorama_EXPORTS.h>
8#include <aws/panorama/model/DeviceBrand.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/panorama/model/DeviceAggregatedStatus.h>
12#include <aws/panorama/model/LatestDeviceJob.h>
13#include <aws/panorama/model/DeviceStatus.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/panorama/model/DeviceType.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Panorama
29{
30namespace Model
31{
32
38 class Device
39 {
40 public:
41 AWS_PANORAMA_API Device() = default;
42 AWS_PANORAMA_API Device(Aws::Utils::Json::JsonView jsonValue);
43 AWS_PANORAMA_API Device& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline DeviceBrand GetBrand() const { return m_brand; }
52 inline bool BrandHasBeenSet() const { return m_brandHasBeenSet; }
53 inline void SetBrand(DeviceBrand value) { m_brandHasBeenSet = true; m_brand = value; }
54 inline Device& WithBrand(DeviceBrand value) { SetBrand(value); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
62 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
63 template<typename CreatedTimeT = Aws::Utils::DateTime>
64 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
65 template<typename CreatedTimeT = Aws::Utils::DateTime>
66 Device& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
68
70
73 inline const Aws::String& GetCurrentSoftware() const { return m_currentSoftware; }
74 inline bool CurrentSoftwareHasBeenSet() const { return m_currentSoftwareHasBeenSet; }
75 template<typename CurrentSoftwareT = Aws::String>
76 void SetCurrentSoftware(CurrentSoftwareT&& value) { m_currentSoftwareHasBeenSet = true; m_currentSoftware = std::forward<CurrentSoftwareT>(value); }
77 template<typename CurrentSoftwareT = Aws::String>
78 Device& WithCurrentSoftware(CurrentSoftwareT&& value) { SetCurrentSoftware(std::forward<CurrentSoftwareT>(value)); return *this;}
80
82
85 inline const Aws::String& GetDescription() const { return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 template<typename DescriptionT = Aws::String>
88 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
89 template<typename DescriptionT = Aws::String>
90 Device& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
92
94
98 inline DeviceAggregatedStatus GetDeviceAggregatedStatus() const { return m_deviceAggregatedStatus; }
99 inline bool DeviceAggregatedStatusHasBeenSet() const { return m_deviceAggregatedStatusHasBeenSet; }
100 inline void SetDeviceAggregatedStatus(DeviceAggregatedStatus value) { m_deviceAggregatedStatusHasBeenSet = true; m_deviceAggregatedStatus = value; }
103
105
108 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
109 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
110 template<typename DeviceIdT = Aws::String>
111 void SetDeviceId(DeviceIdT&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::forward<DeviceIdT>(value); }
112 template<typename DeviceIdT = Aws::String>
113 Device& WithDeviceId(DeviceIdT&& value) { SetDeviceId(std::forward<DeviceIdT>(value)); return *this;}
115
117
120 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
121 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
122 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
123 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
124 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
125 Device& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
127
129
133 inline const LatestDeviceJob& GetLatestDeviceJob() const { return m_latestDeviceJob; }
134 inline bool LatestDeviceJobHasBeenSet() const { return m_latestDeviceJobHasBeenSet; }
135 template<typename LatestDeviceJobT = LatestDeviceJob>
136 void SetLatestDeviceJob(LatestDeviceJobT&& value) { m_latestDeviceJobHasBeenSet = true; m_latestDeviceJob = std::forward<LatestDeviceJobT>(value); }
137 template<typename LatestDeviceJobT = LatestDeviceJob>
138 Device& WithLatestDeviceJob(LatestDeviceJobT&& value) { SetLatestDeviceJob(std::forward<LatestDeviceJobT>(value)); return *this;}
140
142
145 inline const Aws::Utils::DateTime& GetLeaseExpirationTime() const { return m_leaseExpirationTime; }
146 inline bool LeaseExpirationTimeHasBeenSet() const { return m_leaseExpirationTimeHasBeenSet; }
147 template<typename LeaseExpirationTimeT = Aws::Utils::DateTime>
148 void SetLeaseExpirationTime(LeaseExpirationTimeT&& value) { m_leaseExpirationTimeHasBeenSet = true; m_leaseExpirationTime = std::forward<LeaseExpirationTimeT>(value); }
149 template<typename LeaseExpirationTimeT = Aws::Utils::DateTime>
150 Device& WithLeaseExpirationTime(LeaseExpirationTimeT&& value) { SetLeaseExpirationTime(std::forward<LeaseExpirationTimeT>(value)); return *this;}
152
154
157 inline const Aws::String& GetName() const { return m_name; }
158 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
159 template<typename NameT = Aws::String>
160 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
161 template<typename NameT = Aws::String>
162 Device& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
164
166
169 inline DeviceStatus GetProvisioningStatus() const { return m_provisioningStatus; }
170 inline bool ProvisioningStatusHasBeenSet() const { return m_provisioningStatusHasBeenSet; }
171 inline void SetProvisioningStatus(DeviceStatus value) { m_provisioningStatusHasBeenSet = true; m_provisioningStatus = value; }
172 inline Device& WithProvisioningStatus(DeviceStatus value) { SetProvisioningStatus(value); return *this;}
174
176
179 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
180 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
181 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
182 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
183 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
184 Device& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
185 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
186 Device& AddTags(TagsKeyT&& key, TagsValueT&& value) {
187 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
188 }
190
192
195 inline DeviceType GetType() const { return m_type; }
196 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
197 inline void SetType(DeviceType value) { m_typeHasBeenSet = true; m_type = value; }
198 inline Device& WithType(DeviceType value) { SetType(value); return *this;}
200 private:
201
203 bool m_brandHasBeenSet = false;
204
205 Aws::Utils::DateTime m_createdTime{};
206 bool m_createdTimeHasBeenSet = false;
207
208 Aws::String m_currentSoftware;
209 bool m_currentSoftwareHasBeenSet = false;
210
211 Aws::String m_description;
212 bool m_descriptionHasBeenSet = false;
213
215 bool m_deviceAggregatedStatusHasBeenSet = false;
216
217 Aws::String m_deviceId;
218 bool m_deviceIdHasBeenSet = false;
219
220 Aws::Utils::DateTime m_lastUpdatedTime{};
221 bool m_lastUpdatedTimeHasBeenSet = false;
222
223 LatestDeviceJob m_latestDeviceJob;
224 bool m_latestDeviceJobHasBeenSet = false;
225
226 Aws::Utils::DateTime m_leaseExpirationTime{};
227 bool m_leaseExpirationTimeHasBeenSet = false;
228
229 Aws::String m_name;
230 bool m_nameHasBeenSet = false;
231
232 DeviceStatus m_provisioningStatus{DeviceStatus::NOT_SET};
233 bool m_provisioningStatusHasBeenSet = false;
234
236 bool m_tagsHasBeenSet = false;
237
239 bool m_typeHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace Panorama
244} // namespace Aws
void SetCreatedTime(CreatedTimeT &&value)
Definition Device.h:64
bool DeviceIdHasBeenSet() const
Definition Device.h:109
Device & WithCurrentSoftware(CurrentSoftwareT &&value)
Definition Device.h:78
void SetBrand(DeviceBrand value)
Definition Device.h:53
bool LastUpdatedTimeHasBeenSet() const
Definition Device.h:121
void SetLeaseExpirationTime(LeaseExpirationTimeT &&value)
Definition Device.h:148
bool LatestDeviceJobHasBeenSet() const
Definition Device.h:134
Device & WithLatestDeviceJob(LatestDeviceJobT &&value)
Definition Device.h:138
DeviceBrand GetBrand() const
Definition Device.h:51
bool ProvisioningStatusHasBeenSet() const
Definition Device.h:170
Device & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Device.h:186
void SetProvisioningStatus(DeviceStatus value)
Definition Device.h:171
void SetDeviceId(DeviceIdT &&value)
Definition Device.h:111
void SetCurrentSoftware(CurrentSoftwareT &&value)
Definition Device.h:76
DeviceType GetType() const
Definition Device.h:195
void SetLatestDeviceJob(LatestDeviceJobT &&value)
Definition Device.h:136
bool TypeHasBeenSet() const
Definition Device.h:196
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Device.h:179
void SetTags(TagsT &&value)
Definition Device.h:182
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Device.h:123
DeviceStatus GetProvisioningStatus() const
Definition Device.h:169
bool DeviceAggregatedStatusHasBeenSet() const
Definition Device.h:99
bool DescriptionHasBeenSet() const
Definition Device.h:86
bool LeaseExpirationTimeHasBeenSet() const
Definition Device.h:146
bool CreatedTimeHasBeenSet() const
Definition Device.h:62
void SetName(NameT &&value)
Definition Device.h:160
void SetDeviceAggregatedStatus(DeviceAggregatedStatus value)
Definition Device.h:100
bool TagsHasBeenSet() const
Definition Device.h:180
const Aws::String & GetName() const
Definition Device.h:157
AWS_PANORAMA_API Device(Aws::Utils::Json::JsonView jsonValue)
Device & WithCreatedTime(CreatedTimeT &&value)
Definition Device.h:66
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Device.h:120
bool NameHasBeenSet() const
Definition Device.h:158
bool CurrentSoftwareHasBeenSet() const
Definition Device.h:74
Device & WithBrand(DeviceBrand value)
Definition Device.h:54
Device & WithLeaseExpirationTime(LeaseExpirationTimeT &&value)
Definition Device.h:150
Device & WithDeviceId(DeviceIdT &&value)
Definition Device.h:113
AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const
const LatestDeviceJob & GetLatestDeviceJob() const
Definition Device.h:133
bool BrandHasBeenSet() const
Definition Device.h:52
const Aws::String & GetDescription() const
Definition Device.h:85
Device & WithName(NameT &&value)
Definition Device.h:162
Device & WithDeviceAggregatedStatus(DeviceAggregatedStatus value)
Definition Device.h:101
void SetDescription(DescriptionT &&value)
Definition Device.h:88
AWS_PANORAMA_API Device()=default
Device & WithProvisioningStatus(DeviceStatus value)
Definition Device.h:172
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Device.h:61
DeviceAggregatedStatus GetDeviceAggregatedStatus() const
Definition Device.h:98
Device & WithType(DeviceType value)
Definition Device.h:198
AWS_PANORAMA_API Device & operator=(Aws::Utils::Json::JsonView jsonValue)
Device & WithTags(TagsT &&value)
Definition Device.h:184
void SetType(DeviceType value)
Definition Device.h:197
Device & WithDescription(DescriptionT &&value)
Definition Device.h:90
const Aws::String & GetDeviceId() const
Definition Device.h:108
Device & WithLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Device.h:125
const Aws::Utils::DateTime & GetLeaseExpirationTime() const
Definition Device.h:145
const Aws::String & GetCurrentSoftware() const
Definition Device.h:73
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
Aws::Utils::Json::JsonValue JsonValue