{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Amazonka.MediaConvert.Types.AudioSelectorGroup -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) module Amazonka.MediaConvert.Types.AudioSelectorGroup where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import qualified Amazonka.Prelude as Prelude -- | Use audio selector groups to combine multiple sidecar audio inputs so -- that you can assign them to a single output audio tab -- (AudioDescription). Note that, if you\'re working with embedded audio, -- it\'s simpler to assign multiple input tracks into a single audio -- selector rather than use an audio selector group. -- -- /See:/ 'newAudioSelectorGroup' smart constructor. data AudioSelectorGroup = AudioSelectorGroup' { -- | Name of an Audio Selector within the same input to include in the group. -- Audio selector names are standardized, based on their order within the -- input (e.g., \"Audio Selector 1\"). The audio selector name parameter -- can be repeated to add any number of audio selectors to the group. audioSelectorNames :: Prelude.Maybe [Prelude.Text] } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'AudioSelectorGroup' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'audioSelectorNames', 'audioSelectorGroup_audioSelectorNames' - Name of an Audio Selector within the same input to include in the group. -- Audio selector names are standardized, based on their order within the -- input (e.g., \"Audio Selector 1\"). The audio selector name parameter -- can be repeated to add any number of audio selectors to the group. newAudioSelectorGroup :: AudioSelectorGroup newAudioSelectorGroup = AudioSelectorGroup' { audioSelectorNames = Prelude.Nothing } -- | Name of an Audio Selector within the same input to include in the group. -- Audio selector names are standardized, based on their order within the -- input (e.g., \"Audio Selector 1\"). The audio selector name parameter -- can be repeated to add any number of audio selectors to the group. audioSelectorGroup_audioSelectorNames :: Lens.Lens' AudioSelectorGroup (Prelude.Maybe [Prelude.Text]) audioSelectorGroup_audioSelectorNames = Lens.lens (\AudioSelectorGroup' {audioSelectorNames} -> audioSelectorNames) (\s@AudioSelectorGroup' {} a -> s {audioSelectorNames = a} :: AudioSelectorGroup) Prelude.. Lens.mapping Lens.coerced instance Data.FromJSON AudioSelectorGroup where parseJSON = Data.withObject "AudioSelectorGroup" ( \x -> AudioSelectorGroup' Prelude.<$> ( x Data..:? "audioSelectorNames" Data..!= Prelude.mempty ) ) instance Prelude.Hashable AudioSelectorGroup where hashWithSalt _salt AudioSelectorGroup' {..} = _salt `Prelude.hashWithSalt` audioSelectorNames instance Prelude.NFData AudioSelectorGroup where rnf AudioSelectorGroup' {..} = Prelude.rnf audioSelectorNames instance Data.ToJSON AudioSelectorGroup where toJSON AudioSelectorGroup' {..} = Data.object ( Prelude.catMaybes [ ("audioSelectorNames" Data..=) Prelude.<$> audioSelectorNames ] )