{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.WAF.ListSqlInjectionMatchSets
(
ListSqlInjectionMatchSets (..),
newListSqlInjectionMatchSets,
listSqlInjectionMatchSets_nextMarker,
listSqlInjectionMatchSets_limit,
ListSqlInjectionMatchSetsResponse (..),
newListSqlInjectionMatchSetsResponse,
listSqlInjectionMatchSetsResponse_nextMarker,
listSqlInjectionMatchSetsResponse_sqlInjectionMatchSets,
listSqlInjectionMatchSetsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.WAF.Types
data ListSqlInjectionMatchSets = ListSqlInjectionMatchSets'
{
ListSqlInjectionMatchSets -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
ListSqlInjectionMatchSets -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural
}
deriving (ListSqlInjectionMatchSets -> ListSqlInjectionMatchSets -> Bool
(ListSqlInjectionMatchSets -> ListSqlInjectionMatchSets -> Bool)
-> (ListSqlInjectionMatchSets -> ListSqlInjectionMatchSets -> Bool)
-> Eq ListSqlInjectionMatchSets
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSqlInjectionMatchSets -> ListSqlInjectionMatchSets -> Bool
$c/= :: ListSqlInjectionMatchSets -> ListSqlInjectionMatchSets -> Bool
== :: ListSqlInjectionMatchSets -> ListSqlInjectionMatchSets -> Bool
$c== :: ListSqlInjectionMatchSets -> ListSqlInjectionMatchSets -> Bool
Prelude.Eq, ReadPrec [ListSqlInjectionMatchSets]
ReadPrec ListSqlInjectionMatchSets
Int -> ReadS ListSqlInjectionMatchSets
ReadS [ListSqlInjectionMatchSets]
(Int -> ReadS ListSqlInjectionMatchSets)
-> ReadS [ListSqlInjectionMatchSets]
-> ReadPrec ListSqlInjectionMatchSets
-> ReadPrec [ListSqlInjectionMatchSets]
-> Read ListSqlInjectionMatchSets
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSqlInjectionMatchSets]
$creadListPrec :: ReadPrec [ListSqlInjectionMatchSets]
readPrec :: ReadPrec ListSqlInjectionMatchSets
$creadPrec :: ReadPrec ListSqlInjectionMatchSets
readList :: ReadS [ListSqlInjectionMatchSets]
$creadList :: ReadS [ListSqlInjectionMatchSets]
readsPrec :: Int -> ReadS ListSqlInjectionMatchSets
$creadsPrec :: Int -> ReadS ListSqlInjectionMatchSets
Prelude.Read, Int -> ListSqlInjectionMatchSets -> ShowS
[ListSqlInjectionMatchSets] -> ShowS
ListSqlInjectionMatchSets -> String
(Int -> ListSqlInjectionMatchSets -> ShowS)
-> (ListSqlInjectionMatchSets -> String)
-> ([ListSqlInjectionMatchSets] -> ShowS)
-> Show ListSqlInjectionMatchSets
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSqlInjectionMatchSets] -> ShowS
$cshowList :: [ListSqlInjectionMatchSets] -> ShowS
show :: ListSqlInjectionMatchSets -> String
$cshow :: ListSqlInjectionMatchSets -> String
showsPrec :: Int -> ListSqlInjectionMatchSets -> ShowS
$cshowsPrec :: Int -> ListSqlInjectionMatchSets -> ShowS
Prelude.Show, (forall x.
ListSqlInjectionMatchSets -> Rep ListSqlInjectionMatchSets x)
-> (forall x.
Rep ListSqlInjectionMatchSets x -> ListSqlInjectionMatchSets)
-> Generic ListSqlInjectionMatchSets
forall x.
Rep ListSqlInjectionMatchSets x -> ListSqlInjectionMatchSets
forall x.
ListSqlInjectionMatchSets -> Rep ListSqlInjectionMatchSets x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSqlInjectionMatchSets x -> ListSqlInjectionMatchSets
$cfrom :: forall x.
ListSqlInjectionMatchSets -> Rep ListSqlInjectionMatchSets x
Prelude.Generic)
newListSqlInjectionMatchSets ::
ListSqlInjectionMatchSets
newListSqlInjectionMatchSets :: ListSqlInjectionMatchSets
newListSqlInjectionMatchSets =
ListSqlInjectionMatchSets' :: Maybe Text -> Maybe Natural -> ListSqlInjectionMatchSets
ListSqlInjectionMatchSets'
{ $sel:nextMarker:ListSqlInjectionMatchSets' :: Maybe Text
nextMarker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:ListSqlInjectionMatchSets' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listSqlInjectionMatchSets_nextMarker :: Lens.Lens' ListSqlInjectionMatchSets (Prelude.Maybe Prelude.Text)
listSqlInjectionMatchSets_nextMarker :: (Maybe Text -> f (Maybe Text))
-> ListSqlInjectionMatchSets -> f ListSqlInjectionMatchSets
listSqlInjectionMatchSets_nextMarker = (ListSqlInjectionMatchSets -> Maybe Text)
-> (ListSqlInjectionMatchSets
-> Maybe Text -> ListSqlInjectionMatchSets)
-> Lens
ListSqlInjectionMatchSets
ListSqlInjectionMatchSets
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSqlInjectionMatchSets' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:ListSqlInjectionMatchSets' :: ListSqlInjectionMatchSets -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: ListSqlInjectionMatchSets
s@ListSqlInjectionMatchSets' {} Maybe Text
a -> ListSqlInjectionMatchSets
s {$sel:nextMarker:ListSqlInjectionMatchSets' :: Maybe Text
nextMarker = Maybe Text
a} :: ListSqlInjectionMatchSets)
listSqlInjectionMatchSets_limit :: Lens.Lens' ListSqlInjectionMatchSets (Prelude.Maybe Prelude.Natural)
listSqlInjectionMatchSets_limit :: (Maybe Natural -> f (Maybe Natural))
-> ListSqlInjectionMatchSets -> f ListSqlInjectionMatchSets
listSqlInjectionMatchSets_limit = (ListSqlInjectionMatchSets -> Maybe Natural)
-> (ListSqlInjectionMatchSets
-> Maybe Natural -> ListSqlInjectionMatchSets)
-> Lens
ListSqlInjectionMatchSets
ListSqlInjectionMatchSets
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSqlInjectionMatchSets' {Maybe Natural
limit :: Maybe Natural
$sel:limit:ListSqlInjectionMatchSets' :: ListSqlInjectionMatchSets -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: ListSqlInjectionMatchSets
s@ListSqlInjectionMatchSets' {} Maybe Natural
a -> ListSqlInjectionMatchSets
s {$sel:limit:ListSqlInjectionMatchSets' :: Maybe Natural
limit = Maybe Natural
a} :: ListSqlInjectionMatchSets)
instance Core.AWSPager ListSqlInjectionMatchSets where
page :: ListSqlInjectionMatchSets
-> AWSResponse ListSqlInjectionMatchSets
-> Maybe ListSqlInjectionMatchSets
page ListSqlInjectionMatchSets
rq AWSResponse ListSqlInjectionMatchSets
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListSqlInjectionMatchSets
ListSqlInjectionMatchSetsResponse
rs
ListSqlInjectionMatchSetsResponse
-> Getting (First Text) ListSqlInjectionMatchSetsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListSqlInjectionMatchSetsResponse
-> Const (First Text) ListSqlInjectionMatchSetsResponse
Lens' ListSqlInjectionMatchSetsResponse (Maybe Text)
listSqlInjectionMatchSetsResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListSqlInjectionMatchSetsResponse
-> Const (First Text) ListSqlInjectionMatchSetsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListSqlInjectionMatchSetsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListSqlInjectionMatchSets
forall a. Maybe a
Prelude.Nothing
| Maybe [SqlInjectionMatchSetSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListSqlInjectionMatchSets
ListSqlInjectionMatchSetsResponse
rs
ListSqlInjectionMatchSetsResponse
-> Getting
(First [SqlInjectionMatchSetSummary])
ListSqlInjectionMatchSetsResponse
[SqlInjectionMatchSetSummary]
-> Maybe [SqlInjectionMatchSetSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [SqlInjectionMatchSetSummary]
-> Const
(First [SqlInjectionMatchSetSummary])
(Maybe [SqlInjectionMatchSetSummary]))
-> ListSqlInjectionMatchSetsResponse
-> Const
(First [SqlInjectionMatchSetSummary])
ListSqlInjectionMatchSetsResponse
Lens'
ListSqlInjectionMatchSetsResponse
(Maybe [SqlInjectionMatchSetSummary])
listSqlInjectionMatchSetsResponse_sqlInjectionMatchSets
((Maybe [SqlInjectionMatchSetSummary]
-> Const
(First [SqlInjectionMatchSetSummary])
(Maybe [SqlInjectionMatchSetSummary]))
-> ListSqlInjectionMatchSetsResponse
-> Const
(First [SqlInjectionMatchSetSummary])
ListSqlInjectionMatchSetsResponse)
-> (([SqlInjectionMatchSetSummary]
-> Const
(First [SqlInjectionMatchSetSummary])
[SqlInjectionMatchSetSummary])
-> Maybe [SqlInjectionMatchSetSummary]
-> Const
(First [SqlInjectionMatchSetSummary])
(Maybe [SqlInjectionMatchSetSummary]))
-> Getting
(First [SqlInjectionMatchSetSummary])
ListSqlInjectionMatchSetsResponse
[SqlInjectionMatchSetSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([SqlInjectionMatchSetSummary]
-> Const
(First [SqlInjectionMatchSetSummary])
[SqlInjectionMatchSetSummary])
-> Maybe [SqlInjectionMatchSetSummary]
-> Const
(First [SqlInjectionMatchSetSummary])
(Maybe [SqlInjectionMatchSetSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListSqlInjectionMatchSets
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListSqlInjectionMatchSets -> Maybe ListSqlInjectionMatchSets
forall a. a -> Maybe a
Prelude.Just (ListSqlInjectionMatchSets -> Maybe ListSqlInjectionMatchSets)
-> ListSqlInjectionMatchSets -> Maybe ListSqlInjectionMatchSets
forall a b. (a -> b) -> a -> b
Prelude.$
ListSqlInjectionMatchSets
rq
ListSqlInjectionMatchSets
-> (ListSqlInjectionMatchSets -> ListSqlInjectionMatchSets)
-> ListSqlInjectionMatchSets
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListSqlInjectionMatchSets -> Identity ListSqlInjectionMatchSets
Lens
ListSqlInjectionMatchSets
ListSqlInjectionMatchSets
(Maybe Text)
(Maybe Text)
listSqlInjectionMatchSets_nextMarker
((Maybe Text -> Identity (Maybe Text))
-> ListSqlInjectionMatchSets -> Identity ListSqlInjectionMatchSets)
-> Maybe Text
-> ListSqlInjectionMatchSets
-> ListSqlInjectionMatchSets
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListSqlInjectionMatchSets
ListSqlInjectionMatchSetsResponse
rs
ListSqlInjectionMatchSetsResponse
-> Getting (First Text) ListSqlInjectionMatchSetsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListSqlInjectionMatchSetsResponse
-> Const (First Text) ListSqlInjectionMatchSetsResponse
Lens' ListSqlInjectionMatchSetsResponse (Maybe Text)
listSqlInjectionMatchSetsResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListSqlInjectionMatchSetsResponse
-> Const (First Text) ListSqlInjectionMatchSetsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListSqlInjectionMatchSetsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListSqlInjectionMatchSets where
type
AWSResponse ListSqlInjectionMatchSets =
ListSqlInjectionMatchSetsResponse
request :: ListSqlInjectionMatchSets -> Request ListSqlInjectionMatchSets
request = Service
-> ListSqlInjectionMatchSets -> Request ListSqlInjectionMatchSets
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListSqlInjectionMatchSets
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListSqlInjectionMatchSets)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListSqlInjectionMatchSets))
-> Logger
-> Service
-> Proxy ListSqlInjectionMatchSets
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListSqlInjectionMatchSets)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe [SqlInjectionMatchSetSummary]
-> Int
-> ListSqlInjectionMatchSetsResponse
ListSqlInjectionMatchSetsResponse'
(Maybe Text
-> Maybe [SqlInjectionMatchSetSummary]
-> Int
-> ListSqlInjectionMatchSetsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [SqlInjectionMatchSetSummary]
-> Int -> ListSqlInjectionMatchSetsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextMarker")
Either
String
(Maybe [SqlInjectionMatchSetSummary]
-> Int -> ListSqlInjectionMatchSetsResponse)
-> Either String (Maybe [SqlInjectionMatchSetSummary])
-> Either String (Int -> ListSqlInjectionMatchSetsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [SqlInjectionMatchSetSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"SqlInjectionMatchSets"
Either String (Maybe (Maybe [SqlInjectionMatchSetSummary]))
-> Maybe [SqlInjectionMatchSetSummary]
-> Either String (Maybe [SqlInjectionMatchSetSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [SqlInjectionMatchSetSummary]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> ListSqlInjectionMatchSetsResponse)
-> Either String Int
-> Either String ListSqlInjectionMatchSetsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable ListSqlInjectionMatchSets
instance Prelude.NFData ListSqlInjectionMatchSets
instance Core.ToHeaders ListSqlInjectionMatchSets where
toHeaders :: ListSqlInjectionMatchSets -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListSqlInjectionMatchSets -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSWAF_20150824.ListSqlInjectionMatchSets" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON ListSqlInjectionMatchSets where
toJSON :: ListSqlInjectionMatchSets -> Value
toJSON ListSqlInjectionMatchSets' {Maybe Natural
Maybe Text
limit :: Maybe Natural
nextMarker :: Maybe Text
$sel:limit:ListSqlInjectionMatchSets' :: ListSqlInjectionMatchSets -> Maybe Natural
$sel:nextMarker:ListSqlInjectionMatchSets' :: ListSqlInjectionMatchSets -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextMarker" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextMarker,
(Text
"Limit" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
limit
]
)
instance Core.ToPath ListSqlInjectionMatchSets where
toPath :: ListSqlInjectionMatchSets -> ByteString
toPath = ByteString -> ListSqlInjectionMatchSets -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListSqlInjectionMatchSets where
toQuery :: ListSqlInjectionMatchSets -> QueryString
toQuery = QueryString -> ListSqlInjectionMatchSets -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListSqlInjectionMatchSetsResponse = ListSqlInjectionMatchSetsResponse'
{
ListSqlInjectionMatchSetsResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
ListSqlInjectionMatchSetsResponse
-> Maybe [SqlInjectionMatchSetSummary]
sqlInjectionMatchSets :: Prelude.Maybe [SqlInjectionMatchSetSummary],
ListSqlInjectionMatchSetsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListSqlInjectionMatchSetsResponse
-> ListSqlInjectionMatchSetsResponse -> Bool
(ListSqlInjectionMatchSetsResponse
-> ListSqlInjectionMatchSetsResponse -> Bool)
-> (ListSqlInjectionMatchSetsResponse
-> ListSqlInjectionMatchSetsResponse -> Bool)
-> Eq ListSqlInjectionMatchSetsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSqlInjectionMatchSetsResponse
-> ListSqlInjectionMatchSetsResponse -> Bool
$c/= :: ListSqlInjectionMatchSetsResponse
-> ListSqlInjectionMatchSetsResponse -> Bool
== :: ListSqlInjectionMatchSetsResponse
-> ListSqlInjectionMatchSetsResponse -> Bool
$c== :: ListSqlInjectionMatchSetsResponse
-> ListSqlInjectionMatchSetsResponse -> Bool
Prelude.Eq, ReadPrec [ListSqlInjectionMatchSetsResponse]
ReadPrec ListSqlInjectionMatchSetsResponse
Int -> ReadS ListSqlInjectionMatchSetsResponse
ReadS [ListSqlInjectionMatchSetsResponse]
(Int -> ReadS ListSqlInjectionMatchSetsResponse)
-> ReadS [ListSqlInjectionMatchSetsResponse]
-> ReadPrec ListSqlInjectionMatchSetsResponse
-> ReadPrec [ListSqlInjectionMatchSetsResponse]
-> Read ListSqlInjectionMatchSetsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSqlInjectionMatchSetsResponse]
$creadListPrec :: ReadPrec [ListSqlInjectionMatchSetsResponse]
readPrec :: ReadPrec ListSqlInjectionMatchSetsResponse
$creadPrec :: ReadPrec ListSqlInjectionMatchSetsResponse
readList :: ReadS [ListSqlInjectionMatchSetsResponse]
$creadList :: ReadS [ListSqlInjectionMatchSetsResponse]
readsPrec :: Int -> ReadS ListSqlInjectionMatchSetsResponse
$creadsPrec :: Int -> ReadS ListSqlInjectionMatchSetsResponse
Prelude.Read, Int -> ListSqlInjectionMatchSetsResponse -> ShowS
[ListSqlInjectionMatchSetsResponse] -> ShowS
ListSqlInjectionMatchSetsResponse -> String
(Int -> ListSqlInjectionMatchSetsResponse -> ShowS)
-> (ListSqlInjectionMatchSetsResponse -> String)
-> ([ListSqlInjectionMatchSetsResponse] -> ShowS)
-> Show ListSqlInjectionMatchSetsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSqlInjectionMatchSetsResponse] -> ShowS
$cshowList :: [ListSqlInjectionMatchSetsResponse] -> ShowS
show :: ListSqlInjectionMatchSetsResponse -> String
$cshow :: ListSqlInjectionMatchSetsResponse -> String
showsPrec :: Int -> ListSqlInjectionMatchSetsResponse -> ShowS
$cshowsPrec :: Int -> ListSqlInjectionMatchSetsResponse -> ShowS
Prelude.Show, (forall x.
ListSqlInjectionMatchSetsResponse
-> Rep ListSqlInjectionMatchSetsResponse x)
-> (forall x.
Rep ListSqlInjectionMatchSetsResponse x
-> ListSqlInjectionMatchSetsResponse)
-> Generic ListSqlInjectionMatchSetsResponse
forall x.
Rep ListSqlInjectionMatchSetsResponse x
-> ListSqlInjectionMatchSetsResponse
forall x.
ListSqlInjectionMatchSetsResponse
-> Rep ListSqlInjectionMatchSetsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSqlInjectionMatchSetsResponse x
-> ListSqlInjectionMatchSetsResponse
$cfrom :: forall x.
ListSqlInjectionMatchSetsResponse
-> Rep ListSqlInjectionMatchSetsResponse x
Prelude.Generic)
newListSqlInjectionMatchSetsResponse ::
Prelude.Int ->
ListSqlInjectionMatchSetsResponse
newListSqlInjectionMatchSetsResponse :: Int -> ListSqlInjectionMatchSetsResponse
newListSqlInjectionMatchSetsResponse Int
pHttpStatus_ =
ListSqlInjectionMatchSetsResponse' :: Maybe Text
-> Maybe [SqlInjectionMatchSetSummary]
-> Int
-> ListSqlInjectionMatchSetsResponse
ListSqlInjectionMatchSetsResponse'
{ $sel:nextMarker:ListSqlInjectionMatchSetsResponse' :: Maybe Text
nextMarker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sqlInjectionMatchSets:ListSqlInjectionMatchSetsResponse' :: Maybe [SqlInjectionMatchSetSummary]
sqlInjectionMatchSets = Maybe [SqlInjectionMatchSetSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListSqlInjectionMatchSetsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listSqlInjectionMatchSetsResponse_nextMarker :: Lens.Lens' ListSqlInjectionMatchSetsResponse (Prelude.Maybe Prelude.Text)
listSqlInjectionMatchSetsResponse_nextMarker :: (Maybe Text -> f (Maybe Text))
-> ListSqlInjectionMatchSetsResponse
-> f ListSqlInjectionMatchSetsResponse
listSqlInjectionMatchSetsResponse_nextMarker = (ListSqlInjectionMatchSetsResponse -> Maybe Text)
-> (ListSqlInjectionMatchSetsResponse
-> Maybe Text -> ListSqlInjectionMatchSetsResponse)
-> Lens' ListSqlInjectionMatchSetsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSqlInjectionMatchSetsResponse' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:ListSqlInjectionMatchSetsResponse' :: ListSqlInjectionMatchSetsResponse -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: ListSqlInjectionMatchSetsResponse
s@ListSqlInjectionMatchSetsResponse' {} Maybe Text
a -> ListSqlInjectionMatchSetsResponse
s {$sel:nextMarker:ListSqlInjectionMatchSetsResponse' :: Maybe Text
nextMarker = Maybe Text
a} :: ListSqlInjectionMatchSetsResponse)
listSqlInjectionMatchSetsResponse_sqlInjectionMatchSets :: Lens.Lens' ListSqlInjectionMatchSetsResponse (Prelude.Maybe [SqlInjectionMatchSetSummary])
listSqlInjectionMatchSetsResponse_sqlInjectionMatchSets :: (Maybe [SqlInjectionMatchSetSummary]
-> f (Maybe [SqlInjectionMatchSetSummary]))
-> ListSqlInjectionMatchSetsResponse
-> f ListSqlInjectionMatchSetsResponse
listSqlInjectionMatchSetsResponse_sqlInjectionMatchSets = (ListSqlInjectionMatchSetsResponse
-> Maybe [SqlInjectionMatchSetSummary])
-> (ListSqlInjectionMatchSetsResponse
-> Maybe [SqlInjectionMatchSetSummary]
-> ListSqlInjectionMatchSetsResponse)
-> Lens'
ListSqlInjectionMatchSetsResponse
(Maybe [SqlInjectionMatchSetSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSqlInjectionMatchSetsResponse' {Maybe [SqlInjectionMatchSetSummary]
sqlInjectionMatchSets :: Maybe [SqlInjectionMatchSetSummary]
$sel:sqlInjectionMatchSets:ListSqlInjectionMatchSetsResponse' :: ListSqlInjectionMatchSetsResponse
-> Maybe [SqlInjectionMatchSetSummary]
sqlInjectionMatchSets} -> Maybe [SqlInjectionMatchSetSummary]
sqlInjectionMatchSets) (\s :: ListSqlInjectionMatchSetsResponse
s@ListSqlInjectionMatchSetsResponse' {} Maybe [SqlInjectionMatchSetSummary]
a -> ListSqlInjectionMatchSetsResponse
s {$sel:sqlInjectionMatchSets:ListSqlInjectionMatchSetsResponse' :: Maybe [SqlInjectionMatchSetSummary]
sqlInjectionMatchSets = Maybe [SqlInjectionMatchSetSummary]
a} :: ListSqlInjectionMatchSetsResponse) ((Maybe [SqlInjectionMatchSetSummary]
-> f (Maybe [SqlInjectionMatchSetSummary]))
-> ListSqlInjectionMatchSetsResponse
-> f ListSqlInjectionMatchSetsResponse)
-> ((Maybe [SqlInjectionMatchSetSummary]
-> f (Maybe [SqlInjectionMatchSetSummary]))
-> Maybe [SqlInjectionMatchSetSummary]
-> f (Maybe [SqlInjectionMatchSetSummary]))
-> (Maybe [SqlInjectionMatchSetSummary]
-> f (Maybe [SqlInjectionMatchSetSummary]))
-> ListSqlInjectionMatchSetsResponse
-> f ListSqlInjectionMatchSetsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[SqlInjectionMatchSetSummary]
[SqlInjectionMatchSetSummary]
[SqlInjectionMatchSetSummary]
[SqlInjectionMatchSetSummary]
-> Iso
(Maybe [SqlInjectionMatchSetSummary])
(Maybe [SqlInjectionMatchSetSummary])
(Maybe [SqlInjectionMatchSetSummary])
(Maybe [SqlInjectionMatchSetSummary])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[SqlInjectionMatchSetSummary]
[SqlInjectionMatchSetSummary]
[SqlInjectionMatchSetSummary]
[SqlInjectionMatchSetSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listSqlInjectionMatchSetsResponse_httpStatus :: Lens.Lens' ListSqlInjectionMatchSetsResponse Prelude.Int
listSqlInjectionMatchSetsResponse_httpStatus :: (Int -> f Int)
-> ListSqlInjectionMatchSetsResponse
-> f ListSqlInjectionMatchSetsResponse
listSqlInjectionMatchSetsResponse_httpStatus = (ListSqlInjectionMatchSetsResponse -> Int)
-> (ListSqlInjectionMatchSetsResponse
-> Int -> ListSqlInjectionMatchSetsResponse)
-> Lens
ListSqlInjectionMatchSetsResponse
ListSqlInjectionMatchSetsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSqlInjectionMatchSetsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListSqlInjectionMatchSetsResponse' :: ListSqlInjectionMatchSetsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListSqlInjectionMatchSetsResponse
s@ListSqlInjectionMatchSetsResponse' {} Int
a -> ListSqlInjectionMatchSetsResponse
s {$sel:httpStatus:ListSqlInjectionMatchSetsResponse' :: Int
httpStatus = Int
a} :: ListSqlInjectionMatchSetsResponse)
instance
Prelude.NFData
ListSqlInjectionMatchSetsResponse