{-# 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.Rekognition.Types.HumanLoopDataAttributes 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
import Amazonka.Rekognition.Types.ContentClassifier
data HumanLoopDataAttributes = HumanLoopDataAttributes'
{
HumanLoopDataAttributes -> Maybe [ContentClassifier]
contentClassifiers :: Prelude.Maybe [ContentClassifier]
}
deriving (HumanLoopDataAttributes -> HumanLoopDataAttributes -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HumanLoopDataAttributes -> HumanLoopDataAttributes -> Bool
$c/= :: HumanLoopDataAttributes -> HumanLoopDataAttributes -> Bool
== :: HumanLoopDataAttributes -> HumanLoopDataAttributes -> Bool
$c== :: HumanLoopDataAttributes -> HumanLoopDataAttributes -> Bool
Prelude.Eq, ReadPrec [HumanLoopDataAttributes]
ReadPrec HumanLoopDataAttributes
Int -> ReadS HumanLoopDataAttributes
ReadS [HumanLoopDataAttributes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [HumanLoopDataAttributes]
$creadListPrec :: ReadPrec [HumanLoopDataAttributes]
readPrec :: ReadPrec HumanLoopDataAttributes
$creadPrec :: ReadPrec HumanLoopDataAttributes
readList :: ReadS [HumanLoopDataAttributes]
$creadList :: ReadS [HumanLoopDataAttributes]
readsPrec :: Int -> ReadS HumanLoopDataAttributes
$creadsPrec :: Int -> ReadS HumanLoopDataAttributes
Prelude.Read, Int -> HumanLoopDataAttributes -> ShowS
[HumanLoopDataAttributes] -> ShowS
HumanLoopDataAttributes -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HumanLoopDataAttributes] -> ShowS
$cshowList :: [HumanLoopDataAttributes] -> ShowS
show :: HumanLoopDataAttributes -> String
$cshow :: HumanLoopDataAttributes -> String
showsPrec :: Int -> HumanLoopDataAttributes -> ShowS
$cshowsPrec :: Int -> HumanLoopDataAttributes -> ShowS
Prelude.Show, forall x. Rep HumanLoopDataAttributes x -> HumanLoopDataAttributes
forall x. HumanLoopDataAttributes -> Rep HumanLoopDataAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep HumanLoopDataAttributes x -> HumanLoopDataAttributes
$cfrom :: forall x. HumanLoopDataAttributes -> Rep HumanLoopDataAttributes x
Prelude.Generic)
newHumanLoopDataAttributes ::
HumanLoopDataAttributes
newHumanLoopDataAttributes :: HumanLoopDataAttributes
newHumanLoopDataAttributes =
HumanLoopDataAttributes'
{ $sel:contentClassifiers:HumanLoopDataAttributes' :: Maybe [ContentClassifier]
contentClassifiers =
forall a. Maybe a
Prelude.Nothing
}
humanLoopDataAttributes_contentClassifiers :: Lens.Lens' HumanLoopDataAttributes (Prelude.Maybe [ContentClassifier])
humanLoopDataAttributes_contentClassifiers :: Lens' HumanLoopDataAttributes (Maybe [ContentClassifier])
humanLoopDataAttributes_contentClassifiers = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HumanLoopDataAttributes' {Maybe [ContentClassifier]
contentClassifiers :: Maybe [ContentClassifier]
$sel:contentClassifiers:HumanLoopDataAttributes' :: HumanLoopDataAttributes -> Maybe [ContentClassifier]
contentClassifiers} -> Maybe [ContentClassifier]
contentClassifiers) (\s :: HumanLoopDataAttributes
s@HumanLoopDataAttributes' {} Maybe [ContentClassifier]
a -> HumanLoopDataAttributes
s {$sel:contentClassifiers:HumanLoopDataAttributes' :: Maybe [ContentClassifier]
contentClassifiers = Maybe [ContentClassifier]
a} :: HumanLoopDataAttributes) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.Hashable HumanLoopDataAttributes where
hashWithSalt :: Int -> HumanLoopDataAttributes -> Int
hashWithSalt Int
_salt HumanLoopDataAttributes' {Maybe [ContentClassifier]
contentClassifiers :: Maybe [ContentClassifier]
$sel:contentClassifiers:HumanLoopDataAttributes' :: HumanLoopDataAttributes -> Maybe [ContentClassifier]
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ContentClassifier]
contentClassifiers
instance Prelude.NFData HumanLoopDataAttributes where
rnf :: HumanLoopDataAttributes -> ()
rnf HumanLoopDataAttributes' {Maybe [ContentClassifier]
contentClassifiers :: Maybe [ContentClassifier]
$sel:contentClassifiers:HumanLoopDataAttributes' :: HumanLoopDataAttributes -> Maybe [ContentClassifier]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [ContentClassifier]
contentClassifiers
instance Data.ToJSON HumanLoopDataAttributes where
toJSON :: HumanLoopDataAttributes -> Value
toJSON HumanLoopDataAttributes' {Maybe [ContentClassifier]
contentClassifiers :: Maybe [ContentClassifier]
$sel:contentClassifiers:HumanLoopDataAttributes' :: HumanLoopDataAttributes -> Maybe [ContentClassifier]
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"ContentClassifiers" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ContentClassifier]
contentClassifiers
]
)