{-# 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.Route53.ListCidrLocations
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns a paginated list of CIDR locations for the given collection
-- (metadata only, does not include CIDR blocks).
--
-- This operation returns paginated results.
module Amazonka.Route53.ListCidrLocations
  ( -- * Creating a Request
    ListCidrLocations (..),
    newListCidrLocations,

    -- * Request Lenses
    listCidrLocations_maxResults,
    listCidrLocations_nextToken,
    listCidrLocations_collectionId,

    -- * Destructuring the Response
    ListCidrLocationsResponse (..),
    newListCidrLocationsResponse,

    -- * Response Lenses
    listCidrLocationsResponse_cidrLocations,
    listCidrLocationsResponse_nextToken,
    listCidrLocationsResponse_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.Route53.Types

-- | /See:/ 'newListCidrLocations' smart constructor.
data ListCidrLocations = ListCidrLocations'
  { -- | The maximum number of CIDR collection locations to return in the
    -- response.
    ListCidrLocations -> Maybe Text
maxResults :: Prelude.Maybe Prelude.Text,
    -- | An opaque pagination token to indicate where the service is to begin
    -- enumerating results.
    --
    -- If no value is provided, the listing of results starts from the
    -- beginning.
    ListCidrLocations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The CIDR collection ID.
    ListCidrLocations -> Text
collectionId :: Prelude.Text
  }
  deriving (ListCidrLocations -> ListCidrLocations -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListCidrLocations -> ListCidrLocations -> Bool
$c/= :: ListCidrLocations -> ListCidrLocations -> Bool
== :: ListCidrLocations -> ListCidrLocations -> Bool
$c== :: ListCidrLocations -> ListCidrLocations -> Bool
Prelude.Eq, ReadPrec [ListCidrLocations]
ReadPrec ListCidrLocations
Int -> ReadS ListCidrLocations
ReadS [ListCidrLocations]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListCidrLocations]
$creadListPrec :: ReadPrec [ListCidrLocations]
readPrec :: ReadPrec ListCidrLocations
$creadPrec :: ReadPrec ListCidrLocations
readList :: ReadS [ListCidrLocations]
$creadList :: ReadS [ListCidrLocations]
readsPrec :: Int -> ReadS ListCidrLocations
$creadsPrec :: Int -> ReadS ListCidrLocations
Prelude.Read, Int -> ListCidrLocations -> ShowS
[ListCidrLocations] -> ShowS
ListCidrLocations -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListCidrLocations] -> ShowS
$cshowList :: [ListCidrLocations] -> ShowS
show :: ListCidrLocations -> String
$cshow :: ListCidrLocations -> String
showsPrec :: Int -> ListCidrLocations -> ShowS
$cshowsPrec :: Int -> ListCidrLocations -> ShowS
Prelude.Show, forall x. Rep ListCidrLocations x -> ListCidrLocations
forall x. ListCidrLocations -> Rep ListCidrLocations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListCidrLocations x -> ListCidrLocations
$cfrom :: forall x. ListCidrLocations -> Rep ListCidrLocations x
Prelude.Generic)

-- |
-- Create a value of 'ListCidrLocations' 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:
--
-- 'maxResults', 'listCidrLocations_maxResults' - The maximum number of CIDR collection locations to return in the
-- response.
--
-- 'nextToken', 'listCidrLocations_nextToken' - An opaque pagination token to indicate where the service is to begin
-- enumerating results.
--
-- If no value is provided, the listing of results starts from the
-- beginning.
--
-- 'collectionId', 'listCidrLocations_collectionId' - The CIDR collection ID.
newListCidrLocations ::
  -- | 'collectionId'
  Prelude.Text ->
  ListCidrLocations
newListCidrLocations :: Text -> ListCidrLocations
newListCidrLocations Text
pCollectionId_ =
  ListCidrLocations'
    { $sel:maxResults:ListCidrLocations' :: Maybe Text
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListCidrLocations' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:collectionId:ListCidrLocations' :: Text
collectionId = Text
pCollectionId_
    }

-- | The maximum number of CIDR collection locations to return in the
-- response.
listCidrLocations_maxResults :: Lens.Lens' ListCidrLocations (Prelude.Maybe Prelude.Text)
listCidrLocations_maxResults :: Lens' ListCidrLocations (Maybe Text)
listCidrLocations_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCidrLocations' {Maybe Text
maxResults :: Maybe Text
$sel:maxResults:ListCidrLocations' :: ListCidrLocations -> Maybe Text
maxResults} -> Maybe Text
maxResults) (\s :: ListCidrLocations
s@ListCidrLocations' {} Maybe Text
a -> ListCidrLocations
s {$sel:maxResults:ListCidrLocations' :: Maybe Text
maxResults = Maybe Text
a} :: ListCidrLocations)

