{-# 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.SES.Types.SNSActionEncoding
-- 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.SES.Types.SNSActionEncoding
  ( SNSActionEncoding
      ( ..,
        SNSActionEncoding_Base64,
        SNSActionEncoding_UTF_8
      ),
  )
where

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

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

pattern SNSActionEncoding_Base64 :: SNSActionEncoding
pattern $bSNSActionEncoding_Base64 :: SNSActionEncoding
$mSNSActionEncoding_Base64 :: forall r. SNSActionEncoding -> (Void# -> r) -> (Void# -> r) -> r
SNSActionEncoding_Base64 = SNSActionEncoding' "Base64"

pattern SNSActionEncoding_UTF_8 :: SNSActionEncoding
pattern $bSNSActionEncoding_UTF_8 :: SNSActionEncoding
$mSNSActionEncoding_UTF_8 :: forall r. SNSActionEncoding -> (Void# -> r) -> (Void# -> r) -> r
SNSActionEncoding_UTF_8 = SNSActionEncoding' "UTF-8"

{-# COMPLETE
  SNSActionEncoding_Base64,
  SNSActionEncoding_UTF_8,
  SNSActionEncoding'
  #-}