AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
RouterInput.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
12#include <aws/mediaconnect/model/MaintenanceConfiguration.h>
13#include <aws/mediaconnect/model/MaintenanceSchedule.h>
14#include <aws/mediaconnect/model/MaintenanceScheduleType.h>
15#include <aws/mediaconnect/model/MaintenanceType.h>
16#include <aws/mediaconnect/model/RouterInputConfiguration.h>
17#include <aws/mediaconnect/model/RouterInputMessage.h>
18#include <aws/mediaconnect/model/RouterInputState.h>
19#include <aws/mediaconnect/model/RouterInputStreamDetails.h>
20#include <aws/mediaconnect/model/RouterInputTier.h>
21#include <aws/mediaconnect/model/RouterInputTransitEncryption.h>
22#include <aws/mediaconnect/model/RouterInputType.h>
23#include <aws/mediaconnect/model/RoutingScope.h>
24
25#include <utility>
26
27namespace Aws {
28namespace Utils {
29namespace Json {
30class JsonValue;
31class JsonView;
32} // namespace Json
33} // namespace Utils
34namespace MediaConnect {
35namespace Model {
36
45 public:
46 AWS_MEDIACONNECT_API RouterInput() = default;
47 AWS_MEDIACONNECT_API RouterInput(Aws::Utils::Json::JsonView jsonValue);
48 AWS_MEDIACONNECT_API RouterInput& operator=(Aws::Utils::Json::JsonView jsonValue);
49 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
63 RouterInput& WithName(NameT&& value) {
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetArn() const { return m_arn; }
74 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
75 template <typename ArnT = Aws::String>
76 void SetArn(ArnT&& value) {
77 m_arnHasBeenSet = true;
78 m_arn = std::forward<ArnT>(value);
79 }
80 template <typename ArnT = Aws::String>
81 RouterInput& WithArn(ArnT&& value) {
82 SetArn(std::forward<ArnT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetId() const { return m_id; }
92 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
93 template <typename IdT = Aws::String>
94 void SetId(IdT&& value) {
95 m_idHasBeenSet = true;
96 m_id = std::forward<IdT>(value);
97 }
98 template <typename IdT = Aws::String>
99 RouterInput& WithId(IdT&& value) {
100 SetId(std::forward<IdT>(value));
101 return *this;
102 }
104
106
109 inline RouterInputState GetState() const { return m_state; }
110 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
111 inline void SetState(RouterInputState value) {
112 m_stateHasBeenSet = true;
113 m_state = value;
114 }
116 SetState(value);
117 return *this;
118 }
120
122
125 inline RouterInputType GetInputType() const { return m_inputType; }
126 inline bool InputTypeHasBeenSet() const { return m_inputTypeHasBeenSet; }
127 inline void SetInputType(RouterInputType value) {
128 m_inputTypeHasBeenSet = true;
129 m_inputType = value;
130 }
132 SetInputType(value);
133 return *this;
134 }
136
138
139 inline const RouterInputConfiguration& GetConfiguration() const { return m_configuration; }
140 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
141 template <typename ConfigurationT = RouterInputConfiguration>
142 void SetConfiguration(ConfigurationT&& value) {
143 m_configurationHasBeenSet = true;
144 m_configuration = std::forward<ConfigurationT>(value);
145 }
146 template <typename ConfigurationT = RouterInputConfiguration>
147 RouterInput& WithConfiguration(ConfigurationT&& value) {
148 SetConfiguration(std::forward<ConfigurationT>(value));
149 return *this;
150 }
152
154
157 inline int GetRoutedOutputs() const { return m_routedOutputs; }
158 inline bool RoutedOutputsHasBeenSet() const { return m_routedOutputsHasBeenSet; }
159 inline void SetRoutedOutputs(int value) {
160 m_routedOutputsHasBeenSet = true;
161 m_routedOutputs = value;
162 }
163 inline RouterInput& WithRoutedOutputs(int value) {
164 SetRoutedOutputs(value);
165 return *this;
166 }
168
170
174 inline int GetMaximumRoutedOutputs() const { return m_maximumRoutedOutputs; }
175 inline bool MaximumRoutedOutputsHasBeenSet() const { return m_maximumRoutedOutputsHasBeenSet; }
176 inline void SetMaximumRoutedOutputs(int value) {
177 m_maximumRoutedOutputsHasBeenSet = true;
178 m_maximumRoutedOutputs = value;
179 }
182 return *this;
183 }
185
187
190 inline const Aws::String& GetRegionName() const { return m_regionName; }
191 inline bool RegionNameHasBeenSet() const { return m_regionNameHasBeenSet; }
192 template <typename RegionNameT = Aws::String>
193 void SetRegionName(RegionNameT&& value) {
194 m_regionNameHasBeenSet = true;
195 m_regionName = std::forward<RegionNameT>(value);
196 }
197 template <typename RegionNameT = Aws::String>
198 RouterInput& WithRegionName(RegionNameT&& value) {
199 SetRegionName(std::forward<RegionNameT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
209 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
210 template <typename AvailabilityZoneT = Aws::String>
211 void SetAvailabilityZone(AvailabilityZoneT&& value) {
212 m_availabilityZoneHasBeenSet = true;
213 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
214 }
215 template <typename AvailabilityZoneT = Aws::String>
216 RouterInput& WithAvailabilityZone(AvailabilityZoneT&& value) {
217 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
218 return *this;
219 }
221
223
226 inline long long GetMaximumBitrate() const { return m_maximumBitrate; }
227 inline bool MaximumBitrateHasBeenSet() const { return m_maximumBitrateHasBeenSet; }
228 inline void SetMaximumBitrate(long long value) {
229 m_maximumBitrateHasBeenSet = true;
230 m_maximumBitrate = value;
231 }
232 inline RouterInput& WithMaximumBitrate(long long value) {
233 SetMaximumBitrate(value);
234 return *this;
235 }
237
239
242 inline RouterInputTier GetTier() const { return m_tier; }
243 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
244 inline void SetTier(RouterInputTier value) {
245 m_tierHasBeenSet = true;
246 m_tier = value;
247 }
249 SetTier(value);
250 return *this;
251 }
253
255
259 inline RoutingScope GetRoutingScope() const { return m_routingScope; }
260 inline bool RoutingScopeHasBeenSet() const { return m_routingScopeHasBeenSet; }
261 inline void SetRoutingScope(RoutingScope value) {
262 m_routingScopeHasBeenSet = true;
263 m_routingScope = value;
264 }
266 SetRoutingScope(value);
267 return *this;
268 }
270
272
275 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
276 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
277 template <typename CreatedAtT = Aws::Utils::DateTime>
278 void SetCreatedAt(CreatedAtT&& value) {
279 m_createdAtHasBeenSet = true;
280 m_createdAt = std::forward<CreatedAtT>(value);
281 }
282 template <typename CreatedAtT = Aws::Utils::DateTime>
283 RouterInput& WithCreatedAt(CreatedAtT&& value) {
284 SetCreatedAt(std::forward<CreatedAtT>(value));
285 return *this;
286 }
288
290
293 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
294 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
295 template <typename UpdatedAtT = Aws::Utils::DateTime>
296 void SetUpdatedAt(UpdatedAtT&& value) {
297 m_updatedAtHasBeenSet = true;
298 m_updatedAt = std::forward<UpdatedAtT>(value);
299 }
300 template <typename UpdatedAtT = Aws::Utils::DateTime>
301 RouterInput& WithUpdatedAt(UpdatedAtT&& value) {
302 SetUpdatedAt(std::forward<UpdatedAtT>(value));
303 return *this;
304 }
306
308
311 inline const Aws::Vector<RouterInputMessage>& GetMessages() const { return m_messages; }
312 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
313 template <typename MessagesT = Aws::Vector<RouterInputMessage>>
314 void SetMessages(MessagesT&& value) {
315 m_messagesHasBeenSet = true;
316 m_messages = std::forward<MessagesT>(value);
317 }
318 template <typename MessagesT = Aws::Vector<RouterInputMessage>>
319 RouterInput& WithMessages(MessagesT&& value) {
320 SetMessages(std::forward<MessagesT>(value));
321 return *this;
322 }
323 template <typename MessagesT = RouterInputMessage>
324 RouterInput& AddMessages(MessagesT&& value) {
325 m_messagesHasBeenSet = true;
326 m_messages.emplace_back(std::forward<MessagesT>(value));
327 return *this;
328 }
330
332
333 inline const RouterInputTransitEncryption& GetTransitEncryption() const { return m_transitEncryption; }
334 inline bool TransitEncryptionHasBeenSet() const { return m_transitEncryptionHasBeenSet; }
335 template <typename TransitEncryptionT = RouterInputTransitEncryption>
336 void SetTransitEncryption(TransitEncryptionT&& value) {
337 m_transitEncryptionHasBeenSet = true;
338 m_transitEncryption = std::forward<TransitEncryptionT>(value);
339 }
340 template <typename TransitEncryptionT = RouterInputTransitEncryption>
341 RouterInput& WithTransitEncryption(TransitEncryptionT&& value) {
342 SetTransitEncryption(std::forward<TransitEncryptionT>(value));
343 return *this;
344 }
346
348
351 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
352 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
353 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
354 void SetTags(TagsT&& value) {
355 m_tagsHasBeenSet = true;
356 m_tags = std::forward<TagsT>(value);
357 }
358 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
359 RouterInput& WithTags(TagsT&& value) {
360 SetTags(std::forward<TagsT>(value));
361 return *this;
362 }
363 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
364 RouterInput& AddTags(TagsKeyT&& key, TagsValueT&& value) {
365 m_tagsHasBeenSet = true;
366 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
367 return *this;
368 }
370
372
373 inline const RouterInputStreamDetails& GetStreamDetails() const { return m_streamDetails; }
374 inline bool StreamDetailsHasBeenSet() const { return m_streamDetailsHasBeenSet; }
375 template <typename StreamDetailsT = RouterInputStreamDetails>
376 void SetStreamDetails(StreamDetailsT&& value) {
377 m_streamDetailsHasBeenSet = true;
378 m_streamDetails = std::forward<StreamDetailsT>(value);
379 }
380 template <typename StreamDetailsT = RouterInputStreamDetails>
381 RouterInput& WithStreamDetails(StreamDetailsT&& value) {
382 SetStreamDetails(std::forward<StreamDetailsT>(value));
383 return *this;
384 }
386
388
391 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
392 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
393 template <typename IpAddressT = Aws::String>
394 void SetIpAddress(IpAddressT&& value) {
395 m_ipAddressHasBeenSet = true;
396 m_ipAddress = std::forward<IpAddressT>(value);
397 }
398 template <typename IpAddressT = Aws::String>
399 RouterInput& WithIpAddress(IpAddressT&& value) {
400 SetIpAddress(std::forward<IpAddressT>(value));
401 return *this;
402 }
404
406
409 inline MaintenanceType GetMaintenanceType() const { return m_maintenanceType; }
410 inline bool MaintenanceTypeHasBeenSet() const { return m_maintenanceTypeHasBeenSet; }
412 m_maintenanceTypeHasBeenSet = true;
413 m_maintenanceType = value;
414 }
416 SetMaintenanceType(value);
417 return *this;
418 }
420
422
425 inline const MaintenanceConfiguration& GetMaintenanceConfiguration() const { return m_maintenanceConfiguration; }
426 inline bool MaintenanceConfigurationHasBeenSet() const { return m_maintenanceConfigurationHasBeenSet; }
427 template <typename MaintenanceConfigurationT = MaintenanceConfiguration>
428 void SetMaintenanceConfiguration(MaintenanceConfigurationT&& value) {
429 m_maintenanceConfigurationHasBeenSet = true;
430 m_maintenanceConfiguration = std::forward<MaintenanceConfigurationT>(value);
431 }
432 template <typename MaintenanceConfigurationT = MaintenanceConfiguration>
433 RouterInput& WithMaintenanceConfiguration(MaintenanceConfigurationT&& value) {
434 SetMaintenanceConfiguration(std::forward<MaintenanceConfigurationT>(value));
435 return *this;
436 }
438
440
444 inline MaintenanceScheduleType GetMaintenanceScheduleType() const { return m_maintenanceScheduleType; }
445 inline bool MaintenanceScheduleTypeHasBeenSet() const { return m_maintenanceScheduleTypeHasBeenSet; }
447 m_maintenanceScheduleTypeHasBeenSet = true;
448 m_maintenanceScheduleType = value;
449 }
452 return *this;
453 }
455
457
460 inline const MaintenanceSchedule& GetMaintenanceSchedule() const { return m_maintenanceSchedule; }
461 inline bool MaintenanceScheduleHasBeenSet() const { return m_maintenanceScheduleHasBeenSet; }
462 template <typename MaintenanceScheduleT = MaintenanceSchedule>
463 void SetMaintenanceSchedule(MaintenanceScheduleT&& value) {
464 m_maintenanceScheduleHasBeenSet = true;
465 m_maintenanceSchedule = std::forward<MaintenanceScheduleT>(value);
466 }
467 template <typename MaintenanceScheduleT = MaintenanceSchedule>
468 RouterInput& WithMaintenanceSchedule(MaintenanceScheduleT&& value) {
469 SetMaintenanceSchedule(std::forward<MaintenanceScheduleT>(value));
470 return *this;
471 }
473 private:
474 Aws::String m_name;
475
476 Aws::String m_arn;
477
478 Aws::String m_id;
479
481
483
484 RouterInputConfiguration m_configuration;
485
486 int m_routedOutputs{0};
487
488 int m_maximumRoutedOutputs{0};
489
490 Aws::String m_regionName;
491
492 Aws::String m_availabilityZone;
493
494 long long m_maximumBitrate{0};
495
497
498 RoutingScope m_routingScope{RoutingScope::NOT_SET};
499
500 Aws::Utils::DateTime m_createdAt{};
501
502 Aws::Utils::DateTime m_updatedAt{};
503
505
506 RouterInputTransitEncryption m_transitEncryption;
507
509
510 RouterInputStreamDetails m_streamDetails;
511
512 Aws::String m_ipAddress;
513
514 MaintenanceType m_maintenanceType{MaintenanceType::NOT_SET};
515
516 MaintenanceConfiguration m_maintenanceConfiguration;
517
519
520 MaintenanceSchedule m_maintenanceSchedule;
521 bool m_nameHasBeenSet = false;
522 bool m_arnHasBeenSet = false;
523 bool m_idHasBeenSet = false;
524 bool m_stateHasBeenSet = false;
525 bool m_inputTypeHasBeenSet = false;
526 bool m_configurationHasBeenSet = false;
527 bool m_routedOutputsHasBeenSet = false;
528 bool m_maximumRoutedOutputsHasBeenSet = false;
529 bool m_regionNameHasBeenSet = false;
530 bool m_availabilityZoneHasBeenSet = false;
531 bool m_maximumBitrateHasBeenSet = false;
532 bool m_tierHasBeenSet = false;
533 bool m_routingScopeHasBeenSet = false;
534 bool m_createdAtHasBeenSet = false;
535 bool m_updatedAtHasBeenSet = false;
536 bool m_messagesHasBeenSet = false;
537 bool m_transitEncryptionHasBeenSet = false;
538 bool m_tagsHasBeenSet = false;
539 bool m_streamDetailsHasBeenSet = false;
540 bool m_ipAddressHasBeenSet = false;
541 bool m_maintenanceTypeHasBeenSet = false;
542 bool m_maintenanceConfigurationHasBeenSet = false;
543 bool m_maintenanceScheduleTypeHasBeenSet = false;
544 bool m_maintenanceScheduleHasBeenSet = false;
545};
546
547} // namespace Model
548} // namespace MediaConnect
549} // namespace Aws
RouterInput & WithMaintenanceSchedule(MaintenanceScheduleT &&value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
AWS_MEDIACONNECT_API RouterInput()=default
RouterInput & AddMessages(MessagesT &&value)
void SetIpAddress(IpAddressT &&value)
void SetCreatedAt(CreatedAtT &&value)
void SetMaintenanceType(MaintenanceType value)
void SetConfiguration(ConfigurationT &&value)
MaintenanceScheduleType GetMaintenanceScheduleType() const
void SetUpdatedAt(UpdatedAtT &&value)
RouterInput & WithMaintenanceScheduleType(MaintenanceScheduleType value)
const RouterInputTransitEncryption & GetTransitEncryption() const
RouterInput & WithArn(ArnT &&value)
Definition RouterInput.h:81
RouterInput & WithMaximumBitrate(long long value)
void SetInputType(RouterInputType value)
const Aws::Utils::DateTime & GetUpdatedAt() const
RouterInput & WithConfiguration(ConfigurationT &&value)
RouterInput & WithRegionName(RegionNameT &&value)
const Aws::String & GetArn() const
Definition RouterInput.h:73
RouterInput & WithInputType(RouterInputType value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetName() const
Definition RouterInput.h:55
const Aws::String & GetRegionName() const
void SetTier(RouterInputTier value)
void SetState(RouterInputState value)
RouterInput & WithMessages(MessagesT &&value)
void SetMaximumBitrate(long long value)
const Aws::Vector< RouterInputMessage > & GetMessages() const
void SetRegionName(RegionNameT &&value)
RouterInput & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetIpAddress() const
AWS_MEDIACONNECT_API RouterInput & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
Definition RouterInput.h:91
void SetMaintenanceConfiguration(MaintenanceConfigurationT &&value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
RouterInput & WithRoutingScope(RoutingScope value)
const RouterInputConfiguration & GetConfiguration() const
MaintenanceType GetMaintenanceType() const
void SetMaintenanceSchedule(MaintenanceScheduleT &&value)
RouterInput & WithName(NameT &&value)
Definition RouterInput.h:63
void SetTransitEncryption(TransitEncryptionT &&value)
RouterInput & WithMaintenanceConfiguration(MaintenanceConfigurationT &&value)
const Aws::String & GetAvailabilityZone() const
RouterInput & WithMaintenanceType(MaintenanceType value)
RouterInput & WithTier(RouterInputTier value)
RouterInput & WithTags(TagsT &&value)
RouterInputState GetState() const
RouterInput & WithState(RouterInputState value)
RouterInput & WithAvailabilityZone(AvailabilityZoneT &&value)
void SetStreamDetails(StreamDetailsT &&value)
AWS_MEDIACONNECT_API RouterInput(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetRoutingScope(RoutingScope value)
void SetMessages(MessagesT &&value)
RouterInput & WithTransitEncryption(TransitEncryptionT &&value)
const MaintenanceConfiguration & GetMaintenanceConfiguration() const
RouterInput & WithIpAddress(IpAddressT &&value)
RouterInput & WithMaximumRoutedOutputs(int value)
const MaintenanceSchedule & GetMaintenanceSchedule() const
RouterInput & WithId(IdT &&value)
Definition RouterInput.h:99
const RouterInputStreamDetails & GetStreamDetails() const
RouterInput & WithUpdatedAt(UpdatedAtT &&value)
RouterInputType GetInputType() const
RouterInput & WithStreamDetails(StreamDetailsT &&value)
RouterInputTier GetTier() const
void SetMaintenanceScheduleType(MaintenanceScheduleType value)
RouterInput & WithRoutedOutputs(int value)
RouterInput & AddTags(TagsKeyT &&key, TagsValueT &&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