{-# 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.StopScope
-- 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.SES.Types.StopScope
  ( StopScope
      ( ..,
        StopScope_RuleSet
      ),
  )
where

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

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

pattern StopScope_RuleSet :: StopScope
pattern $bStopScope_RuleSet :: StopScope
$mStopScope_RuleSet :: forall {r}. StopScope -> ((# #) -> r) -> ((# #) -> r) -> r
StopScope_RuleSet = StopScope' "RuleSet"

{-# COMPLETE
  StopScope_RuleSet,
  StopScope'
  #-}