{-# 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.Pinpoint.Types.TemplateType
-- 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.Pinpoint.Types.TemplateType
  ( TemplateType
      ( ..,
        TemplateType_EMAIL,
        TemplateType_INAPP,
        TemplateType_PUSH,
        TemplateType_SMS,
        TemplateType_VOICE
      ),
  )
where

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

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

pattern TemplateType_EMAIL :: TemplateType
pattern $bTemplateType_EMAIL :: TemplateType
$mTemplateType_EMAIL :: forall {r}. TemplateType -> ((# #) -> r) -> ((# #) -> r) -> r
TemplateType_EMAIL = TemplateType' "EMAIL"

pattern TemplateType_INAPP :: TemplateType
pattern $bTemplateType_INAPP :: TemplateType
$mTemplateType_INAPP :: forall {r}. TemplateType -> ((# #) -> r) -> ((# #) -> r) -> r
TemplateType_INAPP = TemplateType' "INAPP"

pattern TemplateType_PUSH :: TemplateType
pattern $bTemplateType_PUSH :: TemplateType
$mTemplateType_PUSH :: forall {r}. TemplateType -> ((# #) -> r) -> ((# #) -> r) -> r
TemplateType_PUSH = TemplateType' "PUSH"

pattern TemplateType_SMS :: TemplateType
pattern $bTemplateType_SMS :: TemplateType
$mTemplateType_SMS :: forall {r}. TemplateType -> ((# #) -> r) -> ((# #) -> r) -> r
TemplateType_SMS = TemplateType' "SMS"

pattern TemplateType_VOICE :: TemplateType
pattern $bTemplateType_VOICE :: TemplateType
$mTemplateType_VOICE :: forall {r}. TemplateType -> ((# #) -> r) -> ((# #) -> r) -> r
TemplateType_VOICE = TemplateType' "VOICE"

{-# COMPLETE
  TemplateType_EMAIL,
  TemplateType_INAPP,
  TemplateType_PUSH,
  TemplateType_SMS,
  TemplateType_VOICE,
  TemplateType'
  #-}