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

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

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

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

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

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