{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Chime.Types.OrderedPhoneNumberStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Chime.Types.OrderedPhoneNumberStatus
  ( OrderedPhoneNumberStatus
      ( ..,
        OrderedPhoneNumberStatus_Acquired,
        OrderedPhoneNumberStatus_Failed,
        OrderedPhoneNumberStatus_Processing
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype OrderedPhoneNumberStatus = OrderedPhoneNumberStatus'
  { OrderedPhoneNumberStatus -> Text
fromOrderedPhoneNumberStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> OrderedPhoneNumberStatus -> ShowS
[OrderedPhoneNumberStatus] -> ShowS
OrderedPhoneNumberStatus -> String
(Int -> OrderedPhoneNumberStatus -> ShowS)
-> (OrderedPhoneNumberStatus -> String)
-> ([OrderedPhoneNumberStatus] -> ShowS)
-> Show OrderedPhoneNumberStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OrderedPhoneNumberStatus] -> ShowS
$cshowList :: [OrderedPhoneNumberStatus] -> ShowS
show :: OrderedPhoneNumberStatus -> String
$cshow :: OrderedPhoneNumberStatus -> String
showsPrec :: Int -> OrderedPhoneNumberStatus -> ShowS
$cshowsPrec :: Int -> OrderedPhoneNumberStatus -> ShowS
Prelude.Show,
      ReadPrec [OrderedPhoneNumberStatus]
ReadPrec OrderedPhoneNumberStatus
Int -> ReadS OrderedPhoneNumberStatus
ReadS [OrderedPhoneNumberStatus]
(Int -> ReadS OrderedPhoneNumberStatus)
-> ReadS [OrderedPhoneNumberStatus]
-> ReadPrec OrderedPhoneNumberStatus
-> ReadPrec [OrderedPhoneNumberStatus]
-> Read OrderedPhoneNumberStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OrderedPhoneNumberStatus]
$creadListPrec :: ReadPrec [OrderedPhoneNumberStatus]
readPrec :: ReadPrec OrderedPhoneNumberStatus
$creadPrec :: ReadPrec OrderedPhoneNumberStatus
readList :: ReadS [OrderedPhoneNumberStatus]
$creadList :: ReadS [OrderedPhoneNumberStatus]
readsPrec :: Int -> ReadS OrderedPhoneNumberStatus
$creadsPrec :: Int -> ReadS OrderedPhoneNumberStatus
Prelude.Read,
      OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Bool
(OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Bool)
-> (OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Bool)
-> Eq OrderedPhoneNumberStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Bool
$c/= :: OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Bool
== :: OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Bool
$c== :: OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Bool
Prelude.Eq,
      Eq OrderedPhoneNumberStatus
Eq OrderedPhoneNumberStatus
-> (OrderedPhoneNumberStatus
    -> OrderedPhoneNumberStatus -> Ordering)
-> (OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Bool)
-> (OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Bool)
-> (OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Bool)
-> (OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Bool)
-> (OrderedPhoneNumberStatus
    -> OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus)
-> (OrderedPhoneNumberStatus
    -> OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus)
-> Ord OrderedPhoneNumberStatus
OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Bool
OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Ordering
OrderedPhoneNumberStatus
-> OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus
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 :: OrderedPhoneNumberStatus
-> OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus
$cmin :: OrderedPhoneNumberStatus
-> OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus
max :: OrderedPhoneNumberStatus
-> OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus
$cmax :: OrderedPhoneNumberStatus
-> OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus
>= :: OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Bool
$c>= :: OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Bool
> :: OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Bool
$c> :: OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Bool
<= :: OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Bool
$c<= :: OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Bool
< :: OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Bool
$c< :: OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Bool
compare :: OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Ordering
$ccompare :: OrderedPhoneNumberStatus -> OrderedPhoneNumberStatus -> Ordering
$cp1Ord :: Eq OrderedPhoneNumberStatus
Prelude.Ord,
      (forall x.
 OrderedPhoneNumberStatus -> Rep OrderedPhoneNumberStatus x)
-> (forall x.
    Rep OrderedPhoneNumberStatus x -> OrderedPhoneNumberStatus)
-> Generic OrderedPhoneNumberStatus
forall x.
Rep OrderedPhoneNumberStatus x -> OrderedPhoneNumberStatus
forall x.
OrderedPhoneNumberStatus -> Rep OrderedPhoneNumberStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep OrderedPhoneNumberStatus x -> OrderedPhoneNumberStatus
$cfrom :: forall x.
OrderedPhoneNumberStatus -> Rep OrderedPhoneNumberStatus x
Prelude.Generic
    )
  deriving newtype
    ( Int -> OrderedPhoneNumberStatus -> Int
OrderedPhoneNumberStatus -> Int
(Int -> OrderedPhoneNumberStatus -> Int)
-> (OrderedPhoneNumberStatus -> Int)
-> Hashable OrderedPhoneNumberStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: OrderedPhoneNumberStatus -> Int
$chash :: OrderedPhoneNumberStatus -> Int
hashWithSalt :: Int -> OrderedPhoneNumberStatus -> Int
$chashWithSalt :: Int -> OrderedPhoneNumberStatus -> Int
Prelude.Hashable,
      OrderedPhoneNumberStatus -> ()
(OrderedPhoneNumberStatus -> ()) -> NFData OrderedPhoneNumberStatus
forall a. (a -> ()) -> NFData a
rnf :: OrderedPhoneNumberStatus -> ()
$crnf :: OrderedPhoneNumberStatus -> ()
Prelude.NFData,
      Text -> Either String OrderedPhoneNumberStatus
(Text -> Either String OrderedPhoneNumberStatus)
-> FromText OrderedPhoneNumberStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String OrderedPhoneNumberStatus
$cfromText :: Text -> Either String OrderedPhoneNumberStatus
Core.FromText,
      OrderedPhoneNumberStatus -> Text
(OrderedPhoneNumberStatus -> Text)
-> ToText OrderedPhoneNumberStatus
forall a. (a -> Text) -> ToText a
toText :: OrderedPhoneNumberStatus -> Text
$ctoText :: OrderedPhoneNumberStatus -> Text
Core.ToText,
      OrderedPhoneNumberStatus -> ByteString
(OrderedPhoneNumberStatus -> ByteString)
-> ToByteString OrderedPhoneNumberStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: OrderedPhoneNumberStatus -> ByteString
$ctoBS :: OrderedPhoneNumberStatus -> ByteString
Core.ToByteString,
      OrderedPhoneNumberStatus -> ByteStringBuilder
(OrderedPhoneNumberStatus -> ByteStringBuilder)
-> ToLog OrderedPhoneNumberStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: OrderedPhoneNumberStatus -> ByteStringBuilder
$cbuild :: OrderedPhoneNumberStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> OrderedPhoneNumberStatus -> [Header]
(HeaderName -> OrderedPhoneNumberStatus -> [Header])
-> ToHeader OrderedPhoneNumberStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> OrderedPhoneNumberStatus -> [Header]
$ctoHeader :: HeaderName -> OrderedPhoneNumberStatus -> [Header]
Core.ToHeader,
      OrderedPhoneNumberStatus -> QueryString
(OrderedPhoneNumberStatus -> QueryString)
-> ToQuery OrderedPhoneNumberStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: OrderedPhoneNumberStatus -> QueryString
$ctoQuery :: OrderedPhoneNumberStatus -> QueryString
Core.ToQuery,
      Value -> Parser [OrderedPhoneNumberStatus]
Value -> Parser OrderedPhoneNumberStatus
(Value -> Parser OrderedPhoneNumberStatus)
-> (Value -> Parser [OrderedPhoneNumberStatus])
-> FromJSON OrderedPhoneNumberStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [OrderedPhoneNumberStatus]
$cparseJSONList :: Value -> Parser [OrderedPhoneNumberStatus]
parseJSON :: Value -> Parser OrderedPhoneNumberStatus
$cparseJSON :: Value -> Parser OrderedPhoneNumberStatus
Core.FromJSON,
      FromJSONKeyFunction [OrderedPhoneNumberStatus]
FromJSONKeyFunction OrderedPhoneNumberStatus
FromJSONKeyFunction OrderedPhoneNumberStatus
-> FromJSONKeyFunction [OrderedPhoneNumberStatus]
-> FromJSONKey OrderedPhoneNumberStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [OrderedPhoneNumberStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [OrderedPhoneNumberStatus]
fromJSONKey :: FromJSONKeyFunction OrderedPhoneNumberStatus
$cfromJSONKey :: FromJSONKeyFunction OrderedPhoneNumberStatus
Core.FromJSONKey,
      [OrderedPhoneNumberStatus] -> Encoding
[OrderedPhoneNumberStatus] -> Value
OrderedPhoneNumberStatus -> Encoding
OrderedPhoneNumberStatus -> Value
(OrderedPhoneNumberStatus -> Value)
-> (OrderedPhoneNumberStatus -> Encoding)
-> ([OrderedPhoneNumberStatus] -> Value)
-> ([OrderedPhoneNumberStatus] -> Encoding)
-> ToJSON OrderedPhoneNumberStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [OrderedPhoneNumberStatus] -> Encoding
$ctoEncodingList :: [OrderedPhoneNumberStatus] -> Encoding
toJSONList :: [OrderedPhoneNumberStatus] -> Value
$ctoJSONList :: [OrderedPhoneNumberStatus] -> Value
toEncoding :: OrderedPhoneNumberStatus -> Encoding
$ctoEncoding :: OrderedPhoneNumberStatus -> Encoding
toJSON :: OrderedPhoneNumberStatus -> Value
$ctoJSON :: OrderedPhoneNumberStatus -> Value
Core.ToJSON,
      ToJSONKeyFunction [OrderedPhoneNumberStatus]
ToJSONKeyFunction OrderedPhoneNumberStatus
ToJSONKeyFunction OrderedPhoneNumberStatus
-> ToJSONKeyFunction [OrderedPhoneNumberStatus]
-> ToJSONKey OrderedPhoneNumberStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [OrderedPhoneNumberStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [OrderedPhoneNumberStatus]
toJSONKey :: ToJSONKeyFunction OrderedPhoneNumberStatus
$ctoJSONKey :: ToJSONKeyFunction OrderedPhoneNumberStatus
Core.ToJSONKey,
      [Node] -> Either String OrderedPhoneNumberStatus
([Node] -> Either String OrderedPhoneNumberStatus)
-> FromXML OrderedPhoneNumberStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String OrderedPhoneNumberStatus
$cparseXML :: [Node] -> Either String OrderedPhoneNumberStatus
Core.FromXML,
      OrderedPhoneNumberStatus -> XML
(OrderedPhoneNumberStatus -> XML) -> ToXML OrderedPhoneNumberStatus
forall a. (a -> XML) -> ToXML a
toXML :: OrderedPhoneNumberStatus -> XML
$ctoXML :: OrderedPhoneNumberStatus -> XML
Core.ToXML
    )

pattern OrderedPhoneNumberStatus_Acquired :: OrderedPhoneNumberStatus
pattern $bOrderedPhoneNumberStatus_Acquired :: OrderedPhoneNumberStatus
$mOrderedPhoneNumberStatus_Acquired :: forall r.
OrderedPhoneNumberStatus -> (Void# -> r) -> (Void# -> r) -> r
OrderedPhoneNumberStatus_Acquired = OrderedPhoneNumberStatus' "Acquired"

pattern OrderedPhoneNumberStatus_Failed :: OrderedPhoneNumberStatus
pattern $bOrderedPhoneNumberStatus_Failed :: OrderedPhoneNumberStatus
$mOrderedPhoneNumberStatus_Failed :: forall r.
OrderedPhoneNumberStatus -> (Void# -> r) -> (Void# -> r) -> r
OrderedPhoneNumberStatus_Failed = OrderedPhoneNumberStatus' "Failed"

pattern OrderedPhoneNumberStatus_Processing :: OrderedPhoneNumberStatus
pattern $bOrderedPhoneNumberStatus_Processing :: OrderedPhoneNumberStatus
$mOrderedPhoneNumberStatus_Processing :: forall r.
OrderedPhoneNumberStatus -> (Void# -> r) -> (Void# -> r) -> r
OrderedPhoneNumberStatus_Processing = OrderedPhoneNumberStatus' "Processing"

{-# COMPLETE
  OrderedPhoneNumberStatus_Acquired,
  OrderedPhoneNumberStatus_Failed,
  OrderedPhoneNumberStatus_Processing,
  OrderedPhoneNumberStatus'
  #-}