{-# 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.BotVersionSortAttribute
-- 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.BotVersionSortAttribute
  ( BotVersionSortAttribute
      ( ..,
        BotVersionSortAttribute_BotVersion
      ),
  )
where

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

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

pattern BotVersionSortAttribute_BotVersion :: BotVersionSortAttribute
pattern $bBotVersionSortAttribute_BotVersion :: BotVersionSortAttribute
$mBotVersionSortAttribute_BotVersion :: forall {r}.
BotVersionSortAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
BotVersionSortAttribute_BotVersion = BotVersionSortAttribute' "BotVersion"

{-# COMPLETE
  BotVersionSortAttribute_BotVersion,
  BotVersionSortAttribute'
  #-}