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