{-# 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.KnownGenderType
-- 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.KnownGenderType
  ( KnownGenderType
      ( ..,
        KnownGenderType_Female,
        KnownGenderType_Male,
        KnownGenderType_Nonbinary,
        KnownGenderType_Unlisted
      ),
  )
where

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

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

pattern KnownGenderType_Female :: KnownGenderType
pattern $bKnownGenderType_Female :: KnownGenderType
$mKnownGenderType_Female :: forall {r}. KnownGenderType -> ((# #) -> r) -> ((# #) -> r) -> r
KnownGenderType_Female = KnownGenderType' "Female"

pattern KnownGenderType_Male :: KnownGenderType
pattern $bKnownGenderType_Male :: KnownGenderType
$mKnownGenderType_Male :: forall {r}. KnownGenderType -> ((# #) -> r) -> ((# #) -> r) -> r
KnownGenderType_Male = KnownGenderType' "Male"

pattern KnownGenderType_Nonbinary :: KnownGenderType
pattern $bKnownGenderType_Nonbinary :: KnownGenderType
$mKnownGenderType_Nonbinary :: forall {r}. KnownGenderType -> ((# #) -> r) -> ((# #) -> r) -> r
KnownGenderType_Nonbinary = KnownGenderType' "Nonbinary"

pattern KnownGenderType_Unlisted :: KnownGenderType
pattern $bKnownGenderType_Unlisted :: KnownGenderType
$mKnownGenderType_Unlisted :: forall {r}. KnownGenderType -> ((# #) -> r) -> ((# #) -> r) -> r
KnownGenderType_Unlisted = KnownGenderType' "Unlisted"

{-# COMPLETE
  KnownGenderType_Female,
  KnownGenderType_Male,
  KnownGenderType_Nonbinary,
  KnownGenderType_Unlisted,
  KnownGenderType'
  #-}