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

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

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

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

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

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