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