{-# 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.ListGeoMatchSets
-- 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 GeoMatchSetSummary objects in the response.
module Amazonka.WAFRegional.ListGeoMatchSets
  ( -- * Creating a Request
    ListGeoMatchSets (..),
    newListGeoMatchSets,

    -- * Request Lenses
    listGeoMatchSets_nextMarker,
    listGeoMatchSets_limit,

    -- * Destructuring the Response
    ListGeoMatchSetsResponse (..),
    newListGeoMatchSetsResponse,

    -- * Response Lenses
    listGeoMatchSetsResponse_geoMatchSets,
    listGeoMatchSetsResponse_nextMarker,
    listGeoMatchSetsResponse_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

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

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

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

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

instance Core.AWSRequest ListGeoMatchSets where
  type
    AWSResponse ListGeoMatchSets =
      ListGeoMatchSetsResponse
  request :: ListGeoMatchSets -> Request ListGeoMatchSets
request = Service -> ListGeoMatchSets -> Request ListGeoMatchSets
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListGeoMatchSets
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListGeoMatchSets)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListGeoMatchSets))
-> Logger
-> Service
-> Proxy ListGeoMatchSets
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListGeoMatchSets)))
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 [GeoMatchSetSummary]
-> Maybe Text -> Int -> ListGeoMatchSetsResponse
ListGeoMatchSetsResponse'
            (Maybe [GeoMatchSetSummary]
 -> Maybe Text -> Int -> ListGeoMatchSetsResponse)
-> Either String (Maybe [GeoMatchSetSummary])
-> Either String (Maybe Text -> Int -> ListGeoMatchSetsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe (Maybe [GeoMatchSetSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"GeoMatchSets" Either String (Maybe (Maybe [GeoMatchSetSummary]))
-> Maybe [GeoMatchSetSummary]
-> Either String (Maybe [GeoMatchSetSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [GeoMatchSetSummary]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Maybe Text -> Int -> ListGeoMatchSetsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListGeoMatchSetsResponse)
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 -> ListGeoMatchSetsResponse)
-> Either String Int -> Either String ListGeoMatchSetsResponse
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 ListGeoMatchSets

instance Prelude.NFData ListGeoMatchSets

instance Core.ToHeaders ListGeoMatchSets where
  toHeaders :: ListGeoMatchSets -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListGeoMatchSets -> 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.ListGeoMatchSets" ::
                          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 ListGeoMatchSets where
  toJSON :: ListGeoMatchSets -> Value
toJSON ListGeoMatchSets' {Maybe Natural
Maybe Text
limit :: Maybe Natural
nextMarker :: Maybe Text
$sel:limit:ListGeoMatchSets' :: ListGeoMatchSets -> Maybe Natural
$sel:nextMarker:ListGeoMatchSets' :: ListGeoMatchSets -> 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 ListGeoMatchSets where
  toPath :: ListGeoMatchSets -> ByteString
toPath = ByteString -> ListGeoMatchSets -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

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

-- |
-- Create a value of 'ListGeoMatchSetsResponse' 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:
--
-- 'geoMatchSets', 'listGeoMatchSetsResponse_geoMatchSets' - An array of GeoMatchSetSummary objects.
--
-- 'nextMarker', 'listGeoMatchSetsResponse_nextMarker' - If you have more @GeoMatchSet@ objects than the number that you
-- specified for @Limit@ in the request, the response includes a
-- @NextMarker@ value. To list more @GeoMatchSet@ objects, submit another
-- @ListGeoMatchSets@ request, and specify the @NextMarker@ value from the
-- response in the @NextMarker@ value in the next request.
--
-- 'httpStatus', 'listGeoMatchSetsResponse_httpStatus' - The response's http status code.
newListGeoMatchSetsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListGeoMatchSetsResponse
newListGeoMatchSetsResponse :: Int -> ListGeoMatchSetsResponse
newListGeoMatchSetsResponse Int
pHttpStatus_ =
  ListGeoMatchSetsResponse' :: Maybe [GeoMatchSetSummary]
-> Maybe Text -> Int -> ListGeoMatchSetsResponse
ListGeoMatchSetsResponse'
    { $sel:geoMatchSets:ListGeoMatchSetsResponse' :: Maybe [GeoMatchSetSummary]
geoMatchSets =
        Maybe [GeoMatchSetSummary]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextMarker:ListGeoMatchSetsResponse' :: Maybe Text
nextMarker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListGeoMatchSetsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

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

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

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

instance Prelude.NFData ListGeoMatchSetsResponse