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