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