{-# 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.WAF.ListRegexMatchSets
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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 RegexMatchSetSummary objects.
--
-- This operation returns paginated results.
module Amazonka.WAF.ListRegexMatchSets
  ( -- * Creating a Request
    ListRegexMatchSets (..),
    newListRegexMatchSets,

    -- * Request Lenses
    listRegexMatchSets_limit,
    listRegexMatchSets_nextMarker,

    -- * Destructuring the Response
    ListRegexMatchSetsResponse (..),
    newListRegexMatchSetsResponse,

    -- * Response Lenses
    listRegexMatchSetsResponse_nextMarker,
    listRegexMatchSetsResponse_regexMatchSets,
    listRegexMatchSetsResponse_httpStatus,
  )
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
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.WAF.Types

-- | /See:/ 'newListRegexMatchSets' smart constructor.
data ListRegexMatchSets = ListRegexMatchSets'
  { -- | Specifies the number of @RegexMatchSet@ objects that you want AWS WAF to
    -- return for this request. If you have more @RegexMatchSet@ objects than
    -- the number you specify for @Limit@, the response includes a @NextMarker@
    -- value that you can use to get another batch of @RegexMatchSet@ objects.
    ListRegexMatchSets -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural,
    -- | If you specify a value for @Limit@ and you have more @RegexMatchSet@
    -- objects than the value of @Limit@, AWS WAF returns a @NextMarker@ value
    -- in the response that allows you to list another group of
    -- @ByteMatchSets@. For the second and subsequent @ListRegexMatchSets@
    -- requests, specify the value of @NextMarker@ from the previous response
    -- to get information about another batch of @RegexMatchSet@ objects.
    ListRegexMatchSets -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text
  }
  deriving (ListRegexMatchSets -> ListRegexMatchSets -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRegexMatchSets -> ListRegexMatchSets -> Bool
$c/= :: ListRegexMatchSets -> ListRegexMatchSets -> Bool
== :: ListRegexMatchSets -> ListRegexMatchSets -> Bool
$c== :: ListRegexMatchSets -> ListRegexMatchSets -> Bool
Prelude.Eq, ReadPrec [ListRegexMatchSets]
ReadPrec ListRegexMatchSets
Int -> ReadS ListRegexMatchSets
ReadS [ListRegexMatchSets]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRegexMatchSets]
$creadListPrec :: ReadPrec [ListRegexMatchSets]
readPrec :: ReadPrec ListRegexMatchSets
$creadPrec :: ReadPrec ListRegexMatchSets
readList :: ReadS [ListRegexMatchSets]
$creadList :: ReadS [ListRegexMatchSets]
readsPrec :: Int -> ReadS ListRegexMatchSets
$creadsPrec :: Int -> ReadS ListRegexMatchSets
Prelude.Read, Int -> ListRegexMatchSets -> ShowS
[ListRegexMatchSets] -> ShowS
ListRegexMatchSets -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRegexMatchSets] -> ShowS
$cshowList :: [ListRegexMatchSets] -> ShowS
show :: ListRegexMatchSets -> String
$cshow :: ListRegexMatchSets -> String
showsPrec :: Int -> ListRegexMatchSets -> ShowS
$cshowsPrec :: Int -> ListRegexMatchSets -> ShowS
Prelude.Show, forall x. Rep ListRegexMatchSets x -> ListRegexMatchSets
forall x. ListRegexMatchSets -> Rep ListRegexMatchSets x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListRegexMatchSets x -> ListRegexMatchSets
$cfrom :: forall x. ListRegexMatchSets -> Rep ListRegexMatchSets x
Prelude.Generic)

-- |
-- Create a value of 'ListRegexMatchSets' 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:
--
-- 'limit', 'listRegexMatchSets_limit' - Specifies the number of @RegexMatchSet@ objects that you want AWS WAF to
-- return for this request. If you have more @RegexMatchSet@ objects than
-- the number you specify for @Limit@, the response includes a @NextMarker@
-- value that you can use to get another batch of @RegexMatchSet@ objects.
--
-- 'nextMarker', 'listRegexMatchSets_nextMarker' - If you specify a value for @Limit@ and you have more @RegexMatchSet@
-- objects than the value of @Limit@, AWS WAF returns a @NextMarker@ value
-- in the response that allows you to list another group of
-- @ByteMatchSets@. For the second and subsequent @ListRegexMatchSets@
-- requests, specify the value of @NextMarker@ from the previous response
-- to get information about another batch of @RegexMatchSet@ objects.
newListRegexMatchSets ::
  ListRegexMatchSets
newListRegexMatchSets :: ListRegexMatchSets
newListRegexMatchSets =
  ListRegexMatchSets'
    { $sel:limit:ListRegexMatchSets' :: Maybe Natural
limit = forall a. Maybe a
Prelude.Nothing,
      $sel:nextMarker:ListRegexMatchSets' :: Maybe Text
nextMarker = forall a. Maybe a
Prelude.Nothing
    }

-- | Specifies the number of @RegexMatchSet@ objects that you want AWS WAF to
-- return for this request. If you have more @RegexMatchSet@ objects than
-- the number you specify for @Limit@, the response includes a @NextMarker@
-- value that you can use to get another batch of @RegexMatchSet@ objects.
listRegexMatchSets_limit :: Lens.Lens' ListRegexMatchSets (Prelude.Maybe Prelude.Natural)
listRegexMatchSets_limit :: Lens' ListRegexMatchSets (Maybe Natural)
listRegexMatchSets_limit = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRegexMatchSets' {Maybe Natural
limit :: Maybe Natural
$sel:limit:ListRegexMatchSets' :: ListRegexMatchSets -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: ListRegexMatchSets
s@ListRegexMatchSets' {} Maybe Natural
a -> ListRegexMatchSets
s {$sel:limit:ListRegexMatchSets' :: Maybe Natural
limit = Maybe Natural
a} :: ListRegexMatchSets)

-- | If you specify a value for @Limit@ and you have more @RegexMatchSet@
-- objects than the value of @Limit@, AWS WAF returns a @NextMarker@ value
-- in the response that allows you to list another group of
-- @ByteMatchSets@. For the second and subsequent @ListRegexMatchSets@
-- requests, specify the value of @NextMarker@ from the previous response
-- to get information about another batch of @RegexMatchSet@ objects.
listRegexMatchSets_nextMarker :: Lens.Lens' ListRegexMatchSets (Prelude.Maybe Prelude.Text)
listRegexMatchSets_nextMarker :: Lens' ListRegexMatchSets (Maybe Text)
listRegexMatchSets_nextMarker = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRegexMatchSets' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:ListRegexMatchSets' :: ListRegexMatchSets -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: ListRegexMatchSets
s@ListRegexMatchSets' {} Maybe Text
a -> ListRegexMatchSets
s {$sel:nextMarker:ListRegexMatchSets' :: Maybe Text
nextMarker = Maybe Text
a} :: ListRegexMatchSets)

instance Core.AWSPager ListRegexMatchSets where
  page :: ListRegexMatchSets
-> AWSResponse ListRegexMatchSets -> Maybe ListRegexMatchSets
page ListRegexMatchSets
rq AWSResponse ListRegexMatchSets
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListRegexMatchSets
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListRegexMatchSetsResponse (Maybe Text)
listRegexMatchSetsResponse_nextMarker
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListRegexMatchSets
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListRegexMatchSetsResponse (Maybe [RegexMatchSetSummary])
listRegexMatchSetsResponse_regexMatchSets
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListRegexMatchSets
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListRegexMatchSets (Maybe Text)
listRegexMatchSets_nextMarker
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListRegexMatchSets
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListRegexMatchSetsResponse (Maybe Text)
listRegexMatchSetsResponse_nextMarker
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance Core.AWSRequest ListRegexMatchSets where
  type
    AWSResponse ListRegexMatchSets =
      ListRegexMatchSetsResponse
  request :: (Service -> Service)
-> ListRegexMatchSets -> Request ListRegexMatchSets
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListRegexMatchSets
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListRegexMatchSets)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Maybe [RegexMatchSetSummary]
-> Int
-> ListRegexMatchSetsResponse
ListRegexMatchSetsResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextMarker")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"RegexMatchSets" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable ListRegexMatchSets where
  hashWithSalt :: Int -> ListRegexMatchSets -> Int
hashWithSalt Int
_salt ListRegexMatchSets' {Maybe Natural
Maybe Text
nextMarker :: Maybe Text
limit :: Maybe Natural
$sel:nextMarker:ListRegexMatchSets' :: ListRegexMatchSets -> Maybe Text
$sel:limit:ListRegexMatchSets' :: ListRegexMatchSets -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
limit
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextMarker

instance Prelude.NFData ListRegexMatchSets where
  rnf :: ListRegexMatchSets -> ()
rnf ListRegexMatchSets' {Maybe Natural
Maybe Text
nextMarker :: Maybe Text
limit :: Maybe Natural
$sel:nextMarker:ListRegexMatchSets' :: ListRegexMatchSets -> Maybe Text
$sel:limit:ListRegexMatchSets' :: ListRegexMatchSets -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
limit
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextMarker

instance Data.ToHeaders ListRegexMatchSets where
  toHeaders :: ListRegexMatchSets -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"AWSWAF_20150824.ListRegexMatchSets" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToJSON ListRegexMatchSets where
  toJSON :: ListRegexMatchSets -> Value
toJSON ListRegexMatchSets' {Maybe Natural
Maybe Text
nextMarker :: Maybe Text
limit :: Maybe Natural
$sel:nextMarker:ListRegexMatchSets' :: ListRegexMatchSets -> Maybe Text
$sel:limit:ListRegexMatchSets' :: ListRegexMatchSets -> Maybe Natural
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"Limit" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
limit,
            (Key
"NextMarker" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextMarker
          ]
      )

instance Data.ToPath ListRegexMatchSets where
  toPath :: ListRegexMatchSets -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Data.ToQuery ListRegexMatchSets where
  toQuery :: ListRegexMatchSets -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newListRegexMatchSetsResponse' smart constructor.
data ListRegexMatchSetsResponse = ListRegexMatchSetsResponse'
  { -- | If you have more @RegexMatchSet@ objects than the number that you
    -- specified for @Limit@ in the request, the response includes a
    -- @NextMarker@ value. To list more @RegexMatchSet@ objects, submit another
    -- @ListRegexMatchSets@ request, and specify the @NextMarker@ value from
    -- the response in the @NextMarker@ value in the next request.
    ListRegexMatchSetsResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
    -- | An array of RegexMatchSetSummary objects.
    ListRegexMatchSetsResponse -> Maybe [RegexMatchSetSummary]
regexMatchSets :: Prelude.Maybe [RegexMatchSetSummary],
    -- | The response's http status code.
    ListRegexMatchSetsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListRegexMatchSetsResponse -> ListRegexMatchSetsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRegexMatchSetsResponse -> ListRegexMatchSetsResponse -> Bool
$c/= :: ListRegexMatchSetsResponse -> ListRegexMatchSetsResponse -> Bool
== :: ListRegexMatchSetsResponse -> ListRegexMatchSetsResponse -> Bool
$c== :: ListRegexMatchSetsResponse -> ListRegexMatchSetsResponse -> Bool
Prelude.Eq, ReadPrec [ListRegexMatchSetsResponse]
ReadPrec ListRegexMatchSetsResponse
Int -> ReadS ListRegexMatchSetsResponse
ReadS [ListRegexMatchSetsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRegexMatchSetsResponse]
$creadListPrec :: ReadPrec [ListRegexMatchSetsResponse]
readPrec :: ReadPrec ListRegexMatchSetsResponse
$creadPrec :: ReadPrec ListRegexMatchSetsResponse
readList :: ReadS [ListRegexMatchSetsResponse]
$creadList :: ReadS [ListRegexMatchSetsResponse]
readsPrec :: Int -> ReadS ListRegexMatchSetsResponse
$creadsPrec :: Int -> ReadS ListRegexMatchSetsResponse
Prelude.Read, Int -> ListRegexMatchSetsResponse -> ShowS
[ListRegexMatchSetsResponse] -> ShowS
ListRegexMatchSetsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRegexMatchSetsResponse] -> ShowS
$cshowList :: [ListRegexMatchSetsResponse] -> ShowS
show :: ListRegexMatchSetsResponse -> String
$cshow :: ListRegexMatchSetsResponse -> String
showsPrec :: Int -> ListRegexMatchSetsResponse -> ShowS
$cshowsPrec :: Int -> ListRegexMatchSetsResponse -> ShowS
Prelude.Show, forall x.
Rep ListRegexMatchSetsResponse x -> ListRegexMatchSetsResponse
forall x.
ListRegexMatchSetsResponse -> Rep ListRegexMatchSetsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListRegexMatchSetsResponse x -> ListRegexMatchSetsResponse
$cfrom :: forall x.
ListRegexMatchSetsResponse -> Rep ListRegexMatchSetsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListRegexMatchSetsResponse' 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', 'listRegexMatchSetsResponse_nextMarker' - If you have more @RegexMatchSet@ objects than the number that you
-- specified for @Limit@ in the request, the response includes a
-- @NextMarker@ value. To list more @RegexMatchSet@ objects, submit another
-- @ListRegexMatchSets@ request, and specify the @NextMarker@ value from
-- the response in the @NextMarker@ value in the next request.
--
-- 'regexMatchSets', 'listRegexMatchSetsResponse_regexMatchSets' - An array of RegexMatchSetSummary objects.
--
-- 'httpStatus', 'listRegexMatchSetsResponse_httpStatus' - The response's http status code.
newListRegexMatchSetsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListRegexMatchSetsResponse
newListRegexMatchSetsResponse :: Int -> ListRegexMatchSetsResponse
newListRegexMatchSetsResponse Int
pHttpStatus_ =
  ListRegexMatchSetsResponse'
    { $sel:nextMarker:ListRegexMatchSetsResponse' :: Maybe Text
nextMarker =
        forall a. Maybe a
Prelude.Nothing,
      $sel:regexMatchSets:ListRegexMatchSetsResponse' :: Maybe [RegexMatchSetSummary]
regexMatchSets = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListRegexMatchSetsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | If you have more @RegexMatchSet@ objects than the number that you
-- specified for @Limit@ in the request, the response includes a
-- @NextMarker@ value. To list more @RegexMatchSet@ objects, submit another
-- @ListRegexMatchSets@ request, and specify the @NextMarker@ value from
-- the response in the @NextMarker@ value in the next request.
listRegexMatchSetsResponse_nextMarker :: Lens.Lens' ListRegexMatchSetsResponse (Prelude.Maybe Prelude.Text)
listRegexMatchSetsResponse_nextMarker :: Lens' ListRegexMatchSetsResponse (Maybe Text)
listRegexMatchSetsResponse_nextMarker = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRegexMatchSetsResponse' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:ListRegexMatchSetsResponse' :: ListRegexMatchSetsResponse -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: ListRegexMatchSetsResponse
s@ListRegexMatchSetsResponse' {} Maybe Text
a -> ListRegexMatchSetsResponse
s {$sel:nextMarker:ListRegexMatchSetsResponse' :: Maybe Text
nextMarker = Maybe Text
a} :: ListRegexMatchSetsResponse)

-- | An array of RegexMatchSetSummary objects.
listRegexMatchSetsResponse_regexMatchSets :: Lens.Lens' ListRegexMatchSetsResponse (Prelude.Maybe [RegexMatchSetSummary])
listRegexMatchSetsResponse_regexMatchSets :: Lens' ListRegexMatchSetsResponse (Maybe [RegexMatchSetSummary])
listRegexMatchSetsResponse_regexMatchSets = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRegexMatchSetsResponse' {Maybe [RegexMatchSetSummary]
regexMatchSets :: Maybe [RegexMatchSetSummary]
$sel:regexMatchSets:ListRegexMatchSetsResponse' :: ListRegexMatchSetsResponse -> Maybe [RegexMatchSetSummary]
regexMatchSets} -> Maybe [RegexMatchSetSummary]
regexMatchSets) (\s :: ListRegexMatchSetsResponse
s@ListRegexMatchSetsResponse' {} Maybe [RegexMatchSetSummary]
a -> ListRegexMatchSetsResponse
s {$sel:regexMatchSets:ListRegexMatchSetsResponse' :: Maybe [RegexMatchSetSummary]
regexMatchSets = Maybe [RegexMatchSetSummary]
a} :: ListRegexMatchSetsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
listRegexMatchSetsResponse_httpStatus :: Lens.Lens' ListRegexMatchSetsResponse Prelude.Int
listRegexMatchSetsResponse_httpStatus :: Lens' ListRegexMatchSetsResponse Int
listRegexMatchSetsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRegexMatchSetsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListRegexMatchSetsResponse' :: ListRegexMatchSetsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListRegexMatchSetsResponse
s@ListRegexMatchSetsResponse' {} Int
a -> ListRegexMatchSetsResponse
s {$sel:httpStatus:ListRegexMatchSetsResponse' :: Int
httpStatus = Int
a} :: ListRegexMatchSetsResponse)

instance Prelude.NFData ListRegexMatchSetsResponse where
  rnf :: ListRegexMatchSetsResponse -> ()
rnf ListRegexMatchSetsResponse' {Int
Maybe [RegexMatchSetSummary]
Maybe Text
httpStatus :: Int
regexMatchSets :: Maybe [RegexMatchSetSummary]
nextMarker :: Maybe Text
$sel:httpStatus:ListRegexMatchSetsResponse' :: ListRegexMatchSetsResponse -> Int
$sel:regexMatchSets:ListRegexMatchSetsResponse' :: ListRegexMatchSetsResponse -> Maybe [RegexMatchSetSummary]
$sel:nextMarker:ListRegexMatchSetsResponse' :: ListRegexMatchSetsResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextMarker
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [RegexMatchSetSummary]
regexMatchSets
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus