{-# 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.Forecast.Types.DatasetImportJobSummary
-- 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.Forecast.Types.DatasetImportJobSummary where

import qualified Amazonka.Core as Core
import Amazonka.Forecast.Types.DataSource
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Provides a summary of the dataset import job properties used in the
-- ListDatasetImportJobs operation. To get the complete set of properties,
-- call the DescribeDatasetImportJob operation, and provide the
-- @DatasetImportJobArn@.
--
-- /See:/ 'newDatasetImportJobSummary' smart constructor.
data DatasetImportJobSummary = DatasetImportJobSummary'
  { -- | When the dataset import job was created.
    DatasetImportJobSummary -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
    -- | The status of the dataset import job. States include:
    --
    -- -   @ACTIVE@
    --
    -- -   @CREATE_PENDING@, @CREATE_IN_PROGRESS@, @CREATE_FAILED@
    --
    -- -   @DELETE_PENDING@, @DELETE_IN_PROGRESS@, @DELETE_FAILED@
    --
    -- -   @CREATE_STOPPING@, @CREATE_STOPPED@
    DatasetImportJobSummary -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
    -- | The name of the dataset import job.
    DatasetImportJobSummary -> Maybe Text
datasetImportJobName :: Prelude.Maybe Prelude.Text,
    -- | The location of the training data to import and an AWS Identity and
    -- Access Management (IAM) role that Amazon Forecast can assume to access
    -- the data. The training data must be stored in an Amazon S3 bucket.
    --
    -- If encryption is used, @DataSource@ includes an AWS Key Management
    -- Service (KMS) key.
    DatasetImportJobSummary -> Maybe DataSource
dataSource :: Prelude.Maybe DataSource,
    -- | The Amazon Resource Name (ARN) of the dataset import job.
    DatasetImportJobSummary -> Maybe Text
datasetImportJobArn :: Prelude.Maybe Prelude.Text,
    -- | If an error occurred, an informational message about the error.
    DatasetImportJobSummary -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
    -- | The last time the resource was modified. The timestamp depends on the
    -- status of the job:
    --
    -- -   @CREATE_PENDING@ - The @CreationTime@.
    --
    -- -   @CREATE_IN_PROGRESS@ - The current timestamp.
    --
    -- -   @CREATE_STOPPING@ - The current timestamp.
    --
    -- -   @CREATE_STOPPED@ - When the job stopped.
    --
    -- -   @ACTIVE@ or @CREATE_FAILED@ - When the job finished or failed.
    DatasetImportJobSummary -> Maybe POSIX
lastModificationTime :: Prelude.Maybe Core.POSIX
  }
  deriving (DatasetImportJobSummary -> DatasetImportJobSummary -> Bool
(DatasetImportJobSummary -> DatasetImportJobSummary -> Bool)
-> (DatasetImportJobSummary -> DatasetImportJobSummary -> Bool)
-> Eq DatasetImportJobSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DatasetImportJobSummary -> DatasetImportJobSummary -> Bool
$c/= :: DatasetImportJobSummary -> DatasetImportJobSummary -> Bool
== :: DatasetImportJobSummary -> DatasetImportJobSummary -> Bool
$c== :: DatasetImportJobSummary -> DatasetImportJobSummary -> Bool
Prelude.Eq, ReadPrec [DatasetImportJobSummary]
ReadPrec DatasetImportJobSummary
Int -> ReadS DatasetImportJobSummary
ReadS [DatasetImportJobSummary]
(Int -> ReadS DatasetImportJobSummary)
-> ReadS [DatasetImportJobSummary]
-> ReadPrec DatasetImportJobSummary
-> ReadPrec [DatasetImportJobSummary]
-> Read DatasetImportJobSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DatasetImportJobSummary]
$creadListPrec :: ReadPrec [DatasetImportJobSummary]
readPrec :: ReadPrec DatasetImportJobSummary
$creadPrec :: ReadPrec DatasetImportJobSummary
readList :: ReadS [DatasetImportJobSummary]
$creadList :: ReadS [DatasetImportJobSummary]
readsPrec :: Int -> ReadS DatasetImportJobSummary
$creadsPrec :: Int -> ReadS DatasetImportJobSummary
Prelude.Read, Int -> DatasetImportJobSummary -> ShowS
[DatasetImportJobSummary] -> ShowS
DatasetImportJobSummary -> String
(Int -> DatasetImportJobSummary -> ShowS)
-> (DatasetImportJobSummary -> String)
-> ([DatasetImportJobSummary] -> ShowS)
-> Show DatasetImportJobSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DatasetImportJobSummary] -> ShowS
$cshowList :: [DatasetImportJobSummary] -> ShowS
show :: DatasetImportJobSummary -> String
$cshow :: DatasetImportJobSummary -> String
showsPrec :: Int -> DatasetImportJobSummary -> ShowS
$cshowsPrec :: Int -> DatasetImportJobSummary -> ShowS
Prelude.Show, (forall x.
 DatasetImportJobSummary -> Rep DatasetImportJobSummary x)
-> (forall x.
    Rep DatasetImportJobSummary x -> DatasetImportJobSummary)
-> Generic DatasetImportJobSummary
forall x. Rep DatasetImportJobSummary x -> DatasetImportJobSummary
forall x. DatasetImportJobSummary -> Rep DatasetImportJobSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DatasetImportJobSummary x -> DatasetImportJobSummary
$cfrom :: forall x. DatasetImportJobSummary -> Rep DatasetImportJobSummary x
Prelude.Generic)

-- |
-- Create a value of 'DatasetImportJobSummary' 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', 'datasetImportJobSummary_creationTime' - When the dataset import job was created.
--
-- 'status', 'datasetImportJobSummary_status' - The status of the dataset import job. States include:
--
-- -   @ACTIVE@
--
-- -   @CREATE_PENDING@, @CREATE_IN_PROGRESS@, @CREATE_FAILED@
--
-- -   @DELETE_PENDING@, @DELETE_IN_PROGRESS@, @DELETE_FAILED@
--
-- -   @CREATE_STOPPING@, @CREATE_STOPPED@
--
-- 'datasetImportJobName', 'datasetImportJobSummary_datasetImportJobName' - The name of the dataset import job.
--
-- 'dataSource', 'datasetImportJobSummary_dataSource' - The location of the training data to import and an AWS Identity and
-- Access Management (IAM) role that Amazon Forecast can assume to access
-- the data. The training data must be stored in an Amazon S3 bucket.
--
-- If encryption is used, @DataSource@ includes an AWS Key Management
-- Service (KMS) key.
--
-- 'datasetImportJobArn', 'datasetImportJobSummary_datasetImportJobArn' - The Amazon Resource Name (ARN) of the dataset import job.
--
-- 'message', 'datasetImportJobSummary_message' - If an error occurred, an informational message about the error.
--
-- 'lastModificationTime', 'datasetImportJobSummary_lastModificationTime' - The last time the resource was modified. The timestamp depends on the
-- status of the job:
--
-- -   @CREATE_PENDING@ - The @CreationTime@.
--
-- -   @CREATE_IN_PROGRESS@ - The current timestamp.
--
-- -   @CREATE_STOPPING@ - The current timestamp.
--
-- -   @CREATE_STOPPED@ - When the job stopped.
--
-- -   @ACTIVE@ or @CREATE_FAILED@ - When the job finished or failed.
newDatasetImportJobSummary ::
  DatasetImportJobSummary
