{-# 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.SSM.Types.InventoryDeletionSummaryItem -- 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.SSM.Types.InventoryDeletionSummaryItem 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 -- | Either a count, remaining count, or a version number in a delete -- inventory summary. -- -- /See:/ 'newInventoryDeletionSummaryItem' smart constructor. data InventoryDeletionSummaryItem = InventoryDeletionSummaryItem' { -- | A count of the number of deleted items. count :: Prelude.Maybe Prelude.Int, -- | The remaining number of items to delete. remainingCount :: Prelude.Maybe Prelude.Int, -- | The inventory type version. version :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'InventoryDeletionSummaryItem' 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: -- -- 'count', 'inventoryDeletionSummaryItem_count' - A count of the number of deleted items. -- -- 'remainingCount', 'inventoryDeletionSummaryItem_remainingCount' - The remaining number of items to delete. -- -- 'version', 'inventoryDeletionSummaryItem_version' - The inventory type version. newInventoryDeletionSummaryItem :: InventoryDeletionSummaryItem newInventoryDeletionSummaryItem = InventoryDeletionSummaryItem' { count = Prelude.Nothing, remainingCount = Prelude.Nothing, version = Prelude.Nothing } -- | A count of the number of deleted items. inventoryDeletionSummaryItem_count :: Lens.Lens' InventoryDeletionSummaryItem (Prelude.Maybe Prelude.Int) inventoryDeletionSummaryItem_count = Lens.lens (\InventoryDeletionSummaryItem' {count} -> count) (\s@InventoryDeletionSummaryItem' {} a -> s {count = a} :: InventoryDeletionSummaryItem) -- | The remaining number of items to delete. inventoryDeletionSummaryItem_remainingCount :: Lens.Lens' InventoryDeletionSummaryItem (Prelude.Maybe Prelude.Int) inventoryDeletionSummaryItem_remainingCount = Lens.lens (\InventoryDeletionSummaryItem' {remainingCount} -> remainingCount) (\s@InventoryDeletionSummaryItem' {} a -> s {remainingCount = a} :: InventoryDeletionSummaryItem) -- | The inventory type version. inventoryDeletionSummaryItem_version :: Lens.Lens' InventoryDeletionSummaryItem (Prelude.Maybe Prelude.Text) inventoryDeletionSummaryItem_version = Lens.lens (\InventoryDeletionSummaryItem' {version} -> version) (\s@InventoryDeletionSummaryItem' {} a -> s {version = a} :: InventoryDeletionSummaryItem) instance Data.FromJSON InventoryDeletionSummaryItem where parseJSON = Data.withObject "InventoryDeletionSummaryItem" ( \x -> InventoryDeletionSummaryItem' Prelude.<$> (x Data..:? "Count") Prelude.<*> (x Data..:? "RemainingCount") Prelude.<*> (x Data..:? "Version") ) instance Prelude.Hashable InventoryDeletionSummaryItem where hashWithSalt _salt InventoryDeletionSummaryItem' {..} = _salt `Prelude.hashWithSalt` count `Prelude.hashWithSalt` remainingCount `Prelude.hashWithSalt` version instance Prelude.NFData InventoryDeletionSummaryItem where rnf InventoryDeletionSummaryItem' {..} = Prelude.rnf count `Prelude.seq` Prelude.rnf remainingCount `Prelude.seq` Prelude.rnf version