{-# 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.ListXssMatchSets
(
ListXssMatchSets (..),
newListXssMatchSets,
listXssMatchSets_nextMarker,
listXssMatchSets_limit,
ListXssMatchSetsResponse (..),
newListXssMatchSetsResponse,
listXssMatchSetsResponse_xssMatchSets,
listXssMatchSetsResponse_nextMarker,
listXssMatchSetsResponse_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 ListXssMatchSets = ListXssMatchSets'
{
ListXssMatchSets -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
ListXssMatchSets -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural
}
deriving (ListXssMatchSets -> ListXssMatchSets -> Bool
(ListXssMatchSets -> ListXssMatchSets -> Bool)
-> (ListXssMatchSets -> ListXssMatchSets -> Bool)
-> Eq ListXssMatchSets
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListXssMatchSets -> ListXssMatchSets -> Bool
$c/= :: ListXssMatchSets -> ListXssMatchSets -> Bool
== :: ListXssMatchSets -> ListXssMatchSets -> Bool
$c== :: ListXssMatchSets -> ListXssMatchSets -> Bool
Prelude.Eq, ReadPrec [ListXssMatchSets]
ReadPrec ListXssMatchSets
Int -> ReadS ListXssMatchSets
ReadS [ListXssMatchSets]
(Int -> ReadS ListXssMatchSets)
-> ReadS [ListXssMatchSets]
-> ReadPrec ListXssMatchSets
-> ReadPrec [ListXssMatchSets]
-> Read ListXssMatchSets
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListXssMatchSets]
$creadListPrec :: ReadPrec [ListXssMatchSets]
readPrec :: ReadPrec ListXssMatchSets
$creadPrec :: ReadPrec ListXssMatchSets
readList :: ReadS [ListXssMatchSets]
$creadList :: ReadS [ListXssMatchSets]
readsPrec :: Int -> ReadS ListXssMatchSets
$creadsPrec :: Int -> ReadS ListXssMatchSets
Prelude.Read, Int -> ListXssMatchSets -> ShowS
[ListXssMatchSets] -> ShowS
ListXssMatchSets -> String
(Int -> ListXssMatchSets -> ShowS)
-> (ListXssMatchSets -> String)
-> ([ListXssMatchSets] -> ShowS)
-> Show ListXssMatchSets
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListXssMatchSets] -> ShowS
$cshowList :: [ListXssMatchSets] -> ShowS
show :: ListXssMatchSets -> String
$cshow :: ListXssMatchSets -> String
showsPrec :: Int -> ListXssMatchSets -> ShowS
$cshowsPrec :: Int -> ListXssMatchSets -> ShowS
Prelude.Show, (forall x. ListXssMatchSets -> Rep ListXssMatchSets x)
-> (forall x. Rep ListXssMatchSets x -> ListXssMatchSets)
-> Generic ListXssMatchSets
forall x. Rep ListXssMatchSets x -> ListXssMatchSets
forall x. ListXssMatchSets -> Rep ListXssMatchSets x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListXssMatchSets x -> ListXssMatchSets
$cfrom :: forall x. ListXssMatchSets -> Rep ListXssMatchSets x
Prelude.Generic)
newListXssMatchSets ::
ListXssMatchSets
newListXssMatchSets :: ListXssMatchSets
newListXssMatchSets =
ListXssMatchSets' :: Maybe Text -> Maybe Natural -> ListXssMatchSets
ListXssMatchSets'
{ $sel:nextMarker:ListXssMatchSets' :: Maybe Text
nextMarker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:ListXssMatchSets' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listXssMatchSets_nextMarker :: Lens.Lens' ListXssMatchSets (Prelude.Maybe Prelude.Text)
listXssMatchSets_nextMarker :: (Maybe Text -> f (Maybe Text))
-> ListXssMatchSets -> f ListXssMatchSets
listXssMatchSets_nextMarker = (ListXssMatchSets -> Maybe Text)
-> (ListXssMatchSets -> Maybe Text -> ListXssMatchSets)
-> Lens ListXssMatchSets ListXssMatchSets (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListXssMatchSets' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:ListXssMatchSets' :: ListXssMatchSets -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: ListXssMatchSets
s@ListXssMatchSets' {} Maybe Text
a -> ListXssMatchSets
s {$sel:nextMarker:ListXssMatchSets' :: Maybe Text
nextMarker = Maybe Text
a} :: ListXssMatchSets)
listXssMatchSets_limit :: Lens.Lens' ListXssMatchSets (Prelude.Maybe Prelude.Natural)
listXssMatchSets_limit :: (Maybe Natural -> f (Maybe Natural))
-> ListXssMatchSets -> f ListXssMatchSets
listXssMatchSets_limit = (ListXssMatchSets -> Maybe Natural)
-> (ListXssMatchSets -> Maybe Natural -> ListXssMatchSets)
-> Lens
ListXssMatchSets ListXssMatchSets (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListXssMatchSets' {Maybe Natural
limit :: Maybe Natural
$sel:limit:ListXssMatchSets' :: ListXssMatchSets -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: ListXssMatchSets
s@ListXssMatchSets' {} Maybe Natural
a -> ListXssMatchSets
s {$sel:limit:ListXssMatchSets' :: Maybe Natural
limit = Maybe Natural
a} :: ListXssMatchSets)
instance Core.AWSPager ListXssMatchSets where
page :: ListXssMatchSets
-> AWSResponse ListXssMatchSets -> Maybe ListXssMatchSets
page ListXssMatchSets
rq AWSResponse ListXssMatchSets
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListXssMatchSets
ListXssMatchSetsResponse
rs
ListXssMatchSetsResponse
-> Getting (First Text) ListXssMatchSetsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListXssMatchSetsResponse
-> Const (First Text) ListXssMatchSetsResponse
Lens' ListXssMatchSetsResponse (Maybe Text)
listXssMatchSetsResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListXssMatchSetsResponse
-> Const (First Text) ListXssMatchSetsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListXssMatchSetsResponse 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 ListXssMatchSets
forall a. Maybe a
Prelude.Nothing
| Maybe [XssMatchSetSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListXssMatchSets
ListXssMatchSetsResponse
rs
ListXssMatchSetsResponse
-> Getting
(First [XssMatchSetSummary])
ListXssMatchSetsResponse
[XssMatchSetSummary]
-> Maybe [XssMatchSetSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [XssMatchSetSummary]
-> Const (First [XssMatchSetSummary]) (Maybe [XssMatchSetSummary]))
-> ListXssMatchSetsResponse
-> Const (First [XssMatchSetSummary]) ListXssMatchSetsResponse
Lens' ListXssMatchSetsResponse (Maybe [XssMatchSetSummary])
listXssMatchSetsResponse_xssMatchSets
((Maybe [XssMatchSetSummary]
-> Const (First [XssMatchSetSummary]) (Maybe [XssMatchSetSummary]))
-> ListXssMatchSetsResponse
-> Const (First [XssMatchSetSummary]) ListXssMatchSetsResponse)
-> (([XssMatchSetSummary]
-> Const (First [XssMatchSetSummary]) [XssMatchSetSummary])
-> Maybe [XssMatchSetSummary]
-> Const (First [XssMatchSetSummary]) (Maybe [XssMatchSetSummary]))
-> Getting
(First [XssMatchSetSummary])
ListXssMatchSetsResponse
[XssMatchSetSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([XssMatchSetSummary]
-> Const (First [XssMatchSetSummary]) [XssMatchSetSummary])
-> Maybe [XssMatchSetSummary]
-> Const (First [XssMatchSetSummary]) (Maybe [XssMatchSetSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListXssMatchSets
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListXssMatchSets -> Maybe ListXssMatchSets
forall a. a -> Maybe a
Prelude.Just (ListXssMatchSets -> Maybe ListXssMatchSets)
-> ListXssMatchSets -> Maybe ListXssMatchSets
forall a b. (a -> b) -> a -> b
Prelude.$
ListXssMatchSets
rq
ListXssMatchSets
-> (ListXssMatchSets -> ListXssMatchSets) -> ListXssMatchSets
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListXssMatchSets -> Identity ListXssMatchSets
Lens ListXssMatchSets ListXssMatchSets (Maybe Text) (Maybe Text)
listXssMatchSets_nextMarker
((Maybe Text -> Identity (Maybe Text))
-> ListXssMatchSets -> Identity ListXssMatchSets)
-> Maybe Text -> ListXssMatchSets -> ListXssMatchSets
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListXssMatchSets
ListXssMatchSetsResponse
rs
ListXssMatchSetsResponse
-> Getting (First Text) ListXssMatchSetsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListXssMatchSetsResponse
-> Const (First Text) ListXssMatchSetsResponse
Lens' ListXssMatchSetsResponse (Maybe Text)
listXssMatchSetsResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListXssMatchSetsResponse
-> Const (First Text) ListXssMatchSetsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListXssMatchSetsResponse 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 ListXssMatchSets where
type
AWSResponse ListXssMatchSets =
ListXssMatchSetsResponse
request :: ListXssMatchSets -> Request ListXssMatchSets
request = Service -> ListXssMatchSets -> Request ListXssMatchSets
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListXssMatchSets
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListXssMatchSets)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListXssMatchSets))
-> Logger
-> Service
-> Proxy ListXssMatchSets
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListXssMatchSets)))
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 [XssMatchSetSummary]
-> Maybe Text -> Int -> ListXssMatchSetsResponse
ListXssMatchSetsResponse'
(Maybe [XssMatchSetSummary]
-> Maybe Text -> Int -> ListXssMatchSetsResponse)
-> Either String (Maybe [XssMatchSetSummary])
-> Either String (Maybe Text -> Int -> ListXssMatchSetsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe (Maybe [XssMatchSetSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"XssMatchSets" Either String (Maybe (Maybe [XssMatchSetSummary]))
-> Maybe [XssMatchSetSummary]
-> Either String (Maybe [XssMatchSetSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [XssMatchSetSummary]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListXssMatchSetsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListXssMatchSetsResponse)
forall (f :: * -> *) a b. Applicative f => 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 (Int -> ListXssMatchSetsResponse)
-> Either String Int -> Either String ListXssMatchSetsResponse
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 ListXssMatchSets
instance Prelude.NFData ListXssMatchSets
instance Core.ToHeaders ListXssMatchSets where
toHeaders :: ListXssMatchSets -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListXssMatchSets -> 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.ListXssMatchSets" ::
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 ListXssMatchSets where
toJSON :: ListXssMatchSets -> Value
toJSON ListXssMatchSets' {Maybe Natural
Maybe Text
limit :: Maybe Natural
nextMarker :: Maybe Text
$sel:limit:ListXssMatchSets' :: ListXssMatchSets -> Maybe Natural
$sel:nextMarker:ListXssMatchSets' :: ListXssMatchSets -> 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 ListXssMatchSets where
toPath :: ListXssMatchSets -> ByteString
toPath = ByteString -> ListXssMatchSets -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListXssMatchSets where
toQuery :: ListXssMatchSets -> QueryString
toQuery = QueryString -> ListXssMatchSets -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListXssMatchSetsResponse = ListXssMatchSetsResponse'
{
ListXssMatchSetsResponse -> Maybe [XssMatchSetSummary]
xssMatchSets :: Prelude.Maybe [XssMatchSetSummary],
ListXssMatchSetsResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
ListXssMatchSetsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListXssMatchSetsResponse -> ListXssMatchSetsResponse -> Bool
(ListXssMatchSetsResponse -> ListXssMatchSetsResponse -> Bool)
-> (ListXssMatchSetsResponse -> ListXssMatchSetsResponse -> Bool)
-> Eq ListXssMatchSetsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListXssMatchSetsResponse -> ListXssMatchSetsResponse -> Bool
$c/= :: ListXssMatchSetsResponse -> ListXssMatchSetsResponse -> Bool
== :: ListXssMatchSetsResponse -> ListXssMatchSetsResponse -> Bool
$c== :: ListXssMatchSetsResponse -> ListXssMatchSetsResponse -> Bool
Prelude.Eq, ReadPrec [ListXssMatchSetsResponse]
ReadPrec ListXssMatchSetsResponse
Int -> ReadS ListXssMatchSetsResponse
ReadS [ListXssMatchSetsResponse]
(Int -> ReadS ListXssMatchSetsResponse)
-> ReadS [ListXssMatchSetsResponse]
-> ReadPrec ListXssMatchSetsResponse
-> ReadPrec [ListXssMatchSetsResponse]
-> Read ListXssMatchSetsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListXssMatchSetsResponse]
$creadListPrec :: ReadPrec [ListXssMatchSetsResponse]
readPrec :: ReadPrec ListXssMatchSetsResponse
$creadPrec :: ReadPrec ListXssMatchSetsResponse
readList :: ReadS [ListXssMatchSetsResponse]
$creadList :: ReadS [ListXssMatchSetsResponse]
readsPrec :: Int -> ReadS ListXssMatchSetsResponse
$creadsPrec :: Int -> ReadS ListXssMatchSetsResponse
Prelude.Read, Int -> ListXssMatchSetsResponse -> ShowS
[ListXssMatchSetsResponse] -> ShowS
ListXssMatchSetsResponse -> String
(Int -> ListXssMatchSetsResponse -> ShowS)
-> (ListXssMatchSetsResponse -> String)
-> ([ListXssMatchSetsResponse] -> ShowS)
-> Show ListXssMatchSetsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListXssMatchSetsResponse] -> ShowS
$cshowList :: [ListXssMatchSetsResponse] -> ShowS
show :: ListXssMatchSetsResponse -> String
$cshow :: ListXssMatchSetsResponse -> String
showsPrec :: Int -> ListXssMatchSetsResponse -> ShowS
$cshowsPrec :: Int -> ListXssMatchSetsResponse -> ShowS
Prelude.Show, (forall x.
ListXssMatchSetsResponse -> Rep ListXssMatchSetsResponse x)
-> (forall x.
Rep ListXssMatchSetsResponse x -> ListXssMatchSetsResponse)
-> Generic ListXssMatchSetsResponse
forall x.
Rep ListXssMatchSetsResponse x -> ListXssMatchSetsResponse
forall x.
ListXssMatchSetsResponse -> Rep ListXssMatchSetsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListXssMatchSetsResponse x -> ListXssMatchSetsResponse
$cfrom :: forall x.
ListXssMatchSetsResponse -> Rep ListXssMatchSetsResponse x
Prelude.Generic)
newListXssMatchSetsResponse ::
Prelude.Int ->
ListXssMatchSetsResponse
newListXssMatchSetsResponse :: Int -> ListXssMatchSetsResponse
newListXssMatchSetsResponse Int
pHttpStatus_ =
ListXssMatchSetsResponse' :: Maybe [XssMatchSetSummary]
-> Maybe Text -> Int -> ListXssMatchSetsResponse
ListXssMatchSetsResponse'
{ $sel:xssMatchSets:ListXssMatchSetsResponse' :: Maybe [XssMatchSetSummary]
xssMatchSets =
Maybe [XssMatchSetSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:nextMarker:ListXssMatchSetsResponse' :: Maybe Text
nextMarker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListXssMatchSetsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listXssMatchSetsResponse_xssMatchSets :: Lens.Lens' ListXssMatchSetsResponse (Prelude.Maybe [XssMatchSetSummary])
listXssMatchSetsResponse_xssMatchSets :: (Maybe [XssMatchSetSummary] -> f (Maybe [XssMatchSetSummary]))
-> ListXssMatchSetsResponse -> f ListXssMatchSetsResponse
listXssMatchSetsResponse_xssMatchSets = (ListXssMatchSetsResponse -> Maybe [XssMatchSetSummary])
-> (ListXssMatchSetsResponse
-> Maybe [XssMatchSetSummary] -> ListXssMatchSetsResponse)
-> Lens' ListXssMatchSetsResponse (Maybe [XssMatchSetSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListXssMatchSetsResponse' {Maybe [XssMatchSetSummary]
xssMatchSets :: Maybe [XssMatchSetSummary]
$sel:xssMatchSets:ListXssMatchSetsResponse' :: ListXssMatchSetsResponse -> Maybe [XssMatchSetSummary]
xssMatchSets} -> Maybe [XssMatchSetSummary]
xssMatchSets) (\s :: ListXssMatchSetsResponse
s@ListXssMatchSetsResponse' {} Maybe [XssMatchSetSummary]
a -> ListXssMatchSetsResponse
s {$sel:xssMatchSets:ListXssMatchSetsResponse' :: Maybe [XssMatchSetSummary]
xssMatchSets = Maybe [XssMatchSetSummary]
a} :: ListXssMatchSetsResponse) ((Maybe [XssMatchSetSummary] -> f (Maybe [XssMatchSetSummary]))
-> ListXssMatchSetsResponse -> f ListXssMatchSetsResponse)
-> ((Maybe [XssMatchSetSummary] -> f (Maybe [XssMatchSetSummary]))
-> Maybe [XssMatchSetSummary] -> f (Maybe [XssMatchSetSummary]))
-> (Maybe [XssMatchSetSummary] -> f (Maybe [XssMatchSetSummary]))
-> ListXssMatchSetsResponse
-> f ListXssMatchSetsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[XssMatchSetSummary]
[XssMatchSetSummary]
[XssMatchSetSummary]
[XssMatchSetSummary]
-> Iso
(Maybe [XssMatchSetSummary])
(Maybe [XssMatchSetSummary])
(Maybe [XssMatchSetSummary])
(Maybe [XssMatchSetSummary])
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
[XssMatchSetSummary]
[XssMatchSetSummary]
[XssMatchSetSummary]
[XssMatchSetSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listXssMatchSetsResponse_nextMarker :: Lens.Lens' ListXssMatchSetsResponse (Prelude.Maybe Prelude.Text)
listXssMatchSetsResponse_nextMarker :: (Maybe Text -> f (Maybe Text))
-> ListXssMatchSetsResponse -> f ListXssMatchSetsResponse
listXssMatchSetsResponse_nextMarker = (ListXssMatchSetsResponse -> Maybe Text)
-> (ListXssMatchSetsResponse
-> Maybe Text -> ListXssMatchSetsResponse)
-> Lens' ListXssMatchSetsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListXssMatchSetsResponse' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:ListXssMatchSetsResponse' :: ListXssMatchSetsResponse -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: ListXssMatchSetsResponse
s@ListXssMatchSetsResponse' {} Maybe Text
a -> ListXssMatchSetsResponse
s {$sel:nextMarker:ListXssMatchSetsResponse' :: Maybe Text
nextMarker = Maybe Text
a} :: ListXssMatchSetsResponse)
listXssMatchSetsResponse_httpStatus :: Lens.Lens' ListXssMatchSetsResponse Prelude.Int
listXssMatchSetsResponse_httpStatus :: (Int -> f Int)
-> ListXssMatchSetsResponse -> f ListXssMatchSetsResponse
listXssMatchSetsResponse_httpStatus = (ListXssMatchSetsResponse -> Int)
-> (ListXssMatchSetsResponse -> Int -> ListXssMatchSetsResponse)
-> Lens ListXssMatchSetsResponse ListXssMatchSetsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListXssMatchSetsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListXssMatchSetsResponse' :: ListXssMatchSetsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListXssMatchSetsResponse
s@ListXssMatchSetsResponse' {} Int
a -> ListXssMatchSetsResponse
s {$sel:httpStatus:ListXssMatchSetsResponse' :: Int
httpStatus = Int
a} :: ListXssMatchSetsResponse)
instance Prelude.NFData ListXssMatchSetsResponse