{-# 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.CognitoIdentityProvider.Types.DeliveryMediumType
-- 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.CognitoIdentityProvider.Types.DeliveryMediumType
  ( DeliveryMediumType
      ( ..,
        DeliveryMediumType_EMAIL,
        DeliveryMediumType_SMS
      ),
  )
where

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

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

pattern DeliveryMediumType_EMAIL :: DeliveryMediumType
pattern $bDeliveryMediumType_EMAIL :: DeliveryMediumType
$mDeliveryMediumType_EMAIL :: forall {r}. DeliveryMediumType -> ((# #) -> r) -> ((# #) -> r) -> r
DeliveryMediumType_EMAIL = DeliveryMediumType' "EMAIL"

pattern DeliveryMediumType_SMS :: DeliveryMediumType
pattern $bDeliveryMediumType_SMS :: DeliveryMediumType
$mDeliveryMediumType_SMS :: forall {r}. DeliveryMediumType -> ((# #) -> r) -> ((# #) -> r) -> r
DeliveryMediumType_SMS = DeliveryMediumType' "SMS"

{-# COMPLETE
  DeliveryMediumType_EMAIL,
  DeliveryMediumType_SMS,
  DeliveryMediumType'
  #-}