{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.ChimeSDKMessaging.Types.PushNotificationType
( PushNotificationType
( ..,
PushNotificationType_DEFAULT,
PushNotificationType_VOIP
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype PushNotificationType = PushNotificationType'
{ PushNotificationType -> Text
fromPushNotificationType ::
Data.Text
}
deriving stock
( Int -> PushNotificationType -> ShowS
[PushNotificationType] -> ShowS
PushNotificationType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PushNotificationType] -> ShowS
$cshowList :: [PushNotificationType] -> ShowS
show :: PushNotificationType -> String
$cshow :: PushNotificationType -> String
showsPrec :: Int -> PushNotificationType -> ShowS
$cshowsPrec :: Int -> PushNotificationType -> ShowS
Prelude.Show,
ReadPrec [PushNotificationType]
ReadPrec PushNotificationType
Int -> ReadS PushNotificationType
ReadS [PushNotificationType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PushNotificationType]
$creadListPrec :: ReadPrec [PushNotificationType]
readPrec :: ReadPrec PushNotificationType
$creadPrec :: ReadPrec PushNotificationType
readList :: ReadS [PushNotificationType]
$creadList :: ReadS [PushNotificationType]
readsPrec :: Int -> ReadS PushNotificationType
$creadsPrec :: Int -> ReadS PushNotificationType
Prelude.Read,
PushNotificationType -> PushNotificationType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PushNotificationType -> PushNotificationType -> Bool
$c/= :: PushNotificationType -> PushNotificationType -> Bool
== :: PushNotificationType -> PushNotificationType -> Bool
$c== :: PushNotificationType -> PushNotificationType -> Bool
Prelude.Eq,
Eq PushNotificationType
PushNotificationType -> PushNotificationType -> Bool
PushNotificationType -> PushNotificationType -> Ordering
PushNotificationType
-> PushNotificationType -> PushNotificationType
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 :: PushNotificationType
-> PushNotificationType -> PushNotificationType
$cmin :: PushNotificationType
-> PushNotificationType -> PushNotificationType
max :: PushNotificationType
-> PushNotificationType -> PushNotificationType
$cmax :: PushNotificationType
-> PushNotificationType -> PushNotificationType
>= :: PushNotificationType -> PushNotificationType -> Bool
$c>= :: PushNotificationType -> PushNotificationType -> Bool
> :: PushNotificationType -> PushNotificationType -> Bool
$c> :: PushNotificationType -> PushNotificationType -> Bool
<= :: PushNotificationType -> PushNotificationType -> Bool
$c<= :: PushNotificationType -> PushNotificationType -> Bool
< :: PushNotificationType -> PushNotificationType -> Bool
$c< :: PushNotificationType -> PushNotificationType -> Bool
compare :: PushNotificationType -> PushNotificationType -> Ordering
$ccompare :: PushNotificationType -> PushNotificationType -> Ordering
Prelude.Ord,
forall x. Rep PushNotificationType x -> PushNotificationType
forall x. PushNotificationType -> Rep PushNotificationType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PushNotificationType x -> PushNotificationType
$cfrom :: forall x. PushNotificationType -> Rep PushNotificationType x
Prelude.Generic
)
deriving newtype
( Eq PushNotificationType
Int -> PushNotificationType -> Int
PushNotificationType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: PushNotificationType -> Int
$chash :: PushNotificationType -> Int
hashWithSalt :: Int -> PushNotificationType -> Int
$chashWithSalt :: Int -> PushNotificationType -> Int
Prelude.Hashable,
PushNotificationType -> ()
forall a. (a -> ()) -> NFData a
rnf :: PushNotificationType -> ()
$crnf :: PushNotificationType -> ()
Prelude.NFData,
Text -> Either String PushNotificationType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PushNotificationType
$cfromText :: Text -> Either String PushNotificationType
Data.FromText,
PushNotificationType -> Text
forall a. (a -> Text) -> ToText a
toText :: PushNotificationType -> Text
$ctoText :: PushNotificationType -> Text
Data.ToText,
PushNotificationType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: PushNotificationType -> ByteString
$ctoBS :: PushNotificationType -> ByteString
Data.ToByteString,
PushNotificationType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PushNotificationType -> ByteStringBuilder
$cbuild :: PushNotificationType -> ByteStringBuilder
Data.ToLog,
HeaderName -> PushNotificationType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PushNotificationType -> [Header]
$ctoHeader :: HeaderName -> PushNotificationType -> [Header]
Data.ToHeader,
PushNotificationType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PushNotificationType -> QueryString
$ctoQuery :: PushNotificationType -> QueryString
Data.ToQuery,
Value -> Parser [PushNotificationType]
Value -> Parser PushNotificationType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [PushNotificationType]
$cparseJSONList :: Value -> Parser [PushNotificationType]
parseJSON :: Value -> Parser PushNotificationType
$cparseJSON :: Value -> Parser PushNotificationType
Data.FromJSON,
FromJSONKeyFunction [PushNotificationType]
FromJSONKeyFunction PushNotificationType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PushNotificationType]
$cfromJSONKeyList :: FromJSONKeyFunction [PushNotificationType]
fromJSONKey :: FromJSONKeyFunction PushNotificationType
$cfromJSONKey :: FromJSONKeyFunction PushNotificationType
Data.FromJSONKey,
[PushNotificationType] -> Encoding
[PushNotificationType] -> Value
PushNotificationType -> Encoding
PushNotificationType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [PushNotificationType] -> Encoding
$ctoEncodingList :: [PushNotificationType] -> Encoding
toJSONList :: [PushNotificationType] -> Value
$ctoJSONList :: [PushNotificationType] -> Value
toEncoding :: PushNotificationType -> Encoding
$ctoEncoding :: PushNotificationType -> Encoding
toJSON :: PushNotificationType -> Value
$ctoJSON :: PushNotificationType -> Value
Data.ToJSON,
ToJSONKeyFunction [PushNotificationType]
ToJSONKeyFunction PushNotificationType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PushNotificationType]
$ctoJSONKeyList :: ToJSONKeyFunction [PushNotificationType]
toJSONKey :: ToJSONKeyFunction PushNotificationType
$ctoJSONKey :: ToJSONKeyFunction PushNotificationType
Data.ToJSONKey,
[Node] -> Either String PushNotificationType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PushNotificationType
$cparseXML :: [Node] -> Either String PushNotificationType
Data.FromXML,
PushNotificationType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: PushNotificationType -> XML
$ctoXML :: PushNotificationType -> XML
Data.ToXML
)
pattern PushNotificationType_DEFAULT :: PushNotificationType
pattern $bPushNotificationType_DEFAULT :: PushNotificationType
$mPushNotificationType_DEFAULT :: forall {r}.
PushNotificationType -> ((# #) -> r) -> ((# #) -> r) -> r
PushNotificationType_DEFAULT = PushNotificationType' "DEFAULT"
pattern PushNotificationType_VOIP :: PushNotificationType
pattern $bPushNotificationType_VOIP :: PushNotificationType
$mPushNotificationType_VOIP :: forall {r}.
PushNotificationType -> ((# #) -> r) -> ((# #) -> r) -> r
PushNotificationType_VOIP = PushNotificationType' "VOIP"
{-# COMPLETE
PushNotificationType_DEFAULT,
PushNotificationType_VOIP,
PushNotificationType'
#-}