{-# 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.MessageActionType
-- 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.MessageActionType
  ( MessageActionType
      ( ..,
        MessageActionType_RESEND,
        MessageActionType_SUPPRESS
      ),
  )
where

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

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

pattern MessageActionType_RESEND :: MessageActionType
pattern $bMessageActionType_RESEND :: MessageActionType
$mMessageActionType_RESEND :: forall r. MessageActionType -> (Void# -> r) -> (Void# -> r) -> r
MessageActionType_RESEND = MessageActionType' "RESEND"

pattern MessageActionType_SUPPRESS :: MessageActionType
pattern $bMessageActionType_SUPPRESS :: MessageActionType
$mMessageActionType_SUPPRESS :: forall r. MessageActionType -> (Void# -> r) -> (Void# -> r) -> r
MessageActionType_SUPPRESS = MessageActionType' "SUPPRESS"

{-# COMPLETE
  MessageActionType_RESEND,
  MessageActionType_SUPPRESS,
  MessageActionType'
  #-}