{-# 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.SESV2.Types.RecommendationType
-- 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.SESV2.Types.RecommendationType
  ( RecommendationType
      ( ..,
        RecommendationType_DKIM,
        RecommendationType_DMARC,
        RecommendationType_SPF
      ),
  )
where

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

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

pattern RecommendationType_DKIM :: RecommendationType
pattern $bRecommendationType_DKIM :: RecommendationType
$mRecommendationType_DKIM :: forall {r}. RecommendationType -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationType_DKIM = RecommendationType' "DKIM"

pattern RecommendationType_DMARC :: RecommendationType
pattern $bRecommendationType_DMARC :: RecommendationType
$mRecommendationType_DMARC :: forall {r}. RecommendationType -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationType_DMARC = RecommendationType' "DMARC"

pattern RecommendationType_SPF :: RecommendationType
pattern $bRecommendationType_SPF :: RecommendationType
$mRecommendationType_SPF :: forall {r}. RecommendationType -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationType_SPF = RecommendationType' "SPF"

{-# COMPLETE
  RecommendationType_DKIM,
  RecommendationType_DMARC,
  RecommendationType_SPF,
  RecommendationType'
  #-}