{-# 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.SlotSortAttribute
-- 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.SlotSortAttribute
  ( SlotSortAttribute
      ( ..,
        SlotSortAttribute_LastUpdatedDateTime,
        SlotSortAttribute_SlotName
      ),
  )
where

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

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

pattern SlotSortAttribute_LastUpdatedDateTime :: SlotSortAttribute
pattern $bSlotSortAttribute_LastUpdatedDateTime :: SlotSortAttribute
$mSlotSortAttribute_LastUpdatedDateTime :: forall {r}. SlotSortAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
SlotSortAttribute_LastUpdatedDateTime = SlotSortAttribute' "LastUpdatedDateTime"

pattern SlotSortAttribute_SlotName :: SlotSortAttribute
pattern $bSlotSortAttribute_SlotName :: SlotSortAttribute
$mSlotSortAttribute_SlotName :: forall {r}. SlotSortAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
SlotSortAttribute_SlotName = SlotSortAttribute' "SlotName"

{-# COMPLETE
  SlotSortAttribute_LastUpdatedDateTime,
  SlotSortAttribute_SlotName,
  SlotSortAttribute'
  #-}