-- | An opaque pagination token to indicate where the service is to begin
-- enumerating results.
--
-- If no value is provided, the listing of results starts from the
-- beginning.
listCidrLocations_nextToken :: Lens.Lens' ListCidrLocations (Prelude.Maybe Prelude.Text)
listCidrLocations_nextToken :: Lens' ListCidrLocations (Maybe Text)
listCidrLocations_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCidrLocations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListCidrLocations' :: ListCidrLocations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListCidrLocations
s@ListCidrLocations' {} Maybe Text
a -> ListCidrLocations
s {$sel:nextToken:ListCidrLocations' :: Maybe Text
nextToken = Maybe Text
a} :: ListCidrLocations)

-- | The CIDR collection ID.
listCidrLocations_collectionId :: Lens.Lens' ListCidrLocations Prelude.Text
listCidrLocations_collectionId :: Lens' ListCidrLocations Text
listCidrLocations_collectionId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCidrLocations' {Text
collectionId :: Text
$sel:collectionId:ListCidrLocations' :: ListCidrLocations -> Text
collectionId} -> Text
collectionId) (\s :: ListCidrLocations
s@ListCidrLocations' {} Text
a -> ListCidrLocations
s {$sel:collectionId:ListCidrLocations' :: Text
collectionId = Text
a} :: ListCidrLocations)

instance Core.AWSPager ListCidrLocations where
  page :: ListCidrLocations
-> AWSResponse ListCidrLocations -> Maybe ListCidrLocations
page ListCidrLocations
rq AWSResponse ListCidrLocations
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListCidrLocations
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListCidrLocationsResponse (Maybe Text)
listCidrLocationsResponse_nextToken
            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 ListCidrLocations
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListCidrLocationsResponse (Maybe [LocationSummary])
listCidrLocationsResponse_cidrLocations
            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.$ ListCidrLocations
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListCidrLocations (Maybe Text)
listCidrLocations_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListCidrLocations
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListCidrLocationsResponse (Maybe Text)
listCidrLocationsResponse_nextToken
          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 ListCidrLocations where
  type
    AWSResponse ListCidrLocations =
      ListCidrLocationsResponse
  request :: (Service -> Service)
-> ListCidrLocations -> Request ListCidrLocations
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListCidrLocations
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListCidrLocations)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXML
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe [LocationSummary]
-> Maybe Text -> Int -> ListCidrLocationsResponse
ListCidrLocationsResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x
                            forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"CidrLocations"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                            forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList Text
"member")
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"NextToken")
            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 ListCidrLocations where
  hashWithSalt :: Int -> ListCidrLocations -> Int
hashWithSalt Int
_salt ListCidrLocations' {Maybe Text
Text
collectionId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Text
$sel:collectionId:ListCidrLocations' :: ListCidrLocations -> Text
$sel:nextToken:ListCidrLocations' :: ListCidrLocations -> Maybe Text
$sel:maxResults:ListCidrLocations' :: ListCidrLocations -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
collectionId

instance Prelude.NFData ListCidrLocations where
  rnf :: ListCidrLocations -> ()
rnf ListCidrLocations' {Maybe Text
Text
collectionId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Text
$sel:collectionId:ListCidrLocations' :: ListCidrLocations -> Text
$sel:nextToken:ListCidrLocations' :: ListCidrLocations -> Maybe Text
$sel:maxResults:ListCidrLocations' :: ListCidrLocations -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
collectionId

instance Data.ToHeaders ListCidrLocations where
  toHeaders :: ListCidrLocations -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

instance Data.ToPath ListCidrLocations where
  toPath :: ListCidrLocations -> ByteString
toPath ListCidrLocations' {Maybe Text
Text
collectionId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Text
$sel:collectionId:ListCidrLocations' :: ListCidrLocations -> Text
$sel:nextToken:ListCidrLocations' :: ListCidrLocations -> Maybe Text
$sel:maxResults:ListCidrLocations' :: ListCidrLocations -> Maybe Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/2013-04-01/cidrcollection/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
collectionId
      ]

instance Data.ToQuery ListCidrLocations where
  toQuery :: ListCidrLocations -> QueryString
toQuery ListCidrLocations' {Maybe Text
Text
collectionId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Text
$sel:collectionId:ListCidrLocations' :: ListCidrLocations -> Text
$sel:nextToken:ListCidrLocations' :: ListCidrLocations -> Maybe Text
$sel:maxResults:ListCidrLocations' :: ListCidrLocations -> Maybe Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"maxresults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
maxResults,
        ByteString
"nexttoken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
      ]

