{-# 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.GroundStation.ListSatellites
-- 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)
--
-- Returns a list of satellites.
--
-- This operation returns paginated results.
module Amazonka.GroundStation.ListSatellites
  ( -- * Creating a Request
    ListSatellites (..),
    newListSatellites,

    -- * Request Lenses
    listSatellites_nextToken,
    listSatellites_maxResults,

    -- * Destructuring the Response
    ListSatellitesResponse (..),
    newListSatellitesResponse,

    -- * Response Lenses
    listSatellitesResponse_satellites,
    listSatellitesResponse_nextToken,
    listSatellitesResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.GroundStation.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- |
--
-- /See:/ 'newListSatellites' smart constructor.
data ListSatellites = ListSatellites'
  { -- | Next token that can be supplied in the next call to get the next page of
    -- satellites.
    ListSatellites -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Maximum number of satellites returned.
    ListSatellites -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int
  }
  deriving (ListSatellites -> ListSatellites -> Bool
(ListSatellites -> ListSatellites -> Bool)
-> (ListSatellites -> ListSatellites -> Bool) -> Eq ListSatellites
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSatellites -> ListSatellites -> Bool
$c/= :: ListSatellites -> ListSatellites -> Bool
== :: ListSatellites -> ListSatellites -> Bool
$c== :: ListSatellites -> ListSatellites -> Bool
Prelude.Eq, ReadPrec [ListSatellites]
ReadPrec ListSatellites
Int -> ReadS ListSatellites
ReadS [ListSatellites]
(Int -> ReadS ListSatellites)
-> ReadS [ListSatellites]
-> ReadPrec ListSatellites
-> ReadPrec [ListSatellites]
-> Read ListSatellites
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSatellites]
$creadListPrec :: ReadPrec [ListSatellites]
readPrec :: ReadPrec ListSatellites
$creadPrec :: ReadPrec ListSatellites
readList :: ReadS [ListSatellites]
$creadList :: ReadS [ListSatellites]
readsPrec :: Int -> ReadS ListSatellites
$creadsPrec :: Int -> ReadS ListSatellites
Prelude.Read, Int -> ListSatellites -> ShowS
[ListSatellites] -> ShowS
ListSatellites -> String
(Int -> ListSatellites -> ShowS)
-> (ListSatellites -> String)
-> ([ListSatellites] -> ShowS)
-> Show ListSatellites
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSatellites] -> ShowS
$cshowList :: [ListSatellites] -> ShowS
show :: ListSatellites -> String
$cshow :: ListSatellites -> String
showsPrec :: Int -> ListSatellites -> ShowS
$cshowsPrec :: Int -> ListSatellites -> ShowS
Prelude.Show, (forall x. ListSatellites -> Rep ListSatellites x)
-> (forall x. Rep ListSatellites x -> ListSatellites)
-> Generic ListSatellites
forall x. Rep ListSatellites x -> ListSatellites
forall x. ListSatellites -> Rep ListSatellites x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListSatellites x -> ListSatellites
$cfrom :: forall x. ListSatellites -> Rep ListSatellites x
Prelude.Generic)

-- |
-- Create a value of 'ListSatellites' 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', 'listSatellites_nextToken' - Next token that can be supplied in the next call to get the next page of
-- satellites.
--
-- 'maxResults', 'listSatellites_maxResults' - Maximum number of satellites returned.
newListSatellites ::
  ListSatellites
newListSatellites :: ListSatellites
newListSatellites =
  ListSatellites' :: Maybe Text -> Maybe Int -> ListSatellites
ListSatellites'
    { $sel:nextToken:ListSatellites' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListSatellites' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing
    }

