{-# 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.BotSortAttribute
-- 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.BotSortAttribute
  ( BotSortAttribute
      ( ..,
        BotSortAttribute_BotName
      ),
  )
where

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

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

pattern BotSortAttribute_BotName :: BotSortAttribute
pattern $bBotSortAttribute_BotName :: BotSortAttribute
$mBotSortAttribute_BotName :: forall {r}. BotSortAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
BotSortAttribute_BotName = BotSortAttribute' "BotName"

{-# COMPLETE
  BotSortAttribute_BotName,
  BotSortAttribute'
  #-}