{-# 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.SageMaker.Types.ModelQualityJobInput where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SageMaker.Types.EndpointInput
import Amazonka.SageMaker.Types.MonitoringGroundTruthS3Input
data ModelQualityJobInput = ModelQualityJobInput'
{ ModelQualityJobInput -> EndpointInput
endpointInput :: EndpointInput,
ModelQualityJobInput -> MonitoringGroundTruthS3Input
groundTruthS3Input :: MonitoringGroundTruthS3Input
}
deriving (ModelQualityJobInput -> ModelQualityJobInput -> Bool
(ModelQualityJobInput -> ModelQualityJobInput -> Bool)
-> (ModelQualityJobInput -> ModelQualityJobInput -> Bool)
-> Eq ModelQualityJobInput
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ModelQualityJobInput -> ModelQualityJobInput -> Bool
$c/= :: ModelQualityJobInput -> ModelQualityJobInput -> Bool
== :: ModelQualityJobInput -> ModelQualityJobInput -> Bool
$c== :: ModelQualityJobInput -> ModelQualityJobInput -> Bool
Prelude.Eq, ReadPrec [ModelQualityJobInput]
ReadPrec ModelQualityJobInput
Int -> ReadS ModelQualityJobInput
ReadS [ModelQualityJobInput]
(Int -> ReadS ModelQualityJobInput)
-> ReadS [ModelQualityJobInput]
-> ReadPrec ModelQualityJobInput
-> ReadPrec [ModelQualityJobInput]
-> Read ModelQualityJobInput
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ModelQualityJobInput]
$creadListPrec :: ReadPrec [ModelQualityJobInput]
readPrec :: ReadPrec ModelQualityJobInput
$creadPrec :: ReadPrec ModelQualityJobInput
readList :: ReadS [ModelQualityJobInput]
$creadList :: ReadS [ModelQualityJobInput]
readsPrec :: Int -> ReadS ModelQualityJobInput
$creadsPrec :: Int -> ReadS ModelQualityJobInput
Prelude.Read, Int -> ModelQualityJobInput -> ShowS
[ModelQualityJobInput] -> ShowS
ModelQualityJobInput -> String
(Int -> ModelQualityJobInput -> ShowS)
-> (ModelQualityJobInput -> String)
-> ([ModelQualityJobInput] -> ShowS)
-> Show ModelQualityJobInput
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ModelQualityJobInput] -> ShowS
$cshowList :: [ModelQualityJobInput] -> ShowS
show :: ModelQualityJobInput -> String
$cshow :: ModelQualityJobInput -> String
showsPrec :: Int -> ModelQualityJobInput -> ShowS
$cshowsPrec :: Int -> ModelQualityJobInput -> ShowS
Prelude.Show, (forall x. ModelQualityJobInput -> Rep ModelQualityJobInput x)
-> (forall x. Rep ModelQualityJobInput x -> ModelQualityJobInput)
-> Generic ModelQualityJobInput
forall x. Rep ModelQualityJobInput x -> ModelQualityJobInput
forall x. ModelQualityJobInput -> Rep ModelQualityJobInput x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ModelQualityJobInput x -> ModelQualityJobInput
$cfrom :: forall x. ModelQualityJobInput -> Rep ModelQualityJobInput x
Prelude.Generic)
newModelQualityJobInput ::
EndpointInput ->
MonitoringGroundTruthS3Input ->
ModelQualityJobInput
newModelQualityJobInput :: EndpointInput
-> MonitoringGroundTruthS3Input -> ModelQualityJobInput
newModelQualityJobInput
EndpointInput
pEndpointInput_
MonitoringGroundTruthS3Input
pGroundTruthS3Input_ =
ModelQualityJobInput' :: EndpointInput
-> MonitoringGroundTruthS3Input -> ModelQualityJobInput
ModelQualityJobInput'
{ $sel:endpointInput:ModelQualityJobInput' :: EndpointInput
endpointInput =
EndpointInput
pEndpointInput_,
$sel:groundTruthS3Input:ModelQualityJobInput' :: MonitoringGroundTruthS3Input
groundTruthS3Input = MonitoringGroundTruthS3Input
pGroundTruthS3Input_
}
modelQualityJobInput_endpointInput :: Lens.Lens' ModelQualityJobInput EndpointInput
modelQualityJobInput_endpointInput :: (EndpointInput -> f EndpointInput)
-> ModelQualityJobInput -> f ModelQualityJobInput
modelQualityJobInput_endpointInput = (ModelQualityJobInput -> EndpointInput)
-> (ModelQualityJobInput -> EndpointInput -> ModelQualityJobInput)
-> Lens
ModelQualityJobInput
ModelQualityJobInput
EndpointInput
EndpointInput
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelQualityJobInput' {EndpointInput
endpointInput :: EndpointInput
$sel:endpointInput:ModelQualityJobInput' :: ModelQualityJobInput -> EndpointInput
endpointInput} -> EndpointInput
endpointInput) (\s :: ModelQualityJobInput
s@ModelQualityJobInput' {} EndpointInput
a -> ModelQualityJobInput
s {$sel:endpointInput:ModelQualityJobInput' :: EndpointInput
endpointInput = EndpointInput
a} :: ModelQualityJobInput)
modelQualityJobInput_groundTruthS3Input :: Lens.Lens' ModelQualityJobInput MonitoringGroundTruthS3Input
modelQualityJobInput_groundTruthS3Input :: (MonitoringGroundTruthS3Input -> f MonitoringGroundTruthS3Input)
-> ModelQualityJobInput -> f ModelQualityJobInput
modelQualityJobInput_groundTruthS3Input = (ModelQualityJobInput -> MonitoringGroundTruthS3Input)
-> (ModelQualityJobInput
-> MonitoringGroundTruthS3Input -> ModelQualityJobInput)
-> Lens
ModelQualityJobInput
ModelQualityJobInput
MonitoringGroundTruthS3Input
MonitoringGroundTruthS3Input
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelQualityJobInput' {MonitoringGroundTruthS3Input
groundTruthS3Input :: MonitoringGroundTruthS3Input
$sel:groundTruthS3Input:ModelQualityJobInput' :: ModelQualityJobInput -> MonitoringGroundTruthS3Input
groundTruthS3Input} -> MonitoringGroundTruthS3Input
groundTruthS3Input) (\s :: ModelQualityJobInput
s@ModelQualityJobInput' {} MonitoringGroundTruthS3Input
a -> ModelQualityJobInput
s {$sel:groundTruthS3Input:ModelQualityJobInput' :: MonitoringGroundTruthS3Input
groundTruthS3Input = MonitoringGroundTruthS3Input
a} :: ModelQualityJobInput)
instance Core.FromJSON ModelQualityJobInput where
parseJSON :: Value -> Parser ModelQualityJobInput
parseJSON =
String
-> (Object -> Parser ModelQualityJobInput)
-> Value
-> Parser ModelQualityJobInput
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ModelQualityJobInput"
( \Object
x ->
EndpointInput
-> MonitoringGroundTruthS3Input -> ModelQualityJobInput
ModelQualityJobInput'
(EndpointInput
-> MonitoringGroundTruthS3Input -> ModelQualityJobInput)
-> Parser EndpointInput
-> Parser (MonitoringGroundTruthS3Input -> ModelQualityJobInput)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser EndpointInput
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"EndpointInput")
Parser (MonitoringGroundTruthS3Input -> ModelQualityJobInput)
-> Parser MonitoringGroundTruthS3Input
-> Parser ModelQualityJobInput
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser MonitoringGroundTruthS3Input
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"GroundTruthS3Input")
)
instance Prelude.Hashable ModelQualityJobInput
instance Prelude.NFData ModelQualityJobInput
instance Core.ToJSON ModelQualityJobInput where
toJSON :: ModelQualityJobInput -> Value
toJSON ModelQualityJobInput' {MonitoringGroundTruthS3Input
EndpointInput
groundTruthS3Input :: MonitoringGroundTruthS3Input
endpointInput :: EndpointInput
$sel:groundTruthS3Input:ModelQualityJobInput' :: ModelQualityJobInput -> MonitoringGroundTruthS3Input
$sel:endpointInput:ModelQualityJobInput' :: ModelQualityJobInput -> EndpointInput
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"EndpointInput" Text -> EndpointInput -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= EndpointInput
endpointInput),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"GroundTruthS3Input" Text -> MonitoringGroundTruthS3Input -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= MonitoringGroundTruthS3Input
groundTruthS3Input)
]
)