{-# 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.SlotTypeSortAttribute
-- 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.SlotTypeSortAttribute
  ( SlotTypeSortAttribute
      ( ..,
        SlotTypeSortAttribute_LastUpdatedDateTime,
        SlotTypeSortAttribute_SlotTypeName
      ),
  )
where

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

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

pattern SlotTypeSortAttribute_LastUpdatedDateTime :: SlotTypeSortAttribute
pattern $bSlotTypeSortAttribute_LastUpdatedDateTime :: SlotTypeSortAttribute
$mSlotTypeSortAttribute_LastUpdatedDateTime :: forall {r}.
SlotTypeSortAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
SlotTypeSortAttribute_LastUpdatedDateTime = SlotTypeSortAttribute' "LastUpdatedDateTime"

pattern SlotTypeSortAttribute_SlotTypeName :: SlotTypeSortAttribute
pattern $bSlotTypeSortAttribute_SlotTypeName :: SlotTypeSortAttribute
$mSlotTypeSortAttribute_SlotTypeName :: forall {r}.
SlotTypeSortAttribute -> ((# #) -> r) -> ((# #) -> r) -> r
SlotTypeSortAttribute_SlotTypeName = SlotTypeSortAttribute' "SlotTypeName"

{-# COMPLETE
  SlotTypeSortAttribute_LastUpdatedDateTime,
  SlotTypeSortAttribute_SlotTypeName,
  SlotTypeSortAttribute'
  #-}