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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// Output Group settings, including type
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct OutputGroupSettings {
    /// Settings related to your CMAF output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
    pub cmaf_group_settings: ::std::option::Option<crate::types::CmafGroupSettings>,
    /// Settings related to your DASH output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
    pub dash_iso_group_settings: ::std::option::Option<crate::types::DashIsoGroupSettings>,
    /// Settings related to your File output group. MediaConvert uses this group of settings to generate a single standalone file, rather than a streaming package.
    pub file_group_settings: ::std::option::Option<crate::types::FileGroupSettings>,
    /// Settings related to your HLS output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
    pub hls_group_settings: ::std::option::Option<crate::types::HlsGroupSettings>,
    /// Settings related to your Microsoft Smooth Streaming output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
    pub ms_smooth_group_settings: ::std::option::Option<crate::types::MsSmoothGroupSettings>,
    /// Type of output group (File group, Apple HLS, DASH ISO, Microsoft Smooth Streaming, CMAF)
    pub r#type: ::std::option::Option<crate::types::OutputGroupType>,
}
impl OutputGroupSettings {
    /// Settings related to your CMAF output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
    pub fn cmaf_group_settings(&self) -> ::std::option::Option<&crate::types::CmafGroupSettings> {
        self.cmaf_group_settings.as_ref()
    }
    /// Settings related to your DASH output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
    pub fn dash_iso_group_settings(&self) -> ::std::option::Option<&crate::types::DashIsoGroupSettings> {
        self.dash_iso_group_settings.as_ref()
    }
    /// Settings related to your File output group. MediaConvert uses this group of settings to generate a single standalone file, rather than a streaming package.
    pub fn file_group_settings(&self) -> ::std::option::Option<&crate::types::FileGroupSettings> {
        self.file_group_settings.as_ref()
    }
    /// Settings related to your HLS output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
    pub fn hls_group_settings(&self) -> ::std::option::Option<&crate::types::HlsGroupSettings> {
        self.hls_group_settings.as_ref()
    }
    /// Settings related to your Microsoft Smooth Streaming output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
    pub fn ms_smooth_group_settings(&self) -> ::std::option::Option<&crate::types::MsSmoothGroupSettings> {
        self.ms_smooth_group_settings.as_ref()
    }
    /// Type of output group (File group, Apple HLS, DASH ISO, Microsoft Smooth Streaming, CMAF)
    pub fn r#type(&self) -> ::std::option::Option<&crate::types::OutputGroupType> {
        self.r#type.as_ref()
    }
}
impl OutputGroupSettings {
    /// Creates a new builder-style object to manufacture [`OutputGroupSettings`](crate::types::OutputGroupSettings).
    pub fn builder() -> crate::types::builders::OutputGroupSettingsBuilder {
        crate::types::builders::OutputGroupSettingsBuilder::default()
    }
}

