{-# 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.MediaConnect.Types.MediaStreamAttributesRequest -- 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.MediaConnect.Types.MediaStreamAttributesRequest where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.MediaConnect.Types.FmtpRequest import qualified Amazonka.Prelude as Prelude -- | Attributes that are related to the media stream. -- -- /See:/ 'newMediaStreamAttributesRequest' smart constructor. data MediaStreamAttributesRequest = MediaStreamAttributesRequest' { -- | The settings that you want to use to define the media stream. fmtp :: Prelude.Maybe FmtpRequest, -- | The audio language, in a format that is recognized by the receiver. lang :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'MediaStreamAttributesRequest' 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: -- -- 'fmtp', 'mediaStreamAttributesRequest_fmtp' - The settings that you want to use to define the media stream. -- -- 'lang', 'mediaStreamAttributesRequest_lang' - The audio language, in a format that is recognized by the receiver. newMediaStreamAttributesRequest :: MediaStreamAttributesRequest newMediaStreamAttributesRequest = MediaStreamAttributesRequest' { fmtp = Prelude.Nothing, lang = Prelude.Nothing } -- | The settings that you want to use to define the media stream. mediaStreamAttributesRequest_fmtp :: Lens.Lens' MediaStreamAttributesRequest (Prelude.Maybe FmtpRequest) mediaStreamAttributesRequest_fmtp = Lens.lens (\MediaStreamAttributesRequest' {fmtp} -> fmtp) (\s@MediaStreamAttributesRequest' {} a -> s {fmtp = a} :: MediaStreamAttributesRequest) -- | The audio language, in a format that is recognized by the receiver. mediaStreamAttributesRequest_lang :: Lens.Lens' MediaStreamAttributesRequest (Prelude.Maybe Prelude.Text) mediaStreamAttributesRequest_lang = Lens.lens (\MediaStreamAttributesRequest' {lang} -> lang) (\s@MediaStreamAttributesRequest' {} a -> s {lang = a} :: MediaStreamAttributesRequest) instance Prelude.Hashable MediaStreamAttributesRequest where hashWithSalt _salt MediaStreamAttributesRequest' {..} = _salt `Prelude.hashWithSalt` fmtp `Prelude.hashWithSalt` lang instance Prelude.NFData MediaStreamAttributesRequest where rnf MediaStreamAttributesRequest' {..} = Prelude.rnf fmtp `Prelude.seq` Prelude.rnf lang instance Data.ToJSON MediaStreamAttributesRequest where toJSON MediaStreamAttributesRequest' {..} = Data.object ( Prelude.catMaybes [ ("fmtp" Data..=) Prelude.<$> fmtp, ("lang" Data..=) Prelude.<$> lang ] )