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/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/networkmanager/model/AWSLocation.h>
10#include <aws/networkmanager/model/Location.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/networkmanager/model/DeviceState.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/networkmanager/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace NetworkManager
28{
29namespace Model
30{
31
37 class Device
38 {
39 public:
40 AWS_NETWORKMANAGER_API Device() = default;
41 AWS_NETWORKMANAGER_API Device(Aws::Utils::Json::JsonView jsonValue);
42 AWS_NETWORKMANAGER_API Device& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
51 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
52 template<typename DeviceIdT = Aws::String>
53 void SetDeviceId(DeviceIdT&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::forward<DeviceIdT>(value); }
54 template<typename DeviceIdT = Aws::String>
55 Device& WithDeviceId(DeviceIdT&& value) { SetDeviceId(std::forward<DeviceIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetDeviceArn() const { return m_deviceArn; }
63 inline bool DeviceArnHasBeenSet() const { return m_deviceArnHasBeenSet; }
64 template<typename DeviceArnT = Aws::String>
65 void SetDeviceArn(DeviceArnT&& value) { m_deviceArnHasBeenSet = true; m_deviceArn = std::forward<DeviceArnT>(value); }
66 template<typename DeviceArnT = Aws::String>
67 Device& WithDeviceArn(DeviceArnT&& value) { SetDeviceArn(std::forward<DeviceArnT>(value)); return *this;}
69
71
74 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
75 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
76 template<typename GlobalNetworkIdT = Aws::String>
77 void SetGlobalNetworkId(GlobalNetworkIdT&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::forward<GlobalNetworkIdT>(value); }
78 template<typename GlobalNetworkIdT = Aws::String>
79 Device& WithGlobalNetworkId(GlobalNetworkIdT&& value) { SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value)); return *this;}
81
83
86 inline const AWSLocation& GetAWSLocation() const { return m_aWSLocation; }
87 inline bool AWSLocationHasBeenSet() const { return m_aWSLocationHasBeenSet; }
88 template<typename AWSLocationT = AWSLocation>
89 void SetAWSLocation(AWSLocationT&& value) { m_aWSLocationHasBeenSet = true; m_aWSLocation = std::forward<AWSLocationT>(value); }
90 template<typename AWSLocationT = AWSLocation>
91 Device& WithAWSLocation(AWSLocationT&& value) { SetAWSLocation(std::forward<AWSLocationT>(value)); return *this;}
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 template<typename DescriptionT = Aws::String>
101 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
102 template<typename DescriptionT = Aws::String>
103 Device& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
105
107
110 inline const Aws::String& GetType() const { return m_type; }
111 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
112 template<typename TypeT = Aws::String>
113 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
114 template<typename TypeT = Aws::String>
115 Device& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
117
119
122 inline const Aws::String& GetVendor() const { return m_vendor; }
123 inline bool VendorHasBeenSet() const { return m_vendorHasBeenSet; }
124 template<typename VendorT = Aws::String>
125 void SetVendor(VendorT&& value) { m_vendorHasBeenSet = true; m_vendor = std::forward<VendorT>(value); }
126 template<typename VendorT = Aws::String>
127 Device& WithVendor(VendorT&& value) { SetVendor(std::forward<VendorT>(value)); return *this;}
129
131
134 inline const Aws::String& GetModel() const { return m_model; }
135 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
136 template<typename ModelT = Aws::String>
137 void SetModel(ModelT&& value) { m_modelHasBeenSet = true; m_model = std::forward<ModelT>(value); }
138 template<typename ModelT = Aws::String>
139 Device& WithModel(ModelT&& value) { SetModel(std::forward<ModelT>(value)); return *this;}
141
143
146 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
147 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
148 template<typename SerialNumberT = Aws::String>
149 void SetSerialNumber(SerialNumberT&& value) { m_serialNumberHasBeenSet = true; m_serialNumber = std::forward<SerialNumberT>(value); }
150 template<typename SerialNumberT = Aws::String>
151 Device& WithSerialNumber(SerialNumberT&& value) { SetSerialNumber(std::forward<SerialNumberT>(value)); return *this;}
153
155
158 inline const Location& GetLocation() const { return m_location; }
159 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
160 template<typename LocationT = Location>
161 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
162 template<typename LocationT = Location>
163 Device& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
165
167
170 inline const Aws::String& GetSiteId() const { return m_siteId; }
171 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
172 template<typename SiteIdT = Aws::String>
173 void SetSiteId(SiteIdT&& value) { m_siteIdHasBeenSet = true; m_siteId = std::forward<SiteIdT>(value); }
174 template<typename SiteIdT = Aws::String>
175 Device& WithSiteId(SiteIdT&& value) { SetSiteId(std::forward<SiteIdT>(value)); return *this;}
177
179
182 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
183 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
184 template<typename CreatedAtT = Aws::Utils::DateTime>
185 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
186 template<typename CreatedAtT = Aws::Utils::DateTime>
187 Device& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
189
191
194 inline DeviceState GetState() const { return m_state; }
195 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
196 inline void SetState(DeviceState value) { m_stateHasBeenSet = true; m_state = value; }
197 inline Device& WithState(DeviceState value) { SetState(value); return *this;}
199
201
204 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
205 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
206 template<typename TagsT = Aws::Vector<Tag>>
207 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
208 template<typename TagsT = Aws::Vector<Tag>>
209 Device& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
210 template<typename TagsT = Tag>
211 Device& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
213 private:
214
215 Aws::String m_deviceId;
216 bool m_deviceIdHasBeenSet = false;
217
218 Aws::String m_deviceArn;
219 bool m_deviceArnHasBeenSet = false;
220
221 Aws::String m_globalNetworkId;
222 bool m_globalNetworkIdHasBeenSet = false;
223
224 AWSLocation m_aWSLocation;
225 bool m_aWSLocationHasBeenSet = false;
226
227 Aws::String m_description;
228 bool m_descriptionHasBeenSet = false;
229
230 Aws::String m_type;
231 bool m_typeHasBeenSet = false;
232
233 Aws::String m_vendor;
234 bool m_vendorHasBeenSet = false;
235
236 Aws::String m_model;
237 bool m_modelHasBeenSet = false;
238
239 Aws::String m_serialNumber;
240 bool m_serialNumberHasBeenSet = false;
241
242 Location m_location;
243 bool m_locationHasBeenSet = false;
244
245 Aws::String m_siteId;
246 bool m_siteIdHasBeenSet = false;
247
248 Aws::Utils::DateTime m_createdAt{};
249 bool m_createdAtHasBeenSet = false;
250
252 bool m_stateHasBeenSet = false;
253
254 Aws::Vector<Tag> m_tags;
255 bool m_tagsHasBeenSet = false;
256 };
257
258} // namespace Model
259} // namespace NetworkManager
260} // namespace Aws
const Aws::String & GetVendor() const
Definition Device.h:122
const Aws::String & GetModel() const
Definition Device.h:134
const Aws::String & GetType() const
Definition Device.h:110
AWS_NETWORKMANAGER_API Device & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GlobalNetworkIdHasBeenSet() const
Definition Device.h:75
void SetDeviceArn(DeviceArnT &&value)
Definition Device.h:65
void SetAWSLocation(AWSLocationT &&value)
Definition Device.h:89
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
Device & AddTags(TagsT &&value)
Definition Device.h:211
const Location & GetLocation() const
Definition Device.h:158
void SetVendor(VendorT &&value)
Definition Device.h:125
void SetTags(TagsT &&value)
Definition Device.h:207
Device & WithCreatedAt(CreatedAtT &&value)
Definition Device.h:187
const Aws::Vector< Tag > & GetTags() const
Definition Device.h:204
Device & WithVendor(VendorT &&value)
Definition Device.h:127
void SetCreatedAt(CreatedAtT &&value)
Definition Device.h:185
const Aws::String & GetSiteId() const
Definition Device.h:170
void SetSiteId(SiteIdT &&value)
Definition Device.h:173
void SetLocation(LocationT &&value)
Definition Device.h:161
Device & WithType(TypeT &&value)
Definition Device.h:115
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Device.h:182
Device & WithTags(TagsT &&value)
Definition Device.h:209
Device & WithAWSLocation(AWSLocationT &&value)
Definition Device.h:91
const Aws::String & GetDescription() const
Definition Device.h:98
Device & WithModel(ModelT &&value)
Definition Device.h:139
void SetGlobalNetworkId(GlobalNetworkIdT &&value)
Definition Device.h:77
void SetSerialNumber(SerialNumberT &&value)
Definition Device.h:149
void SetState(DeviceState value)
Definition Device.h:196
AWS_NETWORKMANAGER_API Device(Aws::Utils::Json::JsonView jsonValue)
Device & WithState(DeviceState value)
Definition Device.h:197
AWS_NETWORKMANAGER_API Device()=default
void SetModel(ModelT &&value)
Definition Device.h:137
Device & WithDeviceId(DeviceIdT &&value)
Definition Device.h:55
Device & WithSerialNumber(SerialNumberT &&value)
Definition Device.h:151
const Aws::String & GetDeviceArn() const
Definition Device.h:62
const AWSLocation & GetAWSLocation() const
Definition Device.h:86
Device & WithDescription(DescriptionT &&value)
Definition Device.h:103
void SetType(TypeT &&value)
Definition Device.h:113
const Aws::String & GetDeviceId() const
Definition Device.h:50
const Aws::String & GetSerialNumber() const
Definition Device.h:146
Device & WithGlobalNetworkId(GlobalNetworkIdT &&value)
Definition Device.h:79
void SetDeviceId(DeviceIdT &&value)
Definition Device.h:53
const Aws::String & GetGlobalNetworkId() const
Definition Device.h:74
Device & WithDeviceArn(DeviceArnT &&value)
Definition Device.h:67
void SetDescription(DescriptionT &&value)
Definition Device.h:101
Device & WithSiteId(SiteIdT &&value)
Definition Device.h:175
Device & WithLocation(LocationT &&value)
Definition Device.h:163
DeviceState GetState() const
Definition Device.h:194
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue