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