newDatasetImportJobSummary :: DatasetImportJobSummary
newDatasetImportJobSummary =
  DatasetImportJobSummary' :: Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe DataSource
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> DatasetImportJobSummary
DatasetImportJobSummary'
    { $sel:creationTime:DatasetImportJobSummary' :: Maybe POSIX
creationTime =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:status:DatasetImportJobSummary' :: Maybe Text
status = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:datasetImportJobName:DatasetImportJobSummary' :: Maybe Text
datasetImportJobName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dataSource:DatasetImportJobSummary' :: Maybe DataSource
dataSource = Maybe DataSource
forall a. Maybe a
Prelude.Nothing,
      $sel:datasetImportJobArn:DatasetImportJobSummary' :: Maybe Text
datasetImportJobArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:message:DatasetImportJobSummary' :: Maybe Text
message = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModificationTime:DatasetImportJobSummary' :: Maybe POSIX
lastModificationTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
    }

-- | When the dataset import job was created.
datasetImportJobSummary_creationTime :: Lens.Lens' DatasetImportJobSummary (Prelude.Maybe Prelude.UTCTime)
datasetImportJobSummary_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DatasetImportJobSummary -> f DatasetImportJobSummary
datasetImportJobSummary_creationTime = (DatasetImportJobSummary -> Maybe POSIX)
-> (DatasetImportJobSummary
    -> Maybe POSIX -> DatasetImportJobSummary)
-> Lens
     DatasetImportJobSummary
     DatasetImportJobSummary
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetImportJobSummary' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DatasetImportJobSummary' :: DatasetImportJobSummary -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DatasetImportJobSummary
s@DatasetImportJobSummary' {} Maybe POSIX
a -> DatasetImportJobSummary
s {$sel:creationTime:DatasetImportJobSummary' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DatasetImportJobSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> DatasetImportJobSummary -> f DatasetImportJobSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DatasetImportJobSummary
-> f DatasetImportJobSummary
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 dataset import job. States include:
--
-- -   @ACTIVE@
--
-- -   @CREATE_PENDING@, @CREATE_IN_PROGRESS@, @CREATE_FAILED@
--
-- -   @DELETE_PENDING@, @DELETE_IN_PROGRESS@, @DELETE_FAILED@
--
-- -   @CREATE_STOPPING@, @CREATE_STOPPED@
datasetImportJobSummary_status :: Lens.Lens' DatasetImportJobSummary (Prelude.Maybe Prelude.Text)
datasetImportJobSummary_status :: (Maybe Text -> f (Maybe Text))
-> DatasetImportJobSummary -> f DatasetImportJobSummary
datasetImportJobSummary_status = (DatasetImportJobSummary -> Maybe Text)
-> (DatasetImportJobSummary
    -> Maybe Text -> DatasetImportJobSummary)
-> Lens
     DatasetImportJobSummary
     DatasetImportJobSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetImportJobSummary' {Maybe Text
status :: Maybe Text
$sel:status:DatasetImportJobSummary' :: DatasetImportJobSummary -> Maybe Text
status} -> Maybe Text
status) (\s :: DatasetImportJobSummary
s@DatasetImportJobSummary' {} Maybe Text
a -> DatasetImportJobSummary
s {$sel:status:DatasetImportJobSummary' :: Maybe Text
status = Maybe Text
a} :: DatasetImportJobSummary)

-- | The name of the dataset import job.
datasetImportJobSummary_datasetImportJobName :: Lens.Lens' DatasetImportJobSummary (Prelude.Maybe Prelude.Text)
datasetImportJobSummary_datasetImportJobName :: (Maybe Text -> f (Maybe Text))
-> DatasetImportJobSummary -> f DatasetImportJobSummary
datasetImportJobSummary_datasetImportJobName = (DatasetImportJobSummary -> Maybe Text)
-> (DatasetImportJobSummary
    -> Maybe Text -> DatasetImportJobSummary)
-> Lens
     DatasetImportJobSummary
     DatasetImportJobSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetImportJobSummary' {Maybe Text
