{-# 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.ModelBiasJobInput 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 ModelBiasJobInput = ModelBiasJobInput'
{ ModelBiasJobInput -> EndpointInput
endpointInput :: EndpointInput,
ModelBiasJobInput -> MonitoringGroundTruthS3Input
groundTruthS3Input :: MonitoringGroundTruthS3Input
}
deriving (ModelBiasJobInput -> ModelBiasJobInput -> Bool
(ModelBiasJobInput -> ModelBiasJobInput -> Bool)
-> (ModelBiasJobInput -> ModelBiasJobInput -> Bool)
-> Eq ModelBiasJobInput
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ModelBiasJobInput -> ModelBiasJobInput -> Bool
$c/= :: ModelBiasJobInput -> ModelBiasJobInput -> Bool
== :: ModelBiasJobInput -> ModelBiasJobInput -> Bool
$c== :: ModelBiasJobInput -> ModelBiasJobInput -> Bool
Prelude.Eq, ReadPrec [ModelBiasJobInput]
ReadPrec ModelBiasJobInput
Int -> ReadS ModelBiasJobInput
ReadS [ModelBiasJobInput]
(Int -> ReadS ModelBiasJobInput)
-> ReadS [ModelBiasJobInput]
-> ReadPrec ModelBiasJobInput
-> ReadPrec [ModelBiasJobInput]
-> Read ModelBiasJobInput
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ModelBiasJobInput]
$creadListPrec :: ReadPrec [ModelBiasJobInput]
readPrec :: ReadPrec ModelBiasJobInput
$creadPrec :: ReadPrec ModelBiasJobInput
readList :: ReadS [ModelBiasJobInput]
$creadList :: ReadS [ModelBiasJobInput]
readsPrec :: Int -> ReadS ModelBiasJobInput
$creadsPrec :: Int -> ReadS ModelBiasJobInput
Prelude.Read, Int -> ModelBiasJobInput -> ShowS
[ModelBiasJobInput] -> ShowS
ModelBiasJobInput -> String
(Int -> ModelBiasJobInput -> ShowS)
-> (ModelBiasJobInput -> String)
-> ([ModelBiasJobInput] -> ShowS)
-> Show ModelBiasJobInput
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ModelBiasJobInput] -> ShowS
$cshowList :: [ModelBiasJobInput] -> ShowS
show :: ModelBiasJobInput -> String
$cshow :: ModelBiasJobInput -> String
showsPrec :: Int -> ModelBiasJobInput -> ShowS
$cshowsPrec :: Int -> ModelBiasJobInput -> ShowS
Prelude.Show, (forall x. ModelBiasJobInput -> Rep ModelBiasJobInput x)
-> (forall x. Rep ModelBiasJobInput x -> ModelBiasJobInput)
-> Generic ModelBiasJobInput
forall x. Rep ModelBiasJobInput x -> ModelBiasJobInput
forall x. ModelBiasJobInput -> Rep ModelBiasJobInput x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ModelBiasJobInput x -> ModelBiasJobInput
$cfrom :: forall x. ModelBiasJobInput -> Rep ModelBiasJobInput x
Prelude.Generic)
newModelBiasJobInput ::
EndpointInput ->
MonitoringGroundTruthS3Input ->
ModelBiasJobInput
newModelBiasJobInput :: EndpointInput -> MonitoringGroundTruthS3Input -> ModelBiasJobInput
newModelBiasJobInput
EndpointInput
pEndpointInput_
MonitoringGroundTruthS3Input
pGroundTruthS3Input_ =
ModelBiasJobInput' :: EndpointInput -> MonitoringGroundTruthS3Input -> ModelBiasJobInput
ModelBiasJobInput'
{ $sel:endpointInput:ModelBiasJobInput' :: EndpointInput
endpointInput = EndpointInput
pEndpointInput_,
$sel:groundTruthS3Input:ModelBiasJobInput' :: MonitoringGroundTruthS3Input
groundTruthS3Input = MonitoringGroundTruthS3Input
pGroundTruthS3Input_
}
modelBiasJobInput_endpointInput :: Lens.Lens' ModelBiasJobInput EndpointInput
modelBiasJobInput_endpointInput :: (EndpointInput -> f EndpointInput)
-> ModelBiasJobInput -> f ModelBiasJobInput
modelBiasJobInput_endpointInput = (ModelBiasJobInput -> EndpointInput)
-> (ModelBiasJobInput -> EndpointInput -> ModelBiasJobInput)
-> Lens
ModelBiasJobInput ModelBiasJobInput EndpointInput EndpointInput
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelBiasJobInput' {EndpointInput
endpointInput :: EndpointInput
$sel:endpointInput:ModelBiasJobInput' :: ModelBiasJobInput -> EndpointInput
endpointInput} -> EndpointInput
endpointInput) (\s :: ModelBiasJobInput
s@ModelBiasJobInput' {} EndpointInput
a -> ModelBiasJobInput
s {$sel:endpointInput:ModelBiasJobInput' :: EndpointInput
endpointInput = EndpointInput
a} :: ModelBiasJobInput)
modelBiasJobInput_groundTruthS3Input :: Lens.Lens' ModelBiasJobInput MonitoringGroundTruthS3Input
modelBiasJobInput_groundTruthS3Input :: (MonitoringGroundTruthS3Input -> f MonitoringGroundTruthS3Input)
-> ModelBiasJobInput -> f ModelBiasJobInput
modelBiasJobInput_groundTruthS3Input = (ModelBiasJobInput -> MonitoringGroundTruthS3Input)
-> (ModelBiasJobInput
-> MonitoringGroundTruthS3Input -> ModelBiasJobInput)
-> Lens
ModelBiasJobInput
ModelBiasJobInput
MonitoringGroundTruthS3Input
MonitoringGroundTruthS3Input
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelBiasJobInput' {MonitoringGroundTruthS3Input
groundTruthS3Input :: MonitoringGroundTruthS3Input
$sel:groundTruthS3Input:ModelBiasJobInput' :: ModelBiasJobInput -> MonitoringGroundTruthS3Input
groundTruthS3Input} -> MonitoringGroundTruthS3Input
groundTruthS3Input) (\s :: ModelBiasJobInput
s@ModelBiasJobInput' {} MonitoringGroundTruthS3Input
a -> ModelBiasJobInput
s {$sel:groundTruthS3Input:ModelBiasJobInput' :: MonitoringGroundTruthS3Input
groundTruthS3Input = MonitoringGroundTruthS3Input
a} :: ModelBiasJobInput)
instance Core.FromJSON ModelBiasJobInput where
parseJSON :: Value -> Parser ModelBiasJobInput
parseJSON =
String
-> (Object -> Parser ModelBiasJobInput)
-> Value
-> Parser ModelBiasJobInput
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ModelBiasJobInput"
( \Object
x ->
EndpointInput -> MonitoringGroundTruthS3Input -> ModelBiasJobInput
ModelBiasJobInput'
(EndpointInput
-> MonitoringGroundTruthS3Input -> ModelBiasJobInput)
-> Parser EndpointInput
-> Parser (MonitoringGroundTruthS3Input -> ModelBiasJobInput)
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 -> ModelBiasJobInput)
-> Parser MonitoringGroundTruthS3Input -> Parser ModelBiasJobInput
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 ModelBiasJobInput
instance Prelude.NFData ModelBiasJobInput
instance Core.ToJSON ModelBiasJobInput where
toJSON :: ModelBiasJobInput -> Value
toJSON ModelBiasJobInput' {MonitoringGroundTruthS3Input
EndpointInput
groundTruthS3Input :: MonitoringGroundTruthS3Input
endpointInput :: EndpointInput
$sel:groundTruthS3Input:ModelBiasJobInput' :: ModelBiasJobInput -> MonitoringGroundTruthS3Input
$sel:endpointInput:ModelBiasJobInput' :: ModelBiasJobInput -> 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)
]
)