1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateChannelOutput {
/// <p>Object specifying a channel.</p>
#[doc(hidden)]
pub channel: std::option::Option<crate::model::Channel>,
}
impl UpdateChannelOutput {
/// <p>Object specifying a channel.</p>
pub fn channel(&self) -> std::option::Option<&crate::model::Channel> {
self.channel.as_ref()
}
}
/// See [`UpdateChannelOutput`](crate::output::UpdateChannelOutput).
pub mod update_channel_output {
/// A builder for [`UpdateChannelOutput`](crate::output::UpdateChannelOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel: std::option::Option<crate::model::Channel>,
}
impl Builder {
/// <p>Object specifying a channel.</p>
pub fn channel(mut self, input: crate::model::Channel) -> Self {
self.channel = Some(input);
self
}
/// <p>Object specifying a channel.</p>
pub fn set_channel(mut self, input: std::option::Option<crate::model::Channel>) -> Self {
self.channel = input;
self
}
/// Consumes the builder and constructs a [`UpdateChannelOutput`](crate::output::UpdateChannelOutput).
pub fn build(self) -> crate::output::UpdateChannelOutput {
crate::output::UpdateChannelOutput {
channel: self.channel,
}
}
}
}
impl UpdateChannelOutput {
/// Creates a new builder-style object to manufacture [`UpdateChannelOutput`](crate::output::UpdateChannelOutput).
pub fn builder() -> crate::output::update_channel_output::Builder {
crate::output::update_channel_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UntagResourceOutput {}
/// See [`UntagResourceOutput`](crate::output::UntagResourceOutput).
pub mod untag_resource_output {
/// A builder for [`UntagResourceOutput`](crate::output::UntagResourceOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`UntagResourceOutput`](crate::output::UntagResourceOutput).
pub fn build(self) -> crate::output::UntagResourceOutput {
crate::output::UntagResourceOutput {}
}
}
}
impl UntagResourceOutput {
/// Creates a new builder-style object to manufacture [`UntagResourceOutput`](crate::output::UntagResourceOutput).
pub fn builder() -> crate::output::untag_resource_output::Builder {
crate::output::untag_resource_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TagResourceOutput {}
/// See [`TagResourceOutput`](crate::output::TagResourceOutput).
pub mod tag_resource_output {
/// A builder for [`TagResourceOutput`](crate::output::TagResourceOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`TagResourceOutput`](crate::output::TagResourceOutput).
pub fn build(self) -> crate::output::TagResourceOutput {
crate::output::TagResourceOutput {}
}
}
}
impl TagResourceOutput {
/// Creates a new builder-style object to manufacture [`TagResourceOutput`](crate::output::TagResourceOutput).
pub fn builder() -> crate::output::tag_resource_output::Builder {
crate::output::tag_resource_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct StopStreamOutput {}
/// See [`StopStreamOutput`](crate::output::StopStreamOutput).
pub mod stop_stream_output {
/// A builder for [`StopStreamOutput`](crate::output::StopStreamOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`StopStreamOutput`](crate::output::StopStreamOutput).
pub fn build(self) -> crate::output::StopStreamOutput {
crate::output::StopStreamOutput {}
}
}
}
impl StopStreamOutput {
/// Creates a new builder-style object to manufacture [`StopStreamOutput`](crate::output::StopStreamOutput).
pub fn builder() -> crate::output::stop_stream_output::Builder {
crate::output::stop_stream_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct PutMetadataOutput {}
/// See [`PutMetadataOutput`](crate::output::PutMetadataOutput).
pub mod put_metadata_output {
/// A builder for [`PutMetadataOutput`](crate::output::PutMetadataOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`PutMetadataOutput`](crate::output::PutMetadataOutput).
pub fn build(self) -> crate::output::PutMetadataOutput {
crate::output::PutMetadataOutput {}
}
}
}
impl PutMetadataOutput {
/// Creates a new builder-style object to manufacture [`PutMetadataOutput`](crate::output::PutMetadataOutput).
pub fn builder() -> crate::output::put_metadata_output::Builder {
crate::output::put_metadata_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListTagsForResourceOutput {
/// <p>Tags attached to the resource. Array of maps, each of the form <code>string:string (key:value)</code>.</p>
#[doc(hidden)]
pub tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
}
impl ListTagsForResourceOutput {
/// <p>Tags attached to the resource. Array of maps, each of the form <code>string:string (key:value)</code>.</p>
pub fn tags(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.tags.as_ref()
}
}
/// See [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput).
pub mod list_tags_for_resource_output {
/// A builder for [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) tags: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
}
impl Builder {
/// Adds a key-value pair to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>Tags attached to the resource. Array of maps, each of the form <code>string:string (key:value)</code>.</p>
pub fn tags(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = Some(hash_map);
self
}
/// <p>Tags attached to the resource. Array of maps, each of the form <code>string:string (key:value)</code>.</p>
pub fn set_tags(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.tags = input;
self
}
/// Consumes the builder and constructs a [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput).
pub fn build(self) -> crate::output::ListTagsForResourceOutput {
crate::output::ListTagsForResourceOutput { tags: self.tags }
}
}
}
impl ListTagsForResourceOutput {
/// Creates a new builder-style object to manufacture [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput).
pub fn builder() -> crate::output::list_tags_for_resource_output::Builder {
crate::output::list_tags_for_resource_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListStreamSessionsOutput {
/// <p>List of stream sessions.</p>
#[doc(hidden)]
pub stream_sessions: std::option::Option<std::vec::Vec<crate::model::StreamSessionSummary>>,
/// <p>If there are more streams than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListStreamSessionsOutput {
/// <p>List of stream sessions.</p>
pub fn stream_sessions(&self) -> std::option::Option<&[crate::model::StreamSessionSummary]> {
self.stream_sessions.as_deref()
}
/// <p>If there are more streams than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListStreamSessionsOutput`](crate::output::ListStreamSessionsOutput).
pub mod list_stream_sessions_output {
/// A builder for [`ListStreamSessionsOutput`](crate::output::ListStreamSessionsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) stream_sessions:
std::option::Option<std::vec::Vec<crate::model::StreamSessionSummary>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `stream_sessions`.
///
/// To override the contents of this collection use [`set_stream_sessions`](Self::set_stream_sessions).
///
/// <p>List of stream sessions.</p>
pub fn stream_sessions(mut self, input: crate::model::StreamSessionSummary) -> Self {
let mut v = self.stream_sessions.unwrap_or_default();
v.push(input);
self.stream_sessions = Some(v);
self
}
/// <p>List of stream sessions.</p>
pub fn set_stream_sessions(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::StreamSessionSummary>>,
) -> Self {
self.stream_sessions = input;
self
}
/// <p>If there are more streams than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>If there are more streams than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListStreamSessionsOutput`](crate::output::ListStreamSessionsOutput).
pub fn build(self) -> crate::output::ListStreamSessionsOutput {
crate::output::ListStreamSessionsOutput {
stream_sessions: self.stream_sessions,
next_token: self.next_token,
}
}
}
}
impl ListStreamSessionsOutput {
/// Creates a new builder-style object to manufacture [`ListStreamSessionsOutput`](crate::output::ListStreamSessionsOutput).
pub fn builder() -> crate::output::list_stream_sessions_output::Builder {
crate::output::list_stream_sessions_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListStreamsOutput {
/// <p>List of streams.</p>
#[doc(hidden)]
pub streams: std::option::Option<std::vec::Vec<crate::model::StreamSummary>>,
/// <p>If there are more streams than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListStreamsOutput {
/// <p>List of streams.</p>
pub fn streams(&self) -> std::option::Option<&[crate::model::StreamSummary]> {
self.streams.as_deref()
}
/// <p>If there are more streams than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListStreamsOutput`](crate::output::ListStreamsOutput).
pub mod list_streams_output {
/// A builder for [`ListStreamsOutput`](crate::output::ListStreamsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) streams: std::option::Option<std::vec::Vec<crate::model::StreamSummary>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `streams`.
///
/// To override the contents of this collection use [`set_streams`](Self::set_streams).
///
/// <p>List of streams.</p>
pub fn streams(mut self, input: crate::model::StreamSummary) -> Self {
let mut v = self.streams.unwrap_or_default();
v.push(input);
self.streams = Some(v);
self
}
/// <p>List of streams.</p>
pub fn set_streams(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::StreamSummary>>,
) -> Self {
self.streams = input;
self
}
/// <p>If there are more streams than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>If there are more streams than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListStreamsOutput`](crate::output::ListStreamsOutput).
pub fn build(self) -> crate::output::ListStreamsOutput {
crate::output::ListStreamsOutput {
streams: self.streams,
next_token: self.next_token,
}
}
}
}
impl ListStreamsOutput {
/// Creates a new builder-style object to manufacture [`ListStreamsOutput`](crate::output::ListStreamsOutput).
pub fn builder() -> crate::output::list_streams_output::Builder {
crate::output::list_streams_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListStreamKeysOutput {
/// <p>List of stream keys.</p>
#[doc(hidden)]
pub stream_keys: std::option::Option<std::vec::Vec<crate::model::StreamKeySummary>>,
/// <p>If there are more stream keys than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListStreamKeysOutput {
/// <p>List of stream keys.</p>
pub fn stream_keys(&self) -> std::option::Option<&[crate::model::StreamKeySummary]> {
self.stream_keys.as_deref()
}
/// <p>If there are more stream keys than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListStreamKeysOutput`](crate::output::ListStreamKeysOutput).
pub mod list_stream_keys_output {
/// A builder for [`ListStreamKeysOutput`](crate::output::ListStreamKeysOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) stream_keys: std::option::Option<std::vec::Vec<crate::model::StreamKeySummary>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `stream_keys`.
///
/// To override the contents of this collection use [`set_stream_keys`](Self::set_stream_keys).
///
/// <p>List of stream keys.</p>
pub fn stream_keys(mut self, input: crate::model::StreamKeySummary) -> Self {
let mut v = self.stream_keys.unwrap_or_default();
v.push(input);
self.stream_keys = Some(v);
self
}
/// <p>List of stream keys.</p>
pub fn set_stream_keys(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::StreamKeySummary>>,
) -> Self {
self.stream_keys = input;
self
}
/// <p>If there are more stream keys than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>If there are more stream keys than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListStreamKeysOutput`](crate::output::ListStreamKeysOutput).
pub fn build(self) -> crate::output::ListStreamKeysOutput {
crate::output::ListStreamKeysOutput {
stream_keys: self.stream_keys,
next_token: self.next_token,
}
}
}
}
impl ListStreamKeysOutput {
/// Creates a new builder-style object to manufacture [`ListStreamKeysOutput`](crate::output::ListStreamKeysOutput).
pub fn builder() -> crate::output::list_stream_keys_output::Builder {
crate::output::list_stream_keys_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListRecordingConfigurationsOutput {
/// <p>List of the matching recording configurations.</p>
#[doc(hidden)]
pub recording_configurations:
std::option::Option<std::vec::Vec<crate::model::RecordingConfigurationSummary>>,
/// <p>If there are more recording configurations than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListRecordingConfigurationsOutput {
/// <p>List of the matching recording configurations.</p>
pub fn recording_configurations(
&self,
) -> std::option::Option<&[crate::model::RecordingConfigurationSummary]> {
self.recording_configurations.as_deref()
}
/// <p>If there are more recording configurations than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListRecordingConfigurationsOutput`](crate::output::ListRecordingConfigurationsOutput).
pub mod list_recording_configurations_output {
/// A builder for [`ListRecordingConfigurationsOutput`](crate::output::ListRecordingConfigurationsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) recording_configurations:
std::option::Option<std::vec::Vec<crate::model::RecordingConfigurationSummary>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `recording_configurations`.
///
/// To override the contents of this collection use [`set_recording_configurations`](Self::set_recording_configurations).
///
/// <p>List of the matching recording configurations.</p>
pub fn recording_configurations(
mut self,
input: crate::model::RecordingConfigurationSummary,
) -> Self {
let mut v = self.recording_configurations.unwrap_or_default();
v.push(input);
self.recording_configurations = Some(v);
self
}
/// <p>List of the matching recording configurations.</p>
pub fn set_recording_configurations(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::RecordingConfigurationSummary>>,
) -> Self {
self.recording_configurations = input;
self
}
/// <p>If there are more recording configurations than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>If there are more recording configurations than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListRecordingConfigurationsOutput`](crate::output::ListRecordingConfigurationsOutput).
pub fn build(self) -> crate::output::ListRecordingConfigurationsOutput {
crate::output::ListRecordingConfigurationsOutput {
recording_configurations: self.recording_configurations,
next_token: self.next_token,
}
}
}
}
impl ListRecordingConfigurationsOutput {
/// Creates a new builder-style object to manufacture [`ListRecordingConfigurationsOutput`](crate::output::ListRecordingConfigurationsOutput).
pub fn builder() -> crate::output::list_recording_configurations_output::Builder {
crate::output::list_recording_configurations_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListPlaybackKeyPairsOutput {
/// <p>List of key pairs.</p>
#[doc(hidden)]
pub key_pairs: std::option::Option<std::vec::Vec<crate::model::PlaybackKeyPairSummary>>,
/// <p>If there are more key pairs than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListPlaybackKeyPairsOutput {
/// <p>List of key pairs.</p>
pub fn key_pairs(&self) -> std::option::Option<&[crate::model::PlaybackKeyPairSummary]> {
self.key_pairs.as_deref()
}
/// <p>If there are more key pairs than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListPlaybackKeyPairsOutput`](crate::output::ListPlaybackKeyPairsOutput).
pub mod list_playback_key_pairs_output {
/// A builder for [`ListPlaybackKeyPairsOutput`](crate::output::ListPlaybackKeyPairsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) key_pairs:
std::option::Option<std::vec::Vec<crate::model::PlaybackKeyPairSummary>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `key_pairs`.
///
/// To override the contents of this collection use [`set_key_pairs`](Self::set_key_pairs).
///
/// <p>List of key pairs.</p>
pub fn key_pairs(mut self, input: crate::model::PlaybackKeyPairSummary) -> Self {
let mut v = self.key_pairs.unwrap_or_default();
v.push(input);
self.key_pairs = Some(v);
self
}
/// <p>List of key pairs.</p>
pub fn set_key_pairs(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::PlaybackKeyPairSummary>>,
) -> Self {
self.key_pairs = input;
self
}
/// <p>If there are more key pairs than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>If there are more key pairs than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListPlaybackKeyPairsOutput`](crate::output::ListPlaybackKeyPairsOutput).
pub fn build(self) -> crate::output::ListPlaybackKeyPairsOutput {
crate::output::ListPlaybackKeyPairsOutput {
key_pairs: self.key_pairs,
next_token: self.next_token,
}
}
}
}
impl ListPlaybackKeyPairsOutput {
/// Creates a new builder-style object to manufacture [`ListPlaybackKeyPairsOutput`](crate::output::ListPlaybackKeyPairsOutput).
pub fn builder() -> crate::output::list_playback_key_pairs_output::Builder {
crate::output::list_playback_key_pairs_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListChannelsOutput {
/// <p>List of the matching channels.</p>
#[doc(hidden)]
pub channels: std::option::Option<std::vec::Vec<crate::model::ChannelSummary>>,
/// <p>If there are more channels than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListChannelsOutput {
/// <p>List of the matching channels.</p>
pub fn channels(&self) -> std::option::Option<&[crate::model::ChannelSummary]> {
self.channels.as_deref()
}
/// <p>If there are more channels than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
/// See [`ListChannelsOutput`](crate::output::ListChannelsOutput).
pub mod list_channels_output {
/// A builder for [`ListChannelsOutput`](crate::output::ListChannelsOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channels: std::option::Option<std::vec::Vec<crate::model::ChannelSummary>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
/// Appends an item to `channels`.
///
/// To override the contents of this collection use [`set_channels`](Self::set_channels).
///
/// <p>List of the matching channels.</p>
pub fn channels(mut self, input: crate::model::ChannelSummary) -> Self {
let mut v = self.channels.unwrap_or_default();
v.push(input);
self.channels = Some(v);
self
}
/// <p>List of the matching channels.</p>
pub fn set_channels(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ChannelSummary>>,
) -> Self {
self.channels = input;
self
}
/// <p>If there are more channels than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
/// <p>If there are more channels than <code>maxResults</code>, use <code>nextToken</code> in the request to get the next set.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
/// Consumes the builder and constructs a [`ListChannelsOutput`](crate::output::ListChannelsOutput).
pub fn build(self) -> crate::output::ListChannelsOutput {
crate::output::ListChannelsOutput {
channels: self.channels,
next_token: self.next_token,
}
}
}
}
impl ListChannelsOutput {
/// Creates a new builder-style object to manufacture [`ListChannelsOutput`](crate::output::ListChannelsOutput).
pub fn builder() -> crate::output::list_channels_output::Builder {
crate::output::list_channels_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ImportPlaybackKeyPairOutput {
/// <p></p>
#[doc(hidden)]
pub key_pair: std::option::Option<crate::model::PlaybackKeyPair>,
}
impl ImportPlaybackKeyPairOutput {
/// <p></p>
pub fn key_pair(&self) -> std::option::Option<&crate::model::PlaybackKeyPair> {
self.key_pair.as_ref()
}
}
/// See [`ImportPlaybackKeyPairOutput`](crate::output::ImportPlaybackKeyPairOutput).
pub mod import_playback_key_pair_output {
/// A builder for [`ImportPlaybackKeyPairOutput`](crate::output::ImportPlaybackKeyPairOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) key_pair: std::option::Option<crate::model::PlaybackKeyPair>,
}
impl Builder {
/// <p></p>
pub fn key_pair(mut self, input: crate::model::PlaybackKeyPair) -> Self {
self.key_pair = Some(input);
self
}
/// <p></p>
pub fn set_key_pair(
mut self,
input: std::option::Option<crate::model::PlaybackKeyPair>,
) -> Self {
self.key_pair = input;
self
}
/// Consumes the builder and constructs a [`ImportPlaybackKeyPairOutput`](crate::output::ImportPlaybackKeyPairOutput).
pub fn build(self) -> crate::output::ImportPlaybackKeyPairOutput {
crate::output::ImportPlaybackKeyPairOutput {
key_pair: self.key_pair,
}
}
}
}
impl ImportPlaybackKeyPairOutput {
/// Creates a new builder-style object to manufacture [`ImportPlaybackKeyPairOutput`](crate::output::ImportPlaybackKeyPairOutput).
pub fn builder() -> crate::output::import_playback_key_pair_output::Builder {
crate::output::import_playback_key_pair_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetStreamSessionOutput {
/// <p>List of stream details.</p>
#[doc(hidden)]
pub stream_session: std::option::Option<crate::model::StreamSession>,
}
impl GetStreamSessionOutput {
/// <p>List of stream details.</p>
pub fn stream_session(&self) -> std::option::Option<&crate::model::StreamSession> {
self.stream_session.as_ref()
}
}
/// See [`GetStreamSessionOutput`](crate::output::GetStreamSessionOutput).
pub mod get_stream_session_output {
/// A builder for [`GetStreamSessionOutput`](crate::output::GetStreamSessionOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) stream_session: std::option::Option<crate::model::StreamSession>,
}
impl Builder {
/// <p>List of stream details.</p>
pub fn stream_session(mut self, input: crate::model::StreamSession) -> Self {
self.stream_session = Some(input);
self
}
/// <p>List of stream details.</p>
pub fn set_stream_session(
mut self,
input: std::option::Option<crate::model::StreamSession>,
) -> Self {
self.stream_session = input;
self
}
/// Consumes the builder and constructs a [`GetStreamSessionOutput`](crate::output::GetStreamSessionOutput).
pub fn build(self) -> crate::output::GetStreamSessionOutput {
crate::output::GetStreamSessionOutput {
stream_session: self.stream_session,
}
}
}
}
impl GetStreamSessionOutput {
/// Creates a new builder-style object to manufacture [`GetStreamSessionOutput`](crate::output::GetStreamSessionOutput).
pub fn builder() -> crate::output::get_stream_session_output::Builder {
crate::output::get_stream_session_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetStreamKeyOutput {
#[allow(missing_docs)] // documentation missing in model
#[doc(hidden)]
pub stream_key: std::option::Option<crate::model::StreamKey>,
}
impl GetStreamKeyOutput {
#[allow(missing_docs)] // documentation missing in model
pub fn stream_key(&self) -> std::option::Option<&crate::model::StreamKey> {
self.stream_key.as_ref()
}
}
/// See [`GetStreamKeyOutput`](crate::output::GetStreamKeyOutput).
pub mod get_stream_key_output {
/// A builder for [`GetStreamKeyOutput`](crate::output::GetStreamKeyOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) stream_key: std::option::Option<crate::model::StreamKey>,
}
impl Builder {
#[allow(missing_docs)] // documentation missing in model
pub fn stream_key(mut self, input: crate::model::StreamKey) -> Self {
self.stream_key = Some(input);
self
}
#[allow(missing_docs)] // documentation missing in model
pub fn set_stream_key(
mut self,
input: std::option::Option<crate::model::StreamKey>,
) -> Self {
self.stream_key = input;
self
}
/// Consumes the builder and constructs a [`GetStreamKeyOutput`](crate::output::GetStreamKeyOutput).
pub fn build(self) -> crate::output::GetStreamKeyOutput {
crate::output::GetStreamKeyOutput {
stream_key: self.stream_key,
}
}
}
}
impl GetStreamKeyOutput {
/// Creates a new builder-style object to manufacture [`GetStreamKeyOutput`](crate::output::GetStreamKeyOutput).
pub fn builder() -> crate::output::get_stream_key_output::Builder {
crate::output::get_stream_key_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetStreamOutput {
/// <p></p>
#[doc(hidden)]
pub stream: std::option::Option<crate::model::Stream>,
}
impl GetStreamOutput {
/// <p></p>
pub fn stream(&self) -> std::option::Option<&crate::model::Stream> {
self.stream.as_ref()
}
}
/// See [`GetStreamOutput`](crate::output::GetStreamOutput).
pub mod get_stream_output {
/// A builder for [`GetStreamOutput`](crate::output::GetStreamOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) stream: std::option::Option<crate::model::Stream>,
}
impl Builder {
/// <p></p>
pub fn stream(mut self, input: crate::model::Stream) -> Self {
self.stream = Some(input);
self
}
/// <p></p>
pub fn set_stream(mut self, input: std::option::Option<crate::model::Stream>) -> Self {
self.stream = input;
self
}
/// Consumes the builder and constructs a [`GetStreamOutput`](crate::output::GetStreamOutput).
pub fn build(self) -> crate::output::GetStreamOutput {
crate::output::GetStreamOutput {
stream: self.stream,
}
}
}
}
impl GetStreamOutput {
/// Creates a new builder-style object to manufacture [`GetStreamOutput`](crate::output::GetStreamOutput).
pub fn builder() -> crate::output::get_stream_output::Builder {
crate::output::get_stream_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetRecordingConfigurationOutput {
#[allow(missing_docs)] // documentation missing in model
#[doc(hidden)]
pub recording_configuration: std::option::Option<crate::model::RecordingConfiguration>,
}
impl GetRecordingConfigurationOutput {
#[allow(missing_docs)] // documentation missing in model
pub fn recording_configuration(
&self,
) -> std::option::Option<&crate::model::RecordingConfiguration> {
self.recording_configuration.as_ref()
}
}
/// See [`GetRecordingConfigurationOutput`](crate::output::GetRecordingConfigurationOutput).
pub mod get_recording_configuration_output {
/// A builder for [`GetRecordingConfigurationOutput`](crate::output::GetRecordingConfigurationOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) recording_configuration:
std::option::Option<crate::model::RecordingConfiguration>,
}
impl Builder {
#[allow(missing_docs)] // documentation missing in model
pub fn recording_configuration(
mut self,
input: crate::model::RecordingConfiguration,
) -> Self {
self.recording_configuration = Some(input);
self
}
#[allow(missing_docs)] // documentation missing in model
pub fn set_recording_configuration(
mut self,
input: std::option::Option<crate::model::RecordingConfiguration>,
) -> Self {
self.recording_configuration = input;
self
}
/// Consumes the builder and constructs a [`GetRecordingConfigurationOutput`](crate::output::GetRecordingConfigurationOutput).
pub fn build(self) -> crate::output::GetRecordingConfigurationOutput {
crate::output::GetRecordingConfigurationOutput {
recording_configuration: self.recording_configuration,
}
}
}
}
impl GetRecordingConfigurationOutput {
/// Creates a new builder-style object to manufacture [`GetRecordingConfigurationOutput`](crate::output::GetRecordingConfigurationOutput).
pub fn builder() -> crate::output::get_recording_configuration_output::Builder {
crate::output::get_recording_configuration_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetPlaybackKeyPairOutput {
#[allow(missing_docs)] // documentation missing in model
#[doc(hidden)]
pub key_pair: std::option::Option<crate::model::PlaybackKeyPair>,
}
impl GetPlaybackKeyPairOutput {
#[allow(missing_docs)] // documentation missing in model
pub fn key_pair(&self) -> std::option::Option<&crate::model::PlaybackKeyPair> {
self.key_pair.as_ref()
}
}
/// See [`GetPlaybackKeyPairOutput`](crate::output::GetPlaybackKeyPairOutput).
pub mod get_playback_key_pair_output {
/// A builder for [`GetPlaybackKeyPairOutput`](crate::output::GetPlaybackKeyPairOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) key_pair: std::option::Option<crate::model::PlaybackKeyPair>,
}
impl Builder {
#[allow(missing_docs)] // documentation missing in model
pub fn key_pair(mut self, input: crate::model::PlaybackKeyPair) -> Self {
self.key_pair = Some(input);
self
}
#[allow(missing_docs)] // documentation missing in model
pub fn set_key_pair(
mut self,
input: std::option::Option<crate::model::PlaybackKeyPair>,
) -> Self {
self.key_pair = input;
self
}
/// Consumes the builder and constructs a [`GetPlaybackKeyPairOutput`](crate::output::GetPlaybackKeyPairOutput).
pub fn build(self) -> crate::output::GetPlaybackKeyPairOutput {
crate::output::GetPlaybackKeyPairOutput {
key_pair: self.key_pair,
}
}
}
}
impl GetPlaybackKeyPairOutput {
/// Creates a new builder-style object to manufacture [`GetPlaybackKeyPairOutput`](crate::output::GetPlaybackKeyPairOutput).
pub fn builder() -> crate::output::get_playback_key_pair_output::Builder {
crate::output::get_playback_key_pair_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetChannelOutput {
/// <p></p>
#[doc(hidden)]
pub channel: std::option::Option<crate::model::Channel>,
}
impl GetChannelOutput {
/// <p></p>
pub fn channel(&self) -> std::option::Option<&crate::model::Channel> {
self.channel.as_ref()
}
}
/// See [`GetChannelOutput`](crate::output::GetChannelOutput).
pub mod get_channel_output {
/// A builder for [`GetChannelOutput`](crate::output::GetChannelOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel: std::option::Option<crate::model::Channel>,
}
impl Builder {
/// <p></p>
pub fn channel(mut self, input: crate::model::Channel) -> Self {
self.channel = Some(input);
self
}
/// <p></p>
pub fn set_channel(mut self, input: std::option::Option<crate::model::Channel>) -> Self {
self.channel = input;
self
}
/// Consumes the builder and constructs a [`GetChannelOutput`](crate::output::GetChannelOutput).
pub fn build(self) -> crate::output::GetChannelOutput {
crate::output::GetChannelOutput {
channel: self.channel,
}
}
}
}
impl GetChannelOutput {
/// Creates a new builder-style object to manufacture [`GetChannelOutput`](crate::output::GetChannelOutput).
pub fn builder() -> crate::output::get_channel_output::Builder {
crate::output::get_channel_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteStreamKeyOutput {}
/// See [`DeleteStreamKeyOutput`](crate::output::DeleteStreamKeyOutput).
pub mod delete_stream_key_output {
/// A builder for [`DeleteStreamKeyOutput`](crate::output::DeleteStreamKeyOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DeleteStreamKeyOutput`](crate::output::DeleteStreamKeyOutput).
pub fn build(self) -> crate::output::DeleteStreamKeyOutput {
crate::output::DeleteStreamKeyOutput {}
}
}
}
impl DeleteStreamKeyOutput {
/// Creates a new builder-style object to manufacture [`DeleteStreamKeyOutput`](crate::output::DeleteStreamKeyOutput).
pub fn builder() -> crate::output::delete_stream_key_output::Builder {
crate::output::delete_stream_key_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteRecordingConfigurationOutput {}
/// See [`DeleteRecordingConfigurationOutput`](crate::output::DeleteRecordingConfigurationOutput).
pub mod delete_recording_configuration_output {
/// A builder for [`DeleteRecordingConfigurationOutput`](crate::output::DeleteRecordingConfigurationOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DeleteRecordingConfigurationOutput`](crate::output::DeleteRecordingConfigurationOutput).
pub fn build(self) -> crate::output::DeleteRecordingConfigurationOutput {
crate::output::DeleteRecordingConfigurationOutput {}
}
}
}
impl DeleteRecordingConfigurationOutput {
/// Creates a new builder-style object to manufacture [`DeleteRecordingConfigurationOutput`](crate::output::DeleteRecordingConfigurationOutput).
pub fn builder() -> crate::output::delete_recording_configuration_output::Builder {
crate::output::delete_recording_configuration_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeletePlaybackKeyPairOutput {}
/// See [`DeletePlaybackKeyPairOutput`](crate::output::DeletePlaybackKeyPairOutput).
pub mod delete_playback_key_pair_output {
/// A builder for [`DeletePlaybackKeyPairOutput`](crate::output::DeletePlaybackKeyPairOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DeletePlaybackKeyPairOutput`](crate::output::DeletePlaybackKeyPairOutput).
pub fn build(self) -> crate::output::DeletePlaybackKeyPairOutput {
crate::output::DeletePlaybackKeyPairOutput {}
}
}
}
impl DeletePlaybackKeyPairOutput {
/// Creates a new builder-style object to manufacture [`DeletePlaybackKeyPairOutput`](crate::output::DeletePlaybackKeyPairOutput).
pub fn builder() -> crate::output::delete_playback_key_pair_output::Builder {
crate::output::delete_playback_key_pair_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteChannelOutput {}
/// See [`DeleteChannelOutput`](crate::output::DeleteChannelOutput).
pub mod delete_channel_output {
/// A builder for [`DeleteChannelOutput`](crate::output::DeleteChannelOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
/// Consumes the builder and constructs a [`DeleteChannelOutput`](crate::output::DeleteChannelOutput).
pub fn build(self) -> crate::output::DeleteChannelOutput {
crate::output::DeleteChannelOutput {}
}
}
}
impl DeleteChannelOutput {
/// Creates a new builder-style object to manufacture [`DeleteChannelOutput`](crate::output::DeleteChannelOutput).
pub fn builder() -> crate::output::delete_channel_output::Builder {
crate::output::delete_channel_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateStreamKeyOutput {
/// <p>Stream key used to authenticate an RTMPS stream for ingestion.</p>
#[doc(hidden)]
pub stream_key: std::option::Option<crate::model::StreamKey>,
}
impl CreateStreamKeyOutput {
/// <p>Stream key used to authenticate an RTMPS stream for ingestion.</p>
pub fn stream_key(&self) -> std::option::Option<&crate::model::StreamKey> {
self.stream_key.as_ref()
}
}
/// See [`CreateStreamKeyOutput`](crate::output::CreateStreamKeyOutput).
pub mod create_stream_key_output {
/// A builder for [`CreateStreamKeyOutput`](crate::output::CreateStreamKeyOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) stream_key: std::option::Option<crate::model::StreamKey>,
}
impl Builder {
/// <p>Stream key used to authenticate an RTMPS stream for ingestion.</p>
pub fn stream_key(mut self, input: crate::model::StreamKey) -> Self {
self.stream_key = Some(input);
self
}
/// <p>Stream key used to authenticate an RTMPS stream for ingestion.</p>
pub fn set_stream_key(
mut self,
input: std::option::Option<crate::model::StreamKey>,
) -> Self {
self.stream_key = input;
self
}
/// Consumes the builder and constructs a [`CreateStreamKeyOutput`](crate::output::CreateStreamKeyOutput).
pub fn build(self) -> crate::output::CreateStreamKeyOutput {
crate::output::CreateStreamKeyOutput {
stream_key: self.stream_key,
}
}
}
}
impl CreateStreamKeyOutput {
/// Creates a new builder-style object to manufacture [`CreateStreamKeyOutput`](crate::output::CreateStreamKeyOutput).
pub fn builder() -> crate::output::create_stream_key_output::Builder {
crate::output::create_stream_key_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateRecordingConfigurationOutput {
#[allow(missing_docs)] // documentation missing in model
#[doc(hidden)]
pub recording_configuration: std::option::Option<crate::model::RecordingConfiguration>,
}
impl CreateRecordingConfigurationOutput {
#[allow(missing_docs)] // documentation missing in model
pub fn recording_configuration(
&self,
) -> std::option::Option<&crate::model::RecordingConfiguration> {
self.recording_configuration.as_ref()
}
}
/// See [`CreateRecordingConfigurationOutput`](crate::output::CreateRecordingConfigurationOutput).
pub mod create_recording_configuration_output {
/// A builder for [`CreateRecordingConfigurationOutput`](crate::output::CreateRecordingConfigurationOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) recording_configuration:
std::option::Option<crate::model::RecordingConfiguration>,
}
impl Builder {
#[allow(missing_docs)] // documentation missing in model
pub fn recording_configuration(
mut self,
input: crate::model::RecordingConfiguration,
) -> Self {
self.recording_configuration = Some(input);
self
}
#[allow(missing_docs)] // documentation missing in model
pub fn set_recording_configuration(
mut self,
input: std::option::Option<crate::model::RecordingConfiguration>,
) -> Self {
self.recording_configuration = input;
self
}
/// Consumes the builder and constructs a [`CreateRecordingConfigurationOutput`](crate::output::CreateRecordingConfigurationOutput).
pub fn build(self) -> crate::output::CreateRecordingConfigurationOutput {
crate::output::CreateRecordingConfigurationOutput {
recording_configuration: self.recording_configuration,
}
}
}
}
impl CreateRecordingConfigurationOutput {
/// Creates a new builder-style object to manufacture [`CreateRecordingConfigurationOutput`](crate::output::CreateRecordingConfigurationOutput).
pub fn builder() -> crate::output::create_recording_configuration_output::Builder {
crate::output::create_recording_configuration_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateChannelOutput {
/// <p></p>
#[doc(hidden)]
pub channel: std::option::Option<crate::model::Channel>,
/// <p></p>
#[doc(hidden)]
pub stream_key: std::option::Option<crate::model::StreamKey>,
}
impl CreateChannelOutput {
/// <p></p>
pub fn channel(&self) -> std::option::Option<&crate::model::Channel> {
self.channel.as_ref()
}
/// <p></p>
pub fn stream_key(&self) -> std::option::Option<&crate::model::StreamKey> {
self.stream_key.as_ref()
}
}
/// See [`CreateChannelOutput`](crate::output::CreateChannelOutput).
pub mod create_channel_output {
/// A builder for [`CreateChannelOutput`](crate::output::CreateChannelOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel: std::option::Option<crate::model::Channel>,
pub(crate) stream_key: std::option::Option<crate::model::StreamKey>,
}
impl Builder {
/// <p></p>
pub fn channel(mut self, input: crate::model::Channel) -> Self {
self.channel = Some(input);
self
}
/// <p></p>
pub fn set_channel(mut self, input: std::option::Option<crate::model::Channel>) -> Self {
self.channel = input;
self
}
/// <p></p>
pub fn stream_key(mut self, input: crate::model::StreamKey) -> Self {
self.stream_key = Some(input);
self
}
/// <p></p>
pub fn set_stream_key(
mut self,
input: std::option::Option<crate::model::StreamKey>,
) -> Self {
self.stream_key = input;
self
}
/// Consumes the builder and constructs a [`CreateChannelOutput`](crate::output::CreateChannelOutput).
pub fn build(self) -> crate::output::CreateChannelOutput {
crate::output::CreateChannelOutput {
channel: self.channel,
stream_key: self.stream_key,
}
}
}
}
impl CreateChannelOutput {
/// Creates a new builder-style object to manufacture [`CreateChannelOutput`](crate::output::CreateChannelOutput).
pub fn builder() -> crate::output::create_channel_output::Builder {
crate::output::create_channel_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct BatchGetStreamKeyOutput {
/// <p></p>
#[doc(hidden)]
pub stream_keys: std::option::Option<std::vec::Vec<crate::model::StreamKey>>,
/// <p></p>
#[doc(hidden)]
pub errors: std::option::Option<std::vec::Vec<crate::model::BatchError>>,
}
impl BatchGetStreamKeyOutput {
/// <p></p>
pub fn stream_keys(&self) -> std::option::Option<&[crate::model::StreamKey]> {
self.stream_keys.as_deref()
}
/// <p></p>
pub fn errors(&self) -> std::option::Option<&[crate::model::BatchError]> {
self.errors.as_deref()
}
}
/// See [`BatchGetStreamKeyOutput`](crate::output::BatchGetStreamKeyOutput).
pub mod batch_get_stream_key_output {
/// A builder for [`BatchGetStreamKeyOutput`](crate::output::BatchGetStreamKeyOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) stream_keys: std::option::Option<std::vec::Vec<crate::model::StreamKey>>,
pub(crate) errors: std::option::Option<std::vec::Vec<crate::model::BatchError>>,
}
impl Builder {
/// Appends an item to `stream_keys`.
///
/// To override the contents of this collection use [`set_stream_keys`](Self::set_stream_keys).
///
/// <p></p>
pub fn stream_keys(mut self, input: crate::model::StreamKey) -> Self {
let mut v = self.stream_keys.unwrap_or_default();
v.push(input);
self.stream_keys = Some(v);
self
}
/// <p></p>
pub fn set_stream_keys(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::StreamKey>>,
) -> Self {
self.stream_keys = input;
self
}
/// Appends an item to `errors`.
///
/// To override the contents of this collection use [`set_errors`](Self::set_errors).
///
/// <p></p>
pub fn errors(mut self, input: crate::model::BatchError) -> Self {
let mut v = self.errors.unwrap_or_default();
v.push(input);
self.errors = Some(v);
self
}
/// <p></p>
pub fn set_errors(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::BatchError>>,
) -> Self {
self.errors = input;
self
}
/// Consumes the builder and constructs a [`BatchGetStreamKeyOutput`](crate::output::BatchGetStreamKeyOutput).
pub fn build(self) -> crate::output::BatchGetStreamKeyOutput {
crate::output::BatchGetStreamKeyOutput {
stream_keys: self.stream_keys,
errors: self.errors,
}
}
}
}
impl BatchGetStreamKeyOutput {
/// Creates a new builder-style object to manufacture [`BatchGetStreamKeyOutput`](crate::output::BatchGetStreamKeyOutput).
pub fn builder() -> crate::output::batch_get_stream_key_output::Builder {
crate::output::batch_get_stream_key_output::Builder::default()
}
}
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct BatchGetChannelOutput {
/// <p></p>
#[doc(hidden)]
pub channels: std::option::Option<std::vec::Vec<crate::model::Channel>>,
/// <p>Each error object is related to a specific ARN in the request.</p>
#[doc(hidden)]
pub errors: std::option::Option<std::vec::Vec<crate::model::BatchError>>,
}
impl BatchGetChannelOutput {
/// <p></p>
pub fn channels(&self) -> std::option::Option<&[crate::model::Channel]> {
self.channels.as_deref()
}
/// <p>Each error object is related to a specific ARN in the request.</p>
pub fn errors(&self) -> std::option::Option<&[crate::model::BatchError]> {
self.errors.as_deref()
}
}
/// See [`BatchGetChannelOutput`](crate::output::BatchGetChannelOutput).
pub mod batch_get_channel_output {
/// A builder for [`BatchGetChannelOutput`](crate::output::BatchGetChannelOutput).
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channels: std::option::Option<std::vec::Vec<crate::model::Channel>>,
pub(crate) errors: std::option::Option<std::vec::Vec<crate::model::BatchError>>,
}
impl Builder {
/// Appends an item to `channels`.
///
/// To override the contents of this collection use [`set_channels`](Self::set_channels).
///
/// <p></p>
pub fn channels(mut self, input: crate::model::Channel) -> Self {
let mut v = self.channels.unwrap_or_default();
v.push(input);
self.channels = Some(v);
self
}
/// <p></p>
pub fn set_channels(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Channel>>,
) -> Self {
self.channels = input;
self
}
/// Appends an item to `errors`.
///
/// To override the contents of this collection use [`set_errors`](Self::set_errors).
///
/// <p>Each error object is related to a specific ARN in the request.</p>
pub fn errors(mut self, input: crate::model::BatchError) -> Self {
let mut v = self.errors.unwrap_or_default();
v.push(input);
self.errors = Some(v);
self
}
/// <p>Each error object is related to a specific ARN in the request.</p>
pub fn set_errors(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::BatchError>>,
) -> Self {
self.errors = input;
self
}
/// Consumes the builder and constructs a [`BatchGetChannelOutput`](crate::output::BatchGetChannelOutput).
pub fn build(self) -> crate::output::BatchGetChannelOutput {
crate::output::BatchGetChannelOutput {
channels: self.channels,
errors: self.errors,
}
}
}
}
impl BatchGetChannelOutput {
/// Creates a new builder-style object to manufacture [`BatchGetChannelOutput`](crate::output::BatchGetChannelOutput).
pub fn builder() -> crate::output::batch_get_channel_output::Builder {
crate::output::batch_get_channel_output::Builder::default()
}
}