{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype BodyPart = BodyPart'
  { BodyPart -> Text
fromBodyPart ::
      Core.Text
  }
  deriving stock
    ( Int -> BodyPart -> ShowS
[BodyPart] -> ShowS
BodyPart -> String
(Int -> BodyPart -> ShowS)
-> (BodyPart -> String) -> ([BodyPart] -> ShowS) -> Show BodyPart
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]
(Int -> ReadS BodyPart)
-> ReadS [BodyPart]
-> ReadPrec BodyPart
-> ReadPrec [BodyPart]
-> Read 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
(BodyPart -> BodyPart -> Bool)
-> (BodyPart -> BodyPart -> Bool) -> Eq BodyPart
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
Eq BodyPart
-> (BodyPart -> BodyPart -> Ordering)
-> (BodyPart -> BodyPart -> Bool)
-> (BodyPart -> BodyPart -> Bool)
-> (BodyPart -> BodyPart -> Bool)
-> (BodyPart -> BodyPart -> Bool)
-> (BodyPart -> BodyPart -> BodyPart)
-> (BodyPart -> BodyPart -> BodyPart)
-> Ord 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
$cp1Ord :: Eq BodyPart
Prelude.Ord,
      (forall x. BodyPart -> Rep BodyPart x)
-> (forall x. Rep BodyPart x -> BodyPart) -> Generic BodyPart
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
    ( Int -> BodyPart -> Int
BodyPart -> Int
(Int -> BodyPart -> Int) -> (BodyPart -> Int) -> Hashable BodyPart
forall 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 -> ()
(BodyPart -> ()) -> NFData BodyPart
forall a. (a -> ()) -> NFData a
rnf :: BodyPart -> ()
$crnf :: BodyPart -> ()
Prelude.NFData,
      Text -> Either String BodyPart
(Text -> Either String BodyPart) -> FromText BodyPart
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String BodyPart
$cfromText :: Text -> Either String BodyPart
Core.FromText,
      BodyPart -> Text
(BodyPart -> Text) -> ToText BodyPart
forall a. (a -> Text) -> ToText a
toText :: BodyPart -> Text
$ctoText :: BodyPart -> Text
Core.ToText,
      BodyPart -> ByteString
(BodyPart -> ByteString) -> ToByteString BodyPart
forall a. (a -> ByteString) -> ToByteString a
toBS :: BodyPart -> ByteString
$ctoBS :: BodyPart -> ByteString
Core.ToByteString,
      BodyPart -> ByteStringBuilder
(BodyPart -> ByteStringBuilder) -> ToLog BodyPart
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: BodyPart -> ByteStringBuilder
$cbuild :: BodyPart -> ByteStringBuilder
Core.ToLog,
      HeaderName -> BodyPart -> [Header]
(HeaderName -> BodyPart -> [Header]) -> ToHeader BodyPart
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> BodyPart -> [Header]
$ctoHeader :: HeaderName -> BodyPart -> [Header]
Core.ToHeader,
      BodyPart -> QueryString
(BodyPart -> QueryString) -> ToQuery BodyPart
forall a. (a -> QueryString) -> ToQuery a
toQuery :: BodyPart -> QueryString
$ctoQuery :: BodyPart -> QueryString
Core.ToQuery,
      Value -> Parser [BodyPart]
Value -> Parser BodyPart
(Value -> Parser BodyPart)
-> (Value -> Parser [BodyPart]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [BodyPart]
FromJSONKeyFunction BodyPart
FromJSONKeyFunction BodyPart
-> FromJSONKeyFunction [BodyPart] -> FromJSONKey BodyPart
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [BodyPart]
$cfromJSONKeyList :: FromJSONKeyFunction [BodyPart]
fromJSONKey :: FromJSONKeyFunction BodyPart
$cfromJSONKey :: FromJSONKeyFunction BodyPart
Core.FromJSONKey,
      [BodyPart] -> Encoding
[BodyPart] -> Value
BodyPart -> Encoding
BodyPart -> Value
(BodyPart -> Value)
-> (BodyPart -> Encoding)
-> ([BodyPart] -> Value)
-> ([BodyPart] -> Encoding)
-> ToJSON BodyPart
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
Core.ToJSON,
      ToJSONKeyFunction [BodyPart]
ToJSONKeyFunction BodyPart
ToJSONKeyFunction BodyPart
-> ToJSONKeyFunction [BodyPart] -> ToJSONKey BodyPart
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [BodyPart]
$ctoJSONKeyList :: ToJSONKeyFunction [BodyPart]
toJSONKey :: ToJSONKeyFunction BodyPart
$ctoJSONKey :: ToJSONKeyFunction BodyPart
Core.ToJSONKey,
      [Node] -> Either String BodyPart
([Node] -> Either String BodyPart) -> FromXML BodyPart
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String BodyPart
$cparseXML :: [Node] -> Either String BodyPart
Core.FromXML,
      BodyPart -> XML
(BodyPart -> XML) -> ToXML BodyPart
forall a. (a -> XML) -> ToXML a
toXML :: BodyPart -> XML
$ctoXML :: BodyPart -> XML
Core.ToXML
    )

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

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

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

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

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