{-# 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.SMS.ListApps
(
ListApps (..),
newListApps,
listApps_appIds,
listApps_nextToken,
listApps_maxResults,
ListAppsResponse (..),
newListAppsResponse,
listAppsResponse_apps,
listAppsResponse_nextToken,
listAppsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SMS.Types
data ListApps = ListApps'
{
ListApps -> Maybe [Text]
appIds :: Prelude.Maybe [Prelude.Text],
ListApps -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListApps -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int
}
deriving (ListApps -> ListApps -> Bool
(ListApps -> ListApps -> Bool)
-> (ListApps -> ListApps -> Bool) -> Eq ListApps
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListApps -> ListApps -> Bool
$c/= :: ListApps -> ListApps -> Bool
== :: ListApps -> ListApps -> Bool
$c== :: ListApps -> ListApps -> Bool
Prelude.Eq, ReadPrec [ListApps]
ReadPrec ListApps
Int -> ReadS ListApps
ReadS [ListApps]
(Int -> ReadS ListApps)
-> ReadS [ListApps]
-> ReadPrec ListApps
-> ReadPrec [ListApps]
-> Read ListApps
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListApps]
$creadListPrec :: ReadPrec [ListApps]
readPrec :: ReadPrec ListApps
$creadPrec :: ReadPrec ListApps
readList :: ReadS [ListApps]
$creadList :: ReadS [ListApps]
readsPrec :: Int -> ReadS ListApps
$creadsPrec :: Int -> ReadS ListApps
Prelude.Read, Int -> ListApps -> ShowS
[ListApps] -> ShowS
ListApps -> String
(Int -> ListApps -> ShowS)
-> (ListApps -> String) -> ([ListApps] -> ShowS) -> Show ListApps
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListApps] -> ShowS
$cshowList :: [ListApps] -> ShowS
show :: ListApps -> String
$cshow :: ListApps -> String
showsPrec :: Int -> ListApps -> ShowS
$cshowsPrec :: Int -> ListApps -> ShowS
Prelude.Show, (forall x. ListApps -> Rep ListApps x)
-> (forall x. Rep ListApps x -> ListApps) -> Generic ListApps
forall x. Rep ListApps x -> ListApps
forall x. ListApps -> Rep ListApps x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListApps x -> ListApps
$cfrom :: forall x. ListApps -> Rep ListApps x
Prelude.Generic)
newListApps ::
ListApps
newListApps :: ListApps
newListApps =
ListApps' :: Maybe [Text] -> Maybe Text -> Maybe Int -> ListApps
ListApps'
{ $sel:appIds:ListApps' :: Maybe [Text]
appIds = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListApps' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListApps' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
listApps_appIds :: Lens.Lens' ListApps (Prelude.Maybe [Prelude.Text])
listApps_appIds :: (Maybe [Text] -> f (Maybe [Text])) -> ListApps -> f ListApps
listApps_appIds = (ListApps -> Maybe [Text])
-> (ListApps -> Maybe [Text] -> ListApps)
-> Lens ListApps ListApps (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApps' {Maybe [Text]
appIds :: Maybe [Text]
$sel:appIds:ListApps' :: ListApps -> Maybe [Text]
appIds} -> Maybe [Text]
appIds) (\s :: ListApps
s@ListApps' {} Maybe [Text]
a -> ListApps
s {$sel:appIds:ListApps' :: Maybe [Text]
appIds = Maybe [Text]
a} :: ListApps) ((Maybe [Text] -> f (Maybe [Text])) -> ListApps -> f ListApps)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ListApps
-> f ListApps
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listApps_nextToken :: Lens.Lens' ListApps (Prelude.Maybe Prelude.Text)
listApps_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListApps -> f ListApps
listApps_nextToken = (ListApps -> Maybe Text)
-> (ListApps -> Maybe Text -> ListApps)
-> Lens ListApps ListApps (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApps' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListApps' :: ListApps -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListApps
s@ListApps' {} Maybe Text
a -> ListApps
s {$sel:nextToken:ListApps' :: Maybe Text
nextToken = Maybe Text
a} :: ListApps)
listApps_maxResults :: Lens.Lens' ListApps (Prelude.Maybe Prelude.Int)
listApps_maxResults :: (Maybe Int -> f (Maybe Int)) -> ListApps -> f ListApps
listApps_maxResults = (ListApps -> Maybe Int)
-> (ListApps -> Maybe Int -> ListApps)
-> Lens ListApps ListApps (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApps' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:ListApps' :: ListApps -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: ListApps
s@ListApps' {} Maybe Int
a -> ListApps
s {$sel:maxResults:ListApps' :: Maybe Int
maxResults = Maybe Int
a} :: ListApps)
instance Core.AWSPager ListApps where
page :: ListApps -> AWSResponse ListApps -> Maybe ListApps
page ListApps
rq AWSResponse ListApps
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListApps
ListAppsResponse
rs
ListAppsResponse
-> Getting (First Text) ListAppsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAppsResponse -> Const (First Text) ListAppsResponse
Lens' ListAppsResponse (Maybe Text)
listAppsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListAppsResponse -> Const (First Text) ListAppsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAppsResponse 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 ListApps
forall a. Maybe a
Prelude.Nothing
| Maybe [AppSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListApps
ListAppsResponse
rs
ListAppsResponse
-> Getting (First [AppSummary]) ListAppsResponse [AppSummary]
-> Maybe [AppSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [AppSummary]
-> Const (First [AppSummary]) (Maybe [AppSummary]))
-> ListAppsResponse -> Const (First [AppSummary]) ListAppsResponse
Lens' ListAppsResponse (Maybe [AppSummary])
listAppsResponse_apps ((Maybe [AppSummary]
-> Const (First [AppSummary]) (Maybe [AppSummary]))
-> ListAppsResponse -> Const (First [AppSummary]) ListAppsResponse)
-> (([AppSummary] -> Const (First [AppSummary]) [AppSummary])
-> Maybe [AppSummary]
-> Const (First [AppSummary]) (Maybe [AppSummary]))
-> Getting (First [AppSummary]) ListAppsResponse [AppSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([AppSummary] -> Const (First [AppSummary]) [AppSummary])
-> Maybe [AppSummary]
-> Const (First [AppSummary]) (Maybe [AppSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListApps
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListApps -> Maybe ListApps
forall a. a -> Maybe a
Prelude.Just (ListApps -> Maybe ListApps) -> ListApps -> Maybe ListApps
forall a b. (a -> b) -> a -> b
Prelude.$
ListApps
rq
ListApps -> (ListApps -> ListApps) -> ListApps
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListApps -> Identity ListApps
Lens ListApps ListApps (Maybe Text) (Maybe Text)
listApps_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListApps -> Identity ListApps)
-> Maybe Text -> ListApps -> ListApps
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListApps
ListAppsResponse
rs
ListAppsResponse
-> Getting (First Text) ListAppsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAppsResponse -> Const (First Text) ListAppsResponse
Lens' ListAppsResponse (Maybe Text)
listAppsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListAppsResponse -> Const (First Text) ListAppsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAppsResponse 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 ListApps where
type AWSResponse ListApps = ListAppsResponse
request :: ListApps -> Request ListApps
request = Service -> ListApps -> Request ListApps
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListApps
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListApps)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListApps))
-> Logger
-> Service
-> Proxy ListApps
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListApps)))
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 [AppSummary] -> Maybe Text -> Int -> ListAppsResponse
ListAppsResponse'
(Maybe [AppSummary] -> Maybe Text -> Int -> ListAppsResponse)
-> Either String (Maybe [AppSummary])
-> Either String (Maybe Text -> Int -> ListAppsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [AppSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"apps" Either String (Maybe (Maybe [AppSummary]))
-> Maybe [AppSummary] -> Either String (Maybe [AppSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [AppSummary]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListAppsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListAppsResponse)
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 -> ListAppsResponse)
-> Either String Int -> Either String ListAppsResponse
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 ListApps
instance Prelude.NFData ListApps
instance Core.ToHeaders ListApps where
toHeaders :: ListApps -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListApps -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSServerMigrationService_V2016_10_24.ListApps" ::
Prelude.ByteString
),
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.ToJSON ListApps where
toJSON :: ListApps -> Value
toJSON ListApps' {Maybe Int
Maybe [Text]
Maybe Text
maxResults :: Maybe Int
nextToken :: Maybe Text
appIds :: Maybe [Text]
$sel:maxResults:ListApps' :: ListApps -> Maybe Int
$sel:nextToken:ListApps' :: ListApps -> Maybe Text
$sel:appIds:ListApps' :: ListApps -> Maybe [Text]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"appIds" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
appIds,
(Text
"nextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Text
"maxResults" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxResults
]
)
instance Core.ToPath ListApps where
toPath :: ListApps -> ByteString
toPath = ByteString -> ListApps -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListApps where
toQuery :: ListApps -> QueryString
toQuery = QueryString -> ListApps -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListAppsResponse = ListAppsResponse'
{
ListAppsResponse -> Maybe [AppSummary]
apps :: Prelude.Maybe [AppSummary],
ListAppsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAppsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListAppsResponse -> ListAppsResponse -> Bool
(ListAppsResponse -> ListAppsResponse -> Bool)
-> (ListAppsResponse -> ListAppsResponse -> Bool)
-> Eq ListAppsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAppsResponse -> ListAppsResponse -> Bool
$c/= :: ListAppsResponse -> ListAppsResponse -> Bool
== :: ListAppsResponse -> ListAppsResponse -> Bool
$c== :: ListAppsResponse -> ListAppsResponse -> Bool
Prelude.Eq, ReadPrec [ListAppsResponse]
ReadPrec ListAppsResponse
Int -> ReadS ListAppsResponse
ReadS [ListAppsResponse]
(Int -> ReadS ListAppsResponse)
-> ReadS [ListAppsResponse]
-> ReadPrec ListAppsResponse
-> ReadPrec [ListAppsResponse]
-> Read ListAppsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAppsResponse]
$creadListPrec :: ReadPrec [ListAppsResponse]
readPrec :: ReadPrec ListAppsResponse
$creadPrec :: ReadPrec ListAppsResponse
readList :: ReadS [ListAppsResponse]
$creadList :: ReadS [ListAppsResponse]
readsPrec :: Int -> ReadS ListAppsResponse
$creadsPrec :: Int -> ReadS ListAppsResponse
Prelude.Read, Int -> ListAppsResponse -> ShowS
[ListAppsResponse] -> ShowS
ListAppsResponse -> String
(Int -> ListAppsResponse -> ShowS)
-> (ListAppsResponse -> String)
-> ([ListAppsResponse] -> ShowS)
-> Show ListAppsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAppsResponse] -> ShowS
$cshowList :: [ListAppsResponse] -> ShowS
show :: ListAppsResponse -> String
$cshow :: ListAppsResponse -> String
showsPrec :: Int -> ListAppsResponse -> ShowS
$cshowsPrec :: Int -> ListAppsResponse -> ShowS
Prelude.Show, (forall x. ListAppsResponse -> Rep ListAppsResponse x)
-> (forall x. Rep ListAppsResponse x -> ListAppsResponse)
-> Generic ListAppsResponse
forall x. Rep ListAppsResponse x -> ListAppsResponse
forall x. ListAppsResponse -> Rep ListAppsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListAppsResponse x -> ListAppsResponse
$cfrom :: forall x. ListAppsResponse -> Rep ListAppsResponse x
Prelude.Generic)
newListAppsResponse ::
Prelude.Int ->
ListAppsResponse
newListAppsResponse :: Int -> ListAppsResponse
newListAppsResponse Int
pHttpStatus_ =
ListAppsResponse' :: Maybe [AppSummary] -> Maybe Text -> Int -> ListAppsResponse
ListAppsResponse'
{ $sel:apps:ListAppsResponse' :: Maybe [AppSummary]
apps = Maybe [AppSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListAppsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListAppsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listAppsResponse_apps :: Lens.Lens' ListAppsResponse (Prelude.Maybe [AppSummary])
listAppsResponse_apps :: (Maybe [AppSummary] -> f (Maybe [AppSummary]))
-> ListAppsResponse -> f ListAppsResponse
listAppsResponse_apps = (ListAppsResponse -> Maybe [AppSummary])
-> (ListAppsResponse -> Maybe [AppSummary] -> ListAppsResponse)
-> Lens' ListAppsResponse (Maybe [AppSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppsResponse' {Maybe [AppSummary]
apps :: Maybe [AppSummary]
$sel:apps:ListAppsResponse' :: ListAppsResponse -> Maybe [AppSummary]
apps} -> Maybe [AppSummary]
apps) (\s :: ListAppsResponse
s@ListAppsResponse' {} Maybe [AppSummary]
a -> ListAppsResponse
s {$sel:apps:ListAppsResponse' :: Maybe [AppSummary]
apps = Maybe [AppSummary]
a} :: ListAppsResponse) ((Maybe [AppSummary] -> f (Maybe [AppSummary]))
-> ListAppsResponse -> f ListAppsResponse)
-> ((Maybe [AppSummary] -> f (Maybe [AppSummary]))
-> Maybe [AppSummary] -> f (Maybe [AppSummary]))
-> (Maybe [AppSummary] -> f (Maybe [AppSummary]))
-> ListAppsResponse
-> f ListAppsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [AppSummary] [AppSummary] [AppSummary] [AppSummary]
-> Iso
(Maybe [AppSummary])
(Maybe [AppSummary])
(Maybe [AppSummary])
(Maybe [AppSummary])
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 [AppSummary] [AppSummary] [AppSummary] [AppSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listAppsResponse_nextToken :: Lens.Lens' ListAppsResponse (Prelude.Maybe Prelude.Text)
listAppsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAppsResponse -> f ListAppsResponse
listAppsResponse_nextToken = (ListAppsResponse -> Maybe Text)
-> (ListAppsResponse -> Maybe Text -> ListAppsResponse)
-> Lens' ListAppsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAppsResponse' :: ListAppsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAppsResponse
s@ListAppsResponse' {} Maybe Text
a -> ListAppsResponse
s {$sel:nextToken:ListAppsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListAppsResponse)
listAppsResponse_httpStatus :: Lens.Lens' ListAppsResponse Prelude.Int
listAppsResponse_httpStatus :: (Int -> f Int) -> ListAppsResponse -> f ListAppsResponse
listAppsResponse_httpStatus = (ListAppsResponse -> Int)
-> (ListAppsResponse -> Int -> ListAppsResponse)
-> Lens ListAppsResponse ListAppsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListAppsResponse' :: ListAppsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListAppsResponse
s@ListAppsResponse' {} Int
a -> ListAppsResponse
s {$sel:httpStatus:ListAppsResponse' :: Int
httpStatus = Int
a} :: ListAppsResponse)
instance Prelude.NFData ListAppsResponse