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

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

newtype TemplateType = TemplateType'
  { TemplateType -> Text
fromTemplateType ::
      Core.Text
  }
  deriving stock
    ( Int -> TemplateType -> ShowS
[TemplateType] -> ShowS
TemplateType -> String
(Int -> TemplateType -> ShowS)
-> (TemplateType -> String)
-> ([TemplateType] -> ShowS)
-> Show TemplateType
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]
(Int -> ReadS TemplateType)
-> ReadS [TemplateType]
-> ReadPrec TemplateType
-> ReadPrec [TemplateType]
-> Read 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
(TemplateType -> TemplateType -> Bool)
-> (TemplateType -> TemplateType -> Bool) -> Eq TemplateType
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
Eq TemplateType
-> (TemplateType -> TemplateType -> Ordering)
-> (TemplateType -> TemplateType -> Bool)
-> (TemplateType -> TemplateType -> Bool)
-> (TemplateType -> TemplateType -> Bool)
-> (TemplateType -> TemplateType -> Bool)
-> (TemplateType -> TemplateType -> TemplateType)
-> (TemplateType -> TemplateType -> TemplateType)
-> Ord 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
$cp1Ord :: Eq TemplateType
Prelude.Ord,
      (forall x. TemplateType -> Rep TemplateType x)
-> (forall x. Rep TemplateType x -> TemplateType)
-> Generic TemplateType
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
    ( Int -> TemplateType -> Int
TemplateType -> Int
(Int -> TemplateType -> Int)
-> (TemplateType -> Int) -> Hashable TemplateType
forall 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 -> ()
(TemplateType -> ()) -> NFData TemplateType
forall a. (a -> ()) -> NFData a
rnf :: TemplateType -> ()
$crnf :: TemplateType -> ()
Prelude.NFData,
      Text -> Either String TemplateType
(Text -> Either String TemplateType) -> FromText TemplateType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TemplateType
$cfromText :: Text -> Either String TemplateType
Core.FromText,
      TemplateType -> Text
(TemplateType -> Text) -> ToText TemplateType
forall a. (a -> Text) -> ToText a
toText :: TemplateType -> Text
$ctoText :: TemplateType -> Text
Core.ToText,
      TemplateType -> ByteString
(TemplateType -> ByteString) -> ToByteString TemplateType
forall a. (a -> ByteString) -> ToByteString a
toBS :: TemplateType -> ByteString
$ctoBS :: TemplateType -> ByteString
Core.ToByteString,
      TemplateType -> ByteStringBuilder
(TemplateType -> ByteStringBuilder) -> ToLog TemplateType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TemplateType -> ByteStringBuilder
$cbuild :: TemplateType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> TemplateType -> [Header]
(HeaderName -> TemplateType -> [Header]) -> ToHeader TemplateType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TemplateType -> [Header]
$ctoHeader :: HeaderName -> TemplateType -> [Header]
Core.ToHeader,
      TemplateType -> QueryString
(TemplateType -> QueryString) -> ToQuery TemplateType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TemplateType -> QueryString
$ctoQuery :: TemplateType -> QueryString
Core.ToQuery,
      Value -> Parser [TemplateType]
Value -> Parser TemplateType
(Value -> Parser TemplateType)
-> (Value -> Parser [TemplateType]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [TemplateType]
FromJSONKeyFunction TemplateType
FromJSONKeyFunction TemplateType
-> FromJSONKeyFunction [TemplateType] -> FromJSONKey TemplateType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TemplateType]
$cfromJSONKeyList :: FromJSONKeyFunction [TemplateType]
fromJSONKey :: FromJSONKeyFunction TemplateType
$cfromJSONKey :: FromJSONKeyFunction TemplateType
Core.FromJSONKey,
      [TemplateType] -> Encoding
[TemplateType] -> Value
TemplateType -> Encoding
TemplateType -> Value
(TemplateType -> Value)
-> (TemplateType -> Encoding)
-> ([TemplateType] -> Value)
-> ([TemplateType] -> Encoding)
-> ToJSON TemplateType
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
Core.ToJSON,
      ToJSONKeyFunction [TemplateType]
ToJSONKeyFunction TemplateType
ToJSONKeyFunction TemplateType
-> ToJSONKeyFunction [TemplateType] -> ToJSONKey TemplateType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TemplateType]
$ctoJSONKeyList :: ToJSONKeyFunction [TemplateType]
toJSONKey :: ToJSONKeyFunction TemplateType
$ctoJSONKey :: ToJSONKeyFunction TemplateType
Core.ToJSONKey,
      [Node] -> Either String TemplateType
([Node] -> Either String TemplateType) -> FromXML TemplateType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TemplateType
$cparseXML :: [Node] -> Either String TemplateType
Core.FromXML,
      TemplateType -> XML
(TemplateType -> XML) -> ToXML TemplateType
forall a. (a -> XML) -> ToXML a
toXML :: TemplateType -> XML
$ctoXML :: TemplateType -> XML
Core.ToXML
    )

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

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

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

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

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

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