{-# 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.LabelDetectionSortBy
-- 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.LabelDetectionSortBy
  ( LabelDetectionSortBy
      ( ..,
        LabelDetectionSortBy_NAME,
        LabelDetectionSortBy_TIMESTAMP
      ),
  )
where

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

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

pattern LabelDetectionSortBy_NAME :: LabelDetectionSortBy
pattern $bLabelDetectionSortBy_NAME :: LabelDetectionSortBy
$mLabelDetectionSortBy_NAME :: forall {r}.
LabelDetectionSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
LabelDetectionSortBy_NAME = LabelDetectionSortBy' "NAME"

pattern LabelDetectionSortBy_TIMESTAMP :: LabelDetectionSortBy
pattern $bLabelDetectionSortBy_TIMESTAMP :: LabelDetectionSortBy
$mLabelDetectionSortBy_TIMESTAMP :: forall {r}.
LabelDetectionSortBy -> ((# #) -> r) -> ((# #) -> r) -> r
LabelDetectionSortBy_TIMESTAMP = LabelDetectionSortBy' "TIMESTAMP"

{-# COMPLETE
  LabelDetectionSortBy_NAME,
  LabelDetectionSortBy_TIMESTAMP,
  LabelDetectionSortBy'
  #-}