{-# 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.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data HumanLoopOutput = HumanLoopOutput'
{
HumanLoopOutput -> Text
outputS3Uri :: Prelude.Text
}
deriving (HumanLoopOutput -> HumanLoopOutput -> Bool
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]
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
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. 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' {$sel:outputS3Uri:HumanLoopOutput' :: Text
outputS3Uri = Text
pOutputS3Uri_}
humanLoopOutput_outputS3Uri :: Lens.Lens' HumanLoopOutput Prelude.Text
humanLoopOutput_outputS3Uri :: Lens' HumanLoopOutput Text
humanLoopOutput_outputS3Uri = 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 Data.FromJSON HumanLoopOutput where
parseJSON :: Value -> Parser HumanLoopOutput
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"HumanLoopOutput"
( \Object
x ->
Text -> HumanLoopOutput
HumanLoopOutput'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"OutputS3Uri")
)
instance Prelude.Hashable HumanLoopOutput where
hashWithSalt :: Int -> HumanLoopOutput -> Int
hashWithSalt Int
_salt HumanLoopOutput' {Text
outputS3Uri :: Text
$sel:outputS3Uri:HumanLoopOutput' :: HumanLoopOutput -> Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
outputS3Uri
instance Prelude.NFData HumanLoopOutput where
rnf :: HumanLoopOutput -> ()
rnf HumanLoopOutput' {Text
outputS3Uri :: Text
$sel:outputS3Uri:HumanLoopOutput' :: HumanLoopOutput -> Text
..} = forall a. NFData a => a -> ()
Prelude.rnf Text
outputS3Uri