{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype CelebrityRecognitionSortBy = CelebrityRecognitionSortBy'
  { CelebrityRecognitionSortBy -> Text
fromCelebrityRecognitionSortBy ::
      Core.Text
  }
  deriving stock
    ( Int -> CelebrityRecognitionSortBy -> ShowS
[CelebrityRecognitionSortBy] -> ShowS
CelebrityRecognitionSortBy -> String
(Int -> CelebrityRecognitionSortBy -> ShowS)
-> (CelebrityRecognitionSortBy -> String)
-> ([CelebrityRecognitionSortBy] -> ShowS)
-> Show CelebrityRecognitionSortBy
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]
(Int -> ReadS CelebrityRecognitionSortBy)
-> ReadS [CelebrityRecognitionSortBy]
-> ReadPrec CelebrityRecognitionSortBy
-> ReadPrec [CelebrityRecognitionSortBy]
-> Read 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
(CelebrityRecognitionSortBy -> CelebrityRecognitionSortBy -> Bool)
-> (CelebrityRecognitionSortBy
    -> CelebrityRecognitionSortBy -> Bool)
-> Eq CelebrityRecognitionSortBy
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
Eq CelebrityRecognitionSortBy
-> (CelebrityRecognitionSortBy
    -> CelebrityRecognitionSortBy -> Ordering)
-> (CelebrityRecognitionSortBy
    -> CelebrityRecognitionSortBy -> Bool)
-> (CelebrityRecognitionSortBy
    -> CelebrityRecognitionSortBy -> Bool)
-> (CelebrityRecognitionSortBy
    -> CelebrityRecognitionSortBy -> Bool)
-> (CelebrityRecognitionSortBy
    -> CelebrityRecognitionSortBy -> Bool)
-> (CelebrityRecognitionSortBy
    -> CelebrityRecognitionSortBy -> CelebrityRecognitionSortBy)
-> (CelebrityRecognitionSortBy
    -> CelebrityRecognitionSortBy -> CelebrityRecognitionSortBy)
-> Ord 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
$cp1Ord :: Eq CelebrityRecognitionSortBy
Prelude.Ord,
      (forall x.
 CelebrityRecognitionSortBy -> Rep CelebrityRecognitionSortBy x)
-> (forall x.
    Rep CelebrityRecognitionSortBy x -> CelebrityRecognitionSortBy)
-> Generic CelebrityRecognitionSortBy
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
    ( Int -> CelebrityRecognitionSortBy -> Int
CelebrityRecognitionSortBy -> Int
(Int -> CelebrityRecognitionSortBy -> Int)
-> (CelebrityRecognitionSortBy -> Int)
-> Hashable CelebrityRecognitionSortBy
forall 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 -> ()
(CelebrityRecognitionSortBy -> ())
-> NFData CelebrityRecognitionSortBy
forall a. (a -> ()) -> NFData a
rnf :: CelebrityRecognitionSortBy -> ()
$crnf :: CelebrityRecognitionSortBy -> ()
Prelude.NFData,
      Text -> Either String CelebrityRecognitionSortBy
(Text -> Either String CelebrityRecognitionSortBy)
-> FromText CelebrityRecognitionSortBy
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CelebrityRecognitionSortBy
$cfromText :: Text -> Either String CelebrityRecognitionSortBy
Core.FromText,
      CelebrityRecognitionSortBy -> Text
(CelebrityRecognitionSortBy -> Text)
-> ToText CelebrityRecognitionSortBy
forall a. (a -> Text) -> ToText a
toText :: CelebrityRecognitionSortBy -> Text
$ctoText :: CelebrityRecognitionSortBy -> Text
Core.ToText,
      CelebrityRecognitionSortBy -> ByteString
(CelebrityRecognitionSortBy -> ByteString)
-> ToByteString CelebrityRecognitionSortBy
forall a. (a -> ByteString) -> ToByteString a
toBS :: CelebrityRecognitionSortBy -> ByteString
$ctoBS :: CelebrityRecognitionSortBy -> ByteString
Core.ToByteString,
      CelebrityRecognitionSortBy -> ByteStringBuilder
(CelebrityRecognitionSortBy -> ByteStringBuilder)
-> ToLog CelebrityRecognitionSortBy
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CelebrityRecognitionSortBy -> ByteStringBuilder
$cbuild :: CelebrityRecognitionSortBy -> ByteStringBuilder
Core.ToLog,
      HeaderName -> CelebrityRecognitionSortBy -> [Header]
(HeaderName -> CelebrityRecognitionSortBy -> [Header])
-> ToHeader CelebrityRecognitionSortBy
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CelebrityRecognitionSortBy -> [Header]
$ctoHeader :: HeaderName -> CelebrityRecognitionSortBy -> [Header]
Core.ToHeader,
      CelebrityRecognitionSortBy -> QueryString
(CelebrityRecognitionSortBy -> QueryString)
-> ToQuery CelebrityRecognitionSortBy
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CelebrityRecognitionSortBy -> QueryString
$ctoQuery :: CelebrityRecognitionSortBy -> QueryString
Core.ToQuery,
      Value -> Parser [CelebrityRecognitionSortBy]
Value -> Parser CelebrityRecognitionSortBy
(Value -> Parser CelebrityRecognitionSortBy)
-> (Value -> Parser [CelebrityRecognitionSortBy])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [CelebrityRecognitionSortBy]
FromJSONKeyFunction CelebrityRecognitionSortBy
FromJSONKeyFunction CelebrityRecognitionSortBy
-> FromJSONKeyFunction [CelebrityRecognitionSortBy]
-> FromJSONKey CelebrityRecognitionSortBy
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CelebrityRecognitionSortBy]
$cfromJSONKeyList :: FromJSONKeyFunction [CelebrityRecognitionSortBy]
fromJSONKey :: FromJSONKeyFunction CelebrityRecognitionSortBy
$cfromJSONKey :: FromJSONKeyFunction CelebrityRecognitionSortBy
Core.FromJSONKey,
      [CelebrityRecognitionSortBy] -> Encoding
[CelebrityRecognitionSortBy] -> Value
CelebrityRecognitionSortBy -> Encoding
CelebrityRecognitionSortBy -> Value
(CelebrityRecognitionSortBy -> Value)
-> (CelebrityRecognitionSortBy -> Encoding)
-> ([CelebrityRecognitionSortBy] -> Value)
-> ([CelebrityRecognitionSortBy] -> Encoding)
-> ToJSON CelebrityRecognitionSortBy
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
Core.ToJSON,
      ToJSONKeyFunction [CelebrityRecognitionSortBy]
ToJSONKeyFunction CelebrityRecognitionSortBy
ToJSONKeyFunction CelebrityRecognitionSortBy
-> ToJSONKeyFunction [CelebrityRecognitionSortBy]
-> ToJSONKey CelebrityRecognitionSortBy
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CelebrityRecognitionSortBy]
$ctoJSONKeyList :: ToJSONKeyFunction [CelebrityRecognitionSortBy]
toJSONKey :: ToJSONKeyFunction CelebrityRecognitionSortBy
$ctoJSONKey :: ToJSONKeyFunction CelebrityRecognitionSortBy
Core.ToJSONKey,
      [Node] -> Either String CelebrityRecognitionSortBy
([Node] -> Either String CelebrityRecognitionSortBy)
-> FromXML CelebrityRecognitionSortBy
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CelebrityRecognitionSortBy
$cparseXML :: [Node] -> Either String CelebrityRecognitionSortBy
Core.FromXML,
      CelebrityRecognitionSortBy -> XML
(CelebrityRecognitionSortBy -> XML)
-> ToXML CelebrityRecognitionSortBy
forall a. (a -> XML) -> ToXML a
toXML :: CelebrityRecognitionSortBy -> XML
$ctoXML :: CelebrityRecognitionSortBy -> XML
Core.ToXML
    )

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

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

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