{-# 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.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data BatchInferenceJobSummary = BatchInferenceJobSummary'
{
BatchInferenceJobSummary -> Maybe Text
batchInferenceJobArn :: Prelude.Maybe Prelude.Text,
BatchInferenceJobSummary -> Maybe POSIX
creationDateTime :: Prelude.Maybe Data.POSIX,
BatchInferenceJobSummary -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
BatchInferenceJobSummary -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
BatchInferenceJobSummary -> Maybe POSIX
lastUpdatedDateTime :: Prelude.Maybe Data.POSIX,
BatchInferenceJobSummary -> Maybe Text
solutionVersionArn :: Prelude.Maybe Prelude.Text,
BatchInferenceJobSummary -> Maybe Text
status :: Prelude.Maybe Prelude.Text
}
deriving (BatchInferenceJobSummary -> BatchInferenceJobSummary -> Bool
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]
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
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.
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'
{ $sel:batchInferenceJobArn:BatchInferenceJobSummary' :: Maybe Text
batchInferenceJobArn =
forall a. Maybe a
Prelude.Nothing,
$sel:creationDateTime:BatchInferenceJobSummary' :: Maybe POSIX
creationDateTime = forall a. Maybe a
Prelude.Nothing,
$sel:failureReason:BatchInferenceJobSummary' :: Maybe Text
failureReason = forall a. Maybe a
Prelude.Nothing,
$sel:jobName:BatchInferenceJobSummary' :: Maybe Text
jobName = forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedDateTime:BatchInferenceJobSummary' :: Maybe POSIX
lastUpdatedDateTime = forall a. Maybe a
Prelude.Nothing,
$sel:solutionVersionArn:BatchInferenceJobSummary' :: Maybe Text
solutionVersionArn = forall a. Maybe a
Prelude.Nothing,
$sel:status:BatchInferenceJobSummary' :: Maybe Text
status = forall a. Maybe a
Prelude.Nothing
}
batchInferenceJobSummary_batchInferenceJobArn :: Lens.Lens' BatchInferenceJobSummary (Prelude.Maybe Prelude.Text)
batchInferenceJobSummary_batchInferenceJobArn :: Lens' BatchInferenceJobSummary (Maybe Text)
batchInferenceJobSummary_batchInferenceJobArn = 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 :: Lens' BatchInferenceJobSummary (Maybe UTCTime)
batchInferenceJobSummary_creationDateTime = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
batchInferenceJobSummary_failureReason :: Lens.Lens' BatchInferenceJobSummary (Prelude.Maybe Prelude.Text)
batchInferenceJobSummary_failureReason :: Lens' BatchInferenceJobSummary (Maybe Text)
batchInferenceJobSummary_failureReason = 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_jobName :: Lens.Lens' BatchInferenceJobSummary (Prelude.Maybe Prelude.Text)
batchInferenceJobSummary_jobName :: Lens' BatchInferenceJobSummary (Maybe Text)
batchInferenceJobSummary_jobName = 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 :: Lens' BatchInferenceJobSummary (Maybe UTCTime)
batchInferenceJobSummary_lastUpdatedDateTime = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
batchInferenceJobSummary_solutionVersionArn :: Lens.Lens' BatchInferenceJobSummary (Prelude.Maybe Prelude.Text)
batchInferenceJobSummary_solutionVersionArn :: Lens' BatchInferenceJobSummary (Maybe Text)
batchInferenceJobSummary_solutionVersionArn = 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)
batchInferenceJobSummary_status :: Lens.Lens' BatchInferenceJobSummary (Prelude.Maybe Prelude.Text)
batchInferenceJobSummary_status :: Lens' BatchInferenceJobSummary (Maybe Text)
batchInferenceJobSummary_status = 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)
instance Data.FromJSON BatchInferenceJobSummary where
parseJSON :: Value -> Parser BatchInferenceJobSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"BatchInferenceJobSummary"
( \Object
x ->
Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> BatchInferenceJobSummary
BatchInferenceJobSummary'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"batchInferenceJobArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"creationDateTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"failureReason")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"jobName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"lastUpdatedDateTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"solutionVersionArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"status")
)
instance Prelude.Hashable BatchInferenceJobSummary where
hashWithSalt :: Int -> BatchInferenceJobSummary -> Int
hashWithSalt Int
_salt BatchInferenceJobSummary' {Maybe Text
Maybe POSIX
status :: Maybe Text
solutionVersionArn :: Maybe Text
lastUpdatedDateTime :: Maybe POSIX
jobName :: Maybe Text
failureReason :: Maybe Text
creationDateTime :: Maybe POSIX
batchInferenceJobArn :: Maybe Text
$sel:status:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe Text
$sel:solutionVersionArn:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe Text
$sel:lastUpdatedDateTime:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe POSIX
$sel:jobName:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe Text
$sel:failureReason:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe Text
$sel:creationDateTime:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe POSIX
$sel:batchInferenceJobArn:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
batchInferenceJobArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationDateTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
failureReason
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
jobName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastUpdatedDateTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
solutionVersionArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
status
instance Prelude.NFData BatchInferenceJobSummary where
rnf :: BatchInferenceJobSummary -> ()
rnf BatchInferenceJobSummary' {Maybe Text
Maybe POSIX
status :: Maybe Text
solutionVersionArn :: Maybe Text
lastUpdatedDateTime :: Maybe POSIX
jobName :: Maybe Text
failureReason :: Maybe Text
creationDateTime :: Maybe POSIX
batchInferenceJobArn :: Maybe Text
$sel:status:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe Text
$sel:solutionVersionArn:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe Text
$sel:lastUpdatedDateTime:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe POSIX
$sel:jobName:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe Text
$sel:failureReason:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe Text
$sel:creationDateTime:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe POSIX
$sel:batchInferenceJobArn:BatchInferenceJobSummary' :: BatchInferenceJobSummary -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
batchInferenceJobArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationDateTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
failureReason
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
jobName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastUpdatedDateTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
solutionVersionArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
status