{-# 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.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data IngestedEventStatistics = IngestedEventStatistics'
{
IngestedEventStatistics -> Maybe Integer
eventDataSizeInBytes :: Prelude.Maybe Prelude.Integer,
IngestedEventStatistics -> Maybe Text
mostRecentEvent :: Prelude.Maybe Prelude.Text,
IngestedEventStatistics -> Maybe Text
lastUpdatedTime :: Prelude.Maybe Prelude.Text,
IngestedEventStatistics -> Maybe Integer
numberOfEvents :: Prelude.Maybe Prelude.Integer,
IngestedEventStatistics -> Maybe Text
leastRecentEvent :: Prelude.Maybe Prelude.Text
}
deriving (IngestedEventStatistics -> IngestedEventStatistics -> Bool
(IngestedEventStatistics -> IngestedEventStatistics -> Bool)
-> (IngestedEventStatistics -> IngestedEventStatistics -> Bool)
-> Eq IngestedEventStatistics
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]
(Int -> ReadS IngestedEventStatistics)
-> ReadS [IngestedEventStatistics]
-> ReadPrec IngestedEventStatistics
-> ReadPrec [IngestedEventStatistics]
-> Read 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
(Int -> IngestedEventStatistics -> ShowS)
-> (IngestedEventStatistics -> String)
-> ([IngestedEventStatistics] -> ShowS)
-> Show IngestedEventStatistics
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.
IngestedEventStatistics -> Rep IngestedEventStatistics x)
-> (forall x.
Rep IngestedEventStatistics x -> IngestedEventStatistics)
-> Generic IngestedEventStatistics
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' :: Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> IngestedEventStatistics
IngestedEventStatistics'
{ $sel:eventDataSizeInBytes:IngestedEventStatistics' :: Maybe Integer
eventDataSizeInBytes =
Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:mostRecentEvent:IngestedEventStatistics' :: Maybe Text
mostRecentEvent = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedTime:IngestedEventStatistics' :: Maybe Text
lastUpdatedTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:numberOfEvents:IngestedEventStatistics' :: Maybe Integer
numberOfEvents = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:leastRecentEvent:IngestedEventStatistics' :: Maybe Text
leastRecentEvent = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
ingestedEventStatistics_eventDataSizeInBytes :: Lens.Lens' IngestedEventStatistics (Prelude.Maybe Prelude.Integer)
ingestedEventStatistics_eventDataSizeInBytes :: (Maybe Integer -> f (Maybe Integer))
-> IngestedEventStatistics -> f IngestedEventStatistics
ingestedEventStatistics_eventDataSizeInBytes = (IngestedEventStatistics -> Maybe Integer)
-> (IngestedEventStatistics
-> Maybe Integer -> IngestedEventStatistics)
-> Lens
IngestedEventStatistics
IngestedEventStatistics
(Maybe Integer)
(Maybe Integer)
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_mostRecentEvent :: Lens.Lens' IngestedEventStatistics (Prelude.Maybe Prelude.Text)
ingestedEventStatistics_mostRecentEvent :: (Maybe Text -> f (Maybe Text))
-> IngestedEventStatistics -> f IngestedEventStatistics
ingestedEventStatistics_mostRecentEvent = (IngestedEventStatistics -> Maybe Text)
-> (IngestedEventStatistics
-> Maybe Text -> IngestedEventStatistics)
-> Lens
IngestedEventStatistics
IngestedEventStatistics
(Maybe Text)
(Maybe Text)
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_lastUpdatedTime :: Lens.Lens' IngestedEventStatistics (Prelude.Maybe Prelude.Text)
ingestedEventStatistics_lastUpdatedTime :: (Maybe Text -> f (Maybe Text))
-> IngestedEventStatistics -> f IngestedEventStatistics
ingestedEventStatistics_lastUpdatedTime = (IngestedEventStatistics -> Maybe Text)
-> (IngestedEventStatistics
-> Maybe Text -> IngestedEventStatistics)
-> Lens
IngestedEventStatistics
IngestedEventStatistics
(Maybe Text)
(Maybe Text)
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_numberOfEvents :: Lens.Lens' IngestedEventStatistics (Prelude.Maybe Prelude.Integer)
ingestedEventStatistics_numberOfEvents :: (Maybe Integer -> f (Maybe Integer))
-> IngestedEventStatistics -> f IngestedEventStatistics
ingestedEventStatistics_numberOfEvents = (IngestedEventStatistics -> Maybe Integer)
-> (IngestedEventStatistics
-> Maybe Integer -> IngestedEventStatistics)
-> Lens
IngestedEventStatistics
IngestedEventStatistics
(Maybe Integer)
(Maybe Integer)
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)
ingestedEventStatistics_leastRecentEvent :: Lens.Lens' IngestedEventStatistics (Prelude.Maybe Prelude.Text)
ingestedEventStatistics_leastRecentEvent :: (Maybe Text -> f (Maybe Text))
-> IngestedEventStatistics -> f IngestedEventStatistics
ingestedEventStatistics_leastRecentEvent = (IngestedEventStatistics -> Maybe Text)
-> (IngestedEventStatistics
-> Maybe Text -> IngestedEventStatistics)
-> Lens
IngestedEventStatistics
IngestedEventStatistics
(Maybe Text)
(Maybe Text)
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)
instance Core.FromJSON IngestedEventStatistics where
parseJSON :: Value -> Parser IngestedEventStatistics
parseJSON =
String
-> (Object -> Parser IngestedEventStatistics)
-> Value
-> Parser IngestedEventStatistics
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"IngestedEventStatistics"
( \Object
x ->
Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> IngestedEventStatistics
IngestedEventStatistics'
(Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> IngestedEventStatistics)
-> Parser (Maybe Integer)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> IngestedEventStatistics)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"eventDataSizeInBytes")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> IngestedEventStatistics)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Integer -> Maybe Text -> IngestedEventStatistics)
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
"mostRecentEvent")
Parser
(Maybe Text
-> Maybe Integer -> Maybe Text -> IngestedEventStatistics)
-> Parser (Maybe Text)
-> Parser (Maybe Integer -> Maybe Text -> IngestedEventStatistics)
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
"lastUpdatedTime")
Parser (Maybe Integer -> Maybe Text -> IngestedEventStatistics)
-> Parser (Maybe Integer)
-> Parser (Maybe Text -> IngestedEventStatistics)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"numberOfEvents")
Parser (Maybe Text -> IngestedEventStatistics)
-> Parser (Maybe Text) -> Parser IngestedEventStatistics
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
"leastRecentEvent")
)
instance Prelude.Hashable IngestedEventStatistics
instance Prelude.NFData IngestedEventStatistics