-- | Next token that can be supplied in the next call to get the next page of
-- satellites.
listSatellites_nextToken :: Lens.Lens' ListSatellites (Prelude.Maybe Prelude.Text)
listSatellites_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListSatellites -> f ListSatellites
listSatellites_nextToken = (ListSatellites -> Maybe Text)
-> (ListSatellites -> Maybe Text -> ListSatellites)
-> Lens ListSatellites ListSatellites (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSatellites' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSatellites' :: ListSatellites -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSatellites
s@ListSatellites' {} Maybe Text
a -> ListSatellites
s {$sel:nextToken:ListSatellites' :: Maybe Text
nextToken = Maybe Text
a} :: ListSatellites)

-- | Maximum number of satellites returned.
listSatellites_maxResults :: Lens.Lens' ListSatellites (Prelude.Maybe Prelude.Int)
listSatellites_maxResults :: (Maybe Int -> f (Maybe Int)) -> ListSatellites -> f ListSatellites
listSatellites_maxResults = (ListSatellites -> Maybe Int)
-> (ListSatellites -> Maybe Int -> ListSatellites)
-> Lens ListSatellites ListSatellites (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSatellites' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:ListSatellites' :: ListSatellites -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: ListSatellites
s@ListSatellites' {} Maybe Int
a -> ListSatellites
s {$sel:maxResults:ListSatellites' :: Maybe Int
maxResults = Maybe Int
a} :: ListSatellites)

instance Core.AWSPager ListSatellites where
  page :: ListSatellites
-> AWSResponse ListSatellites -> Maybe ListSatellites
page ListSatellites
rq AWSResponse ListSatellites
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListSatellites
ListSatellitesResponse
rs
            ListSatellitesResponse
-> Getting (First Text) ListSatellitesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListSatellitesResponse
-> Const (First Text) ListSatellitesResponse
Lens' ListSatellitesResponse (Maybe Text)
listSatellitesResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListSatellitesResponse
 -> Const (First Text) ListSatellitesResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListSatellitesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListSatellites
forall a. Maybe a
Prelude.Nothing
    | Maybe [SatelliteListItem] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListSatellites
ListSatellitesResponse
rs
            ListSatellitesResponse
-> Getting
     (First [SatelliteListItem])
     ListSatellitesResponse
     [SatelliteListItem]
-> Maybe [SatelliteListItem]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [SatelliteListItem]
 -> Const (First [SatelliteListItem]) (Maybe [SatelliteListItem]))
-> ListSatellitesResponse
-> Const (First [SatelliteListItem]) ListSatellitesResponse
Lens' ListSatellitesResponse (Maybe [SatelliteListItem])
listSatellitesResponse_satellites
              ((Maybe [SatelliteListItem]
  -> Const (First [SatelliteListItem]) (Maybe [SatelliteListItem]))
 -> ListSatellitesResponse
 -> Const (First [SatelliteListItem]) ListSatellitesResponse)
-> (([SatelliteListItem]
     -> Const (First [SatelliteListItem]) [SatelliteListItem])
    -> Maybe [SatelliteListItem]
    -> Const (First [SatelliteListItem]) (Maybe [SatelliteListItem]))
-> Getting
     (First [SatelliteListItem])
     ListSatellitesResponse
     [SatelliteListItem]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([SatelliteListItem]
 -> Const (First [SatelliteListItem]) [SatelliteListItem])
-> Maybe [SatelliteListItem]
-> Const (First [SatelliteListItem]) (Maybe [SatelliteListItem])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListSatellites
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListSatellites -> Maybe ListSatellites
forall a. a -> Maybe a
Prelude.Just (ListSatellites -> Maybe ListSatellites)
-> ListSatellites -> Maybe ListSatellites
forall a b. (a -> b) -> a -> b
Prelude.$
        ListSatellites
rq
          ListSatellites
-> (ListSatellites -> ListSatellites) -> ListSatellites
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListSatellites -> Identity ListSatellites
Lens ListSatellites ListSatellites (Maybe Text) (Maybe Text)
listSatellites_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> ListSatellites -> Identity ListSatellites)
-> Maybe Text -> ListSatellites -> ListSatellites
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListSatellites
ListSatellitesResponse
rs
          ListSatellitesResponse
-> Getting (First Text) ListSatellitesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListSatellitesResponse
-> Const (First Text) ListSatellitesResponse
Lens' ListSatellitesResponse (Maybe Text)
listSatellitesResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListSatellitesResponse
 -> Const (First Text) ListSatellitesResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListSatellitesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

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

instance Prelude.NFData ListSatellites

instance Core.ToHeaders ListSatellites where
  toHeaders :: ListSatellites -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListSatellites -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ 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.ToPath ListSatellites where
  toPath :: ListSatellites -> ByteString
toPath = ByteString -> ListSatellites -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/satellite"

instance Core.ToQuery ListSatellites where
  toQuery :: ListSatellites -> QueryString
toQuery ListSatellites' {Maybe Int
Maybe Text
maxResults :: Maybe Int
nextToken :: Maybe Text
$sel:maxResults:ListSatellites' :: ListSatellites -> Maybe Int
$sel:nextToken:ListSatellites' :: ListSatellites -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
        ByteString
"maxResults" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
maxResults
      ]

-- |
--
-- /See:/ 'newListSatellitesResponse' smart constructor.
data ListSatellitesResponse = ListSatellitesResponse'
  { -- | List of satellites.
    ListSatellitesResponse -> Maybe [SatelliteListItem]
satellites :: Prelude.Maybe [SatelliteListItem],
    -- | Next token that can be supplied in the next call to get the next page of
    -- satellites.
    ListSatellitesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListSatellitesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListSatellitesResponse -> ListSatellitesResponse -> Bool
(ListSatellitesResponse -> ListSatellitesResponse -> Bool)
-> (ListSatellitesResponse -> ListSatellitesResponse -> Bool)
-> Eq ListSatellitesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSatellitesResponse -> ListSatellitesResponse -> Bool
$c/= :: ListSatellitesResponse -> ListSatellitesResponse -> Bool
== :: ListSatellitesResponse -> ListSatellitesResponse -> Bool
$c== :: ListSatellitesResponse -> ListSatellitesResponse -> Bool
Prelude.Eq, ReadPrec [ListSatellitesResponse]
ReadPrec ListSatellitesResponse
Int -> ReadS ListSatellitesResponse
ReadS [ListSatellitesResponse]
(Int -> ReadS ListSatellitesResponse)
-> ReadS [ListSatellitesResponse]
-> ReadPrec ListSatellitesResponse
-> ReadPrec [ListSatellitesResponse]
-> Read ListSatellitesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSatellitesResponse]
$creadListPrec :: ReadPrec [ListSatellitesResponse]
readPrec :: ReadPrec ListSatellitesResponse
$creadPrec :: ReadPrec ListSatellitesResponse
readList :: ReadS [ListSatellitesResponse]
$creadList :: ReadS [ListSatellitesResponse]
readsPrec :: Int -> ReadS ListSatellitesResponse
$creadsPrec :: Int -> ReadS ListSatellitesResponse
Prelude.Read, Int -> ListSatellitesResponse -> ShowS
[ListSatellitesResponse] -> ShowS
ListSatellitesResponse -> String
(Int -> ListSatellitesResponse -> ShowS)
-> (ListSatellitesResponse -> String)
-> ([ListSatellitesResponse] -> ShowS)
-> Show ListSatellitesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSatellitesResponse] -> ShowS
$cshowList :: [ListSatellitesResponse] -> ShowS
show :: ListSatellitesResponse -> String
$cshow :: ListSatellitesResponse -> String
showsPrec :: Int -> ListSatellitesResponse -> ShowS
$cshowsPrec :: Int -> ListSatellitesResponse -> ShowS
Prelude.Show, (forall x. ListSatellitesResponse -> Rep ListSatellitesResponse x)
-> (forall x.
    Rep ListSatellitesResponse x -> ListSatellitesResponse)
