{-# 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.IoTWireless.Types.UpdateFPorts -- 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.IoTWireless.Types.UpdateFPorts where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.IoTWireless.Types.ApplicationConfig import Amazonka.IoTWireless.Types.Positioning import qualified Amazonka.Prelude as Prelude -- | Object for updating the FPorts information. -- -- /See:/ 'newUpdateFPorts' smart constructor. data UpdateFPorts = UpdateFPorts' { -- | LoRaWAN application, which can be used for geolocation by activating -- positioning. applications :: Prelude.Maybe [ApplicationConfig], -- | Positioning FPorts for the ClockSync, Stream, and GNSS functions. positioning :: Prelude.Maybe Positioning } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'UpdateFPorts' 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: -- -- 'applications', 'updateFPorts_applications' - LoRaWAN application, which can be used for geolocation by activating -- positioning. -- -- 'positioning', 'updateFPorts_positioning' - Positioning FPorts for the ClockSync, Stream, and GNSS functions. newUpdateFPorts :: UpdateFPorts newUpdateFPorts = UpdateFPorts' { applications = Prelude.Nothing, positioning = Prelude.Nothing } -- | LoRaWAN application, which can be used for geolocation by activating -- positioning. updateFPorts_applications :: Lens.Lens' UpdateFPorts (Prelude.Maybe [ApplicationConfig]) updateFPorts_applications = Lens.lens (\UpdateFPorts' {applications} -> applications) (\s@UpdateFPorts' {} a -> s {applications = a} :: UpdateFPorts) Prelude.. Lens.mapping Lens.coerced -- | Positioning FPorts for the ClockSync, Stream, and GNSS functions. updateFPorts_positioning :: Lens.Lens' UpdateFPorts (Prelude.Maybe Positioning) updateFPorts_positioning = Lens.lens (\UpdateFPorts' {positioning} -> positioning) (\s@UpdateFPorts' {} a -> s {positioning = a} :: UpdateFPorts) instance Prelude.Hashable UpdateFPorts where hashWithSalt _salt UpdateFPorts' {..} = _salt `Prelude.hashWithSalt` applications `Prelude.hashWithSalt` positioning instance Prelude.NFData UpdateFPorts where rnf UpdateFPorts' {..} = Prelude.rnf applications `Prelude.seq` Prelude.rnf positioning instance Data.ToJSON UpdateFPorts where toJSON UpdateFPorts' {..} = Data.object ( Prelude.catMaybes [ ("Applications" Data..=) Prelude.<$> applications, ("Positioning" Data..=) Prelude.<$> positioning ] )