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

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

newtype StopScope = StopScope'
  { StopScope -> Text
fromStopScope ::
      Core.Text
  }
  deriving stock
    ( Int -> StopScope -> ShowS
[StopScope] -> ShowS
StopScope -> String
(Int -> StopScope -> ShowS)
-> (StopScope -> String)
-> ([StopScope] -> ShowS)
-> Show StopScope
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]
(Int -> ReadS StopScope)
-> ReadS [StopScope]
-> ReadPrec StopScope
-> ReadPrec [StopScope]
-> Read 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
(StopScope -> StopScope -> Bool)
-> (StopScope -> StopScope -> Bool) -> Eq StopScope
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
Eq StopScope
-> (StopScope -> StopScope -> Ordering)
-> (StopScope -> StopScope -> Bool)
-> (StopScope -> StopScope -> Bool)
-> (StopScope -> StopScope -> Bool)
-> (StopScope -> StopScope -> Bool)
-> (StopScope -> StopScope -> StopScope)
-> (StopScope -> StopScope -> StopScope)
-> Ord 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
$cp1Ord :: Eq StopScope
Prelude.Ord,
      (forall x. StopScope -> Rep StopScope x)
-> (forall x. Rep StopScope x -> StopScope) -> Generic StopScope
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
    ( Int -> StopScope -> Int
StopScope -> Int
(Int -> StopScope -> Int)
-> (StopScope -> Int) -> Hashable StopScope
forall 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 -> ()
(StopScope -> ()) -> NFData StopScope
forall a. (a -> ()) -> NFData a
rnf :: StopScope -> ()
$crnf :: StopScope -> ()
Prelude.NFData,
      Text -> Either String StopScope
(Text -> Either String StopScope) -> FromText StopScope
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String StopScope
$cfromText :: Text -> Either String StopScope
Core.FromText,
      StopScope -> Text
(StopScope -> Text) -> ToText StopScope
forall a. (a -> Text) -> ToText a
toText :: StopScope -> Text
$ctoText :: StopScope -> Text
Core.ToText,
      StopScope -> ByteString
(StopScope -> ByteString) -> ToByteString StopScope
forall a. (a -> ByteString) -> ToByteString a
toBS :: StopScope -> ByteString
$ctoBS :: StopScope -> ByteString
Core.ToByteString,
      StopScope -> ByteStringBuilder
(StopScope -> ByteStringBuilder) -> ToLog StopScope
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: StopScope -> ByteStringBuilder
$cbuild :: StopScope -> ByteStringBuilder
Core.ToLog,
      HeaderName -> StopScope -> [Header]
(HeaderName -> StopScope -> [Header]) -> ToHeader StopScope
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> StopScope -> [Header]
$ctoHeader :: HeaderName -> StopScope -> [Header]
Core.ToHeader,
      StopScope -> QueryString
(StopScope -> QueryString) -> ToQuery StopScope
forall a. (a -> QueryString) -> ToQuery a
toQuery :: StopScope -> QueryString
$ctoQuery :: StopScope -> QueryString
Core.ToQuery,
      Value -> Parser [StopScope]
Value -> Parser StopScope
(Value -> Parser StopScope)
-> (Value -> Parser [StopScope]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [StopScope]
FromJSONKeyFunction StopScope
FromJSONKeyFunction StopScope
-> FromJSONKeyFunction [StopScope] -> FromJSONKey StopScope
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [StopScope]
$cfromJSONKeyList :: FromJSONKeyFunction [StopScope]
fromJSONKey :: FromJSONKeyFunction StopScope
$cfromJSONKey :: FromJSONKeyFunction StopScope
Core.FromJSONKey,
      [StopScope] -> Encoding
[StopScope] -> Value
StopScope -> Encoding
StopScope -> Value
(StopScope -> Value)
-> (StopScope -> Encoding)
-> ([StopScope] -> Value)
-> ([StopScope] -> Encoding)
-> ToJSON StopScope
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
Core.ToJSON,
      ToJSONKeyFunction [StopScope]
ToJSONKeyFunction StopScope
ToJSONKeyFunction StopScope
-> ToJSONKeyFunction [StopScope] -> ToJSONKey StopScope
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [StopScope]
$ctoJSONKeyList :: ToJSONKeyFunction [StopScope]
toJSONKey :: ToJSONKeyFunction StopScope
$ctoJSONKey :: ToJSONKeyFunction StopScope
Core.ToJSONKey,
      [Node] -> Either String StopScope
([Node] -> Either String StopScope) -> FromXML StopScope
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String StopScope
$cparseXML :: [Node] -> Either String StopScope
Core.FromXML,
      StopScope -> XML
(StopScope -> XML) -> ToXML StopScope
forall a. (a -> XML) -> ToXML a
toXML :: StopScope -> XML
$ctoXML :: StopScope -> XML
Core.ToXML
    )

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

{-# COMPLETE
  StopScope_RuleSet,
  StopScope'
  #-}