{-# 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.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
data DatasetImportJobSummary = DatasetImportJobSummary'
{
DatasetImportJobSummary -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
DatasetImportJobSummary -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
DatasetImportJobSummary -> Maybe Text
datasetImportJobName :: Prelude.Maybe Prelude.Text,
DatasetImportJobSummary -> Maybe DataSource
dataSource :: Prelude.Maybe DataSource,
DatasetImportJobSummary -> Maybe Text
datasetImportJobArn :: Prelude.Maybe Prelude.Text,
DatasetImportJobSummary -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
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)
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
}
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
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)
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)
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)
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)
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)
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