{-# 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 #-}

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

-- |
-- Module      : Amazonka.WAFRegional.ListXssMatchSets
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- This is __AWS WAF Classic__ documentation. For more information, see
-- <https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html AWS WAF Classic>
-- in the developer guide.
--
-- __For the latest version of AWS WAF__, use the AWS WAFV2 API and see the
-- <https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html AWS WAF Developer Guide>.
-- With the latest version, AWS WAF has a single set of endpoints for
-- regional and global use.
--
-- Returns an array of XssMatchSet objects.
module Amazonka.WAFRegional.ListXssMatchSets
  ( -- * Creating a Request
    ListXssMatchSets (..),
    newListXssMatchSets,

    -- * Request Lenses
    listXssMatchSets_nextMarker,
    listXssMatchSets_limit,

    -- * Destructuring the Response
    ListXssMatchSetsResponse (..),
    newListXssMatchSetsResponse,

    -- * Response Lenses
    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.WAFRegional.Types

-- | A request to list the XssMatchSet objects created by the current AWS
-- account.
--
-- /See:/ 'newListXssMatchSets' smart constructor.
data ListXssMatchSets = ListXssMatchSets'
  { -- | If you specify a value for @Limit@ and you have more XssMatchSet objects
    -- than the value of @Limit@, AWS WAF returns a @NextMarker@ value in the
    -- response that allows you to list another group of @XssMatchSets@. For
    -- the second and subsequent @ListXssMatchSets@ requests, specify the value
    -- of @NextMarker@ from the previous response to get information about
    -- another batch of @XssMatchSets@.
    ListXssMatchSets -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
    -- | Specifies the number of XssMatchSet objects that you want AWS WAF to
    -- return for this request. If you have more @XssMatchSet@ objects than the
    -- number you specify for @Limit@, the response includes a @NextMarker@
    -- value that you can use to get another batch of @Rules@.
    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)

-- |
-- Create a value of 'ListXssMatchSets' 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.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextMarker', 'listXssMatchSets_nextMarker' - If you specify a value for @Limit@ and you have more XssMatchSet objects
-- than the value of @Limit@, AWS WAF returns a @NextMarker@ value in the
-- response that allows you to list another group of @XssMatchSets@. For
-- the second and subsequent @ListXssMatchSets@ requests, specify the value
-- of @NextMarker@ from the previous response to get information about
-- another batch of @XssMatchSets@.
--
-- 'limit', 'listXssMatchSets_limit' - Specifies the number of XssMatchSet objects that you want AWS WAF to
-- return for this request. If you have more @XssMatchSet@ objects than the
-- number you specify for @Limit@, the response includes a @NextMarker@
-- value that you can use to get another batch of @Rules@.
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
    }

-- | If you specify a value for @Limit@ and you have more XssMatchSet objects
-- than the value of @Limit@, AWS WAF returns a @NextMarker@ value in the
-- response that allows you to list another group of @XssMatchSets@. For
-- the second and subsequent @ListXssMatchSets@ requests, specify the value
-- of @NextMarker@ from the previous response to get information about
-- another batch of @XssMatchSets@.
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)

-- | Specifies the number of XssMatchSet objects that you want AWS WAF to
-- return for this request. If you have more @XssMatchSet@ objects than the
-- number you specify for @Limit@, the response includes a @NextMarker@
-- value that you can use to get another batch of @Rules@.
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.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_Regional_20161128.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

-- | The response to a ListXssMatchSets request.
--
-- /See:/ 'newListXssMatchSetsResponse' smart constructor.
data ListXssMatchSetsResponse = ListXssMatchSetsResponse'
  { -- | An array of XssMatchSetSummary objects.
    ListXssMatchSetsResponse -> Maybe [XssMatchSetSummary]
xssMatchSets :: Prelude.Maybe [XssMatchSetSummary],
    -- | If you have more XssMatchSet objects than the number that you specified
    -- for @Limit@ in the request, the response includes a @NextMarker@ value.
    -- To list more @XssMatchSet@ objects, submit another @ListXssMatchSets@
    -- request, and specify the @NextMarker@ value from the response in the
    -- @NextMarker@ value in the next request.
    ListXssMatchSetsResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    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)

-- |
-- Create a value of 'ListXssMatchSetsResponse' 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.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'xssMatchSets', 'listXssMatchSetsResponse_xssMatchSets' - An array of XssMatchSetSummary objects.
--
-- 'nextMarker', 'listXssMatchSetsResponse_nextMarker' - If you have more XssMatchSet objects than the number that you specified
-- for @Limit@ in the request, the response includes a @NextMarker@ value.
-- To list more @XssMatchSet@ objects, submit another @ListXssMatchSets@
-- request, and specify the @NextMarker@ value from the response in the
-- @NextMarker@ value in the next request.
--
-- 'httpStatus', 'listXssMatchSetsResponse_httpStatus' - The response's http status code.
newListXssMatchSetsResponse ::
  -- | 'httpStatus'
  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_
    }

-- | An array of XssMatchSetSummary objects.
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
     ListXssMatchSetsResponse
     (Maybe [XssMatchSetSummary])
     (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

-- | If you have more XssMatchSet objects than the number that you specified
-- for @Limit@ in the request, the response includes a @NextMarker@ value.
-- To list more @XssMatchSet@ objects, submit another @ListXssMatchSets@
-- request, and specify the @NextMarker@ value from the response in the
-- @NextMarker@ value in the next request.
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
     ListXssMatchSetsResponse
     (Maybe Text)
     (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)

-- | The response's http status code.
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