{-# 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.MediaLive.Types.InputDeviceSettings -- 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.MediaLive.Types.InputDeviceSettings 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 -- | Settings for an input device. -- -- /See:/ 'newInputDeviceSettings' smart constructor. data InputDeviceSettings = InputDeviceSettings' { -- | The unique ID for the device. id :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'InputDeviceSettings' 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: -- -- 'id', 'inputDeviceSettings_id' - The unique ID for the device. newInputDeviceSettings :: InputDeviceSettings newInputDeviceSettings = InputDeviceSettings' {id = Prelude.Nothing} -- | The unique ID for the device. inputDeviceSettings_id :: Lens.Lens' InputDeviceSettings (Prelude.Maybe Prelude.Text) inputDeviceSettings_id = Lens.lens (\InputDeviceSettings' {id} -> id) (\s@InputDeviceSettings' {} a -> s {id = a} :: InputDeviceSettings) instance Data.FromJSON InputDeviceSettings where parseJSON = Data.withObject "InputDeviceSettings" ( \x -> InputDeviceSettings' Prelude.<$> (x Data..:? "id") ) instance Prelude.Hashable InputDeviceSettings where hashWithSalt _salt InputDeviceSettings' {..} = _salt `Prelude.hashWithSalt` id instance Prelude.NFData InputDeviceSettings where rnf InputDeviceSettings' {..} = Prelude.rnf id instance Data.ToJSON InputDeviceSettings where toJSON InputDeviceSettings' {..} = Data.object (Prelude.catMaybes [("id" Data..=) Prelude.<$> id])