{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.WAFV2.Types.All
-- 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.All where

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

-- | Inspect all of the elements that WAF has parsed and extracted from the
-- web request component that you\'ve identified in your FieldToMatch
-- specifications.
--
-- This is used only in the FieldToMatch specification for some web request
-- component types.
--
-- JSON specification: @\"All\": {}@
--
-- /See:/ 'newAll' smart constructor.
data All = All'
  {
  }
  deriving (All -> All -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: All -> All -> Bool
$c/= :: All -> All -> Bool
== :: All -> All -> Bool
$c== :: All -> All -> Bool
Prelude.Eq, ReadPrec [All]
ReadPrec All
Int -> ReadS All
ReadS [All]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [All]
$creadListPrec :: ReadPrec [All]
readPrec :: ReadPrec All
$creadPrec :: ReadPrec All
readList :: ReadS [All]
$creadList :: ReadS [All]
readsPrec :: Int -> ReadS All
$creadsPrec :: Int -> ReadS All
Prelude.Read, Int -> All -> ShowS
[All] -> ShowS
All -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [All] -> ShowS
$cshowList :: [All] -> ShowS
show :: All -> String
$cshow :: All -> String
showsPrec :: Int -> All -> ShowS
$cshowsPrec :: Int -> All -> ShowS
Prelude.Show, forall x. Rep All x -> All
forall x. All -> Rep All x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep All x -> All
$cfrom :: forall x. All -> Rep All x
Prelude.Generic)

-- |
-- Create a value of 'All' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
newAll ::
  All
newAll :: All
newAll = All
All'

instance Data.FromJSON All where
  parseJSON :: Value -> Parser All
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject String
"All" (\Object
x -> forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure All
All')

instance Prelude.Hashable All where
  hashWithSalt :: Int -> All -> Int
hashWithSalt Int
_salt All
_ =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ()

instance Prelude.NFData All where
  rnf :: All -> ()
rnf All
_ = ()

instance Data.ToJSON All where
  toJSON :: All -> Value
toJSON = forall a b. a -> b -> a
Prelude.const (Object -> Value
Data.Object forall a. Monoid a => a
Prelude.mempty)