{-# 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.IoTAnalytics.Types.DatastoreSummary where
import qualified Amazonka.Core as Core
import Amazonka.IoTAnalytics.Types.DatastorePartitions
import Amazonka.IoTAnalytics.Types.DatastoreStatus
import Amazonka.IoTAnalytics.Types.DatastoreStorageSummary
import Amazonka.IoTAnalytics.Types.FileFormatType
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data DatastoreSummary = DatastoreSummary'
{
DatastoreSummary -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
DatastoreSummary -> Maybe DatastoreStatus
status :: Prelude.Maybe DatastoreStatus,
DatastoreSummary -> Maybe POSIX
lastMessageArrivalTime :: Prelude.Maybe Core.POSIX,
DatastoreSummary -> Maybe Text
datastoreName :: Prelude.Maybe Prelude.Text,
DatastoreSummary -> Maybe DatastorePartitions
datastorePartitions :: Prelude.Maybe DatastorePartitions,
DatastoreSummary -> Maybe FileFormatType
fileFormatType :: Prelude.Maybe FileFormatType,
DatastoreSummary -> Maybe POSIX
lastUpdateTime :: Prelude.Maybe Core.POSIX,
DatastoreSummary -> Maybe DatastoreStorageSummary
datastoreStorage :: Prelude.Maybe DatastoreStorageSummary
}
deriving (DatastoreSummary -> DatastoreSummary -> Bool
(DatastoreSummary -> DatastoreSummary -> Bool)
-> (DatastoreSummary -> DatastoreSummary -> Bool)
-> Eq DatastoreSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DatastoreSummary -> DatastoreSummary -> Bool
$c/= :: DatastoreSummary -> DatastoreSummary -> Bool
== :: DatastoreSummary -> DatastoreSummary -> Bool
$c== :: DatastoreSummary -> DatastoreSummary -> Bool
Prelude.Eq, ReadPrec [DatastoreSummary]
ReadPrec DatastoreSummary
Int -> ReadS DatastoreSummary
ReadS [DatastoreSummary]
(Int -> ReadS DatastoreSummary)
-> ReadS [DatastoreSummary]
-> ReadPrec DatastoreSummary
-> ReadPrec [DatastoreSummary]
-> Read DatastoreSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DatastoreSummary]
$creadListPrec :: ReadPrec [DatastoreSummary]
readPrec :: ReadPrec DatastoreSummary
$creadPrec :: ReadPrec DatastoreSummary
readList :: ReadS [DatastoreSummary]
$creadList :: ReadS [DatastoreSummary]
readsPrec :: Int -> ReadS DatastoreSummary
$creadsPrec :: Int -> ReadS DatastoreSummary
Prelude.Read, Int -> DatastoreSummary -> ShowS
[DatastoreSummary] -> ShowS
DatastoreSummary -> String
(Int -> DatastoreSummary -> ShowS)
-> (DatastoreSummary -> String)
-> ([DatastoreSummary] -> ShowS)
-> Show DatastoreSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DatastoreSummary] -> ShowS
$cshowList :: [DatastoreSummary] -> ShowS
show :: DatastoreSummary -> String
$cshow :: DatastoreSummary -> String
showsPrec :: Int -> DatastoreSummary -> ShowS
$cshowsPrec :: Int -> DatastoreSummary -> ShowS
Prelude.Show, (forall x. DatastoreSummary -> Rep DatastoreSummary x)
-> (forall x. Rep DatastoreSummary x -> DatastoreSummary)
-> Generic DatastoreSummary
forall x. Rep DatastoreSummary x -> DatastoreSummary
forall x. DatastoreSummary -> Rep DatastoreSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DatastoreSummary x -> DatastoreSummary
$cfrom :: forall x. DatastoreSummary -> Rep DatastoreSummary x
Prelude.Generic)
newDatastoreSummary ::
DatastoreSummary
newDatastoreSummary :: DatastoreSummary
newDatastoreSummary =
DatastoreSummary' :: Maybe POSIX
-> Maybe DatastoreStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe DatastorePartitions
-> Maybe FileFormatType
-> Maybe POSIX
-> Maybe DatastoreStorageSummary
-> DatastoreSummary
DatastoreSummary'
{ $sel:creationTime:DatastoreSummary' :: Maybe POSIX
creationTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:status:DatastoreSummary' :: Maybe DatastoreStatus
status = Maybe DatastoreStatus
forall a. Maybe a
Prelude.Nothing,
$sel:lastMessageArrivalTime:DatastoreSummary' :: Maybe POSIX
lastMessageArrivalTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:datastoreName:DatastoreSummary' :: Maybe Text
datastoreName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:datastorePartitions:DatastoreSummary' :: Maybe DatastorePartitions
datastorePartitions = Maybe DatastorePartitions
forall a. Maybe a
Prelude.Nothing,
$sel:fileFormatType:DatastoreSummary' :: Maybe FileFormatType
fileFormatType = Maybe FileFormatType
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdateTime:DatastoreSummary' :: Maybe POSIX
lastUpdateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:datastoreStorage:DatastoreSummary' :: Maybe DatastoreStorageSummary
datastoreStorage = Maybe DatastoreStorageSummary
forall a. Maybe a
Prelude.Nothing
}
datastoreSummary_creationTime :: Lens.Lens' DatastoreSummary (Prelude.Maybe Prelude.UTCTime)
datastoreSummary_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DatastoreSummary -> f DatastoreSummary
datastoreSummary_creationTime = (DatastoreSummary -> Maybe POSIX)
-> (DatastoreSummary -> Maybe POSIX -> DatastoreSummary)
-> Lens
DatastoreSummary DatastoreSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatastoreSummary' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DatastoreSummary' :: DatastoreSummary -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DatastoreSummary
s@DatastoreSummary' {} Maybe POSIX
a -> DatastoreSummary
s {$sel:creationTime:DatastoreSummary' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DatastoreSummary) ((Maybe POSIX -> f (Maybe POSIX))
-> DatastoreSummary -> f DatastoreSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DatastoreSummary
-> f DatastoreSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
datastoreSummary_status :: Lens.Lens' DatastoreSummary (Prelude.Maybe DatastoreStatus)
datastoreSummary_status :: (Maybe DatastoreStatus -> f (Maybe DatastoreStatus))
-> DatastoreSummary -> f DatastoreSummary
datastoreSummary_status = (DatastoreSummary -> Maybe DatastoreStatus)
-> (DatastoreSummary -> Maybe DatastoreStatus -> DatastoreSummary)
-> Lens
DatastoreSummary
DatastoreSummary
(Maybe DatastoreStatus)
(Maybe DatastoreStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatastoreSummary' {Maybe DatastoreStatus
status :: Maybe DatastoreStatus
$sel:status:DatastoreSummary' :: DatastoreSummary -> Maybe DatastoreStatus
status} -> Maybe DatastoreStatus
status) (\s :: DatastoreSummary
s@DatastoreSummary' {} Maybe DatastoreStatus
a -> DatastoreSummary
s {$sel:status:DatastoreSummary' :: Maybe DatastoreStatus
status = Maybe DatastoreStatus
a} :: DatastoreSummary)
datastoreSummary_lastMessageArrivalTime :: Lens.Lens' DatastoreSummary (Prelude.Maybe Prelude.UTCTime)
datastoreSummary_lastMessageArrivalTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DatastoreSummary -> f DatastoreSummary
datastoreSummary_lastMessageArrivalTime = (DatastoreSummary -> Maybe POSIX)
-> (DatastoreSummary -> Maybe POSIX -> DatastoreSummary)
-> Lens
DatastoreSummary DatastoreSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatastoreSummary' {Maybe POSIX
lastMessageArrivalTime :: Maybe POSIX
$sel:lastMessageArrivalTime:DatastoreSummary' :: DatastoreSummary -> Maybe POSIX
lastMessageArrivalTime} -> Maybe POSIX
lastMessageArrivalTime) (\s :: DatastoreSummary
s@DatastoreSummary' {} Maybe POSIX
a -> DatastoreSummary
s {$sel:lastMessageArrivalTime:DatastoreSummary' :: Maybe POSIX
lastMessageArrivalTime = Maybe POSIX
a} :: DatastoreSummary) ((Maybe POSIX -> f (Maybe POSIX))
-> DatastoreSummary -> f DatastoreSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DatastoreSummary
-> f DatastoreSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
datastoreSummary_datastoreName :: Lens.Lens' DatastoreSummary (Prelude.Maybe Prelude.Text)
datastoreSummary_datastoreName :: (Maybe Text -> f (Maybe Text))
-> DatastoreSummary -> f DatastoreSummary
datastoreSummary_datastoreName = (DatastoreSummary -> Maybe Text)
-> (DatastoreSummary -> Maybe Text -> DatastoreSummary)
-> Lens DatastoreSummary DatastoreSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatastoreSummary' {Maybe Text
datastoreName :: Maybe Text
$sel:datastoreName:DatastoreSummary' :: DatastoreSummary -> Maybe Text
datastoreName} -> Maybe Text
datastoreName) (\s :: DatastoreSummary
s@DatastoreSummary' {} Maybe Text
a -> DatastoreSummary
s {$sel:datastoreName:DatastoreSummary' :: Maybe Text
datastoreName = Maybe Text
a} :: DatastoreSummary)
datastoreSummary_datastorePartitions :: Lens.Lens' DatastoreSummary (Prelude.Maybe DatastorePartitions)
datastoreSummary_datastorePartitions :: (Maybe DatastorePartitions -> f (Maybe DatastorePartitions))
-> DatastoreSummary -> f DatastoreSummary
datastoreSummary_datastorePartitions = (DatastoreSummary -> Maybe DatastorePartitions)
-> (DatastoreSummary
-> Maybe DatastorePartitions -> DatastoreSummary)
-> Lens
DatastoreSummary
DatastoreSummary
(Maybe DatastorePartitions)
(Maybe DatastorePartitions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatastoreSummary' {Maybe DatastorePartitions
datastorePartitions :: Maybe DatastorePartitions
$sel:datastorePartitions:DatastoreSummary' :: DatastoreSummary -> Maybe DatastorePartitions
datastorePartitions} -> Maybe DatastorePartitions
datastorePartitions) (\s :: DatastoreSummary
s@DatastoreSummary' {} Maybe DatastorePartitions
a -> DatastoreSummary
s {$sel:datastorePartitions:DatastoreSummary' :: Maybe DatastorePartitions
datastorePartitions = Maybe DatastorePartitions
a} :: DatastoreSummary)
datastoreSummary_fileFormatType :: Lens.Lens' DatastoreSummary (Prelude.Maybe FileFormatType)
datastoreSummary_fileFormatType :: (Maybe FileFormatType -> f (Maybe FileFormatType))
-> DatastoreSummary -> f DatastoreSummary
datastoreSummary_fileFormatType = (DatastoreSummary -> Maybe FileFormatType)
-> (DatastoreSummary -> Maybe FileFormatType -> DatastoreSummary)
-> Lens
DatastoreSummary
DatastoreSummary
(Maybe FileFormatType)
(Maybe FileFormatType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatastoreSummary' {Maybe FileFormatType
fileFormatType :: Maybe FileFormatType
$sel:fileFormatType:DatastoreSummary' :: DatastoreSummary -> Maybe FileFormatType
fileFormatType} -> Maybe FileFormatType
fileFormatType) (\s :: DatastoreSummary
s@DatastoreSummary' {} Maybe FileFormatType
a -> DatastoreSummary
s {$sel:fileFormatType:DatastoreSummary' :: Maybe FileFormatType
fileFormatType = Maybe FileFormatType
a} :: DatastoreSummary)
datastoreSummary_lastUpdateTime :: Lens.Lens' DatastoreSummary (Prelude.Maybe Prelude.UTCTime)
datastoreSummary_lastUpdateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DatastoreSummary -> f DatastoreSummary
datastoreSummary_lastUpdateTime = (DatastoreSummary -> Maybe POSIX)
-> (DatastoreSummary -> Maybe POSIX -> DatastoreSummary)
-> Lens
DatastoreSummary DatastoreSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatastoreSummary' {Maybe POSIX
lastUpdateTime :: Maybe POSIX
$sel:lastUpdateTime:DatastoreSummary' :: DatastoreSummary -> Maybe POSIX
lastUpdateTime} -> Maybe POSIX
lastUpdateTime) (\s :: DatastoreSummary
s@DatastoreSummary' {} Maybe POSIX
a -> DatastoreSummary
s {$sel:lastUpdateTime:DatastoreSummary' :: Maybe POSIX
lastUpdateTime = Maybe POSIX
a} :: DatastoreSummary) ((Maybe POSIX -> f (Maybe POSIX))
-> DatastoreSummary -> f DatastoreSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DatastoreSummary
-> f DatastoreSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
datastoreSummary_datastoreStorage :: Lens.Lens' DatastoreSummary (Prelude.Maybe DatastoreStorageSummary)
datastoreSummary_datastoreStorage :: (Maybe DatastoreStorageSummary
-> f (Maybe DatastoreStorageSummary))
-> DatastoreSummary -> f DatastoreSummary
datastoreSummary_datastoreStorage = (DatastoreSummary -> Maybe DatastoreStorageSummary)
-> (DatastoreSummary
-> Maybe DatastoreStorageSummary -> DatastoreSummary)
-> Lens
DatastoreSummary
DatastoreSummary
(Maybe DatastoreStorageSummary)
(Maybe DatastoreStorageSummary)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatastoreSummary' {Maybe DatastoreStorageSummary
datastoreStorage :: Maybe DatastoreStorageSummary
$sel:datastoreStorage:DatastoreSummary' :: DatastoreSummary -> Maybe DatastoreStorageSummary
datastoreStorage} -> Maybe DatastoreStorageSummary
datastoreStorage) (\s :: DatastoreSummary
s@DatastoreSummary' {} Maybe DatastoreStorageSummary
a -> DatastoreSummary
s {$sel:datastoreStorage:DatastoreSummary' :: Maybe DatastoreStorageSummary
datastoreStorage = Maybe DatastoreStorageSummary
a} :: DatastoreSummary)
instance Core.FromJSON DatastoreSummary where
parseJSON :: Value -> Parser DatastoreSummary
parseJSON =
String
-> (Object -> Parser DatastoreSummary)
-> Value
-> Parser DatastoreSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"DatastoreSummary"
( \Object
x ->
Maybe POSIX
-> Maybe DatastoreStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe DatastorePartitions
-> Maybe FileFormatType
-> Maybe POSIX
-> Maybe DatastoreStorageSummary
-> DatastoreSummary
DatastoreSummary'
(Maybe POSIX
-> Maybe DatastoreStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe DatastorePartitions
-> Maybe FileFormatType
-> Maybe POSIX
-> Maybe DatastoreStorageSummary
-> DatastoreSummary)
-> Parser (Maybe POSIX)
-> Parser
(Maybe DatastoreStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe DatastorePartitions
-> Maybe FileFormatType
-> Maybe POSIX
-> Maybe DatastoreStorageSummary
-> DatastoreSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"creationTime")
Parser
(Maybe DatastoreStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe DatastorePartitions
-> Maybe FileFormatType
-> Maybe POSIX
-> Maybe DatastoreStorageSummary
-> DatastoreSummary)
-> Parser (Maybe DatastoreStatus)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe DatastorePartitions
-> Maybe FileFormatType
-> Maybe POSIX
-> Maybe DatastoreStorageSummary
-> DatastoreSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DatastoreStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"status")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe DatastorePartitions
-> Maybe FileFormatType
-> Maybe POSIX
-> Maybe DatastoreStorageSummary
-> DatastoreSummary)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe DatastorePartitions
-> Maybe FileFormatType
-> Maybe POSIX
-> Maybe DatastoreStorageSummary
-> DatastoreSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lastMessageArrivalTime")
Parser
(Maybe Text
-> Maybe DatastorePartitions
-> Maybe FileFormatType
-> Maybe POSIX
-> Maybe DatastoreStorageSummary
-> DatastoreSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe DatastorePartitions
-> Maybe FileFormatType
-> Maybe POSIX
-> Maybe DatastoreStorageSummary
-> DatastoreSummary)
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
"datastoreName")
Parser
(Maybe DatastorePartitions
-> Maybe FileFormatType
-> Maybe POSIX
-> Maybe DatastoreStorageSummary
-> DatastoreSummary)
-> Parser (Maybe DatastorePartitions)
-> Parser
(Maybe FileFormatType
-> Maybe POSIX
-> Maybe DatastoreStorageSummary
-> DatastoreSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DatastorePartitions)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"datastorePartitions")
Parser
(Maybe FileFormatType
-> Maybe POSIX
-> Maybe DatastoreStorageSummary
-> DatastoreSummary)
-> Parser (Maybe FileFormatType)
-> Parser
(Maybe POSIX -> Maybe DatastoreStorageSummary -> DatastoreSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe FileFormatType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"fileFormatType")
Parser
(Maybe POSIX -> Maybe DatastoreStorageSummary -> DatastoreSummary)
-> Parser (Maybe POSIX)
-> Parser (Maybe DatastoreStorageSummary -> DatastoreSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lastUpdateTime")
Parser (Maybe DatastoreStorageSummary -> DatastoreSummary)
-> Parser (Maybe DatastoreStorageSummary)
-> Parser DatastoreSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DatastoreStorageSummary)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"datastoreStorage")
)
instance Prelude.Hashable DatastoreSummary
instance Prelude.NFData DatastoreSummary