{-# 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.Datastore where
import qualified Amazonka.Core as Core
import Amazonka.IoTAnalytics.Types.DatastorePartitions
import Amazonka.IoTAnalytics.Types.DatastoreStatus
import Amazonka.IoTAnalytics.Types.DatastoreStorage
import Amazonka.IoTAnalytics.Types.FileFormatConfiguration
import Amazonka.IoTAnalytics.Types.RetentionPeriod
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data Datastore = Datastore'
{
Datastore -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
Datastore -> Maybe DatastoreStatus
status :: Prelude.Maybe DatastoreStatus,
Datastore -> Maybe POSIX
lastMessageArrivalTime :: Prelude.Maybe Core.POSIX,
Datastore -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
Datastore -> Maybe FileFormatConfiguration
fileFormatConfiguration :: Prelude.Maybe FileFormatConfiguration,
Datastore -> Maybe DatastorePartitions
datastorePartitions :: Prelude.Maybe DatastorePartitions,
Datastore -> Maybe DatastoreStorage
storage :: Prelude.Maybe DatastoreStorage,
Datastore -> Maybe RetentionPeriod
retentionPeriod :: Prelude.Maybe RetentionPeriod,
Datastore -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
Datastore -> Maybe POSIX
lastUpdateTime :: Prelude.Maybe Core.POSIX
}
deriving (Datastore -> Datastore -> Bool
(Datastore -> Datastore -> Bool)
-> (Datastore -> Datastore -> Bool) -> Eq Datastore
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Datastore -> Datastore -> Bool
$c/= :: Datastore -> Datastore -> Bool
== :: Datastore -> Datastore -> Bool
$c== :: Datastore -> Datastore -> Bool
Prelude.Eq, ReadPrec [Datastore]
ReadPrec Datastore
Int -> ReadS Datastore
ReadS [Datastore]
(Int -> ReadS Datastore)
-> ReadS [Datastore]
-> ReadPrec Datastore
-> ReadPrec [Datastore]
-> Read Datastore
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Datastore]
$creadListPrec :: ReadPrec [Datastore]
readPrec :: ReadPrec Datastore
$creadPrec :: ReadPrec Datastore
readList :: ReadS [Datastore]
$creadList :: ReadS [Datastore]
readsPrec :: Int -> ReadS Datastore
$creadsPrec :: Int -> ReadS Datastore
Prelude.Read, Int -> Datastore -> ShowS
[Datastore] -> ShowS
Datastore -> String
(Int -> Datastore -> ShowS)
-> (Datastore -> String)
-> ([Datastore] -> ShowS)
-> Show Datastore
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Datastore] -> ShowS
$cshowList :: [Datastore] -> ShowS
show :: Datastore -> String
$cshow :: Datastore -> String
showsPrec :: Int -> Datastore -> ShowS
$cshowsPrec :: Int -> Datastore -> ShowS
Prelude.Show, (forall x. Datastore -> Rep Datastore x)
-> (forall x. Rep Datastore x -> Datastore) -> Generic Datastore
forall x. Rep Datastore x -> Datastore
forall x. Datastore -> Rep Datastore x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Datastore x -> Datastore
$cfrom :: forall x. Datastore -> Rep Datastore x
Prelude.Generic)
newDatastore ::
Datastore
newDatastore :: Datastore
newDatastore =
Datastore' :: Maybe POSIX
-> Maybe DatastoreStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe FileFormatConfiguration
-> Maybe DatastorePartitions
-> Maybe DatastoreStorage
-> Maybe RetentionPeriod
-> Maybe Text
-> Maybe POSIX
-> Datastore
Datastore'
{ $sel:creationTime:Datastore' :: Maybe POSIX
creationTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:status:Datastore' :: Maybe DatastoreStatus
status = Maybe DatastoreStatus
forall a. Maybe a
Prelude.Nothing,
$sel:lastMessageArrivalTime:Datastore' :: Maybe POSIX
lastMessageArrivalTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:arn:Datastore' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:fileFormatConfiguration:Datastore' :: Maybe FileFormatConfiguration
fileFormatConfiguration = Maybe FileFormatConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:datastorePartitions:Datastore' :: Maybe DatastorePartitions
datastorePartitions = Maybe DatastorePartitions
forall a. Maybe a
Prelude.Nothing,
$sel:storage:Datastore' :: Maybe DatastoreStorage
storage = Maybe DatastoreStorage
forall a. Maybe a
Prelude.Nothing,
$sel:retentionPeriod:Datastore' :: Maybe RetentionPeriod
retentionPeriod = Maybe RetentionPeriod
forall a. Maybe a
Prelude.Nothing,
$sel:name:Datastore' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdateTime:Datastore' :: Maybe POSIX
lastUpdateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
}
datastore_creationTime :: Lens.Lens' Datastore (Prelude.Maybe Prelude.UTCTime)
datastore_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Datastore -> f Datastore
datastore_creationTime = (Datastore -> Maybe POSIX)
-> (Datastore -> Maybe POSIX -> Datastore)
-> Lens Datastore Datastore (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Datastore' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:Datastore' :: Datastore -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: Datastore
s@Datastore' {} Maybe POSIX
a -> Datastore
s {$sel:creationTime:Datastore' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: Datastore) ((Maybe POSIX -> f (Maybe POSIX)) -> Datastore -> f Datastore)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Datastore
-> f Datastore
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
datastore_status :: Lens.Lens' Datastore (Prelude.Maybe DatastoreStatus)
datastore_status :: (Maybe DatastoreStatus -> f (Maybe DatastoreStatus))
-> Datastore -> f Datastore
datastore_status = (Datastore -> Maybe DatastoreStatus)
-> (Datastore -> Maybe DatastoreStatus -> Datastore)
-> Lens
Datastore Datastore (Maybe DatastoreStatus) (Maybe DatastoreStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Datastore' {Maybe DatastoreStatus
status :: Maybe DatastoreStatus
$sel:status:Datastore' :: Datastore -> Maybe DatastoreStatus
status} -> Maybe DatastoreStatus
status) (\s :: Datastore
s@Datastore' {} Maybe DatastoreStatus
a -> Datastore
s {$sel:status:Datastore' :: Maybe DatastoreStatus
status = Maybe DatastoreStatus
a} :: Datastore)
datastore_lastMessageArrivalTime :: Lens.Lens' Datastore (Prelude.Maybe Prelude.UTCTime)
datastore_lastMessageArrivalTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Datastore -> f Datastore
datastore_lastMessageArrivalTime = (Datastore -> Maybe POSIX)
-> (Datastore -> Maybe POSIX -> Datastore)
-> Lens Datastore Datastore (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Datastore' {Maybe POSIX
lastMessageArrivalTime :: Maybe POSIX
$sel:lastMessageArrivalTime:Datastore' :: Datastore -> Maybe POSIX
lastMessageArrivalTime} -> Maybe POSIX
lastMessageArrivalTime) (\s :: Datastore
s@Datastore' {} Maybe POSIX
a -> Datastore
s {$sel:lastMessageArrivalTime:Datastore' :: Maybe POSIX
lastMessageArrivalTime = Maybe POSIX
a} :: Datastore) ((Maybe POSIX -> f (Maybe POSIX)) -> Datastore -> f Datastore)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Datastore
-> f Datastore
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
datastore_arn :: Lens.Lens' Datastore (Prelude.Maybe Prelude.Text)
datastore_arn :: (Maybe Text -> f (Maybe Text)) -> Datastore -> f Datastore
datastore_arn = (Datastore -> Maybe Text)
-> (Datastore -> Maybe Text -> Datastore)
-> Lens Datastore Datastore (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Datastore' {Maybe Text
arn :: Maybe Text
$sel:arn:Datastore' :: Datastore -> Maybe Text
arn} -> Maybe Text
arn) (\s :: Datastore
s@Datastore' {} Maybe Text
a -> Datastore
s {$sel:arn:Datastore' :: Maybe Text
arn = Maybe Text
a} :: Datastore)
datastore_fileFormatConfiguration :: Lens.Lens' Datastore (Prelude.Maybe FileFormatConfiguration)
datastore_fileFormatConfiguration :: (Maybe FileFormatConfiguration
-> f (Maybe FileFormatConfiguration))
-> Datastore -> f Datastore
datastore_fileFormatConfiguration = (Datastore -> Maybe FileFormatConfiguration)
-> (Datastore -> Maybe FileFormatConfiguration -> Datastore)
-> Lens
Datastore
Datastore
(Maybe FileFormatConfiguration)
(Maybe FileFormatConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Datastore' {Maybe FileFormatConfiguration
fileFormatConfiguration :: Maybe FileFormatConfiguration
$sel:fileFormatConfiguration:Datastore' :: Datastore -> Maybe FileFormatConfiguration
fileFormatConfiguration} -> Maybe FileFormatConfiguration
fileFormatConfiguration) (\s :: Datastore
s@Datastore' {} Maybe FileFormatConfiguration
a -> Datastore
s {$sel:fileFormatConfiguration:Datastore' :: Maybe FileFormatConfiguration
fileFormatConfiguration = Maybe FileFormatConfiguration
a} :: Datastore)
datastore_datastorePartitions :: Lens.Lens' Datastore (Prelude.Maybe DatastorePartitions)
datastore_datastorePartitions :: (Maybe DatastorePartitions -> f (Maybe DatastorePartitions))
-> Datastore -> f Datastore
datastore_datastorePartitions = (Datastore -> Maybe DatastorePartitions)
-> (Datastore -> Maybe DatastorePartitions -> Datastore)
-> Lens
Datastore
Datastore
(Maybe DatastorePartitions)
(Maybe DatastorePartitions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Datastore' {Maybe DatastorePartitions
datastorePartitions :: Maybe DatastorePartitions
$sel:datastorePartitions:Datastore' :: Datastore -> Maybe DatastorePartitions
datastorePartitions} -> Maybe DatastorePartitions
datastorePartitions) (\s :: Datastore
s@Datastore' {} Maybe DatastorePartitions
a -> Datastore
s {$sel:datastorePartitions:Datastore' :: Maybe DatastorePartitions
datastorePartitions = Maybe DatastorePartitions
a} :: Datastore)
datastore_storage :: Lens.Lens' Datastore (Prelude.Maybe DatastoreStorage)
datastore_storage :: (Maybe DatastoreStorage -> f (Maybe DatastoreStorage))
-> Datastore -> f Datastore
datastore_storage = (Datastore -> Maybe DatastoreStorage)
-> (Datastore -> Maybe DatastoreStorage -> Datastore)
-> Lens
Datastore
Datastore
(Maybe DatastoreStorage)
(Maybe DatastoreStorage)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Datastore' {Maybe DatastoreStorage
storage :: Maybe DatastoreStorage
$sel:storage:Datastore' :: Datastore -> Maybe DatastoreStorage
storage} -> Maybe DatastoreStorage
storage) (\s :: Datastore
s@Datastore' {} Maybe DatastoreStorage
a -> Datastore
s {$sel:storage:Datastore' :: Maybe DatastoreStorage
storage = Maybe DatastoreStorage
a} :: Datastore)
datastore_retentionPeriod :: Lens.Lens' Datastore (Prelude.Maybe RetentionPeriod)
datastore_retentionPeriod :: (Maybe RetentionPeriod -> f (Maybe RetentionPeriod))
-> Datastore -> f Datastore
datastore_retentionPeriod = (Datastore -> Maybe RetentionPeriod)
-> (Datastore -> Maybe RetentionPeriod -> Datastore)
-> Lens
Datastore Datastore (Maybe RetentionPeriod) (Maybe RetentionPeriod)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Datastore' {Maybe RetentionPeriod
retentionPeriod :: Maybe RetentionPeriod
$sel:retentionPeriod:Datastore' :: Datastore -> Maybe RetentionPeriod
retentionPeriod} -> Maybe RetentionPeriod
retentionPeriod) (\s :: Datastore
s@Datastore' {} Maybe RetentionPeriod
a -> Datastore
s {$sel:retentionPeriod:Datastore' :: Maybe RetentionPeriod
retentionPeriod = Maybe RetentionPeriod
a} :: Datastore)
datastore_name :: Lens.Lens' Datastore (Prelude.Maybe Prelude.Text)
datastore_name :: (Maybe Text -> f (Maybe Text)) -> Datastore -> f Datastore
datastore_name = (Datastore -> Maybe Text)
-> (Datastore -> Maybe Text -> Datastore)
-> Lens Datastore Datastore (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Datastore' {Maybe Text
name :: Maybe Text
$sel:name:Datastore' :: Datastore -> Maybe Text
name} -> Maybe Text
name) (\s :: Datastore
s@Datastore' {} Maybe Text
a -> Datastore
s {$sel:name:Datastore' :: Maybe Text
name = Maybe Text
a} :: Datastore)
datastore_lastUpdateTime :: Lens.Lens' Datastore (Prelude.Maybe Prelude.UTCTime)
datastore_lastUpdateTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Datastore -> f Datastore
datastore_lastUpdateTime = (Datastore -> Maybe POSIX)
-> (Datastore -> Maybe POSIX -> Datastore)
-> Lens Datastore Datastore (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Datastore' {Maybe POSIX
lastUpdateTime :: Maybe POSIX
$sel:lastUpdateTime:Datastore' :: Datastore -> Maybe POSIX
lastUpdateTime} -> Maybe POSIX
lastUpdateTime) (\s :: Datastore
s@Datastore' {} Maybe POSIX
a -> Datastore
s {$sel:lastUpdateTime:Datastore' :: Maybe POSIX
lastUpdateTime = Maybe POSIX
a} :: Datastore) ((Maybe POSIX -> f (Maybe POSIX)) -> Datastore -> f Datastore)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Datastore
-> f Datastore
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
instance Core.FromJSON Datastore where
parseJSON :: Value -> Parser Datastore
parseJSON =
String -> (Object -> Parser Datastore) -> Value -> Parser Datastore
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"Datastore"
( \Object
x ->
Maybe POSIX
-> Maybe DatastoreStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe FileFormatConfiguration
-> Maybe DatastorePartitions
-> Maybe DatastoreStorage
-> Maybe RetentionPeriod
-> Maybe Text
-> Maybe POSIX
-> Datastore
Datastore'
(Maybe POSIX
-> Maybe DatastoreStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe FileFormatConfiguration
-> Maybe DatastorePartitions
-> Maybe DatastoreStorage
-> Maybe RetentionPeriod
-> Maybe Text
-> Maybe POSIX
-> Datastore)
-> Parser (Maybe POSIX)
-> Parser
(Maybe DatastoreStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe FileFormatConfiguration
-> Maybe DatastorePartitions
-> Maybe DatastoreStorage
-> Maybe RetentionPeriod
-> Maybe Text
-> Maybe POSIX
-> Datastore)
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 FileFormatConfiguration
-> Maybe DatastorePartitions
-> Maybe DatastoreStorage
-> Maybe RetentionPeriod
-> Maybe Text
-> Maybe POSIX
-> Datastore)
-> Parser (Maybe DatastoreStatus)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe FileFormatConfiguration
-> Maybe DatastorePartitions
-> Maybe DatastoreStorage
-> Maybe RetentionPeriod
-> Maybe Text
-> Maybe POSIX
-> Datastore)
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 FileFormatConfiguration
-> Maybe DatastorePartitions
-> Maybe DatastoreStorage
-> Maybe RetentionPeriod
-> Maybe Text
-> Maybe POSIX
-> Datastore)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe FileFormatConfiguration
-> Maybe DatastorePartitions
-> Maybe DatastoreStorage
-> Maybe RetentionPeriod
-> Maybe Text
-> Maybe POSIX
-> Datastore)
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 FileFormatConfiguration
-> Maybe DatastorePartitions
-> Maybe DatastoreStorage
-> Maybe RetentionPeriod
-> Maybe Text
-> Maybe POSIX
-> Datastore)
-> Parser (Maybe Text)
-> Parser
(Maybe FileFormatConfiguration
-> Maybe DatastorePartitions
-> Maybe DatastoreStorage
-> Maybe RetentionPeriod
-> Maybe Text
-> Maybe POSIX
-> Datastore)
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
"arn")
Parser
(Maybe FileFormatConfiguration
-> Maybe DatastorePartitions
-> Maybe DatastoreStorage
-> Maybe RetentionPeriod
-> Maybe Text
-> Maybe POSIX
-> Datastore)
-> Parser (Maybe FileFormatConfiguration)
-> Parser
(Maybe DatastorePartitions
-> Maybe DatastoreStorage
-> Maybe RetentionPeriod
-> Maybe Text
-> Maybe POSIX
-> Datastore)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe FileFormatConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"fileFormatConfiguration")
Parser
(Maybe DatastorePartitions
-> Maybe DatastoreStorage
-> Maybe RetentionPeriod
-> Maybe Text
-> Maybe POSIX
-> Datastore)
-> Parser (Maybe DatastorePartitions)
-> Parser
(Maybe DatastoreStorage
-> Maybe RetentionPeriod -> Maybe Text -> Maybe POSIX -> Datastore)
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 DatastoreStorage
-> Maybe RetentionPeriod -> Maybe Text -> Maybe POSIX -> Datastore)
-> Parser (Maybe DatastoreStorage)
-> Parser
(Maybe RetentionPeriod -> Maybe Text -> Maybe POSIX -> Datastore)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DatastoreStorage)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"storage")
Parser
(Maybe RetentionPeriod -> Maybe Text -> Maybe POSIX -> Datastore)
-> Parser (Maybe RetentionPeriod)
-> Parser (Maybe Text -> Maybe POSIX -> Datastore)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe RetentionPeriod)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"retentionPeriod")
Parser (Maybe Text -> Maybe POSIX -> Datastore)
-> Parser (Maybe Text) -> Parser (Maybe POSIX -> Datastore)
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
"name")
Parser (Maybe POSIX -> Datastore)
-> Parser (Maybe POSIX) -> Parser Datastore
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")
)
instance Prelude.Hashable Datastore
instance Prelude.NFData Datastore