-- | /See:/ 'newListCidrLocationsResponse' smart constructor.
data ListCidrLocationsResponse = ListCidrLocationsResponse'
  { -- | A complex type that contains information about the list of CIDR
    -- locations.
    ListCidrLocationsResponse -> Maybe [LocationSummary]
cidrLocations :: Prelude.Maybe [LocationSummary],
    -- | An opaque pagination token to indicate where the service is to begin
    -- enumerating results.
    --
    -- If no value is provided, the listing of results starts from the
    -- beginning.
    ListCidrLocationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListCidrLocationsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListCidrLocationsResponse -> ListCidrLocationsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListCidrLocationsResponse -> ListCidrLocationsResponse -> Bool
$c/= :: ListCidrLocationsResponse -> ListCidrLocationsResponse -> Bool
== :: ListCidrLocationsResponse -> ListCidrLocationsResponse -> Bool
$c== :: ListCidrLocationsResponse -> ListCidrLocationsResponse -> Bool
Prelude.Eq, ReadPrec [ListCidrLocationsResponse]
ReadPrec ListCidrLocationsResponse
Int -> ReadS ListCidrLocationsResponse
ReadS [ListCidrLocationsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListCidrLocationsResponse]
$creadListPrec :: ReadPrec [ListCidrLocationsResponse]
readPrec :: ReadPrec ListCidrLocationsResponse
$creadPrec :: ReadPrec ListCidrLocationsResponse
readList :: ReadS [ListCidrLocationsResponse]
$creadList :: ReadS [ListCidrLocationsResponse]
readsPrec :: Int -> ReadS ListCidrLocationsResponse
$creadsPrec :: Int -> ReadS ListCidrLocationsResponse
Prelude.Read, Int -> ListCidrLocationsResponse -> ShowS
[ListCidrLocationsResponse] -> ShowS
ListCidrLocationsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListCidrLocationsResponse] -> ShowS
$cshowList :: [ListCidrLocationsResponse] -> ShowS
show :: ListCidrLocationsResponse -> String
$cshow :: ListCidrLocationsResponse -> String
showsPrec :: Int -> ListCidrLocationsResponse -> ShowS
$cshowsPrec :: Int -> ListCidrLocationsResponse -> ShowS
Prelude.Show, forall x.
Rep ListCidrLocationsResponse x -> ListCidrLocationsResponse
forall x.
ListCidrLocationsResponse -> Rep ListCidrLocationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListCidrLocationsResponse x -> ListCidrLocationsResponse
$cfrom :: forall x.
ListCidrLocationsResponse -> Rep ListCidrLocationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListCidrLocationsResponse' 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:
--
-- 'cidrLocations', 'listCidrLocationsResponse_cidrLocations' - A complex type that contains information about the list of CIDR
-- locations.
--
-- 'nextToken', 'listCidrLocationsResponse_nextToken' - An opaque pagination token to indicate where the service is to begin
-- enumerating results.
--
-- If no value is provided, the listing of results starts from the
-- beginning.
--
-- 'httpStatus', 'listCidrLocationsResponse_httpStatus' - The response's http status code.
newListCidrLocationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListCidrLocationsResponse
newListCidrLocationsResponse :: Int -> ListCidrLocationsResponse
newListCidrLocationsResponse Int
pHttpStatus_ =
  ListCidrLocationsResponse'
    { $sel:cidrLocations:ListCidrLocationsResponse' :: Maybe [LocationSummary]
cidrLocations =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListCidrLocationsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListCidrLocationsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A complex type that contains information about the list of CIDR
-- locations.
listCidrLocationsResponse_cidrLocations :: Lens.Lens' ListCidrLocationsResponse (Prelude.Maybe [LocationSummary])
listCidrLocationsResponse_cidrLocations :: Lens' ListCidrLocationsResponse (Maybe [LocationSummary])
listCidrLocationsResponse_cidrLocations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCidrLocationsResponse' {Maybe [LocationSummary]
cidrLocations :: Maybe [LocationSummary]
$sel:cidrLocations:ListCidrLocationsResponse' :: ListCidrLocationsResponse -> Maybe [LocationSummary]
cidrLocations} -> Maybe [LocationSummary]
cidrLocations) (\s :: ListCidrLocationsResponse
s@ListCidrLocationsResponse' {} Maybe [LocationSummary]
a -> ListCidrLocationsResponse
s {$sel:cidrLocations:ListCidrLocationsResponse' :: Maybe [LocationSummary]
cidrLocations = Maybe [LocationSummary]
a} :: ListCidrLocationsResponse) 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

-- | An opaque pagination token to indicate where the service is to begin
-- enumerating results.
--
-- If no value is provided, the listing of results starts from the
-- beginning.
listCidrLocationsResponse_nextToken :: Lens.Lens' ListCidrLocationsResponse (Prelude.Maybe Prelude.Text)
listCidrLocationsResponse_nextToken :: Lens' ListCidrLocationsResponse (Maybe Text)
listCidrLocationsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCidrLocationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListCidrLocationsResponse' :: ListCidrLocationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListCidrLocationsResponse
s@ListCidrLocationsResponse' {} Maybe Text
a -> ListCidrLocationsResponse
s {$sel:nextToken:ListCidrLocationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListCidrLocationsResponse)

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

instance Prelude.NFData ListCidrLocationsResponse where
  rnf :: ListCidrLocationsResponse -> ()
rnf ListCidrLocationsResponse' {Int
Maybe [LocationSummary]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
cidrLocations :: Maybe [LocationSummary]
$sel:httpStatus:ListCidrLocationsResponse' :: ListCidrLocationsResponse -> Int
$sel:nextToken:ListCidrLocationsResponse' :: ListCidrLocationsResponse -> Maybe Text
$sel:cidrLocations:ListCidrLocationsResponse' :: ListCidrLocationsResponse -> Maybe [LocationSummary]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [LocationSummary]
cidrLocations
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus