{-# 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.SageMakerA2IRuntime.Types.HumanLoopInput 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 HumanLoopInput = HumanLoopInput'
{
HumanLoopInput -> Text
inputContent :: Prelude.Text
}
deriving (HumanLoopInput -> HumanLoopInput -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HumanLoopInput -> HumanLoopInput -> Bool
$c/= :: HumanLoopInput -> HumanLoopInput -> Bool
== :: HumanLoopInput -> HumanLoopInput -> Bool
$c== :: HumanLoopInput -> HumanLoopInput -> Bool
Prelude.Eq, ReadPrec [HumanLoopInput]
ReadPrec HumanLoopInput
Int -> ReadS HumanLoopInput
ReadS [HumanLoopInput]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [HumanLoopInput]
$creadListPrec :: ReadPrec [HumanLoopInput]
readPrec :: ReadPrec HumanLoopInput
$creadPrec :: ReadPrec HumanLoopInput
readList :: ReadS [HumanLoopInput]
$creadList :: ReadS [HumanLoopInput]
readsPrec :: Int -> ReadS HumanLoopInput
$creadsPrec :: Int -> ReadS HumanLoopInput
Prelude.Read, Int -> HumanLoopInput -> ShowS
[HumanLoopInput] -> ShowS
HumanLoopInput -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HumanLoopInput] -> ShowS
$cshowList :: [HumanLoopInput] -> ShowS
show :: HumanLoopInput -> String
$cshow :: HumanLoopInput -> String
showsPrec :: Int -> HumanLoopInput -> ShowS
$cshowsPrec :: Int -> HumanLoopInput -> ShowS
Prelude.Show, forall x. Rep HumanLoopInput x -> HumanLoopInput
forall x. HumanLoopInput -> Rep HumanLoopInput x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep HumanLoopInput x -> HumanLoopInput
$cfrom :: forall x. HumanLoopInput -> Rep HumanLoopInput x
Prelude.Generic)
newHumanLoopInput ::
Prelude.Text ->
HumanLoopInput
newHumanLoopInput :: Text -> HumanLoopInput
newHumanLoopInput Text
pInputContent_ =
HumanLoopInput' {$sel:inputContent:HumanLoopInput' :: Text
inputContent = Text
pInputContent_}
humanLoopInput_inputContent :: Lens.Lens' HumanLoopInput Prelude.Text
humanLoopInput_inputContent :: Lens' HumanLoopInput Text
humanLoopInput_inputContent = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HumanLoopInput' {Text
inputContent :: Text
$sel:inputContent:HumanLoopInput' :: HumanLoopInput -> Text
inputContent} -> Text
inputContent) (\s :: HumanLoopInput
s@HumanLoopInput' {} Text
a -> HumanLoopInput
s {$sel:inputContent:HumanLoopInput' :: Text
inputContent = Text
a} :: HumanLoopInput)
instance Prelude.Hashable HumanLoopInput where
hashWithSalt :: Int -> HumanLoopInput -> Int
hashWithSalt Int
_salt HumanLoopInput' {Text
inputContent :: Text
$sel:inputContent:HumanLoopInput' :: HumanLoopInput -> Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
inputContent
instance Prelude.NFData HumanLoopInput where
rnf :: HumanLoopInput -> ()
rnf HumanLoopInput' {Text
inputContent :: Text
$sel:inputContent:HumanLoopInput' :: HumanLoopInput -> Text
..} = forall a. NFData a => a -> ()
Prelude.rnf Text
inputContent
instance Data.ToJSON HumanLoopInput where
toJSON :: HumanLoopInput -> Value
toJSON HumanLoopInput' {Text
inputContent :: Text
$sel:inputContent:HumanLoopInput' :: HumanLoopInput -> Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[forall a. a -> Maybe a
Prelude.Just (Key
"InputContent" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
inputContent)]
)