datasetImportJobName :: Maybe Text
$sel:datasetImportJobName:DatasetImportJobSummary' :: DatasetImportJobSummary -> Maybe Text
datasetImportJobName} -> Maybe Text
datasetImportJobName) (\s :: DatasetImportJobSummary
s@DatasetImportJobSummary' {} Maybe Text
a -> DatasetImportJobSummary
s {$sel:datasetImportJobName:DatasetImportJobSummary' :: Maybe Text
datasetImportJobName = Maybe Text
a} :: DatasetImportJobSummary)

-- | The location of the training data to import and an AWS Identity and
-- Access Management (IAM) role that Amazon Forecast can assume to access
-- the data. The training data must be stored in an Amazon S3 bucket.
--
-- If encryption is used, @DataSource@ includes an AWS Key Management
-- Service (KMS) key.
datasetImportJobSummary_dataSource :: Lens.Lens' DatasetImportJobSummary (Prelude.Maybe DataSource)
datasetImportJobSummary_dataSource :: (Maybe DataSource -> f (Maybe DataSource))
-> DatasetImportJobSummary -> f DatasetImportJobSummary
datasetImportJobSummary_dataSource = (DatasetImportJobSummary -> Maybe DataSource)
-> (DatasetImportJobSummary
    -> Maybe DataSource -> DatasetImportJobSummary)
-> Lens
     DatasetImportJobSummary
     DatasetImportJobSummary
     (Maybe DataSource)
     (Maybe DataSource)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetImportJobSummary' {Maybe DataSource
dataSource :: Maybe DataSource
$sel:dataSource:DatasetImportJobSummary' :: DatasetImportJobSummary -> Maybe DataSource
dataSource} -> Maybe DataSource
dataSource) (\s :: DatasetImportJobSummary
s@DatasetImportJobSummary' {} Maybe DataSource
a -> DatasetImportJobSummary
s {$sel:dataSource:DatasetImportJobSummary' :: Maybe DataSource
dataSource = Maybe DataSource
a} :: DatasetImportJobSummary)

-- | The Amazon Resource Name (ARN) of the dataset import job.
datasetImportJobSummary_datasetImportJobArn :: Lens.Lens' DatasetImportJobSummary (Prelude.Maybe Prelude.Text)
datasetImportJobSummary_datasetImportJobArn :: (Maybe Text -> f (Maybe Text))
-> DatasetImportJobSummary -> f DatasetImportJobSummary
datasetImportJobSummary_datasetImportJobArn = (DatasetImportJobSummary -> Maybe Text)
-> (DatasetImportJobSummary
    -> Maybe Text -> DatasetImportJobSummary)
-> Lens
     DatasetImportJobSummary
     DatasetImportJobSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetImportJobSummary' {Maybe Text
datasetImportJobArn :: Maybe Text
$sel:datasetImportJobArn:DatasetImportJobSummary' :: DatasetImportJobSummary -> Maybe Text
datasetImportJobArn} -> Maybe Text
datasetImportJobArn) (\s :: DatasetImportJobSummary
s@DatasetImportJobSummary' {} Maybe Text
a -> DatasetImportJobSummary
s {$sel:datasetImportJobArn:DatasetImportJobSummary' :: Maybe Text
datasetImportJobArn = Maybe Text
a} :: DatasetImportJobSummary)

-- | If an error occurred, an informational message about the error.
datasetImportJobSummary_message :: Lens.Lens' DatasetImportJobSummary (Prelude.Maybe Prelude.Text)
datasetImportJobSummary_message :: (Maybe Text -> f (Maybe Text))
-> DatasetImportJobSummary -> f DatasetImportJobSummary
datasetImportJobSummary_message = (DatasetImportJobSummary -> Maybe Text)
-> (DatasetImportJobSummary
    -> Maybe Text -> DatasetImportJobSummary)
-> Lens
     DatasetImportJobSummary
     DatasetImportJobSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetImportJobSummary' {Maybe Text
