{-# 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.LexV2Models.Types.AggregatedUtterancesSortAttribute
-- 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.LexV2Models.Types.AggregatedUtterancesSortAttribute
  ( AggregatedUtterancesSortAttribute
      ( ..,
        AggregatedUtterancesSortAttribute_HitCount,
        AggregatedUtterancesSortAttribute_MissedCount
      ),
  )
where

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

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

pattern AggregatedUtterancesSortAttribute_HitCount :: AggregatedUtterancesSortAttribute
pattern $bAggregatedUtterancesSortAttribute_HitCount :: AggregatedUtterancesSortAttribute
$mAggregatedUtterancesSortAttribute_HitCount :: forall {r}.
AggregatedUtterancesSortAttribute
-> ((# #) -> r) -> ((# #) -> r) -> r
AggregatedUtterancesSortAttribute_HitCount = AggregatedUtterancesSortAttribute' "HitCount"

pattern AggregatedUtterancesSortAttribute_MissedCount :: AggregatedUtterancesSortAttribute
pattern $bAggregatedUtterancesSortAttribute_MissedCount :: AggregatedUtterancesSortAttribute
$mAggregatedUtterancesSortAttribute_MissedCount :: forall {r}.
AggregatedUtterancesSortAttribute
-> ((# #) -> r) -> ((# #) -> r) -> r
AggregatedUtterancesSortAttribute_MissedCount = AggregatedUtterancesSortAttribute' "MissedCount"

{-# COMPLETE
  AggregatedUtterancesSortAttribute_HitCount,
  AggregatedUtterancesSortAttribute_MissedCount,
  AggregatedUtterancesSortAttribute'
  #-}