{-# 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.LexV2Models.Types.SlotTypeStatistics 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
data SlotTypeStatistics = SlotTypeStatistics'
{
SlotTypeStatistics -> Maybe Int
discoveredSlotTypeCount :: Prelude.Maybe Prelude.Int
}
deriving (SlotTypeStatistics -> SlotTypeStatistics -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SlotTypeStatistics -> SlotTypeStatistics -> Bool
$c/= :: SlotTypeStatistics -> SlotTypeStatistics -> Bool
== :: SlotTypeStatistics -> SlotTypeStatistics -> Bool
$c== :: SlotTypeStatistics -> SlotTypeStatistics -> Bool
Prelude.Eq, ReadPrec [SlotTypeStatistics]
ReadPrec SlotTypeStatistics
Int -> ReadS SlotTypeStatistics
ReadS [SlotTypeStatistics]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SlotTypeStatistics]
$creadListPrec :: ReadPrec [SlotTypeStatistics]
readPrec :: ReadPrec SlotTypeStatistics
$creadPrec :: ReadPrec SlotTypeStatistics
readList :: ReadS [SlotTypeStatistics]
$creadList :: ReadS [SlotTypeStatistics]
readsPrec :: Int -> ReadS SlotTypeStatistics
$creadsPrec :: Int -> ReadS SlotTypeStatistics
Prelude.Read, Int -> SlotTypeStatistics -> ShowS
[SlotTypeStatistics] -> ShowS
SlotTypeStatistics -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SlotTypeStatistics] -> ShowS
$cshowList :: [SlotTypeStatistics] -> ShowS
show :: SlotTypeStatistics -> String
$cshow :: SlotTypeStatistics -> String
showsPrec :: Int -> SlotTypeStatistics -> ShowS
$cshowsPrec :: Int -> SlotTypeStatistics -> ShowS
Prelude.Show, forall x. Rep SlotTypeStatistics x -> SlotTypeStatistics
forall x. SlotTypeStatistics -> Rep SlotTypeStatistics x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SlotTypeStatistics x -> SlotTypeStatistics
$cfrom :: forall x. SlotTypeStatistics -> Rep SlotTypeStatistics x
Prelude.Generic)
newSlotTypeStatistics ::
SlotTypeStatistics
newSlotTypeStatistics :: SlotTypeStatistics
newSlotTypeStatistics =
SlotTypeStatistics'
{ $sel:discoveredSlotTypeCount:SlotTypeStatistics' :: Maybe Int
discoveredSlotTypeCount =
forall a. Maybe a
Prelude.Nothing
}
slotTypeStatistics_discoveredSlotTypeCount :: Lens.Lens' SlotTypeStatistics (Prelude.Maybe Prelude.Int)
slotTypeStatistics_discoveredSlotTypeCount :: Lens' SlotTypeStatistics (Maybe Int)
slotTypeStatistics_discoveredSlotTypeCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SlotTypeStatistics' {Maybe Int
discoveredSlotTypeCount :: Maybe Int
$sel:discoveredSlotTypeCount:SlotTypeStatistics' :: SlotTypeStatistics -> Maybe Int
discoveredSlotTypeCount} -> Maybe Int
discoveredSlotTypeCount) (\s :: SlotTypeStatistics
s@SlotTypeStatistics' {} Maybe Int
a -> SlotTypeStatistics
s {$sel:discoveredSlotTypeCount:SlotTypeStatistics' :: Maybe Int
discoveredSlotTypeCount = Maybe Int
a} :: SlotTypeStatistics)
instance Data.FromJSON SlotTypeStatistics where
parseJSON :: Value -> Parser SlotTypeStatistics
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"SlotTypeStatistics"
( \Object
x ->
Maybe Int -> SlotTypeStatistics
SlotTypeStatistics'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"discoveredSlotTypeCount")
)
instance Prelude.Hashable SlotTypeStatistics where
hashWithSalt :: Int -> SlotTypeStatistics -> Int
hashWithSalt Int
_salt SlotTypeStatistics' {Maybe Int
discoveredSlotTypeCount :: Maybe Int
$sel:discoveredSlotTypeCount:SlotTypeStatistics' :: SlotTypeStatistics -> Maybe Int
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
discoveredSlotTypeCount
instance Prelude.NFData SlotTypeStatistics where
rnf :: SlotTypeStatistics -> ()
rnf SlotTypeStatistics' {Maybe Int
discoveredSlotTypeCount :: Maybe Int
$sel:discoveredSlotTypeCount:SlotTypeStatistics' :: SlotTypeStatistics -> Maybe Int
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
discoveredSlotTypeCount