{-# 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.MachineLearning.Types.MLModel where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MachineLearning.Types.Algorithm
import Amazonka.MachineLearning.Types.EntityStatus
import Amazonka.MachineLearning.Types.MLModelType
import Amazonka.MachineLearning.Types.RealtimeEndpointInfo
import qualified Amazonka.Prelude as Prelude
data MLModel = MLModel'
{
MLModel -> Maybe EntityStatus
status :: Prelude.Maybe EntityStatus,
MLModel -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Core.POSIX,
MLModel -> Maybe (HashMap Text Text)
trainingParameters :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
MLModel -> Maybe POSIX
scoreThresholdLastUpdatedAt :: Prelude.Maybe Core.POSIX,
MLModel -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
MLModel -> Maybe Integer
computeTime :: Prelude.Maybe Prelude.Integer,
MLModel -> Maybe Text
inputDataLocationS3 :: Prelude.Maybe Prelude.Text,
MLModel -> Maybe Text
mLModelId :: Prelude.Maybe Prelude.Text,
MLModel -> Maybe Integer
sizeInBytes :: Prelude.Maybe Prelude.Integer,
MLModel -> Maybe POSIX
startedAt :: Prelude.Maybe Core.POSIX,
MLModel -> Maybe Double
scoreThreshold :: Prelude.Maybe Prelude.Double,
MLModel -> Maybe POSIX
finishedAt :: Prelude.Maybe Core.POSIX,
MLModel -> Maybe Algorithm
algorithm :: Prelude.Maybe Algorithm,
MLModel -> Maybe Text
createdByIamUser :: Prelude.Maybe Prelude.Text,
MLModel -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
MLModel -> Maybe RealtimeEndpointInfo
endpointInfo :: Prelude.Maybe RealtimeEndpointInfo,
MLModel -> Maybe Text
trainingDataSourceId :: Prelude.Maybe Prelude.Text,
MLModel -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
MLModel -> Maybe MLModelType
mLModelType :: Prelude.Maybe MLModelType
}
deriving (MLModel -> MLModel -> Bool
(MLModel -> MLModel -> Bool)
-> (MLModel -> MLModel -> Bool) -> Eq MLModel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MLModel -> MLModel -> Bool
$c/= :: MLModel -> MLModel -> Bool
== :: MLModel -> MLModel -> Bool
$c== :: MLModel -> MLModel -> Bool
Prelude.Eq, ReadPrec [MLModel]
ReadPrec MLModel
Int -> ReadS MLModel
ReadS [MLModel]
(Int -> ReadS MLModel)
-> ReadS [MLModel]
-> ReadPrec MLModel
-> ReadPrec [MLModel]
-> Read MLModel
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MLModel]
$creadListPrec :: ReadPrec [MLModel]
readPrec :: ReadPrec MLModel
$creadPrec :: ReadPrec MLModel
readList :: ReadS [MLModel]
$creadList :: ReadS [MLModel]
readsPrec :: Int -> ReadS MLModel
$creadsPrec :: Int -> ReadS MLModel
Prelude.Read, Int -> MLModel -> ShowS
[MLModel] -> ShowS
MLModel -> String
(Int -> MLModel -> ShowS)
-> (MLModel -> String) -> ([MLModel] -> ShowS) -> Show MLModel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MLModel] -> ShowS
$cshowList :: [MLModel] -> ShowS
show :: MLModel -> String
$cshow :: MLModel -> String
showsPrec :: Int -> MLModel -> ShowS
$cshowsPrec :: Int -> MLModel -> ShowS
Prelude.Show, (forall x. MLModel -> Rep MLModel x)
-> (forall x. Rep MLModel x -> MLModel) -> Generic MLModel
forall x. Rep MLModel x -> MLModel
forall x. MLModel -> Rep MLModel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MLModel x -> MLModel
$cfrom :: forall x. MLModel -> Rep MLModel x
Prelude.Generic)
newMLModel ::
MLModel
newMLModel :: MLModel
newMLModel =
MLModel' :: Maybe EntityStatus
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel
MLModel'
{ $sel:status:MLModel' :: Maybe EntityStatus
status = Maybe EntityStatus
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedAt:MLModel' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:trainingParameters:MLModel' :: Maybe (HashMap Text Text)
trainingParameters = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:scoreThresholdLastUpdatedAt:MLModel' :: Maybe POSIX
scoreThresholdLastUpdatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:createdAt:MLModel' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:computeTime:MLModel' :: Maybe Integer
computeTime = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:inputDataLocationS3:MLModel' :: Maybe Text
inputDataLocationS3 = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:mLModelId:MLModel' :: Maybe Text
mLModelId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sizeInBytes:MLModel' :: Maybe Integer
sizeInBytes = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:startedAt:MLModel' :: Maybe POSIX
startedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:scoreThreshold:MLModel' :: Maybe Double
scoreThreshold = Maybe Double
forall a. Maybe a
Prelude.Nothing,
$sel:finishedAt:MLModel' :: Maybe POSIX
finishedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:algorithm:MLModel' :: Maybe Algorithm
algorithm = Maybe Algorithm
forall a. Maybe a
Prelude.Nothing,
$sel:createdByIamUser:MLModel' :: Maybe Text
createdByIamUser = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:MLModel' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:endpointInfo:MLModel' :: Maybe RealtimeEndpointInfo
endpointInfo = Maybe RealtimeEndpointInfo
forall a. Maybe a
Prelude.Nothing,
$sel:trainingDataSourceId:MLModel' :: Maybe Text
trainingDataSourceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:message:MLModel' :: Maybe Text
message = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:mLModelType:MLModel' :: Maybe MLModelType
mLModelType = Maybe MLModelType
forall a. Maybe a
Prelude.Nothing
}
mLModel_status :: Lens.Lens' MLModel (Prelude.Maybe EntityStatus)
mLModel_status :: (Maybe EntityStatus -> f (Maybe EntityStatus))
-> MLModel -> f MLModel
mLModel_status = (MLModel -> Maybe EntityStatus)
-> (MLModel -> Maybe EntityStatus -> MLModel)
-> Lens MLModel MLModel (Maybe EntityStatus) (Maybe EntityStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe EntityStatus
status :: Maybe EntityStatus
$sel:status:MLModel' :: MLModel -> Maybe EntityStatus
status} -> Maybe EntityStatus
status) (\s :: MLModel
s@MLModel' {} Maybe EntityStatus
a -> MLModel
s {$sel:status:MLModel' :: Maybe EntityStatus
status = Maybe EntityStatus
a} :: MLModel)
mLModel_lastUpdatedAt :: Lens.Lens' MLModel (Prelude.Maybe Prelude.UTCTime)
mLModel_lastUpdatedAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> MLModel -> f MLModel
mLModel_lastUpdatedAt = (MLModel -> Maybe POSIX)
-> (MLModel -> Maybe POSIX -> MLModel)
-> Lens MLModel MLModel (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe POSIX
lastUpdatedAt :: Maybe POSIX
$sel:lastUpdatedAt:MLModel' :: MLModel -> Maybe POSIX
lastUpdatedAt} -> Maybe POSIX
lastUpdatedAt) (\s :: MLModel
s@MLModel' {} Maybe POSIX
a -> MLModel
s {$sel:lastUpdatedAt:MLModel' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
a} :: MLModel) ((Maybe POSIX -> f (Maybe POSIX)) -> MLModel -> f MLModel)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> MLModel
-> f MLModel
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
mLModel_trainingParameters :: Lens.Lens' MLModel (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
mLModel_trainingParameters :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> MLModel -> f MLModel
mLModel_trainingParameters = (MLModel -> Maybe (HashMap Text Text))
-> (MLModel -> Maybe (HashMap Text Text) -> MLModel)
-> Lens
MLModel
MLModel
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe (HashMap Text Text)
trainingParameters :: Maybe (HashMap Text Text)
$sel:trainingParameters:MLModel' :: MLModel -> Maybe (HashMap Text Text)
trainingParameters} -> Maybe (HashMap Text Text)
trainingParameters) (\s :: MLModel
s@MLModel' {} Maybe (HashMap Text Text)
a -> MLModel
s {$sel:trainingParameters:MLModel' :: Maybe (HashMap Text Text)
trainingParameters = Maybe (HashMap Text Text)
a} :: MLModel) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> MLModel -> f MLModel)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> MLModel
-> f MLModel
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
mLModel_scoreThresholdLastUpdatedAt :: Lens.Lens' MLModel (Prelude.Maybe Prelude.UTCTime)
mLModel_scoreThresholdLastUpdatedAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> MLModel -> f MLModel
mLModel_scoreThresholdLastUpdatedAt = (MLModel -> Maybe POSIX)
-> (MLModel -> Maybe POSIX -> MLModel)
-> Lens MLModel MLModel (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe POSIX
scoreThresholdLastUpdatedAt :: Maybe POSIX
$sel:scoreThresholdLastUpdatedAt:MLModel' :: MLModel -> Maybe POSIX
scoreThresholdLastUpdatedAt} -> Maybe POSIX
scoreThresholdLastUpdatedAt) (\s :: MLModel
s@MLModel' {} Maybe POSIX
a -> MLModel
s {$sel:scoreThresholdLastUpdatedAt:MLModel' :: Maybe POSIX
scoreThresholdLastUpdatedAt = Maybe POSIX
a} :: MLModel) ((Maybe POSIX -> f (Maybe POSIX)) -> MLModel -> f MLModel)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> MLModel
-> f MLModel
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
mLModel_createdAt :: Lens.Lens' MLModel (Prelude.Maybe Prelude.UTCTime)
mLModel_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> MLModel -> f MLModel
mLModel_createdAt = (MLModel -> Maybe POSIX)
-> (MLModel -> Maybe POSIX -> MLModel)
-> Lens MLModel MLModel (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:MLModel' :: MLModel -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: MLModel
s@MLModel' {} Maybe POSIX
a -> MLModel
s {$sel:createdAt:MLModel' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: MLModel) ((Maybe POSIX -> f (Maybe POSIX)) -> MLModel -> f MLModel)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> MLModel
-> f MLModel
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
mLModel_computeTime :: Lens.Lens' MLModel (Prelude.Maybe Prelude.Integer)
mLModel_computeTime :: (Maybe Integer -> f (Maybe Integer)) -> MLModel -> f MLModel
mLModel_computeTime = (MLModel -> Maybe Integer)
-> (MLModel -> Maybe Integer -> MLModel)
-> Lens MLModel MLModel (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe Integer
computeTime :: Maybe Integer
$sel:computeTime:MLModel' :: MLModel -> Maybe Integer
computeTime} -> Maybe Integer
computeTime) (\s :: MLModel
s@MLModel' {} Maybe Integer
a -> MLModel
s {$sel:computeTime:MLModel' :: Maybe Integer
computeTime = Maybe Integer
a} :: MLModel)
mLModel_inputDataLocationS3 :: Lens.Lens' MLModel (Prelude.Maybe Prelude.Text)
mLModel_inputDataLocationS3 :: (Maybe Text -> f (Maybe Text)) -> MLModel -> f MLModel
mLModel_inputDataLocationS3 = (MLModel -> Maybe Text)
-> (MLModel -> Maybe Text -> MLModel)
-> Lens MLModel MLModel (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe Text
inputDataLocationS3 :: Maybe Text
$sel:inputDataLocationS3:MLModel' :: MLModel -> Maybe Text
inputDataLocationS3} -> Maybe Text
inputDataLocationS3) (\s :: MLModel
s@MLModel' {} Maybe Text
a -> MLModel
s {$sel:inputDataLocationS3:MLModel' :: Maybe Text
inputDataLocationS3 = Maybe Text
a} :: MLModel)
mLModel_mLModelId :: Lens.Lens' MLModel (Prelude.Maybe Prelude.Text)
mLModel_mLModelId :: (Maybe Text -> f (Maybe Text)) -> MLModel -> f MLModel
mLModel_mLModelId = (MLModel -> Maybe Text)
-> (MLModel -> Maybe Text -> MLModel)
-> Lens MLModel MLModel (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe Text
mLModelId :: Maybe Text
$sel:mLModelId:MLModel' :: MLModel -> Maybe Text
mLModelId} -> Maybe Text
mLModelId) (\s :: MLModel
s@MLModel' {} Maybe Text
a -> MLModel
s {$sel:mLModelId:MLModel' :: Maybe Text
mLModelId = Maybe Text
a} :: MLModel)
mLModel_sizeInBytes :: Lens.Lens' MLModel (Prelude.Maybe Prelude.Integer)
mLModel_sizeInBytes :: (Maybe Integer -> f (Maybe Integer)) -> MLModel -> f MLModel
mLModel_sizeInBytes = (MLModel -> Maybe Integer)
-> (MLModel -> Maybe Integer -> MLModel)
-> Lens MLModel MLModel (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe Integer
sizeInBytes :: Maybe Integer
$sel:sizeInBytes:MLModel' :: MLModel -> Maybe Integer
sizeInBytes} -> Maybe Integer
sizeInBytes) (\s :: MLModel
s@MLModel' {} Maybe Integer
a -> MLModel
s {$sel:sizeInBytes:MLModel' :: Maybe Integer
sizeInBytes = Maybe Integer
a} :: MLModel)
mLModel_startedAt :: Lens.Lens' MLModel (Prelude.Maybe Prelude.UTCTime)
mLModel_startedAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> MLModel -> f MLModel
mLModel_startedAt = (MLModel -> Maybe POSIX)
-> (MLModel -> Maybe POSIX -> MLModel)
-> Lens MLModel MLModel (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe POSIX
startedAt :: Maybe POSIX
$sel:startedAt:MLModel' :: MLModel -> Maybe POSIX
startedAt} -> Maybe POSIX
startedAt) (\s :: MLModel
s@MLModel' {} Maybe POSIX
a -> MLModel
s {$sel:startedAt:MLModel' :: Maybe POSIX
startedAt = Maybe POSIX
a} :: MLModel) ((Maybe POSIX -> f (Maybe POSIX)) -> MLModel -> f MLModel)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> MLModel
-> f MLModel
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
mLModel_scoreThreshold :: Lens.Lens' MLModel (Prelude.Maybe Prelude.Double)
mLModel_scoreThreshold :: (Maybe Double -> f (Maybe Double)) -> MLModel -> f MLModel
mLModel_scoreThreshold = (MLModel -> Maybe Double)
-> (MLModel -> Maybe Double -> MLModel)
-> Lens MLModel MLModel (Maybe Double) (Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe Double
scoreThreshold :: Maybe Double
$sel:scoreThreshold:MLModel' :: MLModel -> Maybe Double
scoreThreshold} -> Maybe Double
scoreThreshold) (\s :: MLModel
s@MLModel' {} Maybe Double
a -> MLModel
s {$sel:scoreThreshold:MLModel' :: Maybe Double
scoreThreshold = Maybe Double
a} :: MLModel)
mLModel_finishedAt :: Lens.Lens' MLModel (Prelude.Maybe Prelude.UTCTime)
mLModel_finishedAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> MLModel -> f MLModel
mLModel_finishedAt = (MLModel -> Maybe POSIX)
-> (MLModel -> Maybe POSIX -> MLModel)
-> Lens MLModel MLModel (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe POSIX
finishedAt :: Maybe POSIX
$sel:finishedAt:MLModel' :: MLModel -> Maybe POSIX
finishedAt} -> Maybe POSIX
finishedAt) (\s :: MLModel
s@MLModel' {} Maybe POSIX
a -> MLModel
s {$sel:finishedAt:MLModel' :: Maybe POSIX
finishedAt = Maybe POSIX
a} :: MLModel) ((Maybe POSIX -> f (Maybe POSIX)) -> MLModel -> f MLModel)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> MLModel
-> f MLModel
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
mLModel_algorithm :: Lens.Lens' MLModel (Prelude.Maybe Algorithm)
mLModel_algorithm :: (Maybe Algorithm -> f (Maybe Algorithm)) -> MLModel -> f MLModel
mLModel_algorithm = (MLModel -> Maybe Algorithm)
-> (MLModel -> Maybe Algorithm -> MLModel)
-> Lens MLModel MLModel (Maybe Algorithm) (Maybe Algorithm)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe Algorithm
algorithm :: Maybe Algorithm
$sel:algorithm:MLModel' :: MLModel -> Maybe Algorithm
algorithm} -> Maybe Algorithm
algorithm) (\s :: MLModel
s@MLModel' {} Maybe Algorithm
a -> MLModel
s {$sel:algorithm:MLModel' :: Maybe Algorithm
algorithm = Maybe Algorithm
a} :: MLModel)
mLModel_createdByIamUser :: Lens.Lens' MLModel (Prelude.Maybe Prelude.Text)
mLModel_createdByIamUser :: (Maybe Text -> f (Maybe Text)) -> MLModel -> f MLModel
mLModel_createdByIamUser = (MLModel -> Maybe Text)
-> (MLModel -> Maybe Text -> MLModel)
-> Lens MLModel MLModel (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe Text
createdByIamUser :: Maybe Text
$sel:createdByIamUser:MLModel' :: MLModel -> Maybe Text
createdByIamUser} -> Maybe Text
createdByIamUser) (\s :: MLModel
s@MLModel' {} Maybe Text
a -> MLModel
s {$sel:createdByIamUser:MLModel' :: Maybe Text
createdByIamUser = Maybe Text
a} :: MLModel)
mLModel_name :: Lens.Lens' MLModel (Prelude.Maybe Prelude.Text)
mLModel_name :: (Maybe Text -> f (Maybe Text)) -> MLModel -> f MLModel
mLModel_name = (MLModel -> Maybe Text)
-> (MLModel -> Maybe Text -> MLModel)
-> Lens MLModel MLModel (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe Text
name :: Maybe Text
$sel:name:MLModel' :: MLModel -> Maybe Text
name} -> Maybe Text
name) (\s :: MLModel
s@MLModel' {} Maybe Text
a -> MLModel
s {$sel:name:MLModel' :: Maybe Text
name = Maybe Text
a} :: MLModel)
mLModel_endpointInfo :: Lens.Lens' MLModel (Prelude.Maybe RealtimeEndpointInfo)
mLModel_endpointInfo :: (Maybe RealtimeEndpointInfo -> f (Maybe RealtimeEndpointInfo))
-> MLModel -> f MLModel
mLModel_endpointInfo = (MLModel -> Maybe RealtimeEndpointInfo)
-> (MLModel -> Maybe RealtimeEndpointInfo -> MLModel)
-> Lens
MLModel
MLModel
(Maybe RealtimeEndpointInfo)
(Maybe RealtimeEndpointInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe RealtimeEndpointInfo
endpointInfo :: Maybe RealtimeEndpointInfo
$sel:endpointInfo:MLModel' :: MLModel -> Maybe RealtimeEndpointInfo
endpointInfo} -> Maybe RealtimeEndpointInfo
endpointInfo) (\s :: MLModel
s@MLModel' {} Maybe RealtimeEndpointInfo
a -> MLModel
s {$sel:endpointInfo:MLModel' :: Maybe RealtimeEndpointInfo
endpointInfo = Maybe RealtimeEndpointInfo
a} :: MLModel)
mLModel_trainingDataSourceId :: Lens.Lens' MLModel (Prelude.Maybe Prelude.Text)
mLModel_trainingDataSourceId :: (Maybe Text -> f (Maybe Text)) -> MLModel -> f MLModel
mLModel_trainingDataSourceId = (MLModel -> Maybe Text)
-> (MLModel -> Maybe Text -> MLModel)
-> Lens MLModel MLModel (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe Text
trainingDataSourceId :: Maybe Text
$sel:trainingDataSourceId:MLModel' :: MLModel -> Maybe Text
trainingDataSourceId} -> Maybe Text
trainingDataSourceId) (\s :: MLModel
s@MLModel' {} Maybe Text
a -> MLModel
s {$sel:trainingDataSourceId:MLModel' :: Maybe Text
trainingDataSourceId = Maybe Text
a} :: MLModel)
mLModel_message :: Lens.Lens' MLModel (Prelude.Maybe Prelude.Text)
mLModel_message :: (Maybe Text -> f (Maybe Text)) -> MLModel -> f MLModel
mLModel_message = (MLModel -> Maybe Text)
-> (MLModel -> Maybe Text -> MLModel)
-> Lens MLModel MLModel (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe Text
message :: Maybe Text
$sel:message:MLModel' :: MLModel -> Maybe Text
message} -> Maybe Text
message) (\s :: MLModel
s@MLModel' {} Maybe Text
a -> MLModel
s {$sel:message:MLModel' :: Maybe Text
message = Maybe Text
a} :: MLModel)
mLModel_mLModelType :: Lens.Lens' MLModel (Prelude.Maybe MLModelType)
mLModel_mLModelType :: (Maybe MLModelType -> f (Maybe MLModelType))
-> MLModel -> f MLModel
mLModel_mLModelType = (MLModel -> Maybe MLModelType)
-> (MLModel -> Maybe MLModelType -> MLModel)
-> Lens MLModel MLModel (Maybe MLModelType) (Maybe MLModelType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MLModel' {Maybe MLModelType
mLModelType :: Maybe MLModelType
$sel:mLModelType:MLModel' :: MLModel -> Maybe MLModelType
mLModelType} -> Maybe MLModelType
mLModelType) (\s :: MLModel
s@MLModel' {} Maybe MLModelType
a -> MLModel
s {$sel:mLModelType:MLModel' :: Maybe MLModelType
mLModelType = Maybe MLModelType
a} :: MLModel)
instance Core.FromJSON MLModel where
parseJSON :: Value -> Parser MLModel
parseJSON =
String -> (Object -> Parser MLModel) -> Value -> Parser MLModel
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"MLModel"
( \Object
x ->
Maybe EntityStatus
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel
MLModel'
(Maybe EntityStatus
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
-> Parser (Maybe EntityStatus)
-> Parser
(Maybe POSIX
-> Maybe (HashMap Text Text)
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe EntityStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
Parser
(Maybe POSIX
-> Maybe (HashMap Text Text)
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
-> Parser (Maybe POSIX)
-> Parser
(Maybe (HashMap Text Text)
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
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
"LastUpdatedAt")
Parser
(Maybe (HashMap Text Text)
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
-> Parser (Maybe (HashMap Text Text))
-> Parser
(Maybe POSIX
-> Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TrainingParameters"
Parser (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> Parser (Maybe (HashMap Text Text))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty
)
Parser
(Maybe POSIX
-> Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
-> Parser (Maybe POSIX)
-> Parser
(Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
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
"ScoreThresholdLastUpdatedAt")
Parser
(Maybe POSIX
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
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
"CreatedAt")
Parser
(Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
-> Parser (Maybe Integer)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ComputeTime")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
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
"InputDataLocationS3")
Parser
(Maybe Text
-> Maybe Integer
-> Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
-> Parser (Maybe Text)
-> Parser
(Maybe Integer
-> Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
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
"MLModelId")
Parser
(Maybe Integer
-> Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
-> Parser (Maybe Integer)
-> Parser
(Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SizeInBytes")
Parser
(Maybe POSIX
-> Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
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
"StartedAt")
Parser
(Maybe Double
-> Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
-> Parser (Maybe Double)
-> Parser
(Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Double)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ScoreThreshold")
Parser
(Maybe POSIX
-> Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
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
"FinishedAt")
Parser
(Maybe Algorithm
-> Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
-> Parser (Maybe Algorithm)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Algorithm)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Algorithm")
Parser
(Maybe Text
-> Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
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
"CreatedByIamUser")
Parser
(Maybe Text
-> Maybe RealtimeEndpointInfo
-> Maybe Text
-> Maybe Text
-> Maybe MLModelType
-> MLModel)
-> Parser (Maybe Text)
-> Parser
(Maybe RealtimeEndpointInfo
-> Maybe Text -> Maybe Text -> Maybe MLModelType -> MLModel)
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
"Name")
Parser
(Maybe RealtimeEndpointInfo
-> Maybe Text -> Maybe Text -> Maybe MLModelType -> MLModel)
-> Parser (Maybe RealtimeEndpointInfo)
-> Parser
(Maybe Text -> Maybe Text -> Maybe MLModelType -> MLModel)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe RealtimeEndpointInfo)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"EndpointInfo")
Parser (Maybe Text -> Maybe Text -> Maybe MLModelType -> MLModel)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe MLModelType -> MLModel)
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
"TrainingDataSourceId")
Parser (Maybe Text -> Maybe MLModelType -> MLModel)
-> Parser (Maybe Text) -> Parser (Maybe MLModelType -> MLModel)
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 MLModelType -> MLModel)
-> Parser (Maybe MLModelType) -> Parser MLModel
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe MLModelType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"MLModelType")
)
instance Prelude.Hashable MLModel
instance Prelude.NFData MLModel