{-# 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.LabelMatchScope
-- 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.LabelMatchScope
  ( LabelMatchScope
      ( ..,
        LabelMatchScope_LABEL,
        LabelMatchScope_NAMESPACE
      ),
  )
where

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

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

pattern LabelMatchScope_LABEL :: LabelMatchScope
pattern $bLabelMatchScope_LABEL :: LabelMatchScope
$mLabelMatchScope_LABEL :: forall {r}. LabelMatchScope -> ((# #) -> r) -> ((# #) -> r) -> r
LabelMatchScope_LABEL = LabelMatchScope' "LABEL"

pattern LabelMatchScope_NAMESPACE :: LabelMatchScope
pattern $bLabelMatchScope_NAMESPACE :: LabelMatchScope
$mLabelMatchScope_NAMESPACE :: forall {r}. LabelMatchScope -> ((# #) -> r) -> ((# #) -> r) -> r
LabelMatchScope_NAMESPACE = LabelMatchScope' "NAMESPACE"

{-# COMPLETE
  LabelMatchScope_LABEL,
  LabelMatchScope_NAMESPACE,
  LabelMatchScope'
  #-}