{-# 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 #-}
module Amazonka.SSM.Types.InventoryDeletionSummaryItem where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data InventoryDeletionSummaryItem = InventoryDeletionSummaryItem'
{
InventoryDeletionSummaryItem -> Maybe Int
remainingCount :: Prelude.Maybe Prelude.Int,
InventoryDeletionSummaryItem -> Maybe Int
count :: Prelude.Maybe Prelude.Int,
InventoryDeletionSummaryItem -> Maybe Text
version :: Prelude.Maybe Prelude.Text
}
deriving (InventoryDeletionSummaryItem
-> InventoryDeletionSummaryItem -> Bool
(InventoryDeletionSummaryItem
-> InventoryDeletionSummaryItem -> Bool)
-> (InventoryDeletionSummaryItem
-> InventoryDeletionSummaryItem -> Bool)
-> Eq InventoryDeletionSummaryItem
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InventoryDeletionSummaryItem
-> InventoryDeletionSummaryItem -> Bool
$c/= :: InventoryDeletionSummaryItem
-> InventoryDeletionSummaryItem -> Bool
== :: InventoryDeletionSummaryItem
-> InventoryDeletionSummaryItem -> Bool
$c== :: InventoryDeletionSummaryItem
-> InventoryDeletionSummaryItem -> Bool
Prelude.Eq, ReadPrec [InventoryDeletionSummaryItem]
ReadPrec InventoryDeletionSummaryItem
Int -> ReadS InventoryDeletionSummaryItem
ReadS [InventoryDeletionSummaryItem]
(Int -> ReadS InventoryDeletionSummaryItem)
-> ReadS [InventoryDeletionSummaryItem]
-> ReadPrec InventoryDeletionSummaryItem
-> ReadPrec [InventoryDeletionSummaryItem]
-> Read InventoryDeletionSummaryItem
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InventoryDeletionSummaryItem]
$creadListPrec :: ReadPrec [InventoryDeletionSummaryItem]
readPrec :: ReadPrec InventoryDeletionSummaryItem
$creadPrec :: ReadPrec InventoryDeletionSummaryItem
readList :: ReadS [InventoryDeletionSummaryItem]
$creadList :: ReadS [InventoryDeletionSummaryItem]
readsPrec :: Int -> ReadS InventoryDeletionSummaryItem
$creadsPrec :: Int -> ReadS InventoryDeletionSummaryItem
Prelude.Read, Int -> InventoryDeletionSummaryItem -> ShowS
[InventoryDeletionSummaryItem] -> ShowS
InventoryDeletionSummaryItem -> String
(Int -> InventoryDeletionSummaryItem -> ShowS)
-> (InventoryDeletionSummaryItem -> String)
-> ([InventoryDeletionSummaryItem] -> ShowS)
-> Show InventoryDeletionSummaryItem
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InventoryDeletionSummaryItem] -> ShowS
$cshowList :: [InventoryDeletionSummaryItem] -> ShowS
show :: InventoryDeletionSummaryItem -> String
$cshow :: InventoryDeletionSummaryItem -> String
showsPrec :: Int -> InventoryDeletionSummaryItem -> ShowS
$cshowsPrec :: Int -> InventoryDeletionSummaryItem -> ShowS
Prelude.Show, (forall x.
InventoryDeletionSummaryItem -> Rep InventoryDeletionSummaryItem x)
-> (forall x.
Rep InventoryDeletionSummaryItem x -> InventoryDeletionSummaryItem)
-> Generic InventoryDeletionSummaryItem
forall x.
Rep InventoryDeletionSummaryItem x -> InventoryDeletionSummaryItem
forall x.
InventoryDeletionSummaryItem -> Rep InventoryDeletionSummaryItem x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep InventoryDeletionSummaryItem x -> InventoryDeletionSummaryItem
$cfrom :: forall x.
InventoryDeletionSummaryItem -> Rep InventoryDeletionSummaryItem x
Prelude.Generic)
newInventoryDeletionSummaryItem ::
InventoryDeletionSummaryItem
newInventoryDeletionSummaryItem :: InventoryDeletionSummaryItem
newInventoryDeletionSummaryItem =
InventoryDeletionSummaryItem' :: Maybe Int
-> Maybe Int -> Maybe Text -> InventoryDeletionSummaryItem
InventoryDeletionSummaryItem'
{ $sel:remainingCount:InventoryDeletionSummaryItem' :: Maybe Int
remainingCount =
Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:count:InventoryDeletionSummaryItem' :: Maybe Int
count = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:version:InventoryDeletionSummaryItem' :: Maybe Text
version = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
inventoryDeletionSummaryItem_remainingCount :: Lens.Lens' InventoryDeletionSummaryItem (Prelude.Maybe Prelude.Int)
inventoryDeletionSummaryItem_remainingCount :: (Maybe Int -> f (Maybe Int))
-> InventoryDeletionSummaryItem -> f InventoryDeletionSummaryItem
inventoryDeletionSummaryItem_remainingCount = (InventoryDeletionSummaryItem -> Maybe Int)
-> (InventoryDeletionSummaryItem
-> Maybe Int -> InventoryDeletionSummaryItem)
-> Lens
InventoryDeletionSummaryItem
InventoryDeletionSummaryItem
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InventoryDeletionSummaryItem' {Maybe Int
remainingCount :: Maybe Int
$sel:remainingCount:InventoryDeletionSummaryItem' :: InventoryDeletionSummaryItem -> Maybe Int
remainingCount} -> Maybe Int
remainingCount) (\s :: InventoryDeletionSummaryItem
s@InventoryDeletionSummaryItem' {} Maybe Int
a -> InventoryDeletionSummaryItem
s {$sel:remainingCount:InventoryDeletionSummaryItem' :: Maybe Int
remainingCount = Maybe Int
a} :: InventoryDeletionSummaryItem)
inventoryDeletionSummaryItem_count :: Lens.Lens' InventoryDeletionSummaryItem (Prelude.Maybe Prelude.Int)
inventoryDeletionSummaryItem_count :: (Maybe Int -> f (Maybe Int))
-> InventoryDeletionSummaryItem -> f InventoryDeletionSummaryItem
inventoryDeletionSummaryItem_count = (InventoryDeletionSummaryItem -> Maybe Int)
-> (InventoryDeletionSummaryItem
-> Maybe Int -> InventoryDeletionSummaryItem)
-> Lens
InventoryDeletionSummaryItem
InventoryDeletionSummaryItem
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InventoryDeletionSummaryItem' {Maybe Int
count :: Maybe Int
$sel:count:InventoryDeletionSummaryItem' :: InventoryDeletionSummaryItem -> Maybe Int
count} -> Maybe Int
count) (\s :: InventoryDeletionSummaryItem
s@InventoryDeletionSummaryItem' {} Maybe Int
a -> InventoryDeletionSummaryItem
s {$sel:count:InventoryDeletionSummaryItem' :: Maybe Int
count = Maybe Int
a} :: InventoryDeletionSummaryItem)
inventoryDeletionSummaryItem_version :: Lens.Lens' InventoryDeletionSummaryItem (Prelude.Maybe Prelude.Text)
inventoryDeletionSummaryItem_version :: (Maybe Text -> f (Maybe Text))
-> InventoryDeletionSummaryItem -> f InventoryDeletionSummaryItem
inventoryDeletionSummaryItem_version = (InventoryDeletionSummaryItem -> Maybe Text)
-> (InventoryDeletionSummaryItem
-> Maybe Text -> InventoryDeletionSummaryItem)
-> Lens
InventoryDeletionSummaryItem
InventoryDeletionSummaryItem
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InventoryDeletionSummaryItem' {Maybe Text
version :: Maybe Text
$sel:version:InventoryDeletionSummaryItem' :: InventoryDeletionSummaryItem -> Maybe Text
version} -> Maybe Text
version) (\s :: InventoryDeletionSummaryItem
s@InventoryDeletionSummaryItem' {} Maybe Text
a -> InventoryDeletionSummaryItem
s {$sel:version:InventoryDeletionSummaryItem' :: Maybe Text
version = Maybe Text
a} :: InventoryDeletionSummaryItem)
instance Core.FromJSON InventoryDeletionSummaryItem where
parseJSON :: Value -> Parser InventoryDeletionSummaryItem
parseJSON =
String
-> (Object -> Parser InventoryDeletionSummaryItem)
-> Value
-> Parser InventoryDeletionSummaryItem
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"InventoryDeletionSummaryItem"
( \Object
x ->
Maybe Int
-> Maybe Int -> Maybe Text -> InventoryDeletionSummaryItem
InventoryDeletionSummaryItem'
(Maybe Int
-> Maybe Int -> Maybe Text -> InventoryDeletionSummaryItem)
-> Parser (Maybe Int)
-> Parser (Maybe Int -> Maybe Text -> InventoryDeletionSummaryItem)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RemainingCount")
Parser (Maybe Int -> Maybe Text -> InventoryDeletionSummaryItem)
-> Parser (Maybe Int)
-> Parser (Maybe Text -> InventoryDeletionSummaryItem)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Count")
Parser (Maybe Text -> InventoryDeletionSummaryItem)
-> Parser (Maybe Text) -> Parser InventoryDeletionSummaryItem
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Version")
)
instance
Prelude.Hashable
InventoryDeletionSummaryItem
instance Prelude.NFData InventoryDeletionSummaryItem