{-# 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.FraudDetector.Types.IngestedEventStatistics 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 IngestedEventStatistics = IngestedEventStatistics'
{
IngestedEventStatistics -> Maybe Integer
eventDataSizeInBytes :: Prelude.Maybe Prelude.Integer,
IngestedEventStatistics -> Maybe Text
lastUpdatedTime :: Prelude.Maybe Prelude.Text,
IngestedEventStatistics -> Maybe Text
leastRecentEvent :: Prelude.Maybe Prelude.Text,
IngestedEventStatistics -> Maybe Text
mostRecentEvent :: Prelude.Maybe Prelude.Text,
IngestedEventStatistics -> Maybe Integer
numberOfEvents :: Prelude.Maybe Prelude.Integer
}
deriving (IngestedEventStatistics -> IngestedEventStatistics -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: IngestedEventStatistics -> IngestedEventStatistics -> Bool
$c/= :: IngestedEventStatistics -> IngestedEventStatistics -> Bool
== :: IngestedEventStatistics -> IngestedEventStatistics -> Bool
$c== :: IngestedEventStatistics -> IngestedEventStatistics -> Bool
Prelude.Eq, ReadPrec [IngestedEventStatistics]
ReadPrec IngestedEventStatistics
Int -> ReadS IngestedEventStatistics
ReadS [IngestedEventStatistics]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [IngestedEventStatistics]
$creadListPrec :: ReadPrec [IngestedEventStatistics]
readPrec :: ReadPrec IngestedEventStatistics
$creadPrec :: ReadPrec IngestedEventStatistics
readList :: ReadS [IngestedEventStatistics]
$creadList :: ReadS [IngestedEventStatistics]
readsPrec :: Int -> ReadS IngestedEventStatistics
$creadsPrec :: Int -> ReadS IngestedEventStatistics
Prelude.Read, Int -> IngestedEventStatistics -> ShowS
[IngestedEventStatistics] -> ShowS
IngestedEventStatistics -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [IngestedEventStatistics] -> ShowS
$cshowList :: [IngestedEventStatistics] -> ShowS
show :: IngestedEventStatistics -> String
$cshow :: IngestedEventStatistics -> String
showsPrec :: Int -> IngestedEventStatistics -> ShowS
$cshowsPrec :: Int -> IngestedEventStatistics -> ShowS
Prelude.Show, forall x. Rep IngestedEventStatistics x -> IngestedEventStatistics
forall x. IngestedEventStatistics -> Rep IngestedEventStatistics x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep IngestedEventStatistics x -> IngestedEventStatistics
$cfrom :: forall x. IngestedEventStatistics -> Rep IngestedEventStatistics x
Prelude.Generic)
newIngestedEventStatistics ::
IngestedEventStatistics
newIngestedEventStatistics :: IngestedEventStatistics
newIngestedEventStatistics =
IngestedEventStatistics'
{ $sel:eventDataSizeInBytes:IngestedEventStatistics' :: Maybe Integer
eventDataSizeInBytes =
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedTime:IngestedEventStatistics' :: Maybe Text
lastUpdatedTime = forall a. Maybe a
Prelude.Nothing,
$sel:leastRecentEvent:IngestedEventStatistics' :: Maybe Text
leastRecentEvent = forall a. Maybe a
Prelude.Nothing,
$sel:mostRecentEvent:IngestedEventStatistics' :: Maybe Text
mostRecentEvent = forall a. Maybe a
Prelude.Nothing,
$sel:numberOfEvents:IngestedEventStatistics' :: Maybe Integer
numberOfEvents = forall a. Maybe a
Prelude.Nothing
}
ingestedEventStatistics_eventDataSizeInBytes :: Lens.Lens' IngestedEventStatistics (Prelude.Maybe Prelude.Integer)
ingestedEventStatistics_eventDataSizeInBytes :: Lens' IngestedEventStatistics (Maybe Integer)
ingestedEventStatistics_eventDataSizeInBytes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IngestedEventStatistics' {Maybe Integer
eventDataSizeInBytes :: Maybe Integer
$sel:eventDataSizeInBytes:IngestedEventStatistics' :: IngestedEventStatistics -> Maybe Integer
eventDataSizeInBytes} -> Maybe Integer
eventDataSizeInBytes) (\s :: IngestedEventStatistics
s@IngestedEventStatistics' {} Maybe Integer
a -> IngestedEventStatistics
s {$sel:eventDataSizeInBytes:IngestedEventStatistics' :: Maybe Integer
eventDataSizeInBytes = Maybe Integer
a} :: IngestedEventStatistics)
ingestedEventStatistics_lastUpdatedTime :: Lens.Lens' IngestedEventStatistics (Prelude.Maybe Prelude.Text)
ingestedEventStatistics_lastUpdatedTime :: Lens' IngestedEventStatistics (Maybe Text)
ingestedEventStatistics_lastUpdatedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IngestedEventStatistics' {Maybe Text
lastUpdatedTime :: Maybe Text
$sel:lastUpdatedTime:IngestedEventStatistics' :: IngestedEventStatistics -> Maybe Text
lastUpdatedTime} -> Maybe Text
lastUpdatedTime) (\s :: IngestedEventStatistics
s@IngestedEventStatistics' {} Maybe Text
a -> IngestedEventStatistics
s {$sel:lastUpdatedTime:IngestedEventStatistics' :: Maybe Text
lastUpdatedTime = Maybe Text
a} :: IngestedEventStatistics)
ingestedEventStatistics_leastRecentEvent :: Lens.Lens' IngestedEventStatistics (Prelude.Maybe Prelude.Text)
ingestedEventStatistics_leastRecentEvent :: Lens' IngestedEventStatistics (Maybe Text)
ingestedEventStatistics_leastRecentEvent = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IngestedEventStatistics' {Maybe Text
leastRecentEvent :: Maybe Text
$sel:leastRecentEvent:IngestedEventStatistics' :: IngestedEventStatistics -> Maybe Text
leastRecentEvent} -> Maybe Text
leastRecentEvent) (\s :: IngestedEventStatistics
s@IngestedEventStatistics' {} Maybe Text
a -> IngestedEventStatistics
s {$sel:leastRecentEvent:IngestedEventStatistics' :: Maybe Text
leastRecentEvent = Maybe Text
a} :: IngestedEventStatistics)
ingestedEventStatistics_mostRecentEvent :: Lens.Lens' IngestedEventStatistics (Prelude.Maybe Prelude.Text)
ingestedEventStatistics_mostRecentEvent :: Lens' IngestedEventStatistics (Maybe Text)
ingestedEventStatistics_mostRecentEvent = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IngestedEventStatistics' {Maybe Text
mostRecentEvent :: Maybe Text
$sel:mostRecentEvent:IngestedEventStatistics' :: IngestedEventStatistics -> Maybe Text
mostRecentEvent} -> Maybe Text
mostRecentEvent) (\s :: IngestedEventStatistics
s@IngestedEventStatistics' {} Maybe Text
a -> IngestedEventStatistics
s {$sel:mostRecentEvent:IngestedEventStatistics' :: Maybe Text
mostRecentEvent = Maybe Text
a} :: IngestedEventStatistics)
ingestedEventStatistics_numberOfEvents :: Lens.Lens' IngestedEventStatistics (Prelude.Maybe Prelude.Integer)
ingestedEventStatistics_numberOfEvents :: Lens' IngestedEventStatistics (Maybe Integer)
ingestedEventStatistics_numberOfEvents = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IngestedEventStatistics' {Maybe Integer
numberOfEvents :: Maybe Integer
$sel:numberOfEvents:IngestedEventStatistics' :: IngestedEventStatistics -> Maybe Integer
numberOfEvents} -> Maybe Integer
numberOfEvents) (\s :: IngestedEventStatistics
s@IngestedEventStatistics' {} Maybe Integer
a -> IngestedEventStatistics
s {$sel:numberOfEvents:IngestedEventStatistics' :: Maybe Integer
numberOfEvents = Maybe Integer
a} :: IngestedEventStatistics)
instance Data.FromJSON IngestedEventStatistics where
parseJSON :: Value -> Parser IngestedEventStatistics
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"IngestedEventStatistics"
( \Object
x ->
Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> IngestedEventStatistics
IngestedEventStatistics'
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
"eventDataSizeInBytes")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"lastUpdatedTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"leastRecentEvent")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"mostRecentEvent")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"numberOfEvents")
)
instance Prelude.Hashable IngestedEventStatistics where
hashWithSalt :: Int -> IngestedEventStatistics -> Int
hashWithSalt Int
_salt IngestedEventStatistics' {Maybe Integer
Maybe Text
numberOfEvents :: Maybe Integer
mostRecentEvent :: Maybe Text
leastRecentEvent :: Maybe Text
lastUpdatedTime :: Maybe Text
eventDataSizeInBytes :: Maybe Integer
$sel:numberOfEvents:IngestedEventStatistics' :: IngestedEventStatistics -> Maybe Integer
$sel:mostRecentEvent:IngestedEventStatistics' :: IngestedEventStatistics -> Maybe Text
$sel:leastRecentEvent:IngestedEventStatistics' :: IngestedEventStatistics -> Maybe Text
$sel:lastUpdatedTime:IngestedEventStatistics' :: IngestedEventStatistics -> Maybe Text
$sel:eventDataSizeInBytes:IngestedEventStatistics' :: IngestedEventStatistics -> Maybe Integer
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
eventDataSizeInBytes
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
lastUpdatedTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
leastRecentEvent
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
mostRecentEvent
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
numberOfEvents
instance Prelude.NFData IngestedEventStatistics where
rnf :: IngestedEventStatistics -> ()
rnf IngestedEventStatistics' {Maybe Integer
Maybe Text
numberOfEvents :: Maybe Integer
mostRecentEvent :: Maybe Text
leastRecentEvent :: Maybe Text
lastUpdatedTime :: Maybe Text
eventDataSizeInBytes :: Maybe Integer
$sel:numberOfEvents:IngestedEventStatistics' :: IngestedEventStatistics -> Maybe Integer
$sel:mostRecentEvent:IngestedEventStatistics' :: IngestedEventStatistics -> Maybe Text
$sel:leastRecentEvent:IngestedEventStatistics' :: IngestedEventStatistics -> Maybe Text
$sel:lastUpdatedTime:IngestedEventStatistics' :: IngestedEventStatistics -> Maybe Text
$sel:eventDataSizeInBytes:IngestedEventStatistics' :: IngestedEventStatistics -> Maybe Integer
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
eventDataSizeInBytes
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
lastUpdatedTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
leastRecentEvent
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
mostRecentEvent
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
numberOfEvents