{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.IoTAnalytics.Types.DatastoreSummary
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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

-- | A summary of information about a data store.
--
-- /See:/ 'newDatastoreSummary' smart constructor.
data DatastoreSummary = DatastoreSummary'
  { -- | When the data store was created.
    DatastoreSummary -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
    -- | The status of the data store.
    DatastoreSummary -> Maybe DatastoreStatus
status :: Prelude.Maybe DatastoreStatus,
    -- | The last time when a new message arrived in the data store.
    --
    -- IoT Analytics updates this value at most once per minute for Amazon
    -- Simple Storage Service one data store. Hence, the
    -- @lastMessageArrivalTime@ value is an approximation.
    --
    -- This feature only applies to messages that arrived in the data store
    -- after October 23, 2020.
    DatastoreSummary -> Maybe POSIX
lastMessageArrivalTime :: Prelude.Maybe Core.POSIX,
    -- | The name of the data store.
    DatastoreSummary -> Maybe Text
datastoreName :: Prelude.Maybe Prelude.Text,
    -- | Contains information about the partition dimensions in a data store.
    DatastoreSummary -> Maybe DatastorePartitions
datastorePartitions :: Prelude.Maybe DatastorePartitions,
    -- | The file format of the data in the data store.
    DatastoreSummary -> Maybe FileFormatType
fileFormatType :: Prelude.Maybe FileFormatType,
    -- | The last time the data store was updated.
    DatastoreSummary -> Maybe POSIX
lastUpdateTime :: Prelude.Maybe Core.POSIX,
    -- | Where data in a data store is stored.
    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)

-- |
-- Create a value of 'DatastoreSummary' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'creationTime', 'datastoreSummary_creationTime' - When the data store was created.
--
-- 'status', 'datastoreSummary_status' - The status of the data store.
--
-- 'lastMessageArrivalTime', 'datastoreSummary_lastMessageArrivalTime' - The last time when a new message arrived in the data store.
--
-- IoT Analytics updates this value at most once per minute for Amazon
-- Simple Storage Service one data store. Hence, the
-- @lastMessageArrivalTime@ value is an approximation.
--
-- This feature only applies to messages that arrived in the data store
-- after October 23, 2020.
--
-- 'datastoreName', 'datastoreSummary_datastoreName' - The name of the data store.
--
-- 'datastorePartitions', 'datastoreSummary_datastorePartitions' - Contains information about the partition dimensions in a data store.
--
-- 'fileFormatType', 'datastoreSummary_fileFormatType' - The file format of the data in the data store.
--
-- 'lastUpdateTime', 'datastoreSummary_lastUpdateTime' - The last time the data store was updated.
--
-- 'datastoreStorage', 'datastoreSummary_datastoreStorage' - Where data in a data store is stored.
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
    }

-- | When the data store was created.
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

-- | The status of the data store.
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)

-- | The last time when a new message arrived in the data store.
--
-- IoT Analytics updates this value at most once per minute for Amazon
-- Simple Storage Service one data store. Hence, the
-- @lastMessageArrivalTime@ value is an approximation.
--
-- This feature only applies to messages that arrived in the data store
-- after October 23, 2020.
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

-- | The name of the data store.
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)

-- | Contains information about the partition dimensions in a data store.
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)

-- | The file format of the data in the data store.
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)

-- | The last time the data store was updated.
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

-- | Where data in a data store is stored.
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