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