{-# 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.PhoneNumberStatus
( PhoneNumberStatus
( ..,
PhoneNumberStatus_AcquireFailed,
PhoneNumberStatus_AcquireInProgress,
PhoneNumberStatus_Assigned,
PhoneNumberStatus_DeleteFailed,
PhoneNumberStatus_DeleteInProgress,
PhoneNumberStatus_ReleaseFailed,
PhoneNumberStatus_ReleaseInProgress,
PhoneNumberStatus_Unassigned
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype PhoneNumberStatus = PhoneNumberStatus'
{ PhoneNumberStatus -> Text
fromPhoneNumberStatus ::
Core.Text
}
deriving stock
( Int -> PhoneNumberStatus -> ShowS
[PhoneNumberStatus] -> ShowS
PhoneNumberStatus -> String
(Int -> PhoneNumberStatus -> ShowS)
-> (PhoneNumberStatus -> String)
-> ([PhoneNumberStatus] -> ShowS)
-> Show PhoneNumberStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PhoneNumberStatus] -> ShowS
$cshowList :: [PhoneNumberStatus] -> ShowS
show :: PhoneNumberStatus -> String
$cshow :: PhoneNumberStatus -> String
showsPrec :: Int -> PhoneNumberStatus -> ShowS
$cshowsPrec :: Int -> PhoneNumberStatus -> ShowS
Prelude.Show,
ReadPrec [PhoneNumberStatus]
ReadPrec PhoneNumberStatus
Int -> ReadS PhoneNumberStatus
ReadS [PhoneNumberStatus]
(Int -> ReadS PhoneNumberStatus)
-> ReadS [PhoneNumberStatus]
-> ReadPrec PhoneNumberStatus
-> ReadPrec [PhoneNumberStatus]
-> Read PhoneNumberStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PhoneNumberStatus]
$creadListPrec :: ReadPrec [PhoneNumberStatus]
readPrec :: ReadPrec PhoneNumberStatus
$creadPrec :: ReadPrec PhoneNumberStatus
readList :: ReadS [PhoneNumberStatus]
$creadList :: ReadS [PhoneNumberStatus]
readsPrec :: Int -> ReadS PhoneNumberStatus
$creadsPrec :: Int -> ReadS PhoneNumberStatus
Prelude.Read,
PhoneNumberStatus -> PhoneNumberStatus -> Bool
(PhoneNumberStatus -> PhoneNumberStatus -> Bool)
-> (PhoneNumberStatus -> PhoneNumberStatus -> Bool)
-> Eq PhoneNumberStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PhoneNumberStatus -> PhoneNumberStatus -> Bool
$c/= :: PhoneNumberStatus -> PhoneNumberStatus -> Bool
== :: PhoneNumberStatus -> PhoneNumberStatus -> Bool
$c== :: PhoneNumberStatus -> PhoneNumberStatus -> Bool
Prelude.Eq,
Eq PhoneNumberStatus
Eq PhoneNumberStatus
-> (PhoneNumberStatus -> PhoneNumberStatus -> Ordering)
-> (PhoneNumberStatus -> PhoneNumberStatus -> Bool)
-> (PhoneNumberStatus -> PhoneNumberStatus -> Bool)
-> (PhoneNumberStatus -> PhoneNumberStatus -> Bool)
-> (PhoneNumberStatus -> PhoneNumberStatus -> Bool)
-> (PhoneNumberStatus -> PhoneNumberStatus -> PhoneNumberStatus)
-> (PhoneNumberStatus -> PhoneNumberStatus -> PhoneNumberStatus)
-> Ord PhoneNumberStatus
PhoneNumberStatus -> PhoneNumberStatus -> Bool
PhoneNumberStatus -> PhoneNumberStatus -> Ordering
PhoneNumberStatus -> PhoneNumberStatus -> PhoneNumberStatus
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 :: PhoneNumberStatus -> PhoneNumberStatus -> PhoneNumberStatus
$cmin :: PhoneNumberStatus -> PhoneNumberStatus -> PhoneNumberStatus
max :: PhoneNumberStatus -> PhoneNumberStatus -> PhoneNumberStatus
$cmax :: PhoneNumberStatus -> PhoneNumberStatus -> PhoneNumberStatus
>= :: PhoneNumberStatus -> PhoneNumberStatus -> Bool
$c>= :: PhoneNumberStatus -> PhoneNumberStatus -> Bool
> :: PhoneNumberStatus -> PhoneNumberStatus -> Bool
$c> :: PhoneNumberStatus -> PhoneNumberStatus -> Bool
<= :: PhoneNumberStatus -> PhoneNumberStatus -> Bool
$c<= :: PhoneNumberStatus -> PhoneNumberStatus -> Bool
< :: PhoneNumberStatus -> PhoneNumberStatus -> Bool
$c< :: PhoneNumberStatus -> PhoneNumberStatus -> Bool
compare :: PhoneNumberStatus -> PhoneNumberStatus -> Ordering
$ccompare :: PhoneNumberStatus -> PhoneNumberStatus -> Ordering
$cp1Ord :: Eq PhoneNumberStatus
Prelude.Ord,
(forall x. PhoneNumberStatus -> Rep PhoneNumberStatus x)
-> (forall x. Rep PhoneNumberStatus x -> PhoneNumberStatus)
-> Generic PhoneNumberStatus
forall x. Rep PhoneNumberStatus x -> PhoneNumberStatus
forall x. PhoneNumberStatus -> Rep PhoneNumberStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PhoneNumberStatus x -> PhoneNumberStatus
$cfrom :: forall x. PhoneNumberStatus -> Rep PhoneNumberStatus x
Prelude.Generic
)
deriving newtype
( Int -> PhoneNumberStatus -> Int
PhoneNumberStatus -> Int
(Int -> PhoneNumberStatus -> Int)
-> (PhoneNumberStatus -> Int) -> Hashable PhoneNumberStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: PhoneNumberStatus -> Int
$chash :: PhoneNumberStatus -> Int
hashWithSalt :: Int -> PhoneNumberStatus -> Int
$chashWithSalt :: Int -> PhoneNumberStatus -> Int
Prelude.Hashable,
PhoneNumberStatus -> ()
(PhoneNumberStatus -> ()) -> NFData PhoneNumberStatus
forall a. (a -> ()) -> NFData a
rnf :: PhoneNumberStatus -> ()
$crnf :: PhoneNumberStatus -> ()
Prelude.NFData,
Text -> Either String PhoneNumberStatus
(Text -> Either String PhoneNumberStatus)
-> FromText PhoneNumberStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PhoneNumberStatus
$cfromText :: Text -> Either String PhoneNumberStatus
Core.FromText,
PhoneNumberStatus -> Text
(PhoneNumberStatus -> Text) -> ToText PhoneNumberStatus
forall a. (a -> Text) -> ToText a
toText :: PhoneNumberStatus -> Text
$ctoText :: PhoneNumberStatus -> Text
Core.ToText,
PhoneNumberStatus -> ByteString
(PhoneNumberStatus -> ByteString) -> ToByteString PhoneNumberStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: PhoneNumberStatus -> ByteString
$ctoBS :: PhoneNumberStatus -> ByteString
Core.ToByteString,
PhoneNumberStatus -> ByteStringBuilder
(PhoneNumberStatus -> ByteStringBuilder) -> ToLog PhoneNumberStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PhoneNumberStatus -> ByteStringBuilder
$cbuild :: PhoneNumberStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> PhoneNumberStatus -> [Header]
(HeaderName -> PhoneNumberStatus -> [Header])
-> ToHeader PhoneNumberStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PhoneNumberStatus -> [Header]
$ctoHeader :: HeaderName -> PhoneNumberStatus -> [Header]
Core.ToHeader,
PhoneNumberStatus -> QueryString
(PhoneNumberStatus -> QueryString) -> ToQuery PhoneNumberStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PhoneNumberStatus -> QueryString
$ctoQuery :: PhoneNumberStatus -> QueryString
Core.ToQuery,
Value -> Parser [PhoneNumberStatus]
Value -> Parser PhoneNumberStatus
(Value -> Parser PhoneNumberStatus)
-> (Value -> Parser [PhoneNumberStatus])
-> FromJSON PhoneNumberStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [PhoneNumberStatus]
$cparseJSONList :: Value -> Parser [PhoneNumberStatus]
parseJSON :: Value -> Parser PhoneNumberStatus
$cparseJSON :: Value -> Parser PhoneNumberStatus
Core.FromJSON,
FromJSONKeyFunction [PhoneNumberStatus]
FromJSONKeyFunction PhoneNumberStatus
FromJSONKeyFunction PhoneNumberStatus
-> FromJSONKeyFunction [PhoneNumberStatus]
-> FromJSONKey PhoneNumberStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PhoneNumberStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [PhoneNumberStatus]
fromJSONKey :: FromJSONKeyFunction PhoneNumberStatus
$cfromJSONKey :: FromJSONKeyFunction PhoneNumberStatus
Core.FromJSONKey,
[PhoneNumberStatus] -> Encoding
[PhoneNumberStatus] -> Value
PhoneNumberStatus -> Encoding
PhoneNumberStatus -> Value
(PhoneNumberStatus -> Value)
-> (PhoneNumberStatus -> Encoding)
-> ([PhoneNumberStatus] -> Value)
-> ([PhoneNumberStatus] -> Encoding)
-> ToJSON PhoneNumberStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [PhoneNumberStatus] -> Encoding
$ctoEncodingList :: [PhoneNumberStatus] -> Encoding
toJSONList :: [PhoneNumberStatus] -> Value
$ctoJSONList :: [PhoneNumberStatus] -> Value
toEncoding :: PhoneNumberStatus -> Encoding
$ctoEncoding :: PhoneNumberStatus -> Encoding
toJSON :: PhoneNumberStatus -> Value
$ctoJSON :: PhoneNumberStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [PhoneNumberStatus]
ToJSONKeyFunction PhoneNumberStatus
ToJSONKeyFunction PhoneNumberStatus
-> ToJSONKeyFunction [PhoneNumberStatus]
-> ToJSONKey PhoneNumberStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PhoneNumberStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [PhoneNumberStatus]
toJSONKey :: ToJSONKeyFunction PhoneNumberStatus
$ctoJSONKey :: ToJSONKeyFunction PhoneNumberStatus
Core.ToJSONKey,
[Node] -> Either String PhoneNumberStatus
([Node] -> Either String PhoneNumberStatus)
-> FromXML PhoneNumberStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PhoneNumberStatus
$cparseXML :: [Node] -> Either String PhoneNumberStatus
Core.FromXML,
PhoneNumberStatus -> XML
(PhoneNumberStatus -> XML) -> ToXML PhoneNumberStatus
forall a. (a -> XML) -> ToXML a
toXML :: PhoneNumberStatus -> XML
$ctoXML :: PhoneNumberStatus -> XML
Core.ToXML
)
pattern PhoneNumberStatus_AcquireFailed :: PhoneNumberStatus
pattern $bPhoneNumberStatus_AcquireFailed :: PhoneNumberStatus
$mPhoneNumberStatus_AcquireFailed :: forall r. PhoneNumberStatus -> (Void# -> r) -> (Void# -> r) -> r
PhoneNumberStatus_AcquireFailed = PhoneNumberStatus' "AcquireFailed"
pattern PhoneNumberStatus_AcquireInProgress :: PhoneNumberStatus
pattern $bPhoneNumberStatus_AcquireInProgress :: PhoneNumberStatus
$mPhoneNumberStatus_AcquireInProgress :: forall r. PhoneNumberStatus -> (Void# -> r) -> (Void# -> r) -> r
PhoneNumberStatus_AcquireInProgress = PhoneNumberStatus' "AcquireInProgress"
pattern PhoneNumberStatus_Assigned :: PhoneNumberStatus
pattern $bPhoneNumberStatus_Assigned :: PhoneNumberStatus
$mPhoneNumberStatus_Assigned :: forall r. PhoneNumberStatus -> (Void# -> r) -> (Void# -> r) -> r
PhoneNumberStatus_Assigned = PhoneNumberStatus' "Assigned"
pattern PhoneNumberStatus_DeleteFailed :: PhoneNumberStatus
pattern $bPhoneNumberStatus_DeleteFailed :: PhoneNumberStatus
$mPhoneNumberStatus_DeleteFailed :: forall r. PhoneNumberStatus -> (Void# -> r) -> (Void# -> r) -> r
PhoneNumberStatus_DeleteFailed = PhoneNumberStatus' "DeleteFailed"
pattern PhoneNumberStatus_DeleteInProgress :: PhoneNumberStatus
pattern $bPhoneNumberStatus_DeleteInProgress :: PhoneNumberStatus
$mPhoneNumberStatus_DeleteInProgress :: forall r. PhoneNumberStatus -> (Void# -> r) -> (Void# -> r) -> r
PhoneNumberStatus_DeleteInProgress = PhoneNumberStatus' "DeleteInProgress"
pattern PhoneNumberStatus_ReleaseFailed :: PhoneNumberStatus
pattern $bPhoneNumberStatus_ReleaseFailed :: PhoneNumberStatus
$mPhoneNumberStatus_ReleaseFailed :: forall r. PhoneNumberStatus -> (Void# -> r) -> (Void# -> r) -> r
PhoneNumberStatus_ReleaseFailed = PhoneNumberStatus' "ReleaseFailed"
pattern PhoneNumberStatus_ReleaseInProgress :: PhoneNumberStatus
pattern $bPhoneNumberStatus_ReleaseInProgress :: PhoneNumberStatus
$mPhoneNumberStatus_ReleaseInProgress :: forall r. PhoneNumberStatus -> (Void# -> r) -> (Void# -> r) -> r
PhoneNumberStatus_ReleaseInProgress = PhoneNumberStatus' "ReleaseInProgress"
pattern PhoneNumberStatus_Unassigned :: PhoneNumberStatus
pattern $bPhoneNumberStatus_Unassigned :: PhoneNumberStatus
$mPhoneNumberStatus_Unassigned :: forall r. PhoneNumberStatus -> (Void# -> r) -> (Void# -> r) -> r
PhoneNumberStatus_Unassigned = PhoneNumberStatus' "Unassigned"
{-# COMPLETE
PhoneNumberStatus_AcquireFailed,
PhoneNumberStatus_AcquireInProgress,
PhoneNumberStatus_Assigned,
PhoneNumberStatus_DeleteFailed,
PhoneNumberStatus_DeleteInProgress,
PhoneNumberStatus_ReleaseFailed,
PhoneNumberStatus_ReleaseInProgress,
PhoneNumberStatus_Unassigned,
PhoneNumberStatus'
#-}