message :: Maybe Text
$sel:message:DatasetImportJobSummary' :: DatasetImportJobSummary -> Maybe Text
message} -> Maybe Text
message) (\s :: DatasetImportJobSummary
s@DatasetImportJobSummary' {} Maybe Text
a -> DatasetImportJobSummary
s {$sel:message:DatasetImportJobSummary' :: Maybe Text
message = Maybe Text
a} :: DatasetImportJobSummary)

-- | The last time the resource was modified. The timestamp depends on the
-- status of the job:
--
-- -   @CREATE_PENDING@ - The @CreationTime@.
--
-- -   @CREATE_IN_PROGRESS@ - The current timestamp.
--
-- -   @CREATE_STOPPING@ - The current timestamp.
--
-- -   @CREATE_STOPPED@ - When the job stopped.
--
-- -   @ACTIVE@ or @CREATE_FAILED@ - When the job finished or failed.
datasetImportJobSummary_lastModificationTime :: Lens.Lens' DatasetImportJobSummary (Prelude.Maybe Prelude.UTCTime)
datasetImportJobSummary_lastModificationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DatasetImportJobSummary -> f DatasetImportJobSummary
datasetImportJobSummary_lastModificationTime = (DatasetImportJobSummary -> Maybe POSIX)
-> (DatasetImportJobSummary
    -> Maybe POSIX -> DatasetImportJobSummary)
-> Lens
     DatasetImportJobSummary
     DatasetImportJobSummary
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DatasetImportJobSummary' {Maybe POSIX
lastModificationTime :: Maybe POSIX
$sel:lastModificationTime:DatasetImportJobSummary' :: DatasetImportJobSummary -> Maybe POSIX
lastModificationTime} -> Maybe POSIX
lastModificationTime) (\s :: DatasetImportJobSummary
s@DatasetImportJobSummary' {} Maybe POSIX
a -> DatasetImportJobSummary
s {$sel:lastModificationTime:DatasetImportJobSummary' :: Maybe POSIX
lastModificationTime = Maybe POSIX
a} :: DatasetImportJobSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> DatasetImportJobSummary -> f DatasetImportJobSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DatasetImportJobSummary
-> f DatasetImportJobSummary
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 DatasetImportJobSummary where
  parseJSON :: Value -> Parser DatasetImportJobSummary
parseJSON =
    String
-> (Object -> Parser DatasetImportJobSummary)
-> Value
-> Parser DatasetImportJobSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"DatasetImportJobSummary"
      ( \Object
x ->
          Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe DataSource
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> DatasetImportJobSummary
DatasetImportJobSummary'
            (Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe DataSource
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> DatasetImportJobSummary)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe DataSource
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> DatasetImportJobSummary)
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 Text
   -> Maybe Text
   -> Maybe DataSource
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> DatasetImportJobSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe DataSource
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> DatasetImportJobSummary)
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
"Status")
            Parser
  (Maybe Text
   -> Maybe DataSource
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> DatasetImportJobSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe DataSource
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> DatasetImportJobSummary)
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
"DatasetImportJobName")
            Parser
  (Maybe DataSource
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> DatasetImportJobSummary)
-> Parser (Maybe DataSource)
-> Parser
     (Maybe Text
      -> Maybe Text -> Maybe POSIX -> DatasetImportJobSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DataSource)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DataSource")
            Parser
  (Maybe Text
   -> Maybe Text -> Maybe POSIX -> DatasetImportJobSummary)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe POSIX -> DatasetImportJobSummary)
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
"DatasetImportJobArn")
            Parser (Maybe Text -> Maybe POSIX -> DatasetImportJobSummary)
-> Parser (Maybe Text)
-> Parser (Maybe POSIX -> DatasetImportJobSummary)
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
"Message")
            Parser (Maybe POSIX -> DatasetImportJobSummary)
-> Parser (Maybe POSIX) -> Parser DatasetImportJobSummary
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
"LastModificationTime")
      )

instance Prelude.Hashable DatasetImportJobSummary

instance Prelude.NFData DatasetImportJobSummary