{-# 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 #-}
module Amazonka.GroundStation.ListGroundStations
(
ListGroundStations (..),
newListGroundStations,
listGroundStations_satelliteId,
listGroundStations_nextToken,
listGroundStations_maxResults,
ListGroundStationsResponse (..),
newListGroundStationsResponse,
listGroundStationsResponse_nextToken,
listGroundStationsResponse_groundStationList,
listGroundStationsResponse_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
data ListGroundStations = ListGroundStations'
{
ListGroundStations -> Maybe Text
satelliteId :: Prelude.Maybe Prelude.Text,
ListGroundStations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListGroundStations -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int
}
deriving (ListGroundStations -> ListGroundStations -> Bool
(ListGroundStations -> ListGroundStations -> Bool)
-> (ListGroundStations -> ListGroundStations -> Bool)
-> Eq ListGroundStations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListGroundStations -> ListGroundStations -> Bool
$c/= :: ListGroundStations -> ListGroundStations -> Bool
== :: ListGroundStations -> ListGroundStations -> Bool
$c== :: ListGroundStations -> ListGroundStations -> Bool
Prelude.Eq, ReadPrec [ListGroundStations]
ReadPrec ListGroundStations
Int -> ReadS ListGroundStations
ReadS [ListGroundStations]
(Int -> ReadS ListGroundStations)
-> ReadS [ListGroundStations]
-> ReadPrec ListGroundStations
-> ReadPrec [ListGroundStations]
-> Read ListGroundStations
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListGroundStations]
$creadListPrec :: ReadPrec [ListGroundStations]
readPrec :: ReadPrec ListGroundStations
$creadPrec :: ReadPrec ListGroundStations
readList :: ReadS [ListGroundStations]
$creadList :: ReadS [ListGroundStations]
readsPrec :: Int -> ReadS ListGroundStations
$creadsPrec :: Int -> ReadS ListGroundStations
Prelude.Read, Int -> ListGroundStations -> ShowS
[ListGroundStations] -> ShowS
ListGroundStations -> String
(Int -> ListGroundStations -> ShowS)
-> (ListGroundStations -> String)
-> ([ListGroundStations] -> ShowS)
-> Show ListGroundStations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListGroundStations] -> ShowS
$cshowList :: [ListGroundStations] -> ShowS
show :: ListGroundStations -> String
$cshow :: ListGroundStations -> String
showsPrec :: Int -> ListGroundStations -> ShowS
$cshowsPrec :: Int -> ListGroundStations -> ShowS
Prelude.Show, (forall x. ListGroundStations -> Rep ListGroundStations x)
-> (forall x. Rep ListGroundStations x -> ListGroundStations)
-> Generic ListGroundStations
forall x. Rep ListGroundStations x -> ListGroundStations
forall x. ListGroundStations -> Rep ListGroundStations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListGroundStations x -> ListGroundStations
$cfrom :: forall x. ListGroundStations -> Rep ListGroundStations x
Prelude.Generic)
newListGroundStations ::
ListGroundStations
newListGroundStations :: ListGroundStations
newListGroundStations =
ListGroundStations' :: Maybe Text -> Maybe Text -> Maybe Int -> ListGroundStations
ListGroundStations'
{ $sel:satelliteId:ListGroundStations' :: Maybe Text
satelliteId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListGroundStations' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListGroundStations' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
listGroundStations_satelliteId :: Lens.Lens' ListGroundStations (Prelude.Maybe Prelude.Text)
listGroundStations_satelliteId :: (Maybe Text -> f (Maybe Text))
-> ListGroundStations -> f ListGroundStations
listGroundStations_satelliteId = (ListGroundStations -> Maybe Text)
-> (ListGroundStations -> Maybe Text -> ListGroundStations)
-> Lens
ListGroundStations ListGroundStations (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGroundStations' {Maybe Text
satelliteId :: Maybe Text
$sel:satelliteId:ListGroundStations' :: ListGroundStations -> Maybe Text
satelliteId} -> Maybe Text
satelliteId) (\s :: ListGroundStations
s@ListGroundStations' {} Maybe Text
a -> ListGroundStations
s {$sel:satelliteId:ListGroundStations' :: Maybe Text
satelliteId = Maybe Text
a} :: ListGroundStations)
listGroundStations_nextToken :: Lens.Lens' ListGroundStations (Prelude.Maybe Prelude.Text)
listGroundStations_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListGroundStations -> f ListGroundStations
listGroundStations_nextToken = (ListGroundStations -> Maybe Text)
-> (ListGroundStations -> Maybe Text -> ListGroundStations)
-> Lens
ListGroundStations ListGroundStations (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGroundStations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListGroundStations' :: ListGroundStations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListGroundStations
s@ListGroundStations' {} Maybe Text
a -> ListGroundStations
s {$sel:nextToken:ListGroundStations' :: Maybe Text
nextToken = Maybe Text
a} :: ListGroundStations)
listGroundStations_maxResults :: Lens.Lens' ListGroundStations (Prelude.Maybe Prelude.Int)
listGroundStations_maxResults :: (Maybe Int -> f (Maybe Int))
-> ListGroundStations -> f ListGroundStations
listGroundStations_maxResults = (ListGroundStations -> Maybe Int)
-> (ListGroundStations -> Maybe Int -> ListGroundStations)
-> Lens
ListGroundStations ListGroundStations (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGroundStations' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:ListGroundStations' :: ListGroundStations -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: ListGroundStations
s@ListGroundStations' {} Maybe Int
a -> ListGroundStations
s {$sel:maxResults:ListGroundStations' :: Maybe Int
maxResults = Maybe Int
a} :: ListGroundStations)
instance Core.AWSPager ListGroundStations where
page :: ListGroundStations
-> AWSResponse ListGroundStations -> Maybe ListGroundStations
page ListGroundStations
rq AWSResponse ListGroundStations
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListGroundStations
ListGroundStationsResponse
rs
ListGroundStationsResponse
-> Getting (First Text) ListGroundStationsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListGroundStationsResponse
-> Const (First Text) ListGroundStationsResponse
Lens' ListGroundStationsResponse (Maybe Text)
listGroundStationsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListGroundStationsResponse
-> Const (First Text) ListGroundStationsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListGroundStationsResponse 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 ListGroundStations
forall a. Maybe a
Prelude.Nothing
| Maybe [GroundStationData] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListGroundStations
ListGroundStationsResponse
rs
ListGroundStationsResponse
-> Getting
(First [GroundStationData])
ListGroundStationsResponse
[GroundStationData]
-> Maybe [GroundStationData]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [GroundStationData]
-> Const (First [GroundStationData]) (Maybe [GroundStationData]))
-> ListGroundStationsResponse
-> Const (First [GroundStationData]) ListGroundStationsResponse
Lens' ListGroundStationsResponse (Maybe [GroundStationData])
listGroundStationsResponse_groundStationList
((Maybe [GroundStationData]
-> Const (First [GroundStationData]) (Maybe [GroundStationData]))
-> ListGroundStationsResponse
-> Const (First [GroundStationData]) ListGroundStationsResponse)
-> (([GroundStationData]
-> Const (First [GroundStationData]) [GroundStationData])
-> Maybe [GroundStationData]
-> Const (First [GroundStationData]) (Maybe [GroundStationData]))
-> Getting
(First [GroundStationData])
ListGroundStationsResponse
[GroundStationData]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([GroundStationData]
-> Const (First [GroundStationData]) [GroundStationData])
-> Maybe [GroundStationData]
-> Const (First [GroundStationData]) (Maybe [GroundStationData])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListGroundStations
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListGroundStations -> Maybe ListGroundStations
forall a. a -> Maybe a
Prelude.Just (ListGroundStations -> Maybe ListGroundStations)
-> ListGroundStations -> Maybe ListGroundStations
forall a b. (a -> b) -> a -> b
Prelude.$
ListGroundStations
rq
ListGroundStations
-> (ListGroundStations -> ListGroundStations) -> ListGroundStations
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListGroundStations -> Identity ListGroundStations
Lens
ListGroundStations ListGroundStations (Maybe Text) (Maybe Text)
listGroundStations_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListGroundStations -> Identity ListGroundStations)
-> Maybe Text -> ListGroundStations -> ListGroundStations
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListGroundStations
ListGroundStationsResponse
rs
ListGroundStationsResponse
-> Getting (First Text) ListGroundStationsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListGroundStationsResponse
-> Const (First Text) ListGroundStationsResponse
Lens' ListGroundStationsResponse (Maybe Text)
listGroundStationsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListGroundStationsResponse
-> Const (First Text) ListGroundStationsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListGroundStationsResponse 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 ListGroundStations where
type
AWSResponse ListGroundStations =
ListGroundStationsResponse
request :: ListGroundStations -> Request ListGroundStations
request = Service -> ListGroundStations -> Request ListGroundStations
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListGroundStations
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListGroundStations)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListGroundStations))
-> Logger
-> Service
-> Proxy ListGroundStations
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListGroundStations)))
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 Text
-> Maybe [GroundStationData] -> Int -> ListGroundStationsResponse
ListGroundStationsResponse'
(Maybe Text
-> Maybe [GroundStationData] -> Int -> ListGroundStationsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [GroundStationData] -> Int -> ListGroundStationsResponse)
forall (f :: * -> *) a b. Functor 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
(Maybe [GroundStationData] -> Int -> ListGroundStationsResponse)
-> Either String (Maybe [GroundStationData])
-> Either String (Int -> ListGroundStationsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [GroundStationData]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"groundStationList"
Either String (Maybe (Maybe [GroundStationData]))
-> Maybe [GroundStationData]
-> Either String (Maybe [GroundStationData])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [GroundStationData]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> ListGroundStationsResponse)
-> Either String Int -> Either String ListGroundStationsResponse
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 ListGroundStations
instance Prelude.NFData ListGroundStations
instance Core.ToHeaders ListGroundStations where
toHeaders :: ListGroundStations -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListGroundStations -> 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 ListGroundStations where
toPath :: ListGroundStations -> ByteString
toPath = ByteString -> ListGroundStations -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/groundstation"
instance Core.ToQuery ListGroundStations where
toQuery :: ListGroundStations -> QueryString
toQuery ListGroundStations' {Maybe Int
Maybe Text
maxResults :: Maybe Int
nextToken :: Maybe Text
satelliteId :: Maybe Text
$sel:maxResults:ListGroundStations' :: ListGroundStations -> Maybe Int
$sel:nextToken:ListGroundStations' :: ListGroundStations -> Maybe Text
$sel:satelliteId:ListGroundStations' :: ListGroundStations -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"satelliteId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
satelliteId,
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
]
data ListGroundStationsResponse = ListGroundStationsResponse'
{
ListGroundStationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListGroundStationsResponse -> Maybe [GroundStationData]
groundStationList :: Prelude.Maybe [GroundStationData],
ListGroundStationsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListGroundStationsResponse -> ListGroundStationsResponse -> Bool
(ListGroundStationsResponse -> ListGroundStationsResponse -> Bool)
-> (ListGroundStationsResponse
-> ListGroundStationsResponse -> Bool)
-> Eq ListGroundStationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListGroundStationsResponse -> ListGroundStationsResponse -> Bool
$c/= :: ListGroundStationsResponse -> ListGroundStationsResponse -> Bool
== :: ListGroundStationsResponse -> ListGroundStationsResponse -> Bool
$c== :: ListGroundStationsResponse -> ListGroundStationsResponse -> Bool
Prelude.Eq, ReadPrec [ListGroundStationsResponse]
ReadPrec ListGroundStationsResponse
Int -> ReadS ListGroundStationsResponse
ReadS [ListGroundStationsResponse]
(Int -> ReadS ListGroundStationsResponse)
-> ReadS [ListGroundStationsResponse]
-> ReadPrec ListGroundStationsResponse
-> ReadPrec [ListGroundStationsResponse]
-> Read ListGroundStationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListGroundStationsResponse]
$creadListPrec :: ReadPrec [ListGroundStationsResponse]
readPrec :: ReadPrec ListGroundStationsResponse
$creadPrec :: ReadPrec ListGroundStationsResponse
readList :: ReadS [ListGroundStationsResponse]
$creadList :: ReadS [ListGroundStationsResponse]
readsPrec :: Int -> ReadS ListGroundStationsResponse
$creadsPrec :: Int -> ReadS ListGroundStationsResponse
Prelude.Read, Int -> ListGroundStationsResponse -> ShowS
[ListGroundStationsResponse] -> ShowS
ListGroundStationsResponse -> String
(Int -> ListGroundStationsResponse -> ShowS)
-> (ListGroundStationsResponse -> String)
-> ([ListGroundStationsResponse] -> ShowS)
-> Show ListGroundStationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListGroundStationsResponse] -> ShowS
$cshowList :: [ListGroundStationsResponse] -> ShowS
show :: ListGroundStationsResponse -> String
$cshow :: ListGroundStationsResponse -> String
showsPrec :: Int -> ListGroundStationsResponse -> ShowS
$cshowsPrec :: Int -> ListGroundStationsResponse -> ShowS
Prelude.Show, (forall x.
ListGroundStationsResponse -> Rep ListGroundStationsResponse x)
-> (forall x.
Rep ListGroundStationsResponse x -> ListGroundStationsResponse)
-> Generic ListGroundStationsResponse
forall x.
Rep ListGroundStationsResponse x -> ListGroundStationsResponse
forall x.
ListGroundStationsResponse -> Rep ListGroundStationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListGroundStationsResponse x -> ListGroundStationsResponse
$cfrom :: forall x.
ListGroundStationsResponse -> Rep ListGroundStationsResponse x
Prelude.Generic)
newListGroundStationsResponse ::
Prelude.Int ->
ListGroundStationsResponse
newListGroundStationsResponse :: Int -> ListGroundStationsResponse
newListGroundStationsResponse Int
pHttpStatus_ =
ListGroundStationsResponse' :: Maybe Text
-> Maybe [GroundStationData] -> Int -> ListGroundStationsResponse
ListGroundStationsResponse'
{ $sel:nextToken:ListGroundStationsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:groundStationList:ListGroundStationsResponse' :: Maybe [GroundStationData]
groundStationList = Maybe [GroundStationData]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListGroundStationsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listGroundStationsResponse_nextToken :: Lens.Lens' ListGroundStationsResponse (Prelude.Maybe Prelude.Text)
listGroundStationsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListGroundStationsResponse -> f ListGroundStationsResponse
listGroundStationsResponse_nextToken = (ListGroundStationsResponse -> Maybe Text)
-> (ListGroundStationsResponse
-> Maybe Text -> ListGroundStationsResponse)
-> Lens' ListGroundStationsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGroundStationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListGroundStationsResponse' :: ListGroundStationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListGroundStationsResponse
s@ListGroundStationsResponse' {} Maybe Text
a -> ListGroundStationsResponse
s {$sel:nextToken:ListGroundStationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListGroundStationsResponse)
listGroundStationsResponse_groundStationList :: Lens.Lens' ListGroundStationsResponse (Prelude.Maybe [GroundStationData])
listGroundStationsResponse_groundStationList :: (Maybe [GroundStationData] -> f (Maybe [GroundStationData]))
-> ListGroundStationsResponse -> f ListGroundStationsResponse
listGroundStationsResponse_groundStationList = (ListGroundStationsResponse -> Maybe [GroundStationData])
-> (ListGroundStationsResponse
-> Maybe [GroundStationData] -> ListGroundStationsResponse)
-> Lens' ListGroundStationsResponse (Maybe [GroundStationData])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGroundStationsResponse' {Maybe [GroundStationData]
groundStationList :: Maybe [GroundStationData]
$sel:groundStationList:ListGroundStationsResponse' :: ListGroundStationsResponse -> Maybe [GroundStationData]
groundStationList} -> Maybe [GroundStationData]
groundStationList) (\s :: ListGroundStationsResponse
s@ListGroundStationsResponse' {} Maybe [GroundStationData]
a -> ListGroundStationsResponse
s {$sel:groundStationList:ListGroundStationsResponse' :: Maybe [GroundStationData]
groundStationList = Maybe [GroundStationData]
a} :: ListGroundStationsResponse) ((Maybe [GroundStationData] -> f (Maybe [GroundStationData]))
-> ListGroundStationsResponse -> f ListGroundStationsResponse)
-> ((Maybe [GroundStationData] -> f (Maybe [GroundStationData]))
-> Maybe [GroundStationData] -> f (Maybe [GroundStationData]))
-> (Maybe [GroundStationData] -> f (Maybe [GroundStationData]))
-> ListGroundStationsResponse
-> f ListGroundStationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[GroundStationData]
[GroundStationData]
[GroundStationData]
[GroundStationData]
-> Iso
(Maybe [GroundStationData])
(Maybe [GroundStationData])
(Maybe [GroundStationData])
(Maybe [GroundStationData])
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
[GroundStationData]
[GroundStationData]
[GroundStationData]
[GroundStationData]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listGroundStationsResponse_httpStatus :: Lens.Lens' ListGroundStationsResponse Prelude.Int
listGroundStationsResponse_httpStatus :: (Int -> f Int)
-> ListGroundStationsResponse -> f ListGroundStationsResponse
listGroundStationsResponse_httpStatus = (ListGroundStationsResponse -> Int)
-> (ListGroundStationsResponse
-> Int -> ListGroundStationsResponse)
-> Lens
ListGroundStationsResponse ListGroundStationsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGroundStationsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListGroundStationsResponse' :: ListGroundStationsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListGroundStationsResponse
s@ListGroundStationsResponse' {} Int
a -> ListGroundStationsResponse
s {$sel:httpStatus:ListGroundStationsResponse' :: Int
httpStatus = Int
a} :: ListGroundStationsResponse)
instance Prelude.NFData ListGroundStationsResponse