AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
53 inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
54 inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
55 inline Device& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
56 inline Device& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
57 inline Device& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
59
61
64 inline const Aws::String& GetDeviceArn() const{ return m_deviceArn; }
65 inline bool DeviceArnHasBeenSet() const { return m_deviceArnHasBeenSet; }
66 inline void SetDeviceArn(const Aws::String& value) { m_deviceArnHasBeenSet = true; m_deviceArn = value; }
67 inline void SetDeviceArn(Aws::String&& value) { m_deviceArnHasBeenSet = true; m_deviceArn = std::move(value); }
68 inline void SetDeviceArn(const char* value) { m_deviceArnHasBeenSet = true; m_deviceArn.assign(value); }
69 inline Device& WithDeviceArn(const Aws::String& value) { SetDeviceArn(value); return *this;}
70 inline Device& WithDeviceArn(Aws::String&& value) { SetDeviceArn(std::move(value)); return *this;}
71 inline Device& WithDeviceArn(const char* value) { SetDeviceArn(value); return *this;}
73
75
78 inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; }
79 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
80 inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; }
81 inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); }
82 inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); }
83 inline Device& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;}
84 inline Device& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;}
85 inline Device& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;}
87
89
92 inline const AWSLocation& GetAWSLocation() const{ return m_aWSLocation; }
93 inline bool AWSLocationHasBeenSet() const { return m_aWSLocationHasBeenSet; }
94 inline void SetAWSLocation(const AWSLocation& value) { m_aWSLocationHasBeenSet = true; m_aWSLocation = value; }
95 inline void SetAWSLocation(AWSLocation&& value) { m_aWSLocationHasBeenSet = true; m_aWSLocation = std::move(value); }
96 inline Device& WithAWSLocation(const AWSLocation& value) { SetAWSLocation(value); return *this;}
97 inline Device& WithAWSLocation(AWSLocation&& value) { SetAWSLocation(std::move(value)); return *this;}
99
101
104 inline const Aws::String& GetDescription() const{ return m_description; }
105 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
106 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
107 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
108 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
109 inline Device& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
110 inline Device& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
111 inline Device& WithDescription(const char* value) { SetDescription(value); return *this;}
113
115
118 inline const Aws::String& GetType() const{ return m_type; }
119 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
120 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
121 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
122 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
123 inline Device& WithType(const Aws::String& value) { SetType(value); return *this;}
124 inline Device& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
125 inline Device& WithType(const char* value) { SetType(value); return *this;}
127
129
132 inline const Aws::String& GetVendor() const{ return m_vendor; }
133 inline bool VendorHasBeenSet() const { return m_vendorHasBeenSet; }
134 inline void SetVendor(const Aws::String& value) { m_vendorHasBeenSet = true; m_vendor = value; }
135 inline void SetVendor(Aws::String&& value) { m_vendorHasBeenSet = true; m_vendor = std::move(value); }
136 inline void SetVendor(const char* value) { m_vendorHasBeenSet = true; m_vendor.assign(value); }
137 inline Device& WithVendor(const Aws::String& value) { SetVendor(value); return *this;}
138 inline Device& WithVendor(Aws::String&& value) { SetVendor(std::move(value)); return *this;}
139 inline Device& WithVendor(const char* value) { SetVendor(value); return *this;}
141
143
146 inline const Aws::String& GetModel() const{ return m_model; }
147 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
148 inline void SetModel(const Aws::String& value) { m_modelHasBeenSet = true; m_model = value; }
149 inline void SetModel(Aws::String&& value) { m_modelHasBeenSet = true; m_model = std::move(value); }
150 inline void SetModel(const char* value) { m_modelHasBeenSet = true; m_model.assign(value); }
151 inline Device& WithModel(const Aws::String& value) { SetModel(value); return *this;}
152 inline Device& WithModel(Aws::String&& value) { SetModel(std::move(value)); return *this;}
153 inline Device& WithModel(const char* value) { SetModel(value); return *this;}
155
157
160 inline const Aws::String& GetSerialNumber() const{ return m_serialNumber; }
161 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
162 inline void SetSerialNumber(const Aws::String& value) { m_serialNumberHasBeenSet = true; m_serialNumber = value; }
163 inline void SetSerialNumber(Aws::String&& value) { m_serialNumberHasBeenSet = true; m_serialNumber = std::move(value); }
164 inline void SetSerialNumber(const char* value) { m_serialNumberHasBeenSet = true; m_serialNumber.assign(value); }
165 inline Device& WithSerialNumber(const Aws::String& value) { SetSerialNumber(value); return *this;}
166 inline Device& WithSerialNumber(Aws::String&& value) { SetSerialNumber(std::move(value)); return *this;}
167 inline Device& WithSerialNumber(const char* value) { SetSerialNumber(value); return *this;}
169
171
174 inline const Location& GetLocation() const{ return m_location; }
175 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
176 inline void SetLocation(const Location& value) { m_locationHasBeenSet = true; m_location = value; }
177 inline void SetLocation(Location&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
178 inline Device& WithLocation(const Location& value) { SetLocation(value); return *this;}
179 inline Device& WithLocation(Location&& value) { SetLocation(std::move(value)); return *this;}
181
183
186 inline const Aws::String& GetSiteId() const{ return m_siteId; }
187 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
188 inline void SetSiteId(const Aws::String& value) { m_siteIdHasBeenSet = true; m_siteId = value; }
189 inline void SetSiteId(Aws::String&& value) { m_siteIdHasBeenSet = true; m_siteId = std::move(value); }
190 inline void SetSiteId(const char* value) { m_siteIdHasBeenSet = true; m_siteId.assign(value); }
191 inline Device& WithSiteId(const Aws::String& value) { SetSiteId(value); return *this;}
192 inline Device& WithSiteId(Aws::String&& value) { SetSiteId(std::move(value)); return *this;}
193 inline Device& WithSiteId(const char* value) { SetSiteId(value); return *this;}
195
197
200 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
201 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
202 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
203 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
204 inline Device& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
205 inline Device& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
207
209
212 inline const DeviceState& GetState() const{ return m_state; }
213 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
214 inline void SetState(const DeviceState& value) { m_stateHasBeenSet = true; m_state = value; }
215 inline void SetState(DeviceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
216 inline Device& WithState(const DeviceState& value) { SetState(value); return *this;}
217 inline Device& WithState(DeviceState&& value) { SetState(std::move(value)); return *this;}
219
221
224 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
225 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
226 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
227 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
228 inline Device& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
229 inline Device& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
230 inline Device& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
231 inline Device& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
233 private:
234
235 Aws::String m_deviceId;
236 bool m_deviceIdHasBeenSet = false;
237
238 Aws::String m_deviceArn;
239 bool m_deviceArnHasBeenSet = false;
240
241 Aws::String m_globalNetworkId;
242 bool m_globalNetworkIdHasBeenSet = false;
243
244 AWSLocation m_aWSLocation;
245 bool m_aWSLocationHasBeenSet = false;
246
247 Aws::String m_description;
248 bool m_descriptionHasBeenSet = false;
249
250 Aws::String m_type;
251 bool m_typeHasBeenSet = false;
252
253 Aws::String m_vendor;
254 bool m_vendorHasBeenSet = false;
255
256 Aws::String m_model;
257 bool m_modelHasBeenSet = false;
258
259 Aws::String m_serialNumber;
260 bool m_serialNumberHasBeenSet = false;
261
262 Location m_location;
263 bool m_locationHasBeenSet = false;
264
265 Aws::String m_siteId;
266 bool m_siteIdHasBeenSet = false;
267
268 Aws::Utils::DateTime m_createdAt;
269 bool m_createdAtHasBeenSet = false;
270
271 DeviceState m_state;
272 bool m_stateHasBeenSet = false;
273
274 Aws::Vector<Tag> m_tags;
275 bool m_tagsHasBeenSet = false;
276 };
277
278} // namespace Model
279} // namespace NetworkManager
280} // namespace Aws
Device & AddTags(Tag &&value)
Definition Device.h:231
Device & WithGlobalNetworkId(const char *value)
Definition Device.h:85
AWS_NETWORKMANAGER_API Device()
Device & WithDeviceArn(const Aws::String &value)
Definition Device.h:69
const Aws::String & GetVendor() const
Definition Device.h:132
void SetDeviceArn(const char *value)
Definition Device.h:68
const Aws::String & GetModel() const
Definition Device.h:146
void SetGlobalNetworkId(Aws::String &&value)
Definition Device.h:81
Device & WithTags(Aws::Vector< Tag > &&value)
Definition Device.h:229
Device & WithAWSLocation(AWSLocation &&value)
Definition Device.h:97
Device & WithType(const char *value)
Definition Device.h:125
void SetSerialNumber(const char *value)
Definition Device.h:164
Device & WithDeviceId(const Aws::String &value)
Definition Device.h:55
const Aws::String & GetType() const
Definition Device.h:118
void SetVendor(const char *value)
Definition Device.h:136
void SetModel(const Aws::String &value)
Definition Device.h:148
void SetDescription(Aws::String &&value)
Definition Device.h:107
AWS_NETWORKMANAGER_API Device & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GlobalNetworkIdHasBeenSet() const
Definition Device.h:79
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Device.h:203
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
Device & WithLocation(const Location &value)
Definition Device.h:178
Device & WithDescription(const Aws::String &value)
Definition Device.h:109
Device & WithDeviceId(Aws::String &&value)
Definition Device.h:56
const Location & GetLocation() const
Definition Device.h:174
Device & WithState(const DeviceState &value)
Definition Device.h:216
void SetTags(const Aws::Vector< Tag > &value)
Definition Device.h:226
const DeviceState & GetState() const
Definition Device.h:212
Device & WithDescription(Aws::String &&value)
Definition Device.h:110
const Aws::Vector< Tag > & GetTags() const
Definition Device.h:224
Device & WithType(Aws::String &&value)
Definition Device.h:124
void SetDescription(const char *value)
Definition Device.h:108
void SetState(DeviceState &&value)
Definition Device.h:215
void SetGlobalNetworkId(const char *value)
Definition Device.h:82
const Aws::String & GetSiteId() const
Definition Device.h:186
void SetDeviceId(const char *value)
Definition Device.h:54
void SetDeviceId(const Aws::String &value)
Definition Device.h:52
Device & WithLocation(Location &&value)
Definition Device.h:179
void SetAWSLocation(AWSLocation &&value)
Definition Device.h:95
void SetVendor(Aws::String &&value)
Definition Device.h:135
Device & WithVendor(const char *value)
Definition Device.h:139
Device & WithSerialNumber(const char *value)
Definition Device.h:167
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Device.h:200
Device & WithGlobalNetworkId(const Aws::String &value)
Definition Device.h:83
const Aws::String & GetDescription() const
Definition Device.h:104
Device & WithType(const Aws::String &value)
Definition Device.h:123
Device & WithSiteId(const char *value)
Definition Device.h:193
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Device.h:202
Device & WithDeviceArn(const char *value)
Definition Device.h:71
Device & WithModel(const Aws::String &value)
Definition Device.h:151
Device & WithGlobalNetworkId(Aws::String &&value)
Definition Device.h:84
void SetDeviceArn(Aws::String &&value)
Definition Device.h:67
void SetSiteId(const Aws::String &value)
Definition Device.h:188
Device & WithDescription(const char *value)
Definition Device.h:111
void SetDescription(const Aws::String &value)
Definition Device.h:106
void SetState(const DeviceState &value)
Definition Device.h:214
void SetGlobalNetworkId(const Aws::String &value)
Definition Device.h:80
void SetVendor(const Aws::String &value)
Definition Device.h:134
Device & WithAWSLocation(const AWSLocation &value)
Definition Device.h:96
AWS_NETWORKMANAGER_API Device(Aws::Utils::Json::JsonView jsonValue)
void SetAWSLocation(const AWSLocation &value)
Definition Device.h:94
Device & WithSiteId(const Aws::String &value)
Definition Device.h:191
Device & WithState(DeviceState &&value)
Definition Device.h:217
void SetSiteId(const char *value)
Definition Device.h:190
Device & WithSerialNumber(Aws::String &&value)
Definition Device.h:166
void SetSiteId(Aws::String &&value)
Definition Device.h:189
const Aws::String & GetDeviceArn() const
Definition Device.h:64
Device & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Device.h:204
const AWSLocation & GetAWSLocation() const
Definition Device.h:92
void SetLocation(Location &&value)
Definition Device.h:177
Device & AddTags(const Tag &value)
Definition Device.h:230
void SetType(const Aws::String &value)
Definition Device.h:120
const Aws::String & GetDeviceId() const
Definition Device.h:50
const Aws::String & GetSerialNumber() const
Definition Device.h:160
void SetSerialNumber(const Aws::String &value)
Definition Device.h:162
void SetDeviceArn(const Aws::String &value)
Definition Device.h:66
void SetDeviceId(Aws::String &&value)
Definition Device.h:53
const Aws::String & GetGlobalNetworkId() const
Definition Device.h:78
Device & WithModel(Aws::String &&value)
Definition Device.h:152
void SetSerialNumber(Aws::String &&value)
Definition Device.h:163
Device & WithDeviceId(const char *value)
Definition Device.h:57
Device & WithSiteId(Aws::String &&value)
Definition Device.h:192
void SetTags(Aws::Vector< Tag > &&value)
Definition Device.h:227
void SetType(const char *value)
Definition Device.h:122
void SetModel(const char *value)
Definition Device.h:150
void SetType(Aws::String &&value)
Definition Device.h:121
Device & WithVendor(const Aws::String &value)
Definition Device.h:137
Device & WithDeviceArn(Aws::String &&value)
Definition Device.h:70
Device & WithSerialNumber(const Aws::String &value)
Definition Device.h:165
Device & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Device.h:205
Device & WithModel(const char *value)
Definition Device.h:153
Device & WithVendor(Aws::String &&value)
Definition Device.h:138
Device & WithTags(const Aws::Vector< Tag > &value)
Definition Device.h:228
void SetModel(Aws::String &&value)
Definition Device.h:149
void SetLocation(const Location &value)
Definition Device.h:176
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue