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