{-# 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.Personalize.Types.BatchInferenceJobSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data BatchInferenceJobSummary = BatchInferenceJobSummary'
{
BatchInferenceJobSummary -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
BatchInferenceJobSummary -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
BatchInferenceJobSummary -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
BatchInferenceJobSummary -> Maybe POSIX
lastUpdatedDateTime :: Prelude.Maybe Core.POSIX,
BatchInferenceJobSummary -> Maybe Text
batchInferenceJobArn :: Prelude.Maybe Prelude.Text,
BatchInferenceJobSummary -> Maybe POSIX
creationDateTime :: Prelude.Maybe Core.POSIX,
BatchInferenceJobSummary -> Maybe Text
solutionVersionArn :: Prelude.Maybe Prelude.Text
}
deriving (BatchInferenceJobSummary -> BatchInferenceJobSummary -> Bool
(BatchInferenceJobSummary -> BatchInferenceJobSummary -> Bool)
-> (BatchInferenceJobSummary -> BatchInferenceJobSummary -> Bool)
-> Eq BatchInferenceJobSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchInferenceJobSummary -> BatchInferenceJobSummary -> Bool
$c/= :: BatchInferenceJobSummary -> BatchInferenceJobSummary -> Bool
== :: BatchInferenceJobSummary -> BatchInferenceJobSummary -> Bool
$c== :: BatchInferenceJobSummary -> BatchInferenceJobSummary -> Bool
Prelude.Eq, ReadPrec [BatchInferenceJobSummary]
ReadPrec BatchInferenceJobSummary
Int -> ReadS BatchInferenceJobSummary
ReadS [BatchInferenceJobSummary]
(Int -> ReadS BatchInferenceJobSummary)
-> ReadS [BatchInferenceJobSummary]
-> ReadPrec BatchInferenceJobSummary
-> ReadPrec [BatchInferenceJobSummary]
-> Read BatchInferenceJobSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchInferenceJobSummary]
$creadListPrec :: ReadPrec [BatchInferenceJobSummary]
readPrec :: ReadPrec BatchInferenceJobSummary
$creadPrec :: ReadPrec BatchInferenceJobSummary
readList :: ReadS [BatchInferenceJobSummary]
$creadList :: ReadS [BatchInferenceJobSummary]
readsPrec :: Int -> ReadS BatchInferenceJobSummary
$creadsPrec :: Int -> ReadS BatchInferenceJobSummary
Prelude.Read, Int -> BatchInferenceJobSummary -> ShowS
[BatchInferenceJobSummary] -> ShowS
BatchInferenceJobSummary -> String
(Int -> BatchInferenceJobSummary -> ShowS)
-> (BatchInferenceJobSummary -> String)
-> ([BatchInferenceJobSummary] -> ShowS)
-> Show BatchInferenceJobSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchInferenceJobSummary] -> ShowS
$cshowList :: [BatchInferenceJobSummary] -> ShowS
show :: BatchInferenceJobSummary -> String
$cshow :: BatchInferenceJobSummary -> String
showsPrec :: Int -> BatchInferenceJobSummary -> ShowS
$cshowsPrec :: Int -> BatchInferenceJobSummary -> ShowS
Prelude.Show, (forall x.
BatchInferenceJobSummary -> Rep BatchInferenceJobSummary x)
-> (forall x.
Rep BatchInferenceJobSummary x -> BatchInferenceJobSummary)
-> Generic BatchInferenceJobSummary
forall x.
Rep BatchInferenceJobSummary x -> BatchInferenceJobSummary
forall x.
BatchInferenceJobSummary -> Rep BatchInferenceJobSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchInferenceJobSummary x -> BatchInferenceJobSummary
$cfrom :: forall x.
BatchInferenceJobSummary -> Rep BatchInferenceJobSummary x
Prelude.Generic)
newBatchInferenceJobSummary ::
BatchInferenceJobSummary
newBatchInferenceJobSummary :: BatchInferenceJobSummary
newBatchInferenceJobSummary =
BatchInferenceJobSummary' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> BatchInferenceJobSummary
BatchInferenceJobSummary'
{ $sel:failureReason:BatchInferenceJobSummary' :: Maybe Text
failureReason =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:status:BatchInferenceJobSummary' :: Maybe Text
status = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobName:BatchInferenceJobSummary' :: Maybe Text
jobName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedDateTime:BatchInferenceJobSummary' :: Maybe POSIX
lastUpdatedDateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:batchInferenceJobArn:BatchInferenceJobSummary' :: Maybe Text
batchInferenceJobArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creationDateTime:BatchInferenceJobSummary' :: Maybe POSIX
creationDateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:solutionVersionArn:BatchInferenceJobSummary' :: Maybe Text
solutionVersionArn = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
batchInferenceJobSummary_failureReason :: Lens.Lens' BatchInferenceJobSummary (Prelude.Maybe Prelude.Text)
batchInferenceJobSummary_failureReason :: (Maybe Text -> f (Maybe Text))
-> BatchInferenceJobSummary -> f BatchInferenceJobSummary
batchInferenceJobSummary_failureReason = (BatchInferenceJobSummary -> Maybe Text)
-> (BatchInferenceJobSummary
-> Maybe Text -> BatchInferenceJobSummary)
-> Lens
BatchInferenceJobSummary
BatchInferenceJobSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchInferenceJobSummary' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: BatchInferenceJobSummary
s@BatchInferenceJobSummary' {} Maybe Text
a -> BatchInferenceJobSummary
s {$sel:failureReason:BatchInferenceJobSummary' :: Maybe Text
failureReason = Maybe Text
a} :: BatchInferenceJobSummary)
batchInferenceJobSummary_status :: Lens.Lens' BatchInferenceJobSummary (Prelude.Maybe Prelude.Text)
batchInferenceJobSummary_status :: (Maybe Text -> f (Maybe Text))
-> BatchInferenceJobSummary -> f BatchInferenceJobSummary
batchInferenceJobSummary_status = (BatchInferenceJobSummary -> Maybe Text)
-> (BatchInferenceJobSummary
-> Maybe Text -> BatchInferenceJobSummary)
-> Lens
BatchInferenceJobSummary
BatchInferenceJobSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchInferenceJobSummary' {Maybe Text
status :: Maybe Text
$sel:status:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe Text
status} -> Maybe Text
status) (\s :: BatchInferenceJobSummary
s@BatchInferenceJobSummary' {} Maybe Text
a -> BatchInferenceJobSummary
s {$sel:status:BatchInferenceJobSummary' :: Maybe Text
status = Maybe Text
a} :: BatchInferenceJobSummary)
batchInferenceJobSummary_jobName :: Lens.Lens' BatchInferenceJobSummary (Prelude.Maybe Prelude.Text)
batchInferenceJobSummary_jobName :: (Maybe Text -> f (Maybe Text))
-> BatchInferenceJobSummary -> f BatchInferenceJobSummary
batchInferenceJobSummary_jobName = (BatchInferenceJobSummary -> Maybe Text)
-> (BatchInferenceJobSummary
-> Maybe Text -> BatchInferenceJobSummary)
-> Lens
BatchInferenceJobSummary
BatchInferenceJobSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchInferenceJobSummary' {Maybe Text
jobName :: Maybe Text
$sel:jobName:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe Text
jobName} -> Maybe Text
jobName) (\s :: BatchInferenceJobSummary
s@BatchInferenceJobSummary' {} Maybe Text
a -> BatchInferenceJobSummary
s {$sel:jobName:BatchInferenceJobSummary' :: Maybe Text
jobName = Maybe Text
a} :: BatchInferenceJobSummary)
batchInferenceJobSummary_lastUpdatedDateTime :: Lens.Lens' BatchInferenceJobSummary (Prelude.Maybe Prelude.UTCTime)
batchInferenceJobSummary_lastUpdatedDateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> BatchInferenceJobSummary -> f BatchInferenceJobSummary
batchInferenceJobSummary_lastUpdatedDateTime = (BatchInferenceJobSummary -> Maybe POSIX)
-> (BatchInferenceJobSummary
-> Maybe POSIX -> BatchInferenceJobSummary)
-> Lens
BatchInferenceJobSummary
BatchInferenceJobSummary
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchInferenceJobSummary' {Maybe POSIX
lastUpdatedDateTime :: Maybe POSIX
$sel:lastUpdatedDateTime:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe POSIX
lastUpdatedDateTime} -> Maybe POSIX
lastUpdatedDateTime) (\s :: BatchInferenceJobSummary
s@BatchInferenceJobSummary' {} Maybe POSIX
a -> BatchInferenceJobSummary
s {$sel:lastUpdatedDateTime:BatchInferenceJobSummary' :: Maybe POSIX
lastUpdatedDateTime = Maybe POSIX
a} :: BatchInferenceJobSummary) ((Maybe POSIX -> f (Maybe POSIX))
-> BatchInferenceJobSummary -> f BatchInferenceJobSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> BatchInferenceJobSummary
-> f BatchInferenceJobSummary
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
batchInferenceJobSummary_batchInferenceJobArn :: Lens.Lens' BatchInferenceJobSummary (Prelude.Maybe Prelude.Text)
batchInferenceJobSummary_batchInferenceJobArn :: (Maybe Text -> f (Maybe Text))
-> BatchInferenceJobSummary -> f BatchInferenceJobSummary
batchInferenceJobSummary_batchInferenceJobArn = (BatchInferenceJobSummary -> Maybe Text)
-> (BatchInferenceJobSummary
-> Maybe Text -> BatchInferenceJobSummary)
-> Lens
BatchInferenceJobSummary
BatchInferenceJobSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchInferenceJobSummary' {Maybe Text
batchInferenceJobArn :: Maybe Text
$sel:batchInferenceJobArn:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe Text
batchInferenceJobArn} -> Maybe Text
batchInferenceJobArn) (\s :: BatchInferenceJobSummary
s@BatchInferenceJobSummary' {} Maybe Text
a -> BatchInferenceJobSummary
s {$sel:batchInferenceJobArn:BatchInferenceJobSummary' :: Maybe Text
batchInferenceJobArn = Maybe Text
a} :: BatchInferenceJobSummary)
batchInferenceJobSummary_creationDateTime :: Lens.Lens' BatchInferenceJobSummary (Prelude.Maybe Prelude.UTCTime)
batchInferenceJobSummary_creationDateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> BatchInferenceJobSummary -> f BatchInferenceJobSummary
batchInferenceJobSummary_creationDateTime = (BatchInferenceJobSummary -> Maybe POSIX)
-> (BatchInferenceJobSummary
-> Maybe POSIX -> BatchInferenceJobSummary)
-> Lens
BatchInferenceJobSummary
BatchInferenceJobSummary
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchInferenceJobSummary' {Maybe POSIX
creationDateTime :: Maybe POSIX
$sel:creationDateTime:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe POSIX
creationDateTime} -> Maybe POSIX
creationDateTime) (\s :: BatchInferenceJobSummary
s@BatchInferenceJobSummary' {} Maybe POSIX
a -> BatchInferenceJobSummary
s {$sel:creationDateTime:BatchInferenceJobSummary' :: Maybe POSIX
creationDateTime = Maybe POSIX
a} :: BatchInferenceJobSummary) ((Maybe POSIX -> f (Maybe POSIX))
-> BatchInferenceJobSummary -> f BatchInferenceJobSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> BatchInferenceJobSummary
-> f BatchInferenceJobSummary
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
batchInferenceJobSummary_solutionVersionArn :: Lens.Lens' BatchInferenceJobSummary (Prelude.Maybe Prelude.Text)
batchInferenceJobSummary_solutionVersionArn :: (Maybe Text -> f (Maybe Text))
-> BatchInferenceJobSummary -> f BatchInferenceJobSummary
batchInferenceJobSummary_solutionVersionArn = (BatchInferenceJobSummary -> Maybe Text)
-> (BatchInferenceJobSummary
-> Maybe Text -> BatchInferenceJobSummary)
-> Lens
BatchInferenceJobSummary
BatchInferenceJobSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchInferenceJobSummary' {Maybe Text
solutionVersionArn :: Maybe Text
$sel:solutionVersionArn:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe Text
solutionVersionArn} -> Maybe Text
solutionVersionArn) (\s :: BatchInferenceJobSummary
s@BatchInferenceJobSummary' {} Maybe Text
a -> BatchInferenceJobSummary
s {$sel:solutionVersionArn:BatchInferenceJobSummary' :: Maybe Text
solutionVersionArn = Maybe Text
a} :: BatchInferenceJobSummary)
instance Core.FromJSON BatchInferenceJobSummary where
parseJSON :: Value -> Parser BatchInferenceJobSummary
parseJSON =
String
-> (Object -> Parser BatchInferenceJobSummary)
-> Value
-> Parser BatchInferenceJobSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"BatchInferenceJobSummary"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> BatchInferenceJobSummary
BatchInferenceJobSummary'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> BatchInferenceJobSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> BatchInferenceJobSummary)
forall (f :: * -> *) a b. Functor 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
"failureReason")
Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> BatchInferenceJobSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> BatchInferenceJobSummary)
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 POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> BatchInferenceJobSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> BatchInferenceJobSummary)
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
"jobName")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> BatchInferenceJobSummary)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe POSIX -> Maybe Text -> BatchInferenceJobSummary)
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
"lastUpdatedDateTime")
Parser
(Maybe Text
-> Maybe POSIX -> Maybe Text -> BatchInferenceJobSummary)
-> Parser (Maybe Text)
-> Parser (Maybe POSIX -> Maybe Text -> BatchInferenceJobSummary)
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
"batchInferenceJobArn")
Parser (Maybe POSIX -> Maybe Text -> BatchInferenceJobSummary)
-> Parser (Maybe POSIX)
-> Parser (Maybe Text -> BatchInferenceJobSummary)
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
"creationDateTime")
Parser (Maybe Text -> BatchInferenceJobSummary)
-> Parser (Maybe Text) -> Parser BatchInferenceJobSummary
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
"solutionVersionArn")
)
instance Prelude.Hashable BatchInferenceJobSummary
instance Prelude.NFData BatchInferenceJobSummary