{-# 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.LookoutEquipment.Types.DataIngestionJobSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.LookoutEquipment.Types.IngestionInputConfiguration
import Amazonka.LookoutEquipment.Types.IngestionJobStatus
import qualified Amazonka.Prelude as Prelude
data DataIngestionJobSummary = DataIngestionJobSummary'
{
DataIngestionJobSummary -> Maybe IngestionInputConfiguration
ingestionInputConfiguration :: Prelude.Maybe IngestionInputConfiguration,
DataIngestionJobSummary -> Maybe IngestionJobStatus
status :: Prelude.Maybe IngestionJobStatus,
DataIngestionJobSummary -> Maybe Text
datasetArn :: Prelude.Maybe Prelude.Text,
DataIngestionJobSummary -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
DataIngestionJobSummary -> Maybe Text
datasetName :: Prelude.Maybe Prelude.Text
}
deriving (DataIngestionJobSummary -> DataIngestionJobSummary -> Bool
(DataIngestionJobSummary -> DataIngestionJobSummary -> Bool)
-> (DataIngestionJobSummary -> DataIngestionJobSummary -> Bool)
-> Eq DataIngestionJobSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DataIngestionJobSummary -> DataIngestionJobSummary -> Bool
$c/= :: DataIngestionJobSummary -> DataIngestionJobSummary -> Bool
== :: DataIngestionJobSummary -> DataIngestionJobSummary -> Bool
$c== :: DataIngestionJobSummary -> DataIngestionJobSummary -> Bool
Prelude.Eq, ReadPrec [DataIngestionJobSummary]
ReadPrec DataIngestionJobSummary
Int -> ReadS DataIngestionJobSummary
ReadS [DataIngestionJobSummary]
(Int -> ReadS DataIngestionJobSummary)
-> ReadS [DataIngestionJobSummary]
-> ReadPrec DataIngestionJobSummary
-> ReadPrec [DataIngestionJobSummary]
-> Read DataIngestionJobSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DataIngestionJobSummary]
$creadListPrec :: ReadPrec [DataIngestionJobSummary]
readPrec :: ReadPrec DataIngestionJobSummary
$creadPrec :: ReadPrec DataIngestionJobSummary
readList :: ReadS [DataIngestionJobSummary]
$creadList :: ReadS [DataIngestionJobSummary]
readsPrec :: Int -> ReadS DataIngestionJobSummary
$creadsPrec :: Int -> ReadS DataIngestionJobSummary
Prelude.Read, Int -> DataIngestionJobSummary -> ShowS
[DataIngestionJobSummary] -> ShowS
DataIngestionJobSummary -> String
(Int -> DataIngestionJobSummary -> ShowS)
-> (DataIngestionJobSummary -> String)
-> ([DataIngestionJobSummary] -> ShowS)
-> Show DataIngestionJobSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DataIngestionJobSummary] -> ShowS
$cshowList :: [DataIngestionJobSummary] -> ShowS
show :: DataIngestionJobSummary -> String
$cshow :: DataIngestionJobSummary -> String
showsPrec :: Int -> DataIngestionJobSummary -> ShowS
$cshowsPrec :: Int -> DataIngestionJobSummary -> ShowS
Prelude.Show, (forall x.
DataIngestionJobSummary -> Rep DataIngestionJobSummary x)
-> (forall x.
Rep DataIngestionJobSummary x -> DataIngestionJobSummary)
-> Generic DataIngestionJobSummary
forall x. Rep DataIngestionJobSummary x -> DataIngestionJobSummary
forall x. DataIngestionJobSummary -> Rep DataIngestionJobSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DataIngestionJobSummary x -> DataIngestionJobSummary
$cfrom :: forall x. DataIngestionJobSummary -> Rep DataIngestionJobSummary x
Prelude.Generic)
newDataIngestionJobSummary ::
DataIngestionJobSummary
newDataIngestionJobSummary :: DataIngestionJobSummary
newDataIngestionJobSummary =
DataIngestionJobSummary' :: Maybe IngestionInputConfiguration
-> Maybe IngestionJobStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DataIngestionJobSummary
DataIngestionJobSummary'
{ $sel:ingestionInputConfiguration:DataIngestionJobSummary' :: Maybe IngestionInputConfiguration
ingestionInputConfiguration =
Maybe IngestionInputConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:status:DataIngestionJobSummary' :: Maybe IngestionJobStatus
status = Maybe IngestionJobStatus
forall a. Maybe a
Prelude.Nothing,
$sel:datasetArn:DataIngestionJobSummary' :: Maybe Text
datasetArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobId:DataIngestionJobSummary' :: Maybe Text
jobId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:datasetName:DataIngestionJobSummary' :: Maybe Text
datasetName = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
dataIngestionJobSummary_ingestionInputConfiguration :: Lens.Lens' DataIngestionJobSummary (Prelude.Maybe IngestionInputConfiguration)
dataIngestionJobSummary_ingestionInputConfiguration :: (Maybe IngestionInputConfiguration
-> f (Maybe IngestionInputConfiguration))
-> DataIngestionJobSummary -> f DataIngestionJobSummary
dataIngestionJobSummary_ingestionInputConfiguration = (DataIngestionJobSummary -> Maybe IngestionInputConfiguration)
-> (DataIngestionJobSummary
-> Maybe IngestionInputConfiguration -> DataIngestionJobSummary)
-> Lens
DataIngestionJobSummary
DataIngestionJobSummary
(Maybe IngestionInputConfiguration)
(Maybe IngestionInputConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataIngestionJobSummary' {Maybe IngestionInputConfiguration
ingestionInputConfiguration :: Maybe IngestionInputConfiguration
$sel:ingestionInputConfiguration:DataIngestionJobSummary' :: DataIngestionJobSummary -> Maybe IngestionInputConfiguration
ingestionInputConfiguration} -> Maybe IngestionInputConfiguration
ingestionInputConfiguration) (\s :: DataIngestionJobSummary
s@DataIngestionJobSummary' {} Maybe IngestionInputConfiguration
a -> DataIngestionJobSummary
s {$sel:ingestionInputConfiguration:DataIngestionJobSummary' :: Maybe IngestionInputConfiguration
ingestionInputConfiguration = Maybe IngestionInputConfiguration
a} :: DataIngestionJobSummary)
dataIngestionJobSummary_status :: Lens.Lens' DataIngestionJobSummary (Prelude.Maybe IngestionJobStatus)
dataIngestionJobSummary_status :: (Maybe IngestionJobStatus -> f (Maybe IngestionJobStatus))
-> DataIngestionJobSummary -> f DataIngestionJobSummary
dataIngestionJobSummary_status = (DataIngestionJobSummary -> Maybe IngestionJobStatus)
-> (DataIngestionJobSummary
-> Maybe IngestionJobStatus -> DataIngestionJobSummary)
-> Lens
DataIngestionJobSummary
DataIngestionJobSummary
(Maybe IngestionJobStatus)
(Maybe IngestionJobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataIngestionJobSummary' {Maybe IngestionJobStatus
status :: Maybe IngestionJobStatus
$sel:status:DataIngestionJobSummary' :: DataIngestionJobSummary -> Maybe IngestionJobStatus
status} -> Maybe IngestionJobStatus
status) (\s :: DataIngestionJobSummary
s@DataIngestionJobSummary' {} Maybe IngestionJobStatus
a -> DataIngestionJobSummary
s {$sel:status:DataIngestionJobSummary' :: Maybe IngestionJobStatus
status = Maybe IngestionJobStatus
a} :: DataIngestionJobSummary)
dataIngestionJobSummary_datasetArn :: Lens.Lens' DataIngestionJobSummary (Prelude.Maybe Prelude.Text)
dataIngestionJobSummary_datasetArn :: (Maybe Text -> f (Maybe Text))
-> DataIngestionJobSummary -> f DataIngestionJobSummary
dataIngestionJobSummary_datasetArn = (DataIngestionJobSummary -> Maybe Text)
-> (DataIngestionJobSummary
-> Maybe Text -> DataIngestionJobSummary)
-> Lens
DataIngestionJobSummary
DataIngestionJobSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataIngestionJobSummary' {Maybe Text
datasetArn :: Maybe Text
$sel:datasetArn:DataIngestionJobSummary' :: DataIngestionJobSummary -> Maybe Text
datasetArn} -> Maybe Text
datasetArn) (\s :: DataIngestionJobSummary
s@DataIngestionJobSummary' {} Maybe Text
a -> DataIngestionJobSummary
s {$sel:datasetArn:DataIngestionJobSummary' :: Maybe Text
datasetArn = Maybe Text
a} :: DataIngestionJobSummary)
dataIngestionJobSummary_jobId :: Lens.Lens' DataIngestionJobSummary (Prelude.Maybe Prelude.Text)
dataIngestionJobSummary_jobId :: (Maybe Text -> f (Maybe Text))
-> DataIngestionJobSummary -> f DataIngestionJobSummary
dataIngestionJobSummary_jobId = (DataIngestionJobSummary -> Maybe Text)
-> (DataIngestionJobSummary
-> Maybe Text -> DataIngestionJobSummary)
-> Lens
DataIngestionJobSummary
DataIngestionJobSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataIngestionJobSummary' {Maybe Text
jobId :: Maybe Text
$sel:jobId:DataIngestionJobSummary' :: DataIngestionJobSummary -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: DataIngestionJobSummary
s@DataIngestionJobSummary' {} Maybe Text
a -> DataIngestionJobSummary
s {$sel:jobId:DataIngestionJobSummary' :: Maybe Text
jobId = Maybe Text
a} :: DataIngestionJobSummary)
dataIngestionJobSummary_datasetName :: Lens.Lens' DataIngestionJobSummary (Prelude.Maybe Prelude.Text)
dataIngestionJobSummary_datasetName :: (Maybe Text -> f (Maybe Text))
-> DataIngestionJobSummary -> f DataIngestionJobSummary
dataIngestionJobSummary_datasetName = (DataIngestionJobSummary -> Maybe Text)
-> (DataIngestionJobSummary
-> Maybe Text -> DataIngestionJobSummary)
-> Lens
DataIngestionJobSummary
DataIngestionJobSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataIngestionJobSummary' {Maybe Text
datasetName :: Maybe Text
$sel:datasetName:DataIngestionJobSummary' :: DataIngestionJobSummary -> Maybe Text
datasetName} -> Maybe Text
datasetName) (\s :: DataIngestionJobSummary
s@DataIngestionJobSummary' {} Maybe Text
a -> DataIngestionJobSummary
s {$sel:datasetName:DataIngestionJobSummary' :: Maybe Text
datasetName = Maybe Text
a} :: DataIngestionJobSummary)
instance Core.FromJSON DataIngestionJobSummary where
parseJSON :: Value -> Parser DataIngestionJobSummary
parseJSON =
String
-> (Object -> Parser DataIngestionJobSummary)
-> Value
-> Parser DataIngestionJobSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"DataIngestionJobSummary"
( \Object
x ->
Maybe IngestionInputConfiguration
-> Maybe IngestionJobStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DataIngestionJobSummary
DataIngestionJobSummary'
(Maybe IngestionInputConfiguration
-> Maybe IngestionJobStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DataIngestionJobSummary)
-> Parser (Maybe IngestionInputConfiguration)
-> Parser
(Maybe IngestionJobStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DataIngestionJobSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe IngestionInputConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"IngestionInputConfiguration")
Parser
(Maybe IngestionJobStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> DataIngestionJobSummary)
-> Parser (Maybe IngestionJobStatus)
-> Parser
(Maybe Text -> Maybe Text -> Maybe Text -> DataIngestionJobSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe IngestionJobStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
Parser
(Maybe Text -> Maybe Text -> Maybe Text -> DataIngestionJobSummary)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> DataIngestionJobSummary)
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
"DatasetArn")
Parser (Maybe Text -> Maybe Text -> DataIngestionJobSummary)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> DataIngestionJobSummary)
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
"JobId")
Parser (Maybe Text -> DataIngestionJobSummary)
-> Parser (Maybe Text) -> Parser DataIngestionJobSummary
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
"DatasetName")
)
instance Prelude.Hashable DataIngestionJobSummary
instance Prelude.NFData DataIngestionJobSummary