{-# 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.WAFV2.Types.MapMatchScope
-- 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.WAFV2.Types.MapMatchScope
  ( MapMatchScope
      ( ..,
        MapMatchScope_ALL,
        MapMatchScope_KEY,
        MapMatchScope_VALUE
      ),
  )
where

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

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

pattern MapMatchScope_ALL :: MapMatchScope
pattern $bMapMatchScope_ALL :: MapMatchScope
$mMapMatchScope_ALL :: forall {r}. MapMatchScope -> ((# #) -> r) -> ((# #) -> r) -> r
MapMatchScope_ALL = MapMatchScope' "ALL"

pattern MapMatchScope_KEY :: MapMatchScope
pattern $bMapMatchScope_KEY :: MapMatchScope
$mMapMatchScope_KEY :: forall {r}. MapMatchScope -> ((# #) -> r) -> ((# #) -> r) -> r
MapMatchScope_KEY = MapMatchScope' "KEY"

pattern MapMatchScope_VALUE :: MapMatchScope
pattern $bMapMatchScope_VALUE :: MapMatchScope
$mMapMatchScope_VALUE :: forall {r}. MapMatchScope -> ((# #) -> r) -> ((# #) -> r) -> r
MapMatchScope_VALUE = MapMatchScope' "VALUE"

{-# COMPLETE
  MapMatchScope_ALL,
  MapMatchScope_KEY,
  MapMatchScope_VALUE,
  MapMatchScope'
  #-}