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