{-# 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.PinpointSmsVoiceV2.Types.RequestableNumberType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.PinpointSmsVoiceV2.Types.RequestableNumberType
  ( RequestableNumberType
      ( ..,
        RequestableNumberType_LONG_CODE,
        RequestableNumberType_TEN_DLC,
        RequestableNumberType_TOLL_FREE
      ),
  )
where

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

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

pattern RequestableNumberType_LONG_CODE :: RequestableNumberType
pattern $bRequestableNumberType_LONG_CODE :: RequestableNumberType
$mRequestableNumberType_LONG_CODE :: forall {r}.
RequestableNumberType -> ((# #) -> r) -> ((# #) -> r) -> r
RequestableNumberType_LONG_CODE = RequestableNumberType' "LONG_CODE"

pattern RequestableNumberType_TEN_DLC :: RequestableNumberType
pattern $bRequestableNumberType_TEN_DLC :: RequestableNumberType
$mRequestableNumberType_TEN_DLC :: forall {r}.
RequestableNumberType -> ((# #) -> r) -> ((# #) -> r) -> r
RequestableNumberType_TEN_DLC = RequestableNumberType' "TEN_DLC"

pattern RequestableNumberType_TOLL_FREE :: RequestableNumberType
pattern $bRequestableNumberType_TOLL_FREE :: RequestableNumberType
$mRequestableNumberType_TOLL_FREE :: forall {r}.
RequestableNumberType -> ((# #) -> r) -> ((# #) -> r) -> r
RequestableNumberType_TOLL_FREE = RequestableNumberType' "TOLL_FREE"

{-# COMPLETE
  RequestableNumberType_LONG_CODE,
  RequestableNumberType_TEN_DLC,
  RequestableNumberType_TOLL_FREE,
  RequestableNumberType'
  #-}