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