{-# 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.CelebrityRecognitionSortBy
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Rekognition.Types.CelebrityRecognitionSortBy
  ( CelebrityRecognitionSortBy
      ( ..,
        CelebrityRecognitionSortBy_ID,
        CelebrityRecognitionSortBy_TIMESTAMP
      ),
  )
where

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

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

pattern CelebrityRecognitionSortBy_ID :: CelebrityRecognitionSortBy
pattern $bCelebrityRecognitionSortBy_ID :: CelebrityRecognitionSortBy
$mCelebrityRecognitionSortBy_ID :: forall {r}.
CelebrityRecognitionSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
CelebrityRecognitionSortBy_ID = CelebrityRecognitionSortBy' "ID"

pattern CelebrityRecognitionSortBy_TIMESTAMP :: CelebrityRecognitionSortBy
pattern $bCelebrityRecognitionSortBy_TIMESTAMP :: CelebrityRecognitionSortBy
$mCelebrityRecognitionSortBy_TIMESTAMP :: forall {r}.
CelebrityRecognitionSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
CelebrityRecognitionSortBy_TIMESTAMP = CelebrityRecognitionSortBy' "TIMESTAMP"

{-# COMPLETE
  CelebrityRecognitionSortBy_ID,
  CelebrityRecognitionSortBy_TIMESTAMP,
  CelebrityRecognitionSortBy'
  #-}