{-# 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.ListGeoMatchSets
(
ListGeoMatchSets (..),
newListGeoMatchSets,
listGeoMatchSets_nextMarker,
listGeoMatchSets_limit,
ListGeoMatchSetsResponse (..),
newListGeoMatchSetsResponse,
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.WAF.Types
data ListGeoMatchSets = ListGeoMatchSets'
{
ListGeoMatchSets -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
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)
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
}
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)
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.AWSPager ListGeoMatchSets where
page :: ListGeoMatchSets
-> AWSResponse ListGeoMatchSets -> Maybe ListGeoMatchSets
page ListGeoMatchSets
rq AWSResponse ListGeoMatchSets
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListGeoMatchSets
ListGeoMatchSetsResponse
rs
ListGeoMatchSetsResponse
-> Getting (First Text) ListGeoMatchSetsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListGeoMatchSetsResponse
-> Const (First Text) ListGeoMatchSetsResponse
Lens' ListGeoMatchSetsResponse (Maybe Text)
listGeoMatchSetsResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListGeoMatchSetsResponse
-> Const (First Text) ListGeoMatchSetsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListGeoMatchSetsResponse 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 ListGeoMatchSets
forall a. Maybe a
Prelude.Nothing
| Maybe [GeoMatchSetSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListGeoMatchSets
ListGeoMatchSetsResponse
rs
ListGeoMatchSetsResponse
-> Getting
(First [GeoMatchSetSummary])
ListGeoMatchSetsResponse
[GeoMatchSetSummary]
-> Maybe [GeoMatchSetSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [GeoMatchSetSummary]
-> Const (First [GeoMatchSetSummary]) (Maybe [GeoMatchSetSummary]))
-> ListGeoMatchSetsResponse
-> Const (First [GeoMatchSetSummary]) ListGeoMatchSetsResponse
Lens' ListGeoMatchSetsResponse (Maybe [GeoMatchSetSummary])
listGeoMatchSetsResponse_geoMatchSets
((Maybe [GeoMatchSetSummary]
-> Const (First [GeoMatchSetSummary]) (Maybe [GeoMatchSetSummary]))
-> ListGeoMatchSetsResponse
-> Const (First [GeoMatchSetSummary]) ListGeoMatchSetsResponse)
-> (([GeoMatchSetSummary]
-> Const (First [GeoMatchSetSummary]) [GeoMatchSetSummary])
-> Maybe [GeoMatchSetSummary]
-> Const (First [GeoMatchSetSummary]) (Maybe [GeoMatchSetSummary]))
-> Getting
(First [GeoMatchSetSummary])
ListGeoMatchSetsResponse
[GeoMatchSetSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([GeoMatchSetSummary]
-> Const (First [GeoMatchSetSummary]) [GeoMatchSetSummary])
-> Maybe [GeoMatchSetSummary]
-> Const (First [GeoMatchSetSummary]) (Maybe [GeoMatchSetSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListGeoMatchSets
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListGeoMatchSets -> Maybe ListGeoMatchSets
forall a. a -> Maybe a
Prelude.Just (ListGeoMatchSets -> Maybe ListGeoMatchSets)
-> ListGeoMatchSets -> Maybe ListGeoMatchSets
forall a b. (a -> b) -> a -> b
Prelude.$
ListGeoMatchSets
rq
ListGeoMatchSets
-> (ListGeoMatchSets -> ListGeoMatchSets) -> ListGeoMatchSets
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListGeoMatchSets -> Identity ListGeoMatchSets
Lens ListGeoMatchSets ListGeoMatchSets (Maybe Text) (Maybe Text)
listGeoMatchSets_nextMarker
((Maybe Text -> Identity (Maybe Text))
-> ListGeoMatchSets -> Identity ListGeoMatchSets)
-> Maybe Text -> ListGeoMatchSets -> ListGeoMatchSets
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListGeoMatchSets
ListGeoMatchSetsResponse
rs
ListGeoMatchSetsResponse
-> Getting (First Text) ListGeoMatchSetsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListGeoMatchSetsResponse
-> Const (First Text) ListGeoMatchSetsResponse
Lens' ListGeoMatchSetsResponse (Maybe Text)
listGeoMatchSetsResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListGeoMatchSetsResponse
-> Const (First Text) ListGeoMatchSetsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListGeoMatchSetsResponse 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 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_20150824.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
data ListGeoMatchSetsResponse = ListGeoMatchSetsResponse'
{
ListGeoMatchSetsResponse -> Maybe [GeoMatchSetSummary]
geoMatchSets :: Prelude.Maybe [GeoMatchSetSummary],
ListGeoMatchSetsResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
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)
newListGeoMatchSetsResponse ::
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_
}
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 (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
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 (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)
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