{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Rekognition.Types.GenderType
( GenderType
( ..,
GenderType_Female,
GenderType_Male
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype GenderType = GenderType'
{ GenderType -> Text
fromGenderType ::
Core.Text
}
deriving stock
( Int -> GenderType -> ShowS
[GenderType] -> ShowS
GenderType -> String
(Int -> GenderType -> ShowS)
-> (GenderType -> String)
-> ([GenderType] -> ShowS)
-> Show GenderType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GenderType] -> ShowS
$cshowList :: [GenderType] -> ShowS
show :: GenderType -> String
$cshow :: GenderType -> String
showsPrec :: Int -> GenderType -> ShowS
$cshowsPrec :: Int -> GenderType -> ShowS
Prelude.Show,
ReadPrec [GenderType]
ReadPrec GenderType
Int -> ReadS GenderType
ReadS [GenderType]
(Int -> ReadS GenderType)
-> ReadS [GenderType]
-> ReadPrec GenderType
-> ReadPrec [GenderType]
-> Read GenderType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GenderType]
$creadListPrec :: ReadPrec [GenderType]
readPrec :: ReadPrec GenderType
$creadPrec :: ReadPrec GenderType
readList :: ReadS [GenderType]
$creadList :: ReadS [GenderType]
readsPrec :: Int -> ReadS GenderType
$creadsPrec :: Int -> ReadS GenderType
Prelude.Read,
GenderType -> GenderType -> Bool
(GenderType -> GenderType -> Bool)
-> (GenderType -> GenderType -> Bool) -> Eq GenderType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GenderType -> GenderType -> Bool
$c/= :: GenderType -> GenderType -> Bool
== :: GenderType -> GenderType -> Bool
$c== :: GenderType -> GenderType -> Bool
Prelude.Eq,
Eq GenderType
Eq GenderType
-> (GenderType -> GenderType -> Ordering)
-> (GenderType -> GenderType -> Bool)
-> (GenderType -> GenderType -> Bool)
-> (GenderType -> GenderType -> Bool)
-> (GenderType -> GenderType -> Bool)
-> (GenderType -> GenderType -> GenderType)
-> (GenderType -> GenderType -> GenderType)
-> Ord GenderType
GenderType -> GenderType -> Bool
GenderType -> GenderType -> Ordering
GenderType -> GenderType -> GenderType
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 :: GenderType -> GenderType -> GenderType
$cmin :: GenderType -> GenderType -> GenderType
max :: GenderType -> GenderType -> GenderType
$cmax :: GenderType -> GenderType -> GenderType
>= :: GenderType -> GenderType -> Bool
$c>= :: GenderType -> GenderType -> Bool
> :: GenderType -> GenderType -> Bool
$c> :: GenderType -> GenderType -> Bool
<= :: GenderType -> GenderType -> Bool
$c<= :: GenderType -> GenderType -> Bool
< :: GenderType -> GenderType -> Bool
$c< :: GenderType -> GenderType -> Bool
compare :: GenderType -> GenderType -> Ordering
$ccompare :: GenderType -> GenderType -> Ordering
$cp1Ord :: Eq GenderType
Prelude.Ord,
(forall x. GenderType -> Rep GenderType x)
-> (forall x. Rep GenderType x -> GenderType) -> Generic GenderType
forall x. Rep GenderType x -> GenderType
forall x. GenderType -> Rep GenderType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GenderType x -> GenderType
$cfrom :: forall x. GenderType -> Rep GenderType x
Prelude.Generic
)
deriving newtype
( Int -> GenderType -> Int
GenderType -> Int
(Int -> GenderType -> Int)
-> (GenderType -> Int) -> Hashable GenderType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: GenderType -> Int
$chash :: GenderType -> Int
hashWithSalt :: Int -> GenderType -> Int
$chashWithSalt :: Int -> GenderType -> Int
Prelude.Hashable,
GenderType -> ()
(GenderType -> ()) -> NFData GenderType
forall a. (a -> ()) -> NFData a
rnf :: GenderType -> ()
$crnf :: GenderType -> ()
Prelude.NFData,
Text -> Either String GenderType
(Text -> Either String GenderType) -> FromText GenderType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String GenderType
$cfromText :: Text -> Either String GenderType
Core.FromText,
GenderType -> Text
(GenderType -> Text) -> ToText GenderType
forall a. (a -> Text) -> ToText a
toText :: GenderType -> Text
$ctoText :: GenderType -> Text
Core.ToText,
GenderType -> ByteString
(GenderType -> ByteString) -> ToByteString GenderType
forall a. (a -> ByteString) -> ToByteString a
toBS :: GenderType -> ByteString
$ctoBS :: GenderType -> ByteString
Core.ToByteString,
GenderType -> ByteStringBuilder
(GenderType -> ByteStringBuilder) -> ToLog GenderType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: GenderType -> ByteStringBuilder
$cbuild :: GenderType -> ByteStringBuilder
Core.ToLog,
HeaderName -> GenderType -> [Header]
(HeaderName -> GenderType -> [Header]) -> ToHeader GenderType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> GenderType -> [Header]
$ctoHeader :: HeaderName -> GenderType -> [Header]
Core.ToHeader,
GenderType -> QueryString
(GenderType -> QueryString) -> ToQuery GenderType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: GenderType -> QueryString
$ctoQuery :: GenderType -> QueryString
Core.ToQuery,
Value -> Parser [GenderType]
Value -> Parser GenderType
(Value -> Parser GenderType)
-> (Value -> Parser [GenderType]) -> FromJSON GenderType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [GenderType]
$cparseJSONList :: Value -> Parser [GenderType]
parseJSON :: Value -> Parser GenderType
$cparseJSON :: Value -> Parser GenderType
Core.FromJSON,
FromJSONKeyFunction [GenderType]
FromJSONKeyFunction GenderType
FromJSONKeyFunction GenderType
-> FromJSONKeyFunction [GenderType] -> FromJSONKey GenderType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [GenderType]
$cfromJSONKeyList :: FromJSONKeyFunction [GenderType]
fromJSONKey :: FromJSONKeyFunction GenderType
$cfromJSONKey :: FromJSONKeyFunction GenderType
Core.FromJSONKey,
[GenderType] -> Encoding
[GenderType] -> Value
GenderType -> Encoding
GenderType -> Value
(GenderType -> Value)
-> (GenderType -> Encoding)
-> ([GenderType] -> Value)
-> ([GenderType] -> Encoding)
-> ToJSON GenderType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [GenderType] -> Encoding
$ctoEncodingList :: [GenderType] -> Encoding
toJSONList :: [GenderType] -> Value
$ctoJSONList :: [GenderType] -> Value
toEncoding :: GenderType -> Encoding
$ctoEncoding :: GenderType -> Encoding
toJSON :: GenderType -> Value
$ctoJSON :: GenderType -> Value
Core.ToJSON,
ToJSONKeyFunction [GenderType]
ToJSONKeyFunction GenderType
ToJSONKeyFunction GenderType
-> ToJSONKeyFunction [GenderType] -> ToJSONKey GenderType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [GenderType]
$ctoJSONKeyList :: ToJSONKeyFunction [GenderType]
toJSONKey :: ToJSONKeyFunction GenderType
$ctoJSONKey :: ToJSONKeyFunction GenderType
Core.ToJSONKey,
[Node] -> Either String GenderType
([Node] -> Either String GenderType) -> FromXML GenderType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String GenderType
$cparseXML :: [Node] -> Either String GenderType
Core.FromXML,
GenderType -> XML
(GenderType -> XML) -> ToXML GenderType
forall a. (a -> XML) -> ToXML a
toXML :: GenderType -> XML
$ctoXML :: GenderType -> XML
Core.ToXML
)
pattern GenderType_Female :: GenderType
pattern $bGenderType_Female :: GenderType
$mGenderType_Female :: forall r. GenderType -> (Void# -> r) -> (Void# -> r) -> r
GenderType_Female = GenderType' "Female"
pattern GenderType_Male :: GenderType
pattern $bGenderType_Male :: GenderType
$mGenderType_Male :: forall r. GenderType -> (Void# -> r) -> (Void# -> r) -> r
GenderType_Male = GenderType' "Male"
{-# COMPLETE
GenderType_Female,
GenderType_Male,
GenderType'
#-}