{-# 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.MigrationHubReFactorSpaces.ListRoutes
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists all the Amazon Web Services Migration Hub Refactor Spaces routes
-- within an application.
--
-- This operation returns paginated results.
module Amazonka.MigrationHubReFactorSpaces.ListRoutes
  ( -- * Creating a Request
    ListRoutes (..),
    newListRoutes,

    -- * Request Lenses
    listRoutes_maxResults,
    listRoutes_nextToken,
    listRoutes_applicationIdentifier,
    listRoutes_environmentIdentifier,

    -- * Destructuring the Response
    ListRoutesResponse (..),
    newListRoutesResponse,

    -- * Response Lenses
    listRoutesResponse_nextToken,
    listRoutesResponse_routeSummaryList,
    listRoutesResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MigrationHubReFactorSpaces.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListRoutes' smart constructor.
data ListRoutes = ListRoutes'
  { -- | The maximum number of results to return with a single call. To retrieve
    -- the remaining results, make another call with the returned @nextToken@
    -- value.
    ListRoutes -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The token for the next page of results.
    ListRoutes -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The ID of the application.
    ListRoutes -> Text
applicationIdentifier :: Prelude.Text,
    -- | The ID of the environment.
    ListRoutes -> Text
environmentIdentifier :: Prelude.Text
  }
  deriving (ListRoutes -> ListRoutes -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRoutes -> ListRoutes -> Bool
$c/= :: ListRoutes -> ListRoutes -> Bool
== :: ListRoutes -> ListRoutes -> Bool
$c== :: ListRoutes -> ListRoutes -> Bool
Prelude.Eq, ReadPrec [ListRoutes]
ReadPrec ListRoutes
Int -> ReadS ListRoutes
ReadS [ListRoutes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRoutes]
$creadListPrec :: ReadPrec [ListRoutes]
readPrec :: ReadPrec ListRoutes
$creadPrec :: ReadPrec ListRoutes
readList :: ReadS [ListRoutes]
$creadList :: ReadS [ListRoutes]
readsPrec :: Int -> ReadS ListRoutes
$creadsPrec :: Int -> ReadS ListRoutes
Prelude.Read, Int -> ListRoutes -> ShowS
[ListRoutes] -> ShowS
ListRoutes -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRoutes] -> ShowS
$cshowList :: [ListRoutes] -> ShowS
show :: ListRoutes -> String
$cshow :: ListRoutes -> String
showsPrec :: Int -> ListRoutes -> ShowS
$cshowsPrec :: Int -> ListRoutes -> ShowS
Prelude.Show, forall x. Rep ListRoutes x -> ListRoutes
forall x. ListRoutes -> Rep ListRoutes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListRoutes x -> ListRoutes
$cfrom :: forall x. ListRoutes -> Rep ListRoutes x
Prelude.Generic)

-- |
-- Create a value of 'ListRoutes' 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', 'listRoutes_maxResults' - The maximum number of results to return with a single call. To retrieve
-- the remaining results, make another call with the returned @nextToken@
-- value.
--
-- 'nextToken', 'listRoutes_nextToken' - The token for the next page of results.
--
-- 'applicationIdentifier', 'listRoutes_applicationIdentifier' - The ID of the application.
--
-- 'environmentIdentifier', 'listRoutes_environmentIdentifier' - The ID of the environment.
newListRoutes ::
  -- | 'applicationIdentifier'
  Prelude.Text ->
  -- | 'environmentIdentifier'
  Prelude.Text ->
  ListRoutes
newListRoutes :: Text -> Text -> ListRoutes
newListRoutes
  Text
pApplicationIdentifier_
  Text
pEnvironmentIdentifier_ =
    ListRoutes'
      { $sel:maxResults:ListRoutes' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:ListRoutes' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
        $sel:applicationIdentifier:ListRoutes' :: Text
applicationIdentifier = Text
pApplicationIdentifier_,
        $sel:environmentIdentifier:ListRoutes' :: Text
environmentIdentifier = Text
pEnvironmentIdentifier_
      }

-- | The maximum number of results to return with a single call. To retrieve
-- the remaining results, make another call with the returned @nextToken@
-- value.
listRoutes_maxResults :: Lens.Lens' ListRoutes (Prelude.Maybe Prelude.Natural)
listRoutes_maxResults :: Lens' ListRoutes (Maybe Natural)
listRoutes_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutes' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListRoutes' :: ListRoutes -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListRoutes
s@ListRoutes' {} Maybe Natural
a -> ListRoutes
s {$sel:maxResults:ListRoutes' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListRoutes)

-- | The token for the next page of results.
listRoutes_nextToken :: Lens.Lens' ListRoutes (Prelude.Maybe Prelude.Text)
listRoutes_nextToken :: Lens' ListRoutes (Maybe Text)
listRoutes_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutes' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRoutes' :: ListRoutes -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRoutes
s@ListRoutes' {} Maybe Text
a -> ListRoutes
s {$sel:nextToken:ListRoutes' :: Maybe Text
nextToken = Maybe Text
a} :: ListRoutes)

-- | The ID of the application.
listRoutes_applicationIdentifier :: Lens.Lens' ListRoutes Prelude.Text
listRoutes_applicationIdentifier :: Lens' ListRoutes Text
listRoutes_applicationIdentifier = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutes' {Text
applicationIdentifier :: Text
$sel:applicationIdentifier:ListRoutes' :: ListRoutes -> Text
applicationIdentifier} -> Text
applicationIdentifier) (\s :: ListRoutes
s@ListRoutes' {} Text
a -> ListRoutes
s {$sel:applicationIdentifier:ListRoutes' :: Text
applicationIdentifier = Text
a} :: ListRoutes)

-- | The ID of the environment.
listRoutes_environmentIdentifier :: Lens.Lens' ListRoutes Prelude.Text
listRoutes_environmentIdentifier :: Lens' ListRoutes Text
listRoutes_environmentIdentifier = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutes' {Text
environmentIdentifier :: Text
$sel:environmentIdentifier:ListRoutes' :: ListRoutes -> Text
environmentIdentifier} -> Text
environmentIdentifier) (\s :: ListRoutes
s@ListRoutes' {} Text
a -> ListRoutes
s {$sel:environmentIdentifier:ListRoutes' :: Text
environmentIdentifier = Text
a} :: ListRoutes)

instance Core.AWSPager ListRoutes where
  page :: ListRoutes -> AWSResponse ListRoutes -> Maybe ListRoutes
page ListRoutes
rq AWSResponse ListRoutes
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListRoutes
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListRoutesResponse (Maybe Text)
listRoutesResponse_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 ListRoutes
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListRoutesResponse (Maybe [RouteSummary])
listRoutesResponse_routeSummaryList
            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.$ ListRoutes
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListRoutes (Maybe Text)
listRoutes_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListRoutes
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListRoutesResponse (Maybe Text)
listRoutesResponse_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 ListRoutes where
  type AWSResponse ListRoutes = ListRoutesResponse
  request :: (Service -> Service) -> ListRoutes -> Request ListRoutes
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 ListRoutes
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListRoutes)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text -> Maybe [RouteSummary] -> Int -> ListRoutesResponse
ListRoutesResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"RouteSummaryList"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable ListRoutes where
  hashWithSalt :: Int -> ListRoutes -> Int
hashWithSalt Int
_salt ListRoutes' {Maybe Natural
Maybe Text
Text
environmentIdentifier :: Text
applicationIdentifier :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:environmentIdentifier:ListRoutes' :: ListRoutes -> Text
$sel:applicationIdentifier:ListRoutes' :: ListRoutes -> Text
$sel:nextToken:ListRoutes' :: ListRoutes -> Maybe Text
$sel:maxResults:ListRoutes' :: ListRoutes -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
applicationIdentifier
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
environmentIdentifier

instance Prelude.NFData ListRoutes where
  rnf :: ListRoutes -> ()
rnf ListRoutes' {Maybe Natural
Maybe Text
Text
environmentIdentifier :: Text
applicationIdentifier :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:environmentIdentifier:ListRoutes' :: ListRoutes -> Text
$sel:applicationIdentifier:ListRoutes' :: ListRoutes -> Text
$sel:nextToken:ListRoutes' :: ListRoutes -> Maybe Text
$sel:maxResults:ListRoutes' :: ListRoutes -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
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
applicationIdentifier
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
environmentIdentifier

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

instance Data.ToPath ListRoutes where
  toPath :: ListRoutes -> ByteString
toPath ListRoutes' {Maybe Natural
Maybe Text
Text
environmentIdentifier :: Text
applicationIdentifier :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:environmentIdentifier:ListRoutes' :: ListRoutes -> Text
$sel:applicationIdentifier:ListRoutes' :: ListRoutes -> Text
$sel:nextToken:ListRoutes' :: ListRoutes -> Maybe Text
$sel:maxResults:ListRoutes' :: ListRoutes -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/environments/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
environmentIdentifier,
        ByteString
"/applications/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
applicationIdentifier,
        ByteString
"/routes"
      ]

instance Data.ToQuery ListRoutes where
  toQuery :: ListRoutes -> QueryString
toQuery ListRoutes' {Maybe Natural
Maybe Text
Text
environmentIdentifier :: Text
applicationIdentifier :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:environmentIdentifier:ListRoutes' :: ListRoutes -> Text
$sel:applicationIdentifier:ListRoutes' :: ListRoutes -> Text
$sel:nextToken:ListRoutes' :: ListRoutes -> Maybe Text
$sel:maxResults:ListRoutes' :: ListRoutes -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"maxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
        ByteString
"nextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
      ]

-- | /See:/ 'newListRoutesResponse' smart constructor.
data ListRoutesResponse = ListRoutesResponse'
  { -- | The token for the next page of results.
    ListRoutesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The list of @RouteSummary@ objects.
    ListRoutesResponse -> Maybe [RouteSummary]
routeSummaryList :: Prelude.Maybe [RouteSummary],
    -- | The response's http status code.
    ListRoutesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListRoutesResponse -> ListRoutesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRoutesResponse -> ListRoutesResponse -> Bool
$c/= :: ListRoutesResponse -> ListRoutesResponse -> Bool
== :: ListRoutesResponse -> ListRoutesResponse -> Bool
$c== :: ListRoutesResponse -> ListRoutesResponse -> Bool
Prelude.Eq, Int -> ListRoutesResponse -> ShowS
[ListRoutesResponse] -> ShowS
ListRoutesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRoutesResponse] -> ShowS
$cshowList :: [ListRoutesResponse] -> ShowS
show :: ListRoutesResponse -> String
$cshow :: ListRoutesResponse -> String
showsPrec :: Int -> ListRoutesResponse -> ShowS
$cshowsPrec :: Int -> ListRoutesResponse -> ShowS
Prelude.Show, forall x. Rep ListRoutesResponse x -> ListRoutesResponse
forall x. ListRoutesResponse -> Rep ListRoutesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListRoutesResponse x -> ListRoutesResponse
$cfrom :: forall x. ListRoutesResponse -> Rep ListRoutesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListRoutesResponse' 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:
--
-- 'nextToken', 'listRoutesResponse_nextToken' - The token for the next page of results.
--
-- 'routeSummaryList', 'listRoutesResponse_routeSummaryList' - The list of @RouteSummary@ objects.
--
-- 'httpStatus', 'listRoutesResponse_httpStatus' - The response's http status code.
newListRoutesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListRoutesResponse
newListRoutesResponse :: Int -> ListRoutesResponse
newListRoutesResponse Int
pHttpStatus_ =
  ListRoutesResponse'
    { $sel:nextToken:ListRoutesResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:routeSummaryList:ListRoutesResponse' :: Maybe [RouteSummary]
routeSummaryList = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListRoutesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The token for the next page of results.
listRoutesResponse_nextToken :: Lens.Lens' ListRoutesResponse (Prelude.Maybe Prelude.Text)
listRoutesResponse_nextToken :: Lens' ListRoutesResponse (Maybe Text)
listRoutesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRoutesResponse' :: ListRoutesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRoutesResponse
s@ListRoutesResponse' {} Maybe Text
a -> ListRoutesResponse
s {$sel:nextToken:ListRoutesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListRoutesResponse)

-- | The list of @RouteSummary@ objects.
listRoutesResponse_routeSummaryList :: Lens.Lens' ListRoutesResponse (Prelude.Maybe [RouteSummary])
listRoutesResponse_routeSummaryList :: Lens' ListRoutesResponse (Maybe [RouteSummary])
listRoutesResponse_routeSummaryList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutesResponse' {Maybe [RouteSummary]
routeSummaryList :: Maybe [RouteSummary]
$sel:routeSummaryList:ListRoutesResponse' :: ListRoutesResponse -> Maybe [RouteSummary]
routeSummaryList} -> Maybe [RouteSummary]
routeSummaryList) (\s :: ListRoutesResponse
s@ListRoutesResponse' {} Maybe [RouteSummary]
a -> ListRoutesResponse
s {$sel:routeSummaryList:ListRoutesResponse' :: Maybe [RouteSummary]
routeSummaryList = Maybe [RouteSummary]
a} :: ListRoutesResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData ListRoutesResponse where
  rnf :: ListRoutesResponse -> ()
rnf ListRoutesResponse' {Int
Maybe [RouteSummary]
Maybe Text
httpStatus :: Int
routeSummaryList :: Maybe [RouteSummary]
nextToken :: Maybe Text
$sel:httpStatus:ListRoutesResponse' :: ListRoutesResponse -> Int
$sel:routeSummaryList:ListRoutesResponse' :: ListRoutesResponse -> Maybe [RouteSummary]
$sel:nextToken:ListRoutesResponse' :: ListRoutesResponse -> Maybe Text
..} =
    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 Maybe [RouteSummary]
routeSummaryList
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus