{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.LexModels.Types.MigrationSortAttribute
( MigrationSortAttribute
( ..,
MigrationSortAttribute_MIGRATION_DATE_TIME,
MigrationSortAttribute_V1_BOT_NAME
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype MigrationSortAttribute = MigrationSortAttribute'
{ MigrationSortAttribute -> Text
fromMigrationSortAttribute ::
Core.Text
}
deriving stock
( Int -> MigrationSortAttribute -> ShowS
[MigrationSortAttribute] -> ShowS
MigrationSortAttribute -> String
(Int -> MigrationSortAttribute -> ShowS)
-> (MigrationSortAttribute -> String)
-> ([MigrationSortAttribute] -> ShowS)
-> Show MigrationSortAttribute
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MigrationSortAttribute] -> ShowS
$cshowList :: [MigrationSortAttribute] -> ShowS
show :: MigrationSortAttribute -> String
$cshow :: MigrationSortAttribute -> String
showsPrec :: Int -> MigrationSortAttribute -> ShowS
$cshowsPrec :: Int -> MigrationSortAttribute -> ShowS
Prelude.Show,
ReadPrec [MigrationSortAttribute]
ReadPrec MigrationSortAttribute
Int -> ReadS MigrationSortAttribute
ReadS [MigrationSortAttribute]
(Int -> ReadS MigrationSortAttribute)
-> ReadS [MigrationSortAttribute]
-> ReadPrec MigrationSortAttribute
-> ReadPrec [MigrationSortAttribute]
-> Read MigrationSortAttribute
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MigrationSortAttribute]
$creadListPrec :: ReadPrec [MigrationSortAttribute]
readPrec :: ReadPrec MigrationSortAttribute
$creadPrec :: ReadPrec MigrationSortAttribute
readList :: ReadS [MigrationSortAttribute]
$creadList :: ReadS [MigrationSortAttribute]
readsPrec :: Int -> ReadS MigrationSortAttribute
$creadsPrec :: Int -> ReadS MigrationSortAttribute
Prelude.Read,
MigrationSortAttribute -> MigrationSortAttribute -> Bool
(MigrationSortAttribute -> MigrationSortAttribute -> Bool)
-> (MigrationSortAttribute -> MigrationSortAttribute -> Bool)
-> Eq MigrationSortAttribute
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MigrationSortAttribute -> MigrationSortAttribute -> Bool
$c/= :: MigrationSortAttribute -> MigrationSortAttribute -> Bool
== :: MigrationSortAttribute -> MigrationSortAttribute -> Bool
$c== :: MigrationSortAttribute -> MigrationSortAttribute -> Bool
Prelude.Eq,
Eq MigrationSortAttribute
Eq MigrationSortAttribute
-> (MigrationSortAttribute -> MigrationSortAttribute -> Ordering)
-> (MigrationSortAttribute -> MigrationSortAttribute -> Bool)
-> (MigrationSortAttribute -> MigrationSortAttribute -> Bool)
-> (MigrationSortAttribute -> MigrationSortAttribute -> Bool)
-> (MigrationSortAttribute -> MigrationSortAttribute -> Bool)
-> (MigrationSortAttribute
-> MigrationSortAttribute -> MigrationSortAttribute)
-> (MigrationSortAttribute
-> MigrationSortAttribute -> MigrationSortAttribute)
-> Ord MigrationSortAttribute
MigrationSortAttribute -> MigrationSortAttribute -> Bool
MigrationSortAttribute -> MigrationSortAttribute -> Ordering
MigrationSortAttribute
-> MigrationSortAttribute -> MigrationSortAttribute
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 :: MigrationSortAttribute
-> MigrationSortAttribute -> MigrationSortAttribute
$cmin :: MigrationSortAttribute
-> MigrationSortAttribute -> MigrationSortAttribute
max :: MigrationSortAttribute
-> MigrationSortAttribute -> MigrationSortAttribute
$cmax :: MigrationSortAttribute
-> MigrationSortAttribute -> MigrationSortAttribute
>= :: MigrationSortAttribute -> MigrationSortAttribute -> Bool
$c>= :: MigrationSortAttribute -> MigrationSortAttribute -> Bool
> :: MigrationSortAttribute -> MigrationSortAttribute -> Bool
$c> :: MigrationSortAttribute -> MigrationSortAttribute -> Bool
<= :: MigrationSortAttribute -> MigrationSortAttribute -> Bool
$c<= :: MigrationSortAttribute -> MigrationSortAttribute -> Bool
< :: MigrationSortAttribute -> MigrationSortAttribute -> Bool
$c< :: MigrationSortAttribute -> MigrationSortAttribute -> Bool
compare :: MigrationSortAttribute -> MigrationSortAttribute -> Ordering
$ccompare :: MigrationSortAttribute -> MigrationSortAttribute -> Ordering
$cp1Ord :: Eq MigrationSortAttribute
Prelude.Ord,
(forall x. MigrationSortAttribute -> Rep MigrationSortAttribute x)
-> (forall x.
Rep MigrationSortAttribute x -> MigrationSortAttribute)
-> Generic MigrationSortAttribute
forall x. Rep MigrationSortAttribute x -> MigrationSortAttribute
forall x. MigrationSortAttribute -> Rep MigrationSortAttribute x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MigrationSortAttribute x -> MigrationSortAttribute
$cfrom :: forall x. MigrationSortAttribute -> Rep MigrationSortAttribute x
Prelude.Generic
)
deriving newtype
( Int -> MigrationSortAttribute -> Int
MigrationSortAttribute -> Int
(Int -> MigrationSortAttribute -> Int)
-> (MigrationSortAttribute -> Int)
-> Hashable MigrationSortAttribute
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: MigrationSortAttribute -> Int
$chash :: MigrationSortAttribute -> Int
hashWithSalt :: Int -> MigrationSortAttribute -> Int
$chashWithSalt :: Int -> MigrationSortAttribute -> Int
Prelude.Hashable,
MigrationSortAttribute -> ()
(MigrationSortAttribute -> ()) -> NFData MigrationSortAttribute
forall a. (a -> ()) -> NFData a
rnf :: MigrationSortAttribute -> ()
$crnf :: MigrationSortAttribute -> ()
Prelude.NFData,
Text -> Either String MigrationSortAttribute
(Text -> Either String MigrationSortAttribute)
-> FromText MigrationSortAttribute
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MigrationSortAttribute
$cfromText :: Text -> Either String MigrationSortAttribute
Core.FromText,
MigrationSortAttribute -> Text
(MigrationSortAttribute -> Text) -> ToText MigrationSortAttribute
forall a. (a -> Text) -> ToText a
toText :: MigrationSortAttribute -> Text
$ctoText :: MigrationSortAttribute -> Text
Core.ToText,
MigrationSortAttribute -> ByteString
(MigrationSortAttribute -> ByteString)
-> ToByteString MigrationSortAttribute
forall a. (a -> ByteString) -> ToByteString a
toBS :: MigrationSortAttribute -> ByteString
$ctoBS :: MigrationSortAttribute -> ByteString
Core.ToByteString,
MigrationSortAttribute -> ByteStringBuilder
(MigrationSortAttribute -> ByteStringBuilder)
-> ToLog MigrationSortAttribute
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MigrationSortAttribute -> ByteStringBuilder
$cbuild :: MigrationSortAttribute -> ByteStringBuilder
Core.ToLog,
HeaderName -> MigrationSortAttribute -> [Header]
(HeaderName -> MigrationSortAttribute -> [Header])
-> ToHeader MigrationSortAttribute
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MigrationSortAttribute -> [Header]
$ctoHeader :: HeaderName -> MigrationSortAttribute -> [Header]
Core.ToHeader,
MigrationSortAttribute -> QueryString
(MigrationSortAttribute -> QueryString)
-> ToQuery MigrationSortAttribute
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MigrationSortAttribute -> QueryString
$ctoQuery :: MigrationSortAttribute -> QueryString
Core.ToQuery,
Value -> Parser [MigrationSortAttribute]
Value -> Parser MigrationSortAttribute
(Value -> Parser MigrationSortAttribute)
-> (Value -> Parser [MigrationSortAttribute])
-> FromJSON MigrationSortAttribute
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [MigrationSortAttribute]
$cparseJSONList :: Value -> Parser [MigrationSortAttribute]
parseJSON :: Value -> Parser MigrationSortAttribute
$cparseJSON :: Value -> Parser MigrationSortAttribute
Core.FromJSON,
FromJSONKeyFunction [MigrationSortAttribute]
FromJSONKeyFunction MigrationSortAttribute
FromJSONKeyFunction MigrationSortAttribute
-> FromJSONKeyFunction [MigrationSortAttribute]
-> FromJSONKey MigrationSortAttribute
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MigrationSortAttribute]
$cfromJSONKeyList :: FromJSONKeyFunction [MigrationSortAttribute]
fromJSONKey :: FromJSONKeyFunction MigrationSortAttribute
$cfromJSONKey :: FromJSONKeyFunction MigrationSortAttribute
Core.FromJSONKey,
[MigrationSortAttribute] -> Encoding
[MigrationSortAttribute] -> Value
MigrationSortAttribute -> Encoding
MigrationSortAttribute -> Value
(MigrationSortAttribute -> Value)
-> (MigrationSortAttribute -> Encoding)
-> ([MigrationSortAttribute] -> Value)
-> ([MigrationSortAttribute] -> Encoding)
-> ToJSON MigrationSortAttribute
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [MigrationSortAttribute] -> Encoding
$ctoEncodingList :: [MigrationSortAttribute] -> Encoding
toJSONList :: [MigrationSortAttribute] -> Value
$ctoJSONList :: [MigrationSortAttribute] -> Value
toEncoding :: MigrationSortAttribute -> Encoding
$ctoEncoding :: MigrationSortAttribute -> Encoding
toJSON :: MigrationSortAttribute -> Value
$ctoJSON :: MigrationSortAttribute -> Value
Core.ToJSON,
ToJSONKeyFunction [MigrationSortAttribute]
ToJSONKeyFunction MigrationSortAttribute
ToJSONKeyFunction MigrationSortAttribute
-> ToJSONKeyFunction [MigrationSortAttribute]
-> ToJSONKey MigrationSortAttribute
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MigrationSortAttribute]
$ctoJSONKeyList :: ToJSONKeyFunction [MigrationSortAttribute]
toJSONKey :: ToJSONKeyFunction MigrationSortAttribute
$ctoJSONKey :: ToJSONKeyFunction MigrationSortAttribute
Core.ToJSONKey,
[Node] -> Either String MigrationSortAttribute
([Node] -> Either String MigrationSortAttribute)
-> FromXML MigrationSortAttribute
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MigrationSortAttribute
$cparseXML :: [Node] -> Either String MigrationSortAttribute
Core.FromXML,
MigrationSortAttribute -> XML
(MigrationSortAttribute -> XML) -> ToXML MigrationSortAttribute
forall a. (a -> XML) -> ToXML a
toXML :: MigrationSortAttribute -> XML
$ctoXML :: MigrationSortAttribute -> XML
Core.ToXML
)
pattern MigrationSortAttribute_MIGRATION_DATE_TIME :: MigrationSortAttribute
pattern $bMigrationSortAttribute_MIGRATION_DATE_TIME :: MigrationSortAttribute
$mMigrationSortAttribute_MIGRATION_DATE_TIME :: forall r.
MigrationSortAttribute -> (Void# -> r) -> (Void# -> r) -> r
MigrationSortAttribute_MIGRATION_DATE_TIME = MigrationSortAttribute' "MIGRATION_DATE_TIME"
pattern MigrationSortAttribute_V1_BOT_NAME :: MigrationSortAttribute
pattern $bMigrationSortAttribute_V1_BOT_NAME :: MigrationSortAttribute
$mMigrationSortAttribute_V1_BOT_NAME :: forall r.
MigrationSortAttribute -> (Void# -> r) -> (Void# -> r) -> r
MigrationSortAttribute_V1_BOT_NAME = MigrationSortAttribute' "V1_BOT_NAME"
{-# COMPLETE
MigrationSortAttribute_MIGRATION_DATE_TIME,
MigrationSortAttribute_V1_BOT_NAME,
MigrationSortAttribute'
#-}