{-# 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 #-}
module Amazonka.WAFRegional.Types.SqlInjectionMatchSetSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data SqlInjectionMatchSetSummary = SqlInjectionMatchSetSummary'
{
SqlInjectionMatchSetSummary -> Text
sqlInjectionMatchSetId :: Prelude.Text,
SqlInjectionMatchSetSummary -> Text
name :: Prelude.Text
}
deriving (SqlInjectionMatchSetSummary -> SqlInjectionMatchSetSummary -> Bool
(SqlInjectionMatchSetSummary
-> SqlInjectionMatchSetSummary -> Bool)
-> (SqlInjectionMatchSetSummary
-> SqlInjectionMatchSetSummary -> Bool)
-> Eq SqlInjectionMatchSetSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SqlInjectionMatchSetSummary -> SqlInjectionMatchSetSummary -> Bool
$c/= :: SqlInjectionMatchSetSummary -> SqlInjectionMatchSetSummary -> Bool
== :: SqlInjectionMatchSetSummary -> SqlInjectionMatchSetSummary -> Bool
$c== :: SqlInjectionMatchSetSummary -> SqlInjectionMatchSetSummary -> Bool
Prelude.Eq, ReadPrec [SqlInjectionMatchSetSummary]
ReadPrec SqlInjectionMatchSetSummary
Int -> ReadS SqlInjectionMatchSetSummary
ReadS [SqlInjectionMatchSetSummary]
(Int -> ReadS SqlInjectionMatchSetSummary)
-> ReadS [SqlInjectionMatchSetSummary]
-> ReadPrec SqlInjectionMatchSetSummary
-> ReadPrec [SqlInjectionMatchSetSummary]
-> Read SqlInjectionMatchSetSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SqlInjectionMatchSetSummary]
$creadListPrec :: ReadPrec [SqlInjectionMatchSetSummary]
readPrec :: ReadPrec SqlInjectionMatchSetSummary
$creadPrec :: ReadPrec SqlInjectionMatchSetSummary
readList :: ReadS [SqlInjectionMatchSetSummary]
$creadList :: ReadS [SqlInjectionMatchSetSummary]
readsPrec :: Int -> ReadS SqlInjectionMatchSetSummary
$creadsPrec :: Int -> ReadS SqlInjectionMatchSetSummary
Prelude.Read, Int -> SqlInjectionMatchSetSummary -> ShowS
[SqlInjectionMatchSetSummary] -> ShowS
SqlInjectionMatchSetSummary -> String
(Int -> SqlInjectionMatchSetSummary -> ShowS)
-> (SqlInjectionMatchSetSummary -> String)
-> ([SqlInjectionMatchSetSummary] -> ShowS)
-> Show SqlInjectionMatchSetSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SqlInjectionMatchSetSummary] -> ShowS
$cshowList :: [SqlInjectionMatchSetSummary] -> ShowS
show :: SqlInjectionMatchSetSummary -> String
$cshow :: SqlInjectionMatchSetSummary -> String
showsPrec :: Int -> SqlInjectionMatchSetSummary -> ShowS
$cshowsPrec :: Int -> SqlInjectionMatchSetSummary -> ShowS
Prelude.Show, (forall x.
SqlInjectionMatchSetSummary -> Rep SqlInjectionMatchSetSummary x)
-> (forall x.
Rep SqlInjectionMatchSetSummary x -> SqlInjectionMatchSetSummary)
-> Generic SqlInjectionMatchSetSummary
forall x.
Rep SqlInjectionMatchSetSummary x -> SqlInjectionMatchSetSummary
forall x.
SqlInjectionMatchSetSummary -> Rep SqlInjectionMatchSetSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SqlInjectionMatchSetSummary x -> SqlInjectionMatchSetSummary
$cfrom :: forall x.
SqlInjectionMatchSetSummary -> Rep SqlInjectionMatchSetSummary x
Prelude.Generic)
newSqlInjectionMatchSetSummary ::
Prelude.Text ->
Prelude.Text ->
SqlInjectionMatchSetSummary
newSqlInjectionMatchSetSummary :: Text -> Text -> SqlInjectionMatchSetSummary
newSqlInjectionMatchSetSummary
Text
pSqlInjectionMatchSetId_
Text
pName_ =
SqlInjectionMatchSetSummary' :: Text -> Text -> SqlInjectionMatchSetSummary
SqlInjectionMatchSetSummary'
{ $sel:sqlInjectionMatchSetId:SqlInjectionMatchSetSummary' :: Text
sqlInjectionMatchSetId =
Text
pSqlInjectionMatchSetId_,
$sel:name:SqlInjectionMatchSetSummary' :: Text
name = Text
pName_
}
sqlInjectionMatchSetSummary_sqlInjectionMatchSetId :: Lens.Lens' SqlInjectionMatchSetSummary Prelude.Text
sqlInjectionMatchSetSummary_sqlInjectionMatchSetId :: (Text -> f Text)
-> SqlInjectionMatchSetSummary -> f SqlInjectionMatchSetSummary
sqlInjectionMatchSetSummary_sqlInjectionMatchSetId = (SqlInjectionMatchSetSummary -> Text)
-> (SqlInjectionMatchSetSummary
-> Text -> SqlInjectionMatchSetSummary)
-> Lens
SqlInjectionMatchSetSummary SqlInjectionMatchSetSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SqlInjectionMatchSetSummary' {Text
sqlInjectionMatchSetId :: Text
$sel:sqlInjectionMatchSetId:SqlInjectionMatchSetSummary' :: SqlInjectionMatchSetSummary -> Text
sqlInjectionMatchSetId} -> Text
sqlInjectionMatchSetId) (\s :: SqlInjectionMatchSetSummary
s@SqlInjectionMatchSetSummary' {} Text
a -> SqlInjectionMatchSetSummary
s {$sel:sqlInjectionMatchSetId:SqlInjectionMatchSetSummary' :: Text
sqlInjectionMatchSetId = Text
a} :: SqlInjectionMatchSetSummary)
sqlInjectionMatchSetSummary_name :: Lens.Lens' SqlInjectionMatchSetSummary Prelude.Text
sqlInjectionMatchSetSummary_name :: (Text -> f Text)
-> SqlInjectionMatchSetSummary -> f SqlInjectionMatchSetSummary
sqlInjectionMatchSetSummary_name = (SqlInjectionMatchSetSummary -> Text)
-> (SqlInjectionMatchSetSummary
-> Text -> SqlInjectionMatchSetSummary)
-> Lens
SqlInjectionMatchSetSummary SqlInjectionMatchSetSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SqlInjectionMatchSetSummary' {Text
name :: Text
$sel:name:SqlInjectionMatchSetSummary' :: SqlInjectionMatchSetSummary -> Text
name} -> Text
name) (\s :: SqlInjectionMatchSetSummary
s@SqlInjectionMatchSetSummary' {} Text
a -> SqlInjectionMatchSetSummary
s {$sel:name:SqlInjectionMatchSetSummary' :: Text
name = Text
a} :: SqlInjectionMatchSetSummary)
instance Core.FromJSON SqlInjectionMatchSetSummary where
parseJSON :: Value -> Parser SqlInjectionMatchSetSummary
parseJSON =
String
-> (Object -> Parser SqlInjectionMatchSetSummary)
-> Value
-> Parser SqlInjectionMatchSetSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"SqlInjectionMatchSetSummary"
( \Object
x ->
Text -> Text -> SqlInjectionMatchSetSummary
SqlInjectionMatchSetSummary'
(Text -> Text -> SqlInjectionMatchSetSummary)
-> Parser Text -> Parser (Text -> SqlInjectionMatchSetSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"SqlInjectionMatchSetId")
Parser (Text -> SqlInjectionMatchSetSummary)
-> Parser Text -> Parser SqlInjectionMatchSetSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"Name")
)
instance Prelude.Hashable SqlInjectionMatchSetSummary
instance Prelude.NFData SqlInjectionMatchSetSummary