{-# 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.GreengrassV2.Types.DisassociateClientDeviceFromCoreDeviceEntry -- 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.GreengrassV2.Types.DisassociateClientDeviceFromCoreDeviceEntry 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 -- | Contains a request to disassociate a client device from a core device. -- The -- -- operation consumes a list of these requests. -- -- /See:/ 'newDisassociateClientDeviceFromCoreDeviceEntry' smart constructor. data DisassociateClientDeviceFromCoreDeviceEntry = DisassociateClientDeviceFromCoreDeviceEntry' { -- | The name of the IoT thing that represents the client device to -- disassociate. thingName :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'DisassociateClientDeviceFromCoreDeviceEntry' 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: -- -- 'thingName', 'disassociateClientDeviceFromCoreDeviceEntry_thingName' - The name of the IoT thing that represents the client device to -- disassociate. newDisassociateClientDeviceFromCoreDeviceEntry :: -- | 'thingName' Prelude.Text -> DisassociateClientDeviceFromCoreDeviceEntry newDisassociateClientDeviceFromCoreDeviceEntry pThingName_ = DisassociateClientDeviceFromCoreDeviceEntry' { thingName = pThingName_ } -- | The name of the IoT thing that represents the client device to -- disassociate. disassociateClientDeviceFromCoreDeviceEntry_thingName :: Lens.Lens' DisassociateClientDeviceFromCoreDeviceEntry Prelude.Text disassociateClientDeviceFromCoreDeviceEntry_thingName = Lens.lens (\DisassociateClientDeviceFromCoreDeviceEntry' {thingName} -> thingName) (\s@DisassociateClientDeviceFromCoreDeviceEntry' {} a -> s {thingName = a} :: DisassociateClientDeviceFromCoreDeviceEntry) instance Prelude.Hashable DisassociateClientDeviceFromCoreDeviceEntry where hashWithSalt _salt DisassociateClientDeviceFromCoreDeviceEntry' {..} = _salt `Prelude.hashWithSalt` thingName instance Prelude.NFData DisassociateClientDeviceFromCoreDeviceEntry where rnf DisassociateClientDeviceFromCoreDeviceEntry' {..} = Prelude.rnf thingName instance Data.ToJSON DisassociateClientDeviceFromCoreDeviceEntry where toJSON DisassociateClientDeviceFromCoreDeviceEntry' {..} = Data.object ( Prelude.catMaybes [Prelude.Just ("thingName" Data..= thingName)] )