{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.SESV2.Types.SubscriptionStatus
( SubscriptionStatus
( ..,
SubscriptionStatus_OPT_IN,
SubscriptionStatus_OPT_OUT
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype SubscriptionStatus = SubscriptionStatus'
{ SubscriptionStatus -> Text
fromSubscriptionStatus ::
Core.Text
}
deriving stock
( Int -> SubscriptionStatus -> ShowS
[SubscriptionStatus] -> ShowS
SubscriptionStatus -> String
(Int -> SubscriptionStatus -> ShowS)
-> (SubscriptionStatus -> String)
-> ([SubscriptionStatus] -> ShowS)
-> Show SubscriptionStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SubscriptionStatus] -> ShowS
$cshowList :: [SubscriptionStatus] -> ShowS
show :: SubscriptionStatus -> String
$cshow :: SubscriptionStatus -> String
showsPrec :: Int -> SubscriptionStatus -> ShowS
$cshowsPrec :: Int -> SubscriptionStatus -> ShowS
Prelude.Show,
ReadPrec [SubscriptionStatus]
ReadPrec SubscriptionStatus
Int -> ReadS SubscriptionStatus
ReadS [SubscriptionStatus]
(Int -> ReadS SubscriptionStatus)
-> ReadS [SubscriptionStatus]
-> ReadPrec SubscriptionStatus
-> ReadPrec [SubscriptionStatus]
-> Read SubscriptionStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SubscriptionStatus]
$creadListPrec :: ReadPrec [SubscriptionStatus]
readPrec :: ReadPrec SubscriptionStatus
$creadPrec :: ReadPrec SubscriptionStatus
readList :: ReadS [SubscriptionStatus]
$creadList :: ReadS [SubscriptionStatus]
readsPrec :: Int -> ReadS SubscriptionStatus
$creadsPrec :: Int -> ReadS SubscriptionStatus
Prelude.Read,
SubscriptionStatus -> SubscriptionStatus -> Bool
(SubscriptionStatus -> SubscriptionStatus -> Bool)
-> (SubscriptionStatus -> SubscriptionStatus -> Bool)
-> Eq SubscriptionStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SubscriptionStatus -> SubscriptionStatus -> Bool
$c/= :: SubscriptionStatus -> SubscriptionStatus -> Bool
== :: SubscriptionStatus -> SubscriptionStatus -> Bool
$c== :: SubscriptionStatus -> SubscriptionStatus -> Bool
Prelude.Eq,
Eq SubscriptionStatus
Eq SubscriptionStatus
-> (SubscriptionStatus -> SubscriptionStatus -> Ordering)
-> (SubscriptionStatus -> SubscriptionStatus -> Bool)
-> (SubscriptionStatus -> SubscriptionStatus -> Bool)
-> (SubscriptionStatus -> SubscriptionStatus -> Bool)
-> (SubscriptionStatus -> SubscriptionStatus -> Bool)
-> (SubscriptionStatus -> SubscriptionStatus -> SubscriptionStatus)
-> (SubscriptionStatus -> SubscriptionStatus -> SubscriptionStatus)
-> Ord SubscriptionStatus
SubscriptionStatus -> SubscriptionStatus -> Bool
SubscriptionStatus -> SubscriptionStatus -> Ordering
SubscriptionStatus -> SubscriptionStatus -> SubscriptionStatus
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 :: SubscriptionStatus -> SubscriptionStatus -> SubscriptionStatus
$cmin :: SubscriptionStatus -> SubscriptionStatus -> SubscriptionStatus
max :: SubscriptionStatus -> SubscriptionStatus -> SubscriptionStatus
$cmax :: SubscriptionStatus -> SubscriptionStatus -> SubscriptionStatus
>= :: SubscriptionStatus -> SubscriptionStatus -> Bool
$c>= :: SubscriptionStatus -> SubscriptionStatus -> Bool
> :: SubscriptionStatus -> SubscriptionStatus -> Bool
$c> :: SubscriptionStatus -> SubscriptionStatus -> Bool
<= :: SubscriptionStatus -> SubscriptionStatus -> Bool
$c<= :: SubscriptionStatus -> SubscriptionStatus -> Bool
< :: SubscriptionStatus -> SubscriptionStatus -> Bool
$c< :: SubscriptionStatus -> SubscriptionStatus -> Bool
compare :: SubscriptionStatus -> SubscriptionStatus -> Ordering
$ccompare :: SubscriptionStatus -> SubscriptionStatus -> Ordering
$cp1Ord :: Eq SubscriptionStatus
Prelude.Ord,
(forall x. SubscriptionStatus -> Rep SubscriptionStatus x)
-> (forall x. Rep SubscriptionStatus x -> SubscriptionStatus)
-> Generic SubscriptionStatus
forall x. Rep SubscriptionStatus x -> SubscriptionStatus
forall x. SubscriptionStatus -> Rep SubscriptionStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SubscriptionStatus x -> SubscriptionStatus
$cfrom :: forall x. SubscriptionStatus -> Rep SubscriptionStatus x
Prelude.Generic
)
deriving newtype
( Int -> SubscriptionStatus -> Int
SubscriptionStatus -> Int
(Int -> SubscriptionStatus -> Int)
-> (SubscriptionStatus -> Int) -> Hashable SubscriptionStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SubscriptionStatus -> Int
$chash :: SubscriptionStatus -> Int
hashWithSalt :: Int -> SubscriptionStatus -> Int
$chashWithSalt :: Int -> SubscriptionStatus -> Int
Prelude.Hashable,
SubscriptionStatus -> ()
(SubscriptionStatus -> ()) -> NFData SubscriptionStatus
forall a. (a -> ()) -> NFData a
rnf :: SubscriptionStatus -> ()
$crnf :: SubscriptionStatus -> ()
Prelude.NFData,
Text -> Either String SubscriptionStatus
(Text -> Either String SubscriptionStatus)
-> FromText SubscriptionStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SubscriptionStatus
$cfromText :: Text -> Either String SubscriptionStatus
Core.FromText,
SubscriptionStatus -> Text
(SubscriptionStatus -> Text) -> ToText SubscriptionStatus
forall a. (a -> Text) -> ToText a
toText :: SubscriptionStatus -> Text
$ctoText :: SubscriptionStatus -> Text
Core.ToText,
SubscriptionStatus -> ByteString
(SubscriptionStatus -> ByteString)
-> ToByteString SubscriptionStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: SubscriptionStatus -> ByteString
$ctoBS :: SubscriptionStatus -> ByteString
Core.ToByteString,
SubscriptionStatus -> ByteStringBuilder
(SubscriptionStatus -> ByteStringBuilder)
-> ToLog SubscriptionStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SubscriptionStatus -> ByteStringBuilder
$cbuild :: SubscriptionStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> SubscriptionStatus -> [Header]
(HeaderName -> SubscriptionStatus -> [Header])
-> ToHeader SubscriptionStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SubscriptionStatus -> [Header]
$ctoHeader :: HeaderName -> SubscriptionStatus -> [Header]
Core.ToHeader,
SubscriptionStatus -> QueryString
(SubscriptionStatus -> QueryString) -> ToQuery SubscriptionStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SubscriptionStatus -> QueryString
$ctoQuery :: SubscriptionStatus -> QueryString
Core.ToQuery,
Value -> Parser [SubscriptionStatus]
Value -> Parser SubscriptionStatus
(Value -> Parser SubscriptionStatus)
-> (Value -> Parser [SubscriptionStatus])
-> FromJSON SubscriptionStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SubscriptionStatus]
$cparseJSONList :: Value -> Parser [SubscriptionStatus]
parseJSON :: Value -> Parser SubscriptionStatus
$cparseJSON :: Value -> Parser SubscriptionStatus
Core.FromJSON,
FromJSONKeyFunction [SubscriptionStatus]
FromJSONKeyFunction SubscriptionStatus
FromJSONKeyFunction SubscriptionStatus
-> FromJSONKeyFunction [SubscriptionStatus]
-> FromJSONKey SubscriptionStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SubscriptionStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [SubscriptionStatus]
fromJSONKey :: FromJSONKeyFunction SubscriptionStatus
$cfromJSONKey :: FromJSONKeyFunction SubscriptionStatus
Core.FromJSONKey,
[SubscriptionStatus] -> Encoding
[SubscriptionStatus] -> Value
SubscriptionStatus -> Encoding
SubscriptionStatus -> Value
(SubscriptionStatus -> Value)
-> (SubscriptionStatus -> Encoding)
-> ([SubscriptionStatus] -> Value)
-> ([SubscriptionStatus] -> Encoding)
-> ToJSON SubscriptionStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SubscriptionStatus] -> Encoding
$ctoEncodingList :: [SubscriptionStatus] -> Encoding
toJSONList :: [SubscriptionStatus] -> Value
$ctoJSONList :: [SubscriptionStatus] -> Value
toEncoding :: SubscriptionStatus -> Encoding
$ctoEncoding :: SubscriptionStatus -> Encoding
toJSON :: SubscriptionStatus -> Value
$ctoJSON :: SubscriptionStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [SubscriptionStatus]
ToJSONKeyFunction SubscriptionStatus
ToJSONKeyFunction SubscriptionStatus
-> ToJSONKeyFunction [SubscriptionStatus]
-> ToJSONKey SubscriptionStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SubscriptionStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [SubscriptionStatus]
toJSONKey :: ToJSONKeyFunction SubscriptionStatus
$ctoJSONKey :: ToJSONKeyFunction SubscriptionStatus
Core.ToJSONKey,
[Node] -> Either String SubscriptionStatus
([Node] -> Either String SubscriptionStatus)
-> FromXML SubscriptionStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SubscriptionStatus
$cparseXML :: [Node] -> Either String SubscriptionStatus
Core.FromXML,
SubscriptionStatus -> XML
(SubscriptionStatus -> XML) -> ToXML SubscriptionStatus
forall a. (a -> XML) -> ToXML a
toXML :: SubscriptionStatus -> XML
$ctoXML :: SubscriptionStatus -> XML
Core.ToXML
)
pattern SubscriptionStatus_OPT_IN :: SubscriptionStatus
pattern $bSubscriptionStatus_OPT_IN :: SubscriptionStatus
$mSubscriptionStatus_OPT_IN :: forall r. SubscriptionStatus -> (Void# -> r) -> (Void# -> r) -> r
SubscriptionStatus_OPT_IN = SubscriptionStatus' "OPT_IN"
pattern SubscriptionStatus_OPT_OUT :: SubscriptionStatus
pattern $bSubscriptionStatus_OPT_OUT :: SubscriptionStatus
$mSubscriptionStatus_OPT_OUT :: forall r. SubscriptionStatus -> (Void# -> r) -> (Void# -> r) -> r
SubscriptionStatus_OPT_OUT = SubscriptionStatus' "OPT_OUT"
{-# COMPLETE
SubscriptionStatus_OPT_IN,
SubscriptionStatus_OPT_OUT,
SubscriptionStatus'
#-}