{-# 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.LoRaWANGatewayCurrentVersion -- 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.LoRaWANGatewayCurrentVersion 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.LoRaWANGatewayVersion import qualified Amazonka.Prelude as Prelude -- | LoRaWANGatewayCurrentVersion object. -- -- /See:/ 'newLoRaWANGatewayCurrentVersion' smart constructor. data LoRaWANGatewayCurrentVersion = LoRaWANGatewayCurrentVersion' { -- | The version of the gateways that should receive the update. currentVersion :: Prelude.Maybe LoRaWANGatewayVersion } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'LoRaWANGatewayCurrentVersion' 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: -- -- 'currentVersion', 'loRaWANGatewayCurrentVersion_currentVersion' - The version of the gateways that should receive the update. newLoRaWANGatewayCurrentVersion :: LoRaWANGatewayCurrentVersion newLoRaWANGatewayCurrentVersion = LoRaWANGatewayCurrentVersion' { currentVersion = Prelude.Nothing } -- | The version of the gateways that should receive the update. loRaWANGatewayCurrentVersion_currentVersion :: Lens.Lens' LoRaWANGatewayCurrentVersion (Prelude.Maybe LoRaWANGatewayVersion) loRaWANGatewayCurrentVersion_currentVersion = Lens.lens (\LoRaWANGatewayCurrentVersion' {currentVersion} -> currentVersion) (\s@LoRaWANGatewayCurrentVersion' {} a -> s {currentVersion = a} :: LoRaWANGatewayCurrentVersion) instance Data.FromJSON LoRaWANGatewayCurrentVersion where parseJSON = Data.withObject "LoRaWANGatewayCurrentVersion" ( \x -> LoRaWANGatewayCurrentVersion' Prelude.<$> (x Data..:? "CurrentVersion") ) instance Prelude.Hashable LoRaWANGatewayCurrentVersion where hashWithSalt _salt LoRaWANGatewayCurrentVersion' {..} = _salt `Prelude.hashWithSalt` currentVersion instance Prelude.NFData LoRaWANGatewayCurrentVersion where rnf LoRaWANGatewayCurrentVersion' {..} = Prelude.rnf currentVersion