{-# 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.NumberType
-- 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.NumberType
  ( NumberType
      ( ..,
        NumberType_LONG_CODE,
        NumberType_SHORT_CODE,
        NumberType_TEN_DLC,
        NumberType_TOLL_FREE
      ),
  )
where

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

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

pattern NumberType_LONG_CODE :: NumberType
pattern $bNumberType_LONG_CODE :: NumberType
$mNumberType_LONG_CODE :: forall {r}. NumberType -> ((# #) -> r) -> ((# #) -> r) -> r
NumberType_LONG_CODE = NumberType' "LONG_CODE"

pattern NumberType_SHORT_CODE :: NumberType
pattern $bNumberType_SHORT_CODE :: NumberType
$mNumberType_SHORT_CODE :: forall {r}. NumberType -> ((# #) -> r) -> ((# #) -> r) -> r
NumberType_SHORT_CODE = NumberType' "SHORT_CODE"

pattern NumberType_TEN_DLC :: NumberType
pattern $bNumberType_TEN_DLC :: NumberType
$mNumberType_TEN_DLC :: forall {r}. NumberType -> ((# #) -> r) -> ((# #) -> r) -> r
NumberType_TEN_DLC = NumberType' "TEN_DLC"

pattern NumberType_TOLL_FREE :: NumberType
pattern $bNumberType_TOLL_FREE :: NumberType
$mNumberType_TOLL_FREE :: forall {r}. NumberType -> ((# #) -> r) -> ((# #) -> r) -> r
NumberType_TOLL_FREE = NumberType' "TOLL_FREE"

{-# COMPLETE
  NumberType_LONG_CODE,
  NumberType_SHORT_CODE,
  NumberType_TEN_DLC,
  NumberType_TOLL_FREE,
  NumberType'
  #-}