{-# 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.PersonTrackingSortBy
-- 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.PersonTrackingSortBy
  ( PersonTrackingSortBy
      ( ..,
        PersonTrackingSortBy_INDEX,
        PersonTrackingSortBy_TIMESTAMP
      ),
  )
where

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

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

pattern PersonTrackingSortBy_INDEX :: PersonTrackingSortBy
pattern $bPersonTrackingSortBy_INDEX :: PersonTrackingSortBy
$mPersonTrackingSortBy_INDEX :: forall r. PersonTrackingSortBy -> (Void# -> r) -> (Void# -> r) -> r
PersonTrackingSortBy_INDEX = PersonTrackingSortBy' "INDEX"

pattern PersonTrackingSortBy_TIMESTAMP :: PersonTrackingSortBy
pattern $bPersonTrackingSortBy_TIMESTAMP :: PersonTrackingSortBy
$mPersonTrackingSortBy_TIMESTAMP :: forall r. PersonTrackingSortBy -> (Void# -> r) -> (Void# -> r) -> r
PersonTrackingSortBy_TIMESTAMP = PersonTrackingSortBy' "TIMESTAMP"

{-# COMPLETE
  PersonTrackingSortBy_INDEX,
  PersonTrackingSortBy_TIMESTAMP,
  PersonTrackingSortBy'
  #-}