{-# 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.SNS.Types.NumberCapability
-- 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.SNS.Types.NumberCapability
  ( NumberCapability
      ( ..,
        NumberCapability_MMS,
        NumberCapability_SMS,
        NumberCapability_VOICE
      ),
  )
where

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

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

pattern NumberCapability_MMS :: NumberCapability
pattern $bNumberCapability_MMS :: NumberCapability
$mNumberCapability_MMS :: forall r. NumberCapability -> (Void# -> r) -> (Void# -> r) -> r
NumberCapability_MMS = NumberCapability' "MMS"

pattern NumberCapability_SMS :: NumberCapability
pattern $bNumberCapability_SMS :: NumberCapability
$mNumberCapability_SMS :: forall r. NumberCapability -> (Void# -> r) -> (Void# -> r) -> r
NumberCapability_SMS = NumberCapability' "SMS"

pattern NumberCapability_VOICE :: NumberCapability
pattern $bNumberCapability_VOICE :: NumberCapability
$mNumberCapability_VOICE :: forall r. NumberCapability -> (Void# -> r) -> (Void# -> r) -> r
NumberCapability_VOICE = NumberCapability' "VOICE"

{-# COMPLETE
  NumberCapability_MMS,
  NumberCapability_SMS,
  NumberCapability_VOICE,
  NumberCapability'
  #-}