{-# 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.ServiceCatalog.ListLaunchPaths
-- 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 the paths to the specified product. A path is how the user has
-- access to a specified product, and is necessary when provisioning a
-- product. A path also determines the constraints put on the product.
--
-- This operation returns paginated results.
module Amazonka.ServiceCatalog.ListLaunchPaths
  ( -- * Creating a Request
    ListLaunchPaths (..),
    newListLaunchPaths,

    -- * Request Lenses
    listLaunchPaths_acceptLanguage,
    listLaunchPaths_pageSize,
    listLaunchPaths_pageToken,
    listLaunchPaths_productId,

    -- * Destructuring the Response
    ListLaunchPathsResponse (..),
    newListLaunchPathsResponse,

    -- * Response Lenses
    listLaunchPathsResponse_launchPathSummaries,
    listLaunchPathsResponse_nextPageToken,
    listLaunchPathsResponse_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.ServiceCatalog.Types

-- | /See:/ 'newListLaunchPaths' smart constructor.
data ListLaunchPaths = ListLaunchPaths'
  { -- | The language code.
    --
    -- -   @en@ - English (default)
    --
    -- -   @jp@ - Japanese
    --
    -- -   @zh@ - Chinese
    ListLaunchPaths -> Maybe Text
acceptLanguage :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of items to return with this call.
    ListLaunchPaths -> Maybe Natural
pageSize :: Prelude.Maybe Prelude.Natural,
    -- | The page token for the next set of results. To retrieve the first set of
    -- results, use null.
    ListLaunchPaths -> Maybe Text
pageToken :: Prelude.Maybe Prelude.Text,
    -- | The product identifier.
    ListLaunchPaths -> Text
productId :: Prelude.Text
  }
  deriving (ListLaunchPaths -> ListLaunchPaths -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLaunchPaths -> ListLaunchPaths -> Bool
$c/= :: ListLaunchPaths -> ListLaunchPaths -> Bool
== :: ListLaunchPaths -> ListLaunchPaths -> Bool
$c== :: ListLaunchPaths -> ListLaunchPaths -> Bool
Prelude.Eq, ReadPrec [ListLaunchPaths]
ReadPrec ListLaunchPaths
Int -> ReadS ListLaunchPaths
ReadS [ListLaunchPaths]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLaunchPaths]
$creadListPrec :: ReadPrec [ListLaunchPaths]
readPrec :: ReadPrec ListLaunchPaths
$creadPrec :: ReadPrec ListLaunchPaths
readList :: ReadS [ListLaunchPaths]
$creadList :: ReadS [ListLaunchPaths]
readsPrec :: Int -> ReadS ListLaunchPaths
$creadsPrec :: Int -> ReadS ListLaunchPaths
Prelude.Read, Int -> ListLaunchPaths -> ShowS
[ListLaunchPaths] -> ShowS
ListLaunchPaths -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLaunchPaths] -> ShowS
$cshowList :: [ListLaunchPaths] -> ShowS
show :: ListLaunchPaths -> String
$cshow :: ListLaunchPaths -> String
showsPrec :: Int -> ListLaunchPaths -> ShowS
$cshowsPrec :: Int -> ListLaunchPaths -> ShowS
Prelude.Show, forall x. Rep ListLaunchPaths x -> ListLaunchPaths
forall x. ListLaunchPaths -> Rep ListLaunchPaths x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListLaunchPaths x -> ListLaunchPaths
$cfrom :: forall x. ListLaunchPaths -> Rep ListLaunchPaths x
Prelude.Generic)

-- |
-- Create a value of 'ListLaunchPaths' 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:
--
-- 'acceptLanguage', 'listLaunchPaths_acceptLanguage' - The language code.
--
-- -   @en@ - English (default)
--
-- -   @jp@ - Japanese
--
-- -   @zh@ - Chinese
--
-- 'pageSize', 'listLaunchPaths_pageSize' - The maximum number of items to return with this call.
--
-- 'pageToken', 'listLaunchPaths_pageToken' - The page token for the next set of results. To retrieve the first set of
-- results, use null.
--
-- 'productId', 'listLaunchPaths_productId' - The product identifier.
newListLaunchPaths ::
  -- | 'productId'
  Prelude.Text ->
  ListLaunchPaths
