{-# 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.Evidently.ListLaunches
-- 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 configuration details about all the launches in the specified
-- project.
--
-- This operation returns paginated results.
module Amazonka.Evidently.ListLaunches
  ( -- * Creating a Request
    ListLaunches (..),
    newListLaunches,

    -- * Request Lenses
    listLaunches_maxResults,
    listLaunches_nextToken,
    listLaunches_status,
    listLaunches_project,

    -- * Destructuring the Response
    ListLaunchesResponse (..),
    newListLaunchesResponse,

    -- * Response Lenses
    listLaunchesResponse_launches,
    listLaunchesResponse_nextToken,
    listLaunchesResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListLaunches' smart constructor.
data ListLaunches = ListLaunches'
  { -- | The maximum number of results to include in the response.
    ListLaunches -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The token to use when requesting the next set of results. You received
    -- this token from a previous @ListLaunches@ operation.
    ListLaunches -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Use this optional parameter to limit the returned results to only the
    -- launches with the status that you specify here.
    ListLaunches -> Maybe LaunchStatus
status :: Prelude.Maybe LaunchStatus,
    -- | The name or ARN of the project to return the launch list from.
    ListLaunches -> Text
project :: Prelude.Text
  }
  deriving (ListLaunches -> ListLaunches -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLaunches -> ListLaunches -> Bool
$c/= :: ListLaunches -> ListLaunches -> Bool
== :: ListLaunches -> ListLaunches -> Bool
$c== :: ListLaunches -> ListLaunches -> Bool
Prelude.Eq, ReadPrec [ListLaunches]
ReadPrec ListLaunches
Int -> ReadS ListLaunches
ReadS [ListLaunches]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLaunches]
$creadListPrec :: ReadPrec [ListLaunches]
readPrec :: ReadPrec ListLaunches
$creadPrec :: ReadPrec ListLaunches
readList :: ReadS [ListLaunches]
$creadList :: ReadS [ListLaunches]
readsPrec :: Int -> ReadS ListLaunches
$creadsPrec :: Int -> ReadS ListLaunches
Prelude.Read, Int -> ListLaunches -> ShowS
[ListLaunches] -> ShowS
ListLaunches -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLaunches] -> ShowS
$cshowList :: [ListLaunches] -> ShowS
show :: ListLaunches -> String
$cshow :: ListLaunches -> String
showsPrec :: Int -> ListLaunches -> ShowS
$cshowsPrec :: Int -> ListLaunches -> ShowS
Prelude.Show, forall x. Rep ListLaunches x -> ListLaunches
forall x. ListLaunches -> Rep ListLaunches x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListLaunches x -> ListLaunches
$cfrom :: forall x. ListLaunches -> Rep ListLaunches x
Prelude.Generic)

-- |
-- Create a value of 'ListLaunches' 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', 'listLaunches_maxResults' - The maximum number of results to include in the response.
--
-- 'nextToken', 'listLaunches_nextToken' - The token to use when requesting the next set of results. You received
-- this token from a previous @ListLaunches@ operation.
--
-- 'status', 'listLaunches_status' - Use this optional parameter to limit the returned results to only the
-- launches with the status that you specify here.
--
-- 'project', 'listLaunches_project' - The name or ARN of the project to return the launch list from.
newListLaunches ::
  -- | 'project'
  Prelude.Text ->
  ListLaunches
newListLaunches :: Text -> ListLaunches
newListLaunches Text
pProject_ =
  ListLaunches'
    { $sel:maxResults:ListLaunches' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListLaunches' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:status:ListLaunches' :: Maybe LaunchStatus
status = forall a. Maybe a
Prelude.Nothing,
      $sel:project:ListLaunches' :: Text
project = Text
pProject_
    }

-- | The maximum number of results to include in the response.
listLaunches_maxResults :: Lens.Lens' ListLaunches (Prelude.Maybe Prelude.Natural)
listLaunches_maxResults :: Lens' ListLaunches (Maybe Natural)
listLaunches_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLaunches' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListLaunches' :: ListLaunches -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListLaunches
s@ListLaunches' {} Maybe Natural
a -> ListLaunches
s {$sel:maxResults:ListLaunches' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListLaunches)

-- | The token to use when requesting the next set of results. You received
-- this token from a previous @ListLaunches@ operation.
listLaunches_nextToken :: Lens.Lens' ListLaunches (Prelude.Maybe Prelude.Text)
listLaunches_nextToken :: Lens' ListLaunches (Maybe Text)
listLaunches_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLaunches' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLaunches' :: ListLaunches -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLaunches
s@ListLaunches' {} Maybe Text
a -> ListLaunches
s {$sel:nextToken:ListLaunches' :: Maybe Text
nextToken = Maybe Text
a} :: ListLaunches)

-- | Use this optional parameter to limit the returned results to only the
-- launches with the status that you specify here.
listLaunches_status :: Lens.Lens' ListLaunches (Prelude.Maybe LaunchStatus)
listLaunches_status :: Lens' ListLaunches (Maybe LaunchStatus)
listLaunches_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLaunches' {Maybe LaunchStatus
status :: Maybe LaunchStatus
$sel:status:ListLaunches' :: ListLaunches -> Maybe LaunchStatus
status} -> Maybe LaunchStatus
status) (\s :: ListLaunches
s@ListLaunches' {} Maybe LaunchStatus
a -> ListLaunches
s {$sel:status:ListLaunches' :: Maybe LaunchStatus
status = Maybe LaunchStatus
a} :: ListLaunches)

-- | The name or ARN of the project to return the launch list from.
listLaunches_project :: Lens.Lens' ListLaunches Prelude.Text
listLaunches_project :: Lens' ListLaunches Text
listLaunches_project = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLaunches' {Text
project :: Text
$sel:project:ListLaunches' :: ListLaunches -> Text
project} -> Text
project) (\s :: ListLaunches
s@ListLaunches' {} Text
a -> ListLaunches
s {$sel:project:ListLaunches' :: Text
project = Text
a} :: ListLaunches)

instance Core.AWSPager ListLaunches where
  page :: ListLaunches -> AWSResponse ListLaunches -> Maybe ListLaunches
page ListLaunches
rq AWSResponse ListLaunches
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListLaunches
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListLaunchesResponse (Maybe Text)
listLaunchesResponse_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 ListLaunches
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListLaunchesResponse (Maybe [Launch])
listLaunchesResponse_launches
            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.$ ListLaunches
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListLaunches (Maybe Text)
listLaunches_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListLaunches
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListLaunchesResponse (Maybe Text)
listLaunchesResponse_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 ListLaunches where
  type AWSResponse ListLaunches = ListLaunchesResponse
  request :: (Service -> Service) -> ListLaunches -> Request ListLaunches
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 ListLaunches
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListLaunches)))
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 [Launch] -> Maybe Text -> Int -> ListLaunchesResponse
ListLaunchesResponse'
            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
"launches" 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
"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 ListLaunches where
  hashWithSalt :: Int -> ListLaunches -> Int
hashWithSalt Int
_salt ListLaunches' {Maybe Natural
Maybe Text
Maybe LaunchStatus
Text
project :: Text
status :: Maybe LaunchStatus
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:project:ListLaunches' :: ListLaunches -> Text
$sel:status:ListLaunches' :: ListLaunches -> Maybe LaunchStatus
$sel:nextToken:ListLaunches' :: ListLaunches -> Maybe Text
$sel:maxResults:ListLaunches' :: ListLaunches -> 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` Maybe LaunchStatus
status
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
project

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

instance Data.ToHeaders ListLaunches where
  toHeaders :: ListLaunches -> 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 ListLaunches where
  toPath :: ListLaunches -> ByteString
toPath ListLaunches' {Maybe Natural
Maybe Text
Maybe LaunchStatus
Text
project :: Text
status :: Maybe LaunchStatus
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:project:ListLaunches' :: ListLaunches -> Text
$sel:status:ListLaunches' :: ListLaunches -> Maybe LaunchStatus
$sel:nextToken:ListLaunches' :: ListLaunches -> Maybe Text
$sel:maxResults:ListLaunches' :: ListLaunches -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/projects/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
project, ByteString
"/launches"]

instance Data.ToQuery ListLaunches where
  toQuery :: ListLaunches -> QueryString
toQuery ListLaunches' {Maybe Natural
Maybe Text
Maybe LaunchStatus
Text
project :: Text
status :: Maybe LaunchStatus
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:project:ListLaunches' :: ListLaunches -> Text
$sel:status:ListLaunches' :: ListLaunches -> Maybe LaunchStatus
$sel:nextToken:ListLaunches' :: ListLaunches -> Maybe Text
$sel:maxResults:ListLaunches' :: ListLaunches -> 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,
        ByteString
"status" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe LaunchStatus
status
      ]

-- | /See:/ 'newListLaunchesResponse' smart constructor.
data ListLaunchesResponse = ListLaunchesResponse'
  { -- | An array of structures that contain the configuration details of the
    -- launches in the specified project.
    ListLaunchesResponse -> Maybe [Launch]
launches :: Prelude.Maybe [Launch],
    -- | The token to use in a subsequent @ListLaunches@ operation to return the
    -- next set of results.
    ListLaunchesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListLaunchesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListLaunchesResponse -> ListLaunchesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLaunchesResponse -> ListLaunchesResponse -> Bool
$c/= :: ListLaunchesResponse -> ListLaunchesResponse -> Bool
== :: ListLaunchesResponse -> ListLaunchesResponse -> Bool
$c== :: ListLaunchesResponse -> ListLaunchesResponse -> Bool
Prelude.Eq, ReadPrec [ListLaunchesResponse]
ReadPrec ListLaunchesResponse
Int -> ReadS ListLaunchesResponse
ReadS [ListLaunchesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLaunchesResponse]
$creadListPrec :: ReadPrec [ListLaunchesResponse]
readPrec :: ReadPrec ListLaunchesResponse
$creadPrec :: ReadPrec ListLaunchesResponse
readList :: ReadS [ListLaunchesResponse]
$creadList :: ReadS [ListLaunchesResponse]
readsPrec :: Int -> ReadS ListLaunchesResponse
$creadsPrec :: Int -> ReadS ListLaunchesResponse
Prelude.Read, Int -> ListLaunchesResponse -> ShowS
[ListLaunchesResponse] -> ShowS
ListLaunchesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLaunchesResponse] -> ShowS
$cshowList :: [ListLaunchesResponse] -> ShowS
show :: ListLaunchesResponse -> String
$cshow :: ListLaunchesResponse -> String
showsPrec :: Int -> ListLaunchesResponse -> ShowS
$cshowsPrec :: Int -> ListLaunchesResponse -> ShowS
Prelude.Show, forall x. Rep ListLaunchesResponse x -> ListLaunchesResponse
forall x. ListLaunchesResponse -> Rep ListLaunchesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListLaunchesResponse x -> ListLaunchesResponse
$cfrom :: forall x. ListLaunchesResponse -> Rep ListLaunchesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListLaunchesResponse' 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:
--
-- 'launches', 'listLaunchesResponse_launches' - An array of structures that contain the configuration details of the
-- launches in the specified project.
--
-- 'nextToken', 'listLaunchesResponse_nextToken' - The token to use in a subsequent @ListLaunches@ operation to return the
-- next set of results.
--
-- 'httpStatus', 'listLaunchesResponse_httpStatus' - The response's http status code.
newListLaunchesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListLaunchesResponse
newListLaunchesResponse :: Int -> ListLaunchesResponse
newListLaunchesResponse Int
pHttpStatus_ =
  ListLaunchesResponse'
    { $sel:launches:ListLaunchesResponse' :: Maybe [Launch]
launches = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListLaunchesResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListLaunchesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | An array of structures that contain the configuration details of the
-- launches in the specified project.
listLaunchesResponse_launches :: Lens.Lens' ListLaunchesResponse (Prelude.Maybe [Launch])
listLaunchesResponse_launches :: Lens' ListLaunchesResponse (Maybe [Launch])
listLaunchesResponse_launches = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLaunchesResponse' {Maybe [Launch]
launches :: Maybe [Launch]
$sel:launches:ListLaunchesResponse' :: ListLaunchesResponse -> Maybe [Launch]
launches} -> Maybe [Launch]
launches) (\s :: ListLaunchesResponse
s@ListLaunchesResponse' {} Maybe [Launch]
a -> ListLaunchesResponse
s {$sel:launches:ListLaunchesResponse' :: Maybe [Launch]
launches = Maybe [Launch]
a} :: ListLaunchesResponse) 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 token to use in a subsequent @ListLaunches@ operation to return the
-- next set of results.
listLaunchesResponse_nextToken :: Lens.Lens' ListLaunchesResponse (Prelude.Maybe Prelude.Text)
listLaunchesResponse_nextToken :: Lens' ListLaunchesResponse (Maybe Text)
listLaunchesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLaunchesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLaunchesResponse' :: ListLaunchesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLaunchesResponse
s@ListLaunchesResponse' {} Maybe Text
a -> ListLaunchesResponse
s {$sel:nextToken:ListLaunchesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListLaunchesResponse)

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

instance Prelude.NFData ListLaunchesResponse where
  rnf :: ListLaunchesResponse -> ()
rnf ListLaunchesResponse' {Int
Maybe [Launch]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
launches :: Maybe [Launch]
$sel:httpStatus:ListLaunchesResponse' :: ListLaunchesResponse -> Int
$sel:nextToken:ListLaunchesResponse' :: ListLaunchesResponse -> Maybe Text
$sel:launches:ListLaunchesResponse' :: ListLaunchesResponse -> Maybe [Launch]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [Launch]
launches
      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