{-# 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.InspectionLevel
-- 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.InspectionLevel
  ( InspectionLevel
      ( ..,
        InspectionLevel_COMMON,
        InspectionLevel_TARGETED
      ),
  )
where

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

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

pattern InspectionLevel_COMMON :: InspectionLevel
pattern $bInspectionLevel_COMMON :: InspectionLevel
$mInspectionLevel_COMMON :: forall {r}. InspectionLevel -> ((# #) -> r) -> ((# #) -> r) -> r
InspectionLevel_COMMON = InspectionLevel' "COMMON"

pattern InspectionLevel_TARGETED :: InspectionLevel
pattern $bInspectionLevel_TARGETED :: InspectionLevel
$mInspectionLevel_TARGETED :: forall {r}. InspectionLevel -> ((# #) -> r) -> ((# #) -> r) -> r
InspectionLevel_TARGETED = InspectionLevel' "TARGETED"

{-# COMPLETE
  InspectionLevel_COMMON,
  InspectionLevel_TARGETED,
  InspectionLevel'
  #-}