newListLaunchPaths :: Text -> ListLaunchPaths
newListLaunchPaths Text
pProductId_ =
  ListLaunchPaths'
    { $sel:acceptLanguage:ListLaunchPaths' :: Maybe Text
acceptLanguage = forall a. Maybe a
Prelude.Nothing,
      $sel:pageSize:ListLaunchPaths' :: Maybe Natural
pageSize = forall a. Maybe a
Prelude.Nothing,
      $sel:pageToken:ListLaunchPaths' :: Maybe Text
pageToken = forall a. Maybe a
Prelude.Nothing,
      $sel:productId:ListLaunchPaths' :: Text
productId = Text
pProductId_
    }

-- | The language code.
--
-- -   @en@ - English (default)
--
-- -   @jp@ - Japanese
--
-- -   @zh@ - Chinese
listLaunchPaths_acceptLanguage :: Lens.Lens' ListLaunchPaths (Prelude.Maybe Prelude.Text)
listLaunchPaths_acceptLanguage :: Lens' ListLaunchPaths (Maybe Text)
listLaunchPaths_acceptLanguage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLaunchPaths' {Maybe Text
acceptLanguage :: Maybe Text
$sel:acceptLanguage:ListLaunchPaths' :: ListLaunchPaths -> Maybe Text
acceptLanguage} -> Maybe Text
acceptLanguage) (\s :: ListLaunchPaths
s@ListLaunchPaths' {} Maybe Text
a -> ListLaunchPaths
s {$sel:acceptLanguage:ListLaunchPaths' :: Maybe Text
acceptLanguage = Maybe Text
a} :: ListLaunchPaths)

-- | The maximum number of items to return with this call.
listLaunchPaths_pageSize :: Lens.Lens' ListLaunchPaths (Prelude.Maybe Prelude.Natural)
listLaunchPaths_pageSize :: Lens' ListLaunchPaths (Maybe Natural)
listLaunchPaths_pageSize = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLaunchPaths' {Maybe Natural
pageSize :: Maybe Natural
$sel:pageSize:ListLaunchPaths' :: ListLaunchPaths -> Maybe Natural
pageSize} -> Maybe Natural
pageSize) (\s :: ListLaunchPaths
s@ListLaunchPaths' {} Maybe Natural
a -> ListLaunchPaths
s {$sel:pageSize:ListLaunchPaths' :: Maybe Natural
pageSize = Maybe Natural
a} :: ListLaunchPaths)

-- | The page token for the next set of results. To retrieve the first set of
-- results, use null.
listLaunchPaths_pageToken :: Lens.Lens' ListLaunchPaths (Prelude.Maybe Prelude.Text)
listLaunchPaths_pageToken :: Lens' ListLaunchPaths (Maybe Text)
listLaunchPaths_pageToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLaunchPaths' {Maybe Text
pageToken :: Maybe Text
$sel:pageToken:ListLaunchPaths' :: ListLaunchPaths -> Maybe Text
pageToken} -> Maybe Text
pageToken) (\s :: ListLaunchPaths
s@ListLaunchPaths' {} Maybe Text
a -> ListLaunchPaths
s {$sel:pageToken:ListLaunchPaths' :: Maybe Text
pageToken = Maybe Text
a} :: ListLaunchPaths)

-- | The product identifier.
listLaunchPaths_productId :: Lens.Lens' ListLaunchPaths Prelude.Text
listLaunchPaths_productId :: Lens' ListLaunchPaths Text
listLaunchPaths_productId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLaunchPaths' {Text
productId :: Text
$sel:productId:ListLaunchPaths' :: ListLaunchPaths -> Text
productId} -> Text
productId) (\s :: ListLaunchPaths
s@ListLaunchPaths' {} Text
a -> ListLaunchPaths
s {$sel:productId:ListLaunchPaths' :: Text
productId = Text
a} :: ListLaunchPaths)

instance Core.AWSPager ListLaunchPaths where
  page :: ListLaunchPaths
-> AWSResponse ListLaunchPaths -> Maybe ListLaunchPaths
page ListLaunchPaths
rq AWSResponse ListLaunchPaths
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListLaunchPaths
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListLaunchPathsResponse (Maybe Text)
listLaunchPathsResponse_nextPageToken
            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 ListLaunchPaths
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListLaunchPathsResponse (Maybe [LaunchPathSummary])
listLaunchPathsResponse_launchPathSummaries
            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.$ ListLaunchPaths
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListLaunchPaths (Maybe Text)
listLaunchPaths_pageToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListLaunchPaths
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListLaunchPathsResponse (Maybe Text)
listLaunchPathsResponse_nextPageToken
          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 ListLaunchPaths where
  type
    AWSResponse ListLaunchPaths =
      ListLaunchPathsResponse
  request :: (Service -> Service) -> ListLaunchPaths -> Request ListLaunchPaths
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListLaunchPaths
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListLaunchPaths)))
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 [LaunchPathSummary]
-> Maybe Text -> Int -> ListLaunchPathsResponse
ListLaunchPathsResponse'
            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