-> Generic ListSatellitesResponse
forall x. Rep ListSatellitesResponse x -> ListSatellitesResponse
forall x. ListSatellitesResponse -> Rep ListSatellitesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListSatellitesResponse x -> ListSatellitesResponse
$cfrom :: forall x. ListSatellitesResponse -> Rep ListSatellitesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListSatellitesResponse' 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:
--
-- 'satellites', 'listSatellitesResponse_satellites' - List of satellites.
--
-- 'nextToken', 'listSatellitesResponse_nextToken' - Next token that can be supplied in the next call to get the next page of
-- satellites.
--
-- 'httpStatus', 'listSatellitesResponse_httpStatus' - The response's http status code.
newListSatellitesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListSatellitesResponse
newListSatellitesResponse :: Int -> ListSatellitesResponse
newListSatellitesResponse Int
pHttpStatus_ =
  ListSatellitesResponse' :: Maybe [SatelliteListItem]
-> Maybe Text -> Int -> ListSatellitesResponse
ListSatellitesResponse'
    { $sel:satellites:ListSatellitesResponse' :: Maybe [SatelliteListItem]
satellites =
        Maybe [SatelliteListItem]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListSatellitesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListSatellitesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | List of satellites.
listSatellitesResponse_satellites :: Lens.Lens' ListSatellitesResponse (Prelude.Maybe [SatelliteListItem])
listSatellitesResponse_satellites :: (Maybe [SatelliteListItem] -> f (Maybe [SatelliteListItem]))
-> ListSatellitesResponse -> f ListSatellitesResponse
listSatellitesResponse_satellites = (ListSatellitesResponse -> Maybe [SatelliteListItem])
-> (ListSatellitesResponse
    -> Maybe [SatelliteListItem] -> ListSatellitesResponse)
-> Lens' ListSatellitesResponse (Maybe [SatelliteListItem])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSatellitesResponse' {Maybe [SatelliteListItem]
satellites :: Maybe [SatelliteListItem]
$sel:satellites:ListSatellitesResponse' :: ListSatellitesResponse -> Maybe [SatelliteListItem]
satellites} -> Maybe [SatelliteListItem]
satellites) (\s :: ListSatellitesResponse
s@ListSatellitesResponse' {} Maybe [SatelliteListItem]
a -> ListSatellitesResponse
s {$sel:satellites:ListSatellitesResponse' :: Maybe [SatelliteListItem]
satellites = Maybe [SatelliteListItem]
a} :: ListSatellitesResponse) ((Maybe [SatelliteListItem] -> f (Maybe [SatelliteListItem]))
 -> ListSatellitesResponse -> f ListSatellitesResponse)
-> ((Maybe [SatelliteListItem] -> f (Maybe [SatelliteListItem]))
    -> Maybe [SatelliteListItem] -> f (Maybe [SatelliteListItem]))
-> (Maybe [SatelliteListItem] -> f (Maybe [SatelliteListItem]))
-> ListSatellitesResponse
-> f ListSatellitesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [SatelliteListItem]
  [SatelliteListItem]
  [SatelliteListItem]
  [SatelliteListItem]
-> Iso
     (Maybe [SatelliteListItem])
     (Maybe [SatelliteListItem])
     (Maybe [SatelliteListItem])
     (Maybe [SatelliteListItem])
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
  [SatelliteListItem]
  [SatelliteListItem]
  [SatelliteListItem]
  [SatelliteListItem]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Next token that can be supplied in the next call to get the next page of
-- satellites.
listSatellitesResponse_nextToken :: Lens.Lens' ListSatellitesResponse (Prelude.Maybe Prelude.Text)
listSatellitesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListSatellitesResponse -> f ListSatellitesResponse
listSatellitesResponse_nextToken = (ListSatellitesResponse -> Maybe Text)
-> (ListSatellitesResponse -> Maybe Text -> ListSatellitesResponse)
-> Lens' ListSatellitesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSatellitesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSatellitesResponse' :: ListSatellitesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSatellitesResponse
s@ListSatellitesResponse' {} Maybe Text
a -> ListSatellitesResponse
s {$sel:nextToken:ListSatellitesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListSatellitesResponse)

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

instance Prelude.NFData ListSatellitesResponse