AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
InputDeviceSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/medialive/MediaLive_EXPORTS.h>
11#include <aws/medialive/model/DeviceSettingsSyncState.h>
12#include <aws/medialive/model/DeviceUpdateStatus.h>
13#include <aws/medialive/model/InputDeviceConnectionState.h>
14#include <aws/medialive/model/InputDeviceHdSettings.h>
15#include <aws/medialive/model/InputDeviceNetworkSettings.h>
16#include <aws/medialive/model/InputDeviceOutputType.h>
17#include <aws/medialive/model/InputDeviceType.h>
18#include <aws/medialive/model/InputDeviceUhdSettings.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Json {
25class JsonValue;
26class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace MediaLive {
30namespace Model {
31
38 public:
39 AWS_MEDIALIVE_API InputDeviceSummary() = default;
40 AWS_MEDIALIVE_API InputDeviceSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetArn() const { return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 template <typename ArnT = Aws::String>
51 void SetArn(ArnT&& value) {
52 m_arnHasBeenSet = true;
53 m_arn = std::forward<ArnT>(value);
54 }
55 template <typename ArnT = Aws::String>
56 InputDeviceSummary& WithArn(ArnT&& value) {
57 SetArn(std::forward<ArnT>(value));
58 return *this;
59 }
61
63
66 inline InputDeviceConnectionState GetConnectionState() const { return m_connectionState; }
67 inline bool ConnectionStateHasBeenSet() const { return m_connectionStateHasBeenSet; }
69 m_connectionStateHasBeenSet = true;
70 m_connectionState = value;
71 }
73 SetConnectionState(value);
74 return *this;
75 }
77
79
86 inline DeviceSettingsSyncState GetDeviceSettingsSyncState() const { return m_deviceSettingsSyncState; }
87 inline bool DeviceSettingsSyncStateHasBeenSet() const { return m_deviceSettingsSyncStateHasBeenSet; }
89 m_deviceSettingsSyncStateHasBeenSet = true;
90 m_deviceSettingsSyncState = value;
91 }
94 return *this;
95 }
97
99
102 inline DeviceUpdateStatus GetDeviceUpdateStatus() const { return m_deviceUpdateStatus; }
103 inline bool DeviceUpdateStatusHasBeenSet() const { return m_deviceUpdateStatusHasBeenSet; }
105 m_deviceUpdateStatusHasBeenSet = true;
106 m_deviceUpdateStatus = value;
107 }
110 return *this;
111 }
113
115
118 inline const InputDeviceHdSettings& GetHdDeviceSettings() const { return m_hdDeviceSettings; }
119 inline bool HdDeviceSettingsHasBeenSet() const { return m_hdDeviceSettingsHasBeenSet; }
120 template <typename HdDeviceSettingsT = InputDeviceHdSettings>
121 void SetHdDeviceSettings(HdDeviceSettingsT&& value) {
122 m_hdDeviceSettingsHasBeenSet = true;
123 m_hdDeviceSettings = std::forward<HdDeviceSettingsT>(value);
124 }
125 template <typename HdDeviceSettingsT = InputDeviceHdSettings>
126 InputDeviceSummary& WithHdDeviceSettings(HdDeviceSettingsT&& value) {
127 SetHdDeviceSettings(std::forward<HdDeviceSettingsT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetId() const { return m_id; }
137 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
138 template <typename IdT = Aws::String>
139 void SetId(IdT&& value) {
140 m_idHasBeenSet = true;
141 m_id = std::forward<IdT>(value);
142 }
143 template <typename IdT = Aws::String>
145 SetId(std::forward<IdT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetMacAddress() const { return m_macAddress; }
155 inline bool MacAddressHasBeenSet() const { return m_macAddressHasBeenSet; }
156 template <typename MacAddressT = Aws::String>
157 void SetMacAddress(MacAddressT&& value) {
158 m_macAddressHasBeenSet = true;
159 m_macAddress = std::forward<MacAddressT>(value);
160 }
161 template <typename MacAddressT = Aws::String>
162 InputDeviceSummary& WithMacAddress(MacAddressT&& value) {
163 SetMacAddress(std::forward<MacAddressT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetName() const { return m_name; }
173 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
174 template <typename NameT = Aws::String>
175 void SetName(NameT&& value) {
176 m_nameHasBeenSet = true;
177 m_name = std::forward<NameT>(value);
178 }
179 template <typename NameT = Aws::String>
180 InputDeviceSummary& WithName(NameT&& value) {
181 SetName(std::forward<NameT>(value));
182 return *this;
183 }
185
187
190 inline const InputDeviceNetworkSettings& GetNetworkSettings() const { return m_networkSettings; }
191 inline bool NetworkSettingsHasBeenSet() const { return m_networkSettingsHasBeenSet; }
192 template <typename NetworkSettingsT = InputDeviceNetworkSettings>
193 void SetNetworkSettings(NetworkSettingsT&& value) {
194 m_networkSettingsHasBeenSet = true;
195 m_networkSettings = std::forward<NetworkSettingsT>(value);
196 }
197 template <typename NetworkSettingsT = InputDeviceNetworkSettings>
198 InputDeviceSummary& WithNetworkSettings(NetworkSettingsT&& value) {
199 SetNetworkSettings(std::forward<NetworkSettingsT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
209 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
210 template <typename SerialNumberT = Aws::String>
211 void SetSerialNumber(SerialNumberT&& value) {
212 m_serialNumberHasBeenSet = true;
213 m_serialNumber = std::forward<SerialNumberT>(value);
214 }
215 template <typename SerialNumberT = Aws::String>
216 InputDeviceSummary& WithSerialNumber(SerialNumberT&& value) {
217 SetSerialNumber(std::forward<SerialNumberT>(value));
218 return *this;
219 }
221
223
226 inline InputDeviceType GetType() const { return m_type; }
227 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
228 inline void SetType(InputDeviceType value) {
229 m_typeHasBeenSet = true;
230 m_type = value;
231 }
233 SetType(value);
234 return *this;
235 }
237
239
242 inline const InputDeviceUhdSettings& GetUhdDeviceSettings() const { return m_uhdDeviceSettings; }
243 inline bool UhdDeviceSettingsHasBeenSet() const { return m_uhdDeviceSettingsHasBeenSet; }
244 template <typename UhdDeviceSettingsT = InputDeviceUhdSettings>
245 void SetUhdDeviceSettings(UhdDeviceSettingsT&& value) {
246 m_uhdDeviceSettingsHasBeenSet = true;
247 m_uhdDeviceSettings = std::forward<UhdDeviceSettingsT>(value);
248 }
249 template <typename UhdDeviceSettingsT = InputDeviceUhdSettings>
250 InputDeviceSummary& WithUhdDeviceSettings(UhdDeviceSettingsT&& value) {
251 SetUhdDeviceSettings(std::forward<UhdDeviceSettingsT>(value));
252 return *this;
253 }
255
257
260 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
261 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
262 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
263 void SetTags(TagsT&& value) {
264 m_tagsHasBeenSet = true;
265 m_tags = std::forward<TagsT>(value);
266 }
267 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
268 InputDeviceSummary& WithTags(TagsT&& value) {
269 SetTags(std::forward<TagsT>(value));
270 return *this;
271 }
272 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
273 InputDeviceSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
274 m_tagsHasBeenSet = true;
275 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
276 return *this;
277 }
279
281
284 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
285 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
286 template <typename AvailabilityZoneT = Aws::String>
287 void SetAvailabilityZone(AvailabilityZoneT&& value) {
288 m_availabilityZoneHasBeenSet = true;
289 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
290 }
291 template <typename AvailabilityZoneT = Aws::String>
292 InputDeviceSummary& WithAvailabilityZone(AvailabilityZoneT&& value) {
293 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
294 return *this;
295 }
297
299
303 inline const Aws::Vector<Aws::String>& GetMedialiveInputArns() const { return m_medialiveInputArns; }
304 inline bool MedialiveInputArnsHasBeenSet() const { return m_medialiveInputArnsHasBeenSet; }
305 template <typename MedialiveInputArnsT = Aws::Vector<Aws::String>>
306 void SetMedialiveInputArns(MedialiveInputArnsT&& value) {
307 m_medialiveInputArnsHasBeenSet = true;
308 m_medialiveInputArns = std::forward<MedialiveInputArnsT>(value);
309 }
310 template <typename MedialiveInputArnsT = Aws::Vector<Aws::String>>
311 InputDeviceSummary& WithMedialiveInputArns(MedialiveInputArnsT&& value) {
312 SetMedialiveInputArns(std::forward<MedialiveInputArnsT>(value));
313 return *this;
314 }
315 template <typename MedialiveInputArnsT = Aws::String>
316 InputDeviceSummary& AddMedialiveInputArns(MedialiveInputArnsT&& value) {
317 m_medialiveInputArnsHasBeenSet = true;
318 m_medialiveInputArns.emplace_back(std::forward<MedialiveInputArnsT>(value));
319 return *this;
320 }
322
324
329 inline InputDeviceOutputType GetOutputType() const { return m_outputType; }
330 inline bool OutputTypeHasBeenSet() const { return m_outputTypeHasBeenSet; }
332 m_outputTypeHasBeenSet = true;
333 m_outputType = value;
334 }
336 SetOutputType(value);
337 return *this;
338 }
340 private:
341 Aws::String m_arn;
342
344
346
348
349 InputDeviceHdSettings m_hdDeviceSettings;
350
351 Aws::String m_id;
352
353 Aws::String m_macAddress;
354
355 Aws::String m_name;
356
357 InputDeviceNetworkSettings m_networkSettings;
358
359 Aws::String m_serialNumber;
360
362
363 InputDeviceUhdSettings m_uhdDeviceSettings;
364
366
367 Aws::String m_availabilityZone;
368
369 Aws::Vector<Aws::String> m_medialiveInputArns;
370
372 bool m_arnHasBeenSet = false;
373 bool m_connectionStateHasBeenSet = false;
374 bool m_deviceSettingsSyncStateHasBeenSet = false;
375 bool m_deviceUpdateStatusHasBeenSet = false;
376 bool m_hdDeviceSettingsHasBeenSet = false;
377 bool m_idHasBeenSet = false;
378 bool m_macAddressHasBeenSet = false;
379 bool m_nameHasBeenSet = false;
380 bool m_networkSettingsHasBeenSet = false;
381 bool m_serialNumberHasBeenSet = false;
382 bool m_typeHasBeenSet = false;
383 bool m_uhdDeviceSettingsHasBeenSet = false;
384 bool m_tagsHasBeenSet = false;
385 bool m_availabilityZoneHasBeenSet = false;
386 bool m_medialiveInputArnsHasBeenSet = false;
387 bool m_outputTypeHasBeenSet = false;
388};
389
390} // namespace Model
391} // namespace MediaLive
392} // namespace Aws
InputDeviceConnectionState GetConnectionState() const
const InputDeviceNetworkSettings & GetNetworkSettings() const
DeviceSettingsSyncState GetDeviceSettingsSyncState() const
InputDeviceSummary & WithArn(ArnT &&value)
InputDeviceSummary & WithTags(TagsT &&value)
void SetNetworkSettings(NetworkSettingsT &&value)
InputDeviceSummary & WithOutputType(InputDeviceOutputType value)
InputDeviceSummary & WithSerialNumber(SerialNumberT &&value)
void SetDeviceUpdateStatus(DeviceUpdateStatus value)
InputDeviceSummary & WithMedialiveInputArns(MedialiveInputArnsT &&value)
AWS_MEDIALIVE_API InputDeviceSummary(Aws::Utils::Json::JsonView jsonValue)
void SetAvailabilityZone(AvailabilityZoneT &&value)
InputDeviceSummary & WithMacAddress(MacAddressT &&value)
InputDeviceSummary & WithUhdDeviceSettings(UhdDeviceSettingsT &&value)
InputDeviceSummary & WithHdDeviceSettings(HdDeviceSettingsT &&value)
InputDeviceSummary & WithDeviceSettingsSyncState(DeviceSettingsSyncState value)
AWS_MEDIALIVE_API InputDeviceSummary()=default
InputDeviceOutputType GetOutputType() const
void SetConnectionState(InputDeviceConnectionState value)
AWS_MEDIALIVE_API InputDeviceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
DeviceUpdateStatus GetDeviceUpdateStatus() const
const InputDeviceUhdSettings & GetUhdDeviceSettings() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
InputDeviceSummary & WithName(NameT &&value)
InputDeviceSummary & AddMedialiveInputArns(MedialiveInputArnsT &&value)
const Aws::Vector< Aws::String > & GetMedialiveInputArns() const
InputDeviceSummary & WithNetworkSettings(NetworkSettingsT &&value)
InputDeviceSummary & WithConnectionState(InputDeviceConnectionState value)
InputDeviceSummary & WithId(IdT &&value)
void SetMedialiveInputArns(MedialiveInputArnsT &&value)
InputDeviceSummary & WithType(InputDeviceType value)
void SetOutputType(InputDeviceOutputType value)
void SetUhdDeviceSettings(UhdDeviceSettingsT &&value)
InputDeviceSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
InputDeviceSummary & WithDeviceUpdateStatus(DeviceUpdateStatus value)
const Aws::String & GetAvailabilityZone() const
void SetDeviceSettingsSyncState(DeviceSettingsSyncState value)
void SetHdDeviceSettings(HdDeviceSettingsT &&value)
InputDeviceSummary & WithAvailabilityZone(AvailabilityZoneT &&value)
const InputDeviceHdSettings & GetHdDeviceSettings() const
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