/// A builder for [`OutputGroupSettings`](crate::types::OutputGroupSettings).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct OutputGroupSettingsBuilder {
    pub(crate) cmaf_group_settings: ::std::option::Option<crate::types::CmafGroupSettings>,
    pub(crate) dash_iso_group_settings: ::std::option::Option<crate::types::DashIsoGroupSettings>,
    pub(crate) file_group_settings: ::std::option::Option<crate::types::FileGroupSettings>,
    pub(crate) hls_group_settings: ::std::option::Option<crate::types::HlsGroupSettings>,
    pub(crate) ms_smooth_group_settings: ::std::option::Option<crate::types::MsSmoothGroupSettings>,
    pub(crate) r#type: ::std::option::Option<crate::types::OutputGroupType>,
}
impl OutputGroupSettingsBuilder {
    /// Settings related to your CMAF output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
    pub fn cmaf_group_settings(mut self, input: crate::types::CmafGroupSettings) -> Self {
        self.cmaf_group_settings = ::std::option::Option::Some(input);
        self
    }
    /// Settings related to your CMAF output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
    pub fn set_cmaf_group_settings(mut self, input: ::std::option::Option<crate::types::CmafGroupSettings>) -> Self {
        self.cmaf_group_settings = input;
        self
    }
    /// Settings related to your CMAF output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
    pub fn get_cmaf_group_settings(&self) -> &::std::option::Option<crate::types::CmafGroupSettings> {
        &self.cmaf_group_settings
    }
    /// Settings related to your DASH output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
    pub fn dash_iso_group_settings(mut self, input: crate::types::DashIsoGroupSettings) -> Self {
        self.dash_iso_group_settings = ::std::option::Option::Some(input);
        self
    }
    /// Settings related to your DASH output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
    pub fn set_dash_iso_group_settings(mut self, input: ::std::option::Option<crate::types::DashIsoGroupSettings>) -> Self {
        self.dash_iso_group_settings = input;
        self
    }
    /// Settings related to your DASH output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
    pub fn get_dash_iso_group_settings(&self) -> &::std::option::Option<crate::types::DashIsoGroupSettings> {
        &self.dash_iso_group_settings
    }
    /// Settings related to your File output group. MediaConvert uses this group of settings to generate a single standalone file, rather than a streaming package.
    pub fn file_group_settings(mut self, input: crate::types::FileGroupSettings) -> Self {
        self.file_group_settings = ::std::option::Option::Some(input);
        self
    }
    /// Settings related to your File output group. MediaConvert uses this group of settings to generate a single standalone file, rather than a streaming package.
    pub fn set_file_group_settings(mut self, input: ::std::option::Option<crate::types::FileGroupSettings>) -> Self {
        self.file_group_settings = input;
        self
    }
    /// Settings related to your File output group. MediaConvert uses this group of settings to generate a single standalone file, rather than a streaming package.
    pub fn get_file_group_settings(&self) -> &::std::option::Option<crate::types::FileGroupSettings> {
        &self.file_group_settings
    }
    /// Settings related to your HLS output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
    pub fn hls_group_settings(mut self, input: crate::types::HlsGroupSettings) -> Self {
        self.hls_group_settings = ::std::option::Option::Some(input);
        self
    }
    /// Settings related to your HLS output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
    pub fn set_hls_group_settings(mut self, input: ::std::option::Option<crate::types::HlsGroupSettings>) -> Self {
        self.hls_group_settings = input;
        self
    }
    /// Settings related to your HLS output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
    pub fn get_hls_group_settings(&self) -> &::std::option::Option<crate::types::HlsGroupSettings> {
        &self.hls_group_settings
    }
    /// Settings related to your Microsoft Smooth Streaming output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
    pub fn ms_smooth_group_settings(mut self, input: crate::types::MsSmoothGroupSettings) -> Self {
        self.ms_smooth_group_settings = ::std::option::Option::Some(input);
        self
    }
    /// Settings related to your Microsoft Smooth Streaming output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
    pub fn set_ms_smooth_group_settings(mut self, input: ::std::option::Option<crate::types::MsSmoothGroupSettings>) -> Self {
        self.ms_smooth_group_settings = input;
        self
    }
    /// Settings related to your Microsoft Smooth Streaming output package. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/outputs-file-ABR.html.
    pub fn get_ms_smooth_group_settings(&self) -> &::std::option::Option<crate::types::MsSmoothGroupSettings> {
        &self.ms_smooth_group_settings
    }
    /// Type of output group (File group, Apple HLS, DASH ISO, Microsoft Smooth Streaming, CMAF)
    pub fn r#type(mut self, input: crate::types::OutputGroupType) -> Self {
        self.r#type = ::std::option::Option::Some(input);
        self
    }
    /// Type of output group (File group, Apple HLS, DASH ISO, Microsoft Smooth Streaming, CMAF)
    pub fn set_type(mut self, input: ::std::option::Option<crate::types::OutputGroupType>) -> Self {
        self.r#type = input;
        self
    }
    /// Type of output group (File group, Apple HLS, DASH ISO, Microsoft Smooth Streaming, CMAF)
    pub fn get_type(&self) -> &::std::option::Option<crate::types::OutputGroupType> {
        &self.r#type
    }
    /// Consumes the builder and constructs a [`OutputGroupSettings`](crate::types::OutputGroupSettings).
    pub fn build(self) -> crate::types::OutputGroupSettings {
        crate::types::OutputGroupSettings {
            cmaf_group_settings: self.cmaf_group_settings,
            dash_iso_group_settings: self.dash_iso_group_settings,
            file_group_settings: self.file_group_settings,
            hls_group_settings: self.hls_group_settings,
            ms_smooth_group_settings: self.ms_smooth_group_settings,
            r#type: self.r#type,
        }
    }
}