amazonka-iotwireless-2.0: gen/Amazonka/IoTWireless/Types/SidewalkUpdateAccount.hs
{-# 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.SidewalkUpdateAccount
-- 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.SidewalkUpdateAccount 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
-- | Sidewalk update.
--
-- /See:/ 'newSidewalkUpdateAccount' smart constructor.
data SidewalkUpdateAccount = SidewalkUpdateAccount'
{ -- | The new Sidewalk application server private key.
appServerPrivateKey :: Prelude.Maybe (Data.Sensitive Prelude.Text)
}
deriving (Prelude.Eq, Prelude.Show, Prelude.Generic)
-- |
-- Create a value of 'SidewalkUpdateAccount' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'appServerPrivateKey', 'sidewalkUpdateAccount_appServerPrivateKey' - The new Sidewalk application server private key.
newSidewalkUpdateAccount ::
SidewalkUpdateAccount
newSidewalkUpdateAccount =
SidewalkUpdateAccount'
{ appServerPrivateKey =
Prelude.Nothing
}
-- | The new Sidewalk application server private key.
sidewalkUpdateAccount_appServerPrivateKey :: Lens.Lens' SidewalkUpdateAccount (Prelude.Maybe Prelude.Text)
sidewalkUpdateAccount_appServerPrivateKey = Lens.lens (\SidewalkUpdateAccount' {appServerPrivateKey} -> appServerPrivateKey) (\s@SidewalkUpdateAccount' {} a -> s {appServerPrivateKey = a} :: SidewalkUpdateAccount) Prelude.. Lens.mapping Data._Sensitive
instance Prelude.Hashable SidewalkUpdateAccount where
hashWithSalt _salt SidewalkUpdateAccount' {..} =
_salt `Prelude.hashWithSalt` appServerPrivateKey
instance Prelude.NFData SidewalkUpdateAccount where
rnf SidewalkUpdateAccount' {..} =
Prelude.rnf appServerPrivateKey
instance Data.ToJSON SidewalkUpdateAccount where
toJSON SidewalkUpdateAccount' {..} =
Data.object
( Prelude.catMaybes
[ ("AppServerPrivateKey" Data..=)
Prelude.<$> appServerPrivateKey
]
)