{-# 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.ListSizeConstraintSets
-- 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 SizeConstraintSetSummary objects.
module Amazonka.WAFRegional.ListSizeConstraintSets
  ( -- * Creating a Request
    ListSizeConstraintSets (..),
    newListSizeConstraintSets,

    -- * Request Lenses
    listSizeConstraintSets_nextMarker,
    listSizeConstraintSets_limit,

    -- * Destructuring the Response
    ListSizeConstraintSetsResponse (..),
    newListSizeConstraintSetsResponse,

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

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

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

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

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

instance Prelude.NFData ListSizeConstraintSets

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

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

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

-- |
-- Create a value of 'ListSizeConstraintSetsResponse' 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:
--
-- 'sizeConstraintSets', 'listSizeConstraintSetsResponse_sizeConstraintSets' - An array of SizeConstraintSetSummary objects.
--
-- 'nextMarker', 'listSizeConstraintSetsResponse_nextMarker' - If you have more @SizeConstraintSet@ objects than the number that you
-- specified for @Limit@ in the request, the response includes a
-- @NextMarker@ value. To list more @SizeConstraintSet@ objects, submit
-- another @ListSizeConstraintSets@ request, and specify the @NextMarker@
-- value from the response in the @NextMarker@ value in the next request.
--
-- 'httpStatus', 'listSizeConstraintSetsResponse_httpStatus' - The response's http status code.
newListSizeConstraintSetsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListSizeConstraintSetsResponse
newListSizeConstraintSetsResponse :: Int -> ListSizeConstraintSetsResponse
newListSizeConstraintSetsResponse Int
pHttpStatus_ =
  ListSizeConstraintSetsResponse' :: Maybe [SizeConstraintSetSummary]
-> Maybe Text -> Int -> ListSizeConstraintSetsResponse
ListSizeConstraintSetsResponse'
    { $sel:sizeConstraintSets:ListSizeConstraintSetsResponse' :: Maybe [SizeConstraintSetSummary]
sizeConstraintSets =
        Maybe [SizeConstraintSetSummary]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextMarker:ListSizeConstraintSetsResponse' :: Maybe Text
nextMarker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListSizeConstraintSetsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

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

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

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

instance
  Prelude.NFData
    ListSizeConstraintSetsResponse