{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Rekognition.Types.BodyPart
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Rekognition.Types.BodyPart
  ( BodyPart
      ( ..,
        BodyPart_FACE,
        BodyPart_HEAD,
        BodyPart_LEFT_HAND,
        BodyPart_RIGHT_HAND
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype BodyPart = BodyPart'
  { BodyPart -> Text
fromBodyPart ::
      Data.Text
  }
  deriving stock
    ( Int -> BodyPart -> ShowS
[BodyPart] -> ShowS
BodyPart -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BodyPart] -> ShowS
$cshowList :: [BodyPart] -> ShowS
show :: BodyPart -> String
$cshow :: BodyPart -> String
showsPrec :: Int -> BodyPart -> ShowS
$cshowsPrec :: Int -> BodyPart -> ShowS
Prelude.Show,
      ReadPrec [BodyPart]
ReadPrec BodyPart
Int -> ReadS BodyPart
ReadS [BodyPart]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BodyPart]
$creadListPrec :: ReadPrec [BodyPart]
readPrec :: ReadPrec BodyPart
$creadPrec :: ReadPrec BodyPart
readList :: ReadS [BodyPart]
$creadList :: ReadS [BodyPart]
readsPrec :: Int -> ReadS BodyPart
$creadsPrec :: Int -> ReadS BodyPart
Prelude.Read,
      BodyPart -> BodyPart -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BodyPart -> BodyPart -> Bool
$c/= :: BodyPart -> BodyPart -> Bool
== :: BodyPart -> BodyPart -> Bool
$c== :: BodyPart -> BodyPart -> Bool
Prelude.Eq,
      Eq BodyPart
BodyPart -> BodyPart -> Bool
BodyPart -> BodyPart -> Ordering
BodyPart -> BodyPart -> BodyPart
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: BodyPart -> BodyPart -> BodyPart
$cmin :: BodyPart -> BodyPart -> BodyPart
max :: BodyPart -> BodyPart -> BodyPart
$cmax :: BodyPart -> BodyPart -> BodyPart
>= :: BodyPart -> BodyPart -> Bool
$c>= :: BodyPart -> BodyPart -> Bool
> :: BodyPart -> BodyPart -> Bool
$c> :: BodyPart -> BodyPart -> Bool
<= :: BodyPart -> BodyPart -> Bool
$c<= :: BodyPart -> BodyPart -> Bool
< :: BodyPart -> BodyPart -> Bool
$c< :: BodyPart -> BodyPart -> Bool
compare :: BodyPart -> BodyPart -> Ordering
$ccompare :: BodyPart -> BodyPart -> Ordering
Prelude.Ord,
      forall x. Rep BodyPart x -> BodyPart
forall x. BodyPart -> Rep BodyPart x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BodyPart x -> BodyPart
$cfrom :: forall x. BodyPart -> Rep BodyPart x
Prelude.Generic
    )
  deriving newtype
    ( Eq BodyPart
Int -> BodyPart -> Int
BodyPart -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: BodyPart -> Int
$chash :: BodyPart -> Int
hashWithSalt :: Int -> BodyPart -> Int
$chashWithSalt :: Int -> BodyPart -> Int
Prelude.Hashable,
      BodyPart -> ()
forall a. (a -> ()) -> NFData a
rnf :: BodyPart -> ()
$crnf :: BodyPart -> ()
Prelude.NFData,
      Text -> Either String BodyPart
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String BodyPart
$cfromText :: Text -> Either String BodyPart
Data.FromText,
      BodyPart -> Text
forall a. (a -> Text) -> ToText a
toText :: BodyPart -> Text
$ctoText :: BodyPart -> Text
Data.ToText,
      BodyPart -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: BodyPart -> ByteString
$ctoBS :: BodyPart -> ByteString
Data.ToByteString,
      BodyPart -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: BodyPart -> ByteStringBuilder
$cbuild :: BodyPart -> ByteStringBuilder
Data.ToLog,
      HeaderName -> BodyPart -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> BodyPart -> [Header]
$ctoHeader :: HeaderName -> BodyPart -> [Header]
Data.ToHeader,
      BodyPart -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: BodyPart -> QueryString
$ctoQuery :: BodyPart -> QueryString
Data.ToQuery,
      Value -> Parser [BodyPart]
Value -> Parser BodyPart
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [BodyPart]
$cparseJSONList :: Value -> Parser [BodyPart]
parseJSON :: Value -> Parser BodyPart
$cparseJSON :: Value -> Parser BodyPart
Data.FromJSON,
      FromJSONKeyFunction [BodyPart]
FromJSONKeyFunction BodyPart
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [BodyPart]
$cfromJSONKeyList :: FromJSONKeyFunction [BodyPart]
fromJSONKey :: FromJSONKeyFunction BodyPart
$cfromJSONKey :: FromJSONKeyFunction BodyPart
Data.FromJSONKey,
      [BodyPart] -> Encoding
[BodyPart] -> Value
BodyPart -> Encoding
BodyPart -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [BodyPart] -> Encoding
$ctoEncodingList :: [BodyPart] -> Encoding
toJSONList :: [BodyPart] -> Value
$ctoJSONList :: [BodyPart] -> Value
toEncoding :: BodyPart -> Encoding
$ctoEncoding :: BodyPart -> Encoding
toJSON :: BodyPart -> Value
$ctoJSON :: BodyPart -> Value
Data.ToJSON,
      ToJSONKeyFunction [BodyPart]
ToJSONKeyFunction BodyPart
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [BodyPart]
$ctoJSONKeyList :: ToJSONKeyFunction [BodyPart]
toJSONKey :: ToJSONKeyFunction BodyPart
$ctoJSONKey :: ToJSONKeyFunction BodyPart
Data.ToJSONKey,
      [Node] -> Either String BodyPart
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String BodyPart
$cparseXML :: [Node] -> Either String BodyPart
Data.FromXML,
      BodyPart -> XML
forall a. (a -> XML) -> ToXML a
toXML :: BodyPart -> XML
$ctoXML :: BodyPart -> XML
Data.ToXML
    )

pattern BodyPart_FACE :: BodyPart
pattern $bBodyPart_FACE :: BodyPart
$mBodyPart_FACE :: forall {r}. BodyPart -> ((# #) -> r) -> ((# #) -> r) -> r
BodyPart_FACE = BodyPart' "FACE"

pattern BodyPart_HEAD :: BodyPart
pattern $bBodyPart_HEAD :: BodyPart
$mBodyPart_HEAD :: forall {r}. BodyPart -> ((# #) -> r) -> ((# #) -> r) -> r
BodyPart_HEAD = BodyPart' "HEAD"

pattern BodyPart_LEFT_HAND :: BodyPart
pattern $bBodyPart_LEFT_HAND :: BodyPart
$mBodyPart_LEFT_HAND :: forall {r}. BodyPart -> ((# #) -> r) -> ((# #) -> r) -> r
BodyPart_LEFT_HAND = BodyPart' "LEFT_HAND"

pattern BodyPart_RIGHT_HAND :: BodyPart
pattern $bBodyPart_RIGHT_HAND :: BodyPart
$mBodyPart_RIGHT_HAND :: forall {r}. BodyPart -> ((# #) -> r) -> ((# #) -> r) -> r
BodyPart_RIGHT_HAND = BodyPart' "RIGHT_HAND"

{-# COMPLETE
  BodyPart_FACE,
  BodyPart_HEAD,
  BodyPart_LEFT_HAND,
  BodyPart_RIGHT_HAND,
  BodyPart'
  #-}