"LaunchPathSummaries"
                            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.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextPageToken")
            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 ListLaunchPaths where
  hashWithSalt :: Int -> ListLaunchPaths -> Int
hashWithSalt Int
_salt ListLaunchPaths' {Maybe Natural
Maybe Text
Text
productId :: Text
pageToken :: Maybe Text
pageSize :: Maybe Natural
acceptLanguage :: Maybe Text
$sel:productId:ListLaunchPaths' :: ListLaunchPaths -> Text
$sel:pageToken:ListLaunchPaths' :: ListLaunchPaths -> Maybe Text
$sel:pageSize:ListLaunchPaths' :: ListLaunchPaths -> Maybe Natural
$sel:acceptLanguage:ListLaunchPaths' :: ListLaunchPaths -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
acceptLanguage
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
pageSize
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
pageToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
productId

instance Prelude.NFData ListLaunchPaths where
  rnf :: ListLaunchPaths -> ()
rnf ListLaunchPaths' {Maybe Natural
Maybe Text
Text
productId :: Text
pageToken :: Maybe Text
pageSize :: Maybe Natural
acceptLanguage :: Maybe Text
$sel:productId:ListLaunchPaths' :: ListLaunchPaths -> Text
$sel:pageToken:ListLaunchPaths' :: ListLaunchPaths -> Maybe Text
$sel:pageSize:ListLaunchPaths' :: ListLaunchPaths -> Maybe Natural
$sel:acceptLanguage:ListLaunchPaths' :: ListLaunchPaths -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
acceptLanguage
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
pageSize
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
pageToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
productId

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

instance Data.ToJSON ListLaunchPaths where
  toJSON :: ListLaunchPaths -> Value
toJSON ListLaunchPaths' {Maybe Natural
Maybe Text
Text
productId :: Text
pageToken :: Maybe Text
pageSize :: Maybe Natural
acceptLanguage :: Maybe Text
$sel:productId:ListLaunchPaths' :: ListLaunchPaths -> Text
$sel:pageToken:ListLaunchPaths' :: ListLaunchPaths -> Maybe Text
$sel:pageSize:ListLaunchPaths' :: ListLaunchPaths -> Maybe Natural
$sel:acceptLanguage:ListLaunchPaths' :: ListLaunchPaths -> Maybe Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"AcceptLanguage" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
acceptLanguage,
            (Key
"PageSize" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
pageSize,
            (Key
"PageToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
pageToken,
            forall a. a -> Maybe a
Prelude.Just (Key
"ProductId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
productId)
          ]
      )

instance Data.ToPath ListLaunchPaths where
  toPath :: ListLaunchPaths -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

-- | /See:/ 'newListLaunchPathsResponse' smart constructor.
data ListLaunchPathsResponse = ListLaunchPathsResponse'
  { -- | Information about the launch path.
    ListLaunchPathsResponse -> Maybe [LaunchPathSummary]
launchPathSummaries :: Prelude.Maybe [LaunchPathSummary],
    -- | The page token to use to retrieve the next set of results. If there are
    -- no additional results, this value is null.
    ListLaunchPathsResponse -> Maybe Text
nextPageToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListLaunchPathsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListLaunchPathsResponse -> ListLaunchPathsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLaunchPathsResponse -> ListLaunchPathsResponse -> Bool
$c/= :: ListLaunchPathsResponse -> ListLaunchPathsResponse -> Bool
== :: ListLaunchPathsResponse -> ListLaunchPathsResponse -> Bool
$c== :: ListLaunchPathsResponse -> ListLaunchPathsResponse -> Bool
Prelude.Eq, ReadPrec [ListLaunchPathsResponse]
ReadPrec ListLaunchPathsResponse
Int -> ReadS ListLaunchPathsResponse
ReadS [ListLaunchPathsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLaunchPathsResponse]
$creadListPrec :: ReadPrec [ListLaunchPathsResponse]
readPrec :: ReadPrec ListLaunchPathsResponse
$creadPrec :: ReadPrec ListLaunchPathsResponse
readList :: ReadS [ListLaunchPathsResponse]
$creadList :: ReadS [ListLaunchPathsResponse]
readsPrec :: Int -> ReadS ListLaunchPathsResponse
$creadsPrec :: Int -> ReadS ListLaunchPathsResponse
Prelude.Read, Int -> ListLaunchPathsResponse -> ShowS
[ListLaunchPathsResponse] -> ShowS
ListLaunchPathsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLaunchPathsResponse] -> ShowS
$cshowList :: [ListLaunchPathsResponse] -> ShowS
show :: ListLaunchPathsResponse -> String
$cshow :: ListLaunchPathsResponse -> String
showsPrec :: Int -> ListLaunchPathsResponse -> ShowS
$cshowsPrec :: Int -> ListLaunchPathsResponse -> ShowS
Prelude.Show, forall x. Rep ListLaunchPathsResponse x -> ListLaunchPathsResponse
forall x. ListLaunchPathsResponse -> Rep ListLaunchPathsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListLaunchPathsResponse x -> ListLaunchPathsResponse
$cfrom :: forall x. ListLaunchPathsResponse -> Rep ListLaunchPathsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListLaunchPathsResponse' 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:
--
-- 'launchPathSummaries', 'listLaunchPathsResponse_launchPathSummaries' - Information about the launch path.
--
-- 'nextPageToken', 'listLaunchPathsResponse_nextPageToken' - The page token to use to retrieve the next set of results. If there are
-- no additional results, this value is null.
--
-- 'httpStatus', 'listLaunchPathsResponse_httpStatus' - The response's http status code.
newListLaunchPathsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListLaunchPathsResponse
newListLaunchPathsResponse :: Int -> ListLaunchPathsResponse
newListLaunchPathsResponse Int
pHttpStatus_ =
  ListLaunchPathsResponse'
    { $sel:launchPathSummaries:ListLaunchPathsResponse' :: Maybe [LaunchPathSummary]
launchPathSummaries =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextPageToken:ListLaunchPathsResponse' :: Maybe Text
nextPageToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListLaunchPathsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Information about the launch path.
listLaunchPathsResponse_launchPathSummaries :: Lens.Lens' ListLaunchPathsResponse (Prelude.Maybe [LaunchPathSummary])
listLaunchPathsResponse_launchPathSummaries :: Lens' ListLaunchPathsResponse (Maybe [LaunchPathSummary])
listLaunchPathsResponse_launchPathSummaries = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLaunchPathsResponse' {Maybe [LaunchPathSummary]
launchPathSummaries :: Maybe [LaunchPathSummary]
$sel:launchPathSummaries:ListLaunchPathsResponse' :: ListLaunchPathsResponse -> Maybe [LaunchPathSummary]
launchPathSummaries} -> Maybe [LaunchPathSummary]
launchPathSummaries) (\s :: ListLaunchPathsResponse
s@ListLaunchPathsResponse' {} Maybe [LaunchPathSummary]
a -> ListLaunchPathsResponse
s {$sel:launchPathSummaries:ListLaunchPathsResponse' :: Maybe [LaunchPathSummary]
launchPathSummaries = Maybe [LaunchPathSummary]
a} :: ListLaunchPathsResponse) 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 page token to use to retrieve the next set of results. If there are
-- no additional results, this value is null.
listLaunchPathsResponse_nextPageToken :: Lens.Lens' ListLaunchPathsResponse (Prelude.Maybe Prelude.Text)
listLaunchPathsResponse_nextPageToken :: Lens' ListLaunchPathsResponse (Maybe Text)
listLaunchPathsResponse_nextPageToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLaunchPathsResponse' {Maybe Text
nextPageToken :: Maybe Text
$sel:nextPageToken:ListLaunchPathsResponse' :: ListLaunchPathsResponse -> Maybe Text
nextPageToken} -> Maybe Text
nextPageToken) (\s :: ListLaunchPathsResponse
s@ListLaunchPathsResponse' {} Maybe Text
a -> ListLaunchPathsResponse
s {$sel:nextPageToken:ListLaunchPathsResponse' :: Maybe Text
nextPageToken = Maybe Text
a} :: ListLaunchPathsResponse)

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

instance Prelude.NFData ListLaunchPathsResponse where
  rnf :: ListLaunchPathsResponse -> ()
rnf ListLaunchPathsResponse' {Int
Maybe [LaunchPathSummary]
Maybe Text
httpStatus :: Int
nextPageToken :: Maybe Text
launchPathSummaries :: Maybe [LaunchPathSummary]
$sel:httpStatus:ListLaunchPathsResponse' :: ListLaunchPathsResponse -> Int
$sel:nextPageToken:ListLaunchPathsResponse' :: ListLaunchPathsResponse -> Maybe Text
$sel:launchPathSummaries:ListLaunchPathsResponse' :: ListLaunchPathsResponse -> Maybe [LaunchPathSummary]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [LaunchPathSummary]
launchPathSummaries
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextPageToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus