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