{-# 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.MediaTailor.ListSourceLocations
(
ListSourceLocations (..),
newListSourceLocations,
listSourceLocations_nextToken,
listSourceLocations_maxResults,
ListSourceLocationsResponse (..),
newListSourceLocationsResponse,
listSourceLocationsResponse_items,
listSourceLocationsResponse_nextToken,
listSourceLocationsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaTailor.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListSourceLocations = ListSourceLocations'
{
ListSourceLocations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListSourceLocations -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListSourceLocations -> ListSourceLocations -> Bool
(ListSourceLocations -> ListSourceLocations -> Bool)
-> (ListSourceLocations -> ListSourceLocations -> Bool)
-> Eq ListSourceLocations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSourceLocations -> ListSourceLocations -> Bool
$c/= :: ListSourceLocations -> ListSourceLocations -> Bool
== :: ListSourceLocations -> ListSourceLocations -> Bool
$c== :: ListSourceLocations -> ListSourceLocations -> Bool
Prelude.Eq, ReadPrec [ListSourceLocations]
ReadPrec ListSourceLocations
Int -> ReadS ListSourceLocations
ReadS [ListSourceLocations]
(Int -> ReadS ListSourceLocations)
-> ReadS [ListSourceLocations]
-> ReadPrec ListSourceLocations
-> ReadPrec [ListSourceLocations]
-> Read ListSourceLocations
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSourceLocations]
$creadListPrec :: ReadPrec [ListSourceLocations]
readPrec :: ReadPrec ListSourceLocations
$creadPrec :: ReadPrec ListSourceLocations
readList :: ReadS [ListSourceLocations]
$creadList :: ReadS [ListSourceLocations]
readsPrec :: Int -> ReadS ListSourceLocations
$creadsPrec :: Int -> ReadS ListSourceLocations
Prelude.Read, Int -> ListSourceLocations -> ShowS
[ListSourceLocations] -> ShowS
ListSourceLocations -> String
(Int -> ListSourceLocations -> ShowS)
-> (ListSourceLocations -> String)
-> ([ListSourceLocations] -> ShowS)
-> Show ListSourceLocations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSourceLocations] -> ShowS
$cshowList :: [ListSourceLocations] -> ShowS
show :: ListSourceLocations -> String
$cshow :: ListSourceLocations -> String
showsPrec :: Int -> ListSourceLocations -> ShowS
$cshowsPrec :: Int -> ListSourceLocations -> ShowS
Prelude.Show, (forall x. ListSourceLocations -> Rep ListSourceLocations x)
-> (forall x. Rep ListSourceLocations x -> ListSourceLocations)
-> Generic ListSourceLocations
forall x. Rep ListSourceLocations x -> ListSourceLocations
forall x. ListSourceLocations -> Rep ListSourceLocations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListSourceLocations x -> ListSourceLocations
$cfrom :: forall x. ListSourceLocations -> Rep ListSourceLocations x
Prelude.Generic)
newListSourceLocations ::
ListSourceLocations
newListSourceLocations :: ListSourceLocations
newListSourceLocations =
ListSourceLocations' :: Maybe Text -> Maybe Natural -> ListSourceLocations
ListSourceLocations'
{ $sel:nextToken:ListSourceLocations' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListSourceLocations' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listSourceLocations_nextToken :: Lens.Lens' ListSourceLocations (Prelude.Maybe Prelude.Text)
listSourceLocations_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListSourceLocations -> f ListSourceLocations
listSourceLocations_nextToken = (ListSourceLocations -> Maybe Text)
-> (ListSourceLocations -> Maybe Text -> ListSourceLocations)
-> Lens
ListSourceLocations ListSourceLocations (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSourceLocations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSourceLocations' :: ListSourceLocations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSourceLocations
s@ListSourceLocations' {} Maybe Text
a -> ListSourceLocations
s {$sel:nextToken:ListSourceLocations' :: Maybe Text
nextToken = Maybe Text
a} :: ListSourceLocations)
listSourceLocations_maxResults :: Lens.Lens' ListSourceLocations (Prelude.Maybe Prelude.Natural)
listSourceLocations_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListSourceLocations -> f ListSourceLocations
listSourceLocations_maxResults = (ListSourceLocations -> Maybe Natural)
-> (ListSourceLocations -> Maybe Natural -> ListSourceLocations)
-> Lens
ListSourceLocations
ListSourceLocations
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSourceLocations' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListSourceLocations' :: ListSourceLocations -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListSourceLocations
s@ListSourceLocations' {} Maybe Natural
a -> ListSourceLocations
s {$sel:maxResults:ListSourceLocations' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListSourceLocations)
instance Core.AWSPager ListSourceLocations where
page :: ListSourceLocations
-> AWSResponse ListSourceLocations -> Maybe ListSourceLocations
page ListSourceLocations
rq AWSResponse ListSourceLocations
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListSourceLocations
ListSourceLocationsResponse
rs
ListSourceLocationsResponse
-> Getting (First Text) ListSourceLocationsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListSourceLocationsResponse
-> Const (First Text) ListSourceLocationsResponse
Lens' ListSourceLocationsResponse (Maybe Text)
listSourceLocationsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListSourceLocationsResponse
-> Const (First Text) ListSourceLocationsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListSourceLocationsResponse 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 ListSourceLocations
forall a. Maybe a
Prelude.Nothing
| Maybe [SourceLocation] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListSourceLocations
ListSourceLocationsResponse
rs
ListSourceLocationsResponse
-> Getting
(First [SourceLocation])
ListSourceLocationsResponse
[SourceLocation]
-> Maybe [SourceLocation]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [SourceLocation]
-> Const (First [SourceLocation]) (Maybe [SourceLocation]))
-> ListSourceLocationsResponse
-> Const (First [SourceLocation]) ListSourceLocationsResponse
Lens' ListSourceLocationsResponse (Maybe [SourceLocation])
listSourceLocationsResponse_items
((Maybe [SourceLocation]
-> Const (First [SourceLocation]) (Maybe [SourceLocation]))
-> ListSourceLocationsResponse
-> Const (First [SourceLocation]) ListSourceLocationsResponse)
-> (([SourceLocation]
-> Const (First [SourceLocation]) [SourceLocation])
-> Maybe [SourceLocation]
-> Const (First [SourceLocation]) (Maybe [SourceLocation]))
-> Getting
(First [SourceLocation])
ListSourceLocationsResponse
[SourceLocation]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([SourceLocation]
-> Const (First [SourceLocation]) [SourceLocation])
-> Maybe [SourceLocation]
-> Const (First [SourceLocation]) (Maybe [SourceLocation])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListSourceLocations
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListSourceLocations -> Maybe ListSourceLocations
forall a. a -> Maybe a
Prelude.Just (ListSourceLocations -> Maybe ListSourceLocations)
-> ListSourceLocations -> Maybe ListSourceLocations
forall a b. (a -> b) -> a -> b
Prelude.$
ListSourceLocations
rq
ListSourceLocations
-> (ListSourceLocations -> ListSourceLocations)
-> ListSourceLocations
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListSourceLocations -> Identity ListSourceLocations
Lens
ListSourceLocations ListSourceLocations (Maybe Text) (Maybe Text)
listSourceLocations_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListSourceLocations -> Identity ListSourceLocations)
-> Maybe Text -> ListSourceLocations -> ListSourceLocations
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListSourceLocations
ListSourceLocationsResponse
rs
ListSourceLocationsResponse
-> Getting (First Text) ListSourceLocationsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListSourceLocationsResponse
-> Const (First Text) ListSourceLocationsResponse
Lens' ListSourceLocationsResponse (Maybe Text)
listSourceLocationsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListSourceLocationsResponse
-> Const (First Text) ListSourceLocationsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListSourceLocationsResponse 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 ListSourceLocations where
type
AWSResponse ListSourceLocations =
ListSourceLocationsResponse
request :: ListSourceLocations -> Request ListSourceLocations
request = Service -> ListSourceLocations -> Request ListSourceLocations
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListSourceLocations
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListSourceLocations)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListSourceLocations))
-> Logger
-> Service
-> Proxy ListSourceLocations
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListSourceLocations)))
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 [SourceLocation]
-> Maybe Text -> Int -> ListSourceLocationsResponse
ListSourceLocationsResponse'
(Maybe [SourceLocation]
-> Maybe Text -> Int -> ListSourceLocationsResponse)
-> Either String (Maybe [SourceLocation])
-> Either String (Maybe Text -> Int -> ListSourceLocationsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [SourceLocation]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Items" Either String (Maybe (Maybe [SourceLocation]))
-> Maybe [SourceLocation] -> Either String (Maybe [SourceLocation])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [SourceLocation]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListSourceLocationsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListSourceLocationsResponse)
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 -> ListSourceLocationsResponse)
-> Either String Int -> Either String ListSourceLocationsResponse
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 ListSourceLocations
instance Prelude.NFData ListSourceLocations
instance Core.ToHeaders ListSourceLocations where
toHeaders :: ListSourceLocations -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListSourceLocations -> 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 ListSourceLocations where
toPath :: ListSourceLocations -> ByteString
toPath = ByteString -> ListSourceLocations -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/sourceLocations"
instance Core.ToQuery ListSourceLocations where
toQuery :: ListSourceLocations -> QueryString
toQuery ListSourceLocations' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListSourceLocations' :: ListSourceLocations -> Maybe Natural
$sel:nextToken:ListSourceLocations' :: ListSourceLocations -> 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 Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListSourceLocationsResponse = ListSourceLocationsResponse'
{
ListSourceLocationsResponse -> Maybe [SourceLocation]
items :: Prelude.Maybe [SourceLocation],
ListSourceLocationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListSourceLocationsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListSourceLocationsResponse -> ListSourceLocationsResponse -> Bool
(ListSourceLocationsResponse
-> ListSourceLocationsResponse -> Bool)
-> (ListSourceLocationsResponse
-> ListSourceLocationsResponse -> Bool)
-> Eq ListSourceLocationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSourceLocationsResponse -> ListSourceLocationsResponse -> Bool
$c/= :: ListSourceLocationsResponse -> ListSourceLocationsResponse -> Bool
== :: ListSourceLocationsResponse -> ListSourceLocationsResponse -> Bool
$c== :: ListSourceLocationsResponse -> ListSourceLocationsResponse -> Bool
Prelude.Eq, ReadPrec [ListSourceLocationsResponse]
ReadPrec ListSourceLocationsResponse
Int -> ReadS ListSourceLocationsResponse
ReadS [ListSourceLocationsResponse]
(Int -> ReadS ListSourceLocationsResponse)
-> ReadS [ListSourceLocationsResponse]
-> ReadPrec ListSourceLocationsResponse
-> ReadPrec [ListSourceLocationsResponse]
-> Read ListSourceLocationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSourceLocationsResponse]
$creadListPrec :: ReadPrec [ListSourceLocationsResponse]
readPrec :: ReadPrec ListSourceLocationsResponse
$creadPrec :: ReadPrec ListSourceLocationsResponse
readList :: ReadS [ListSourceLocationsResponse]
$creadList :: ReadS [ListSourceLocationsResponse]
readsPrec :: Int -> ReadS ListSourceLocationsResponse
$creadsPrec :: Int -> ReadS ListSourceLocationsResponse
Prelude.Read, Int -> ListSourceLocationsResponse -> ShowS
[ListSourceLocationsResponse] -> ShowS
ListSourceLocationsResponse -> String
(Int -> ListSourceLocationsResponse -> ShowS)
-> (ListSourceLocationsResponse -> String)
-> ([ListSourceLocationsResponse] -> ShowS)
-> Show ListSourceLocationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSourceLocationsResponse] -> ShowS
$cshowList :: [ListSourceLocationsResponse] -> ShowS
show :: ListSourceLocationsResponse -> String
$cshow :: ListSourceLocationsResponse -> String
showsPrec :: Int -> ListSourceLocationsResponse -> ShowS
$cshowsPrec :: Int -> ListSourceLocationsResponse -> ShowS
Prelude.Show, (forall x.
ListSourceLocationsResponse -> Rep ListSourceLocationsResponse x)
-> (forall x.
Rep ListSourceLocationsResponse x -> ListSourceLocationsResponse)
-> Generic ListSourceLocationsResponse
forall x.
Rep ListSourceLocationsResponse x -> ListSourceLocationsResponse
forall x.
ListSourceLocationsResponse -> Rep ListSourceLocationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSourceLocationsResponse x -> ListSourceLocationsResponse
$cfrom :: forall x.
ListSourceLocationsResponse -> Rep ListSourceLocationsResponse x
Prelude.Generic)
newListSourceLocationsResponse ::
Prelude.Int ->
ListSourceLocationsResponse
newListSourceLocationsResponse :: Int -> ListSourceLocationsResponse
newListSourceLocationsResponse Int
pHttpStatus_ =
ListSourceLocationsResponse' :: Maybe [SourceLocation]
-> Maybe Text -> Int -> ListSourceLocationsResponse
ListSourceLocationsResponse'
{ $sel:items:ListSourceLocationsResponse' :: Maybe [SourceLocation]
items =
Maybe [SourceLocation]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListSourceLocationsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListSourceLocationsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listSourceLocationsResponse_items :: Lens.Lens' ListSourceLocationsResponse (Prelude.Maybe [SourceLocation])
listSourceLocationsResponse_items :: (Maybe [SourceLocation] -> f (Maybe [SourceLocation]))
-> ListSourceLocationsResponse -> f ListSourceLocationsResponse
listSourceLocationsResponse_items = (ListSourceLocationsResponse -> Maybe [SourceLocation])
-> (ListSourceLocationsResponse
-> Maybe [SourceLocation] -> ListSourceLocationsResponse)
-> Lens' ListSourceLocationsResponse (Maybe [SourceLocation])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSourceLocationsResponse' {Maybe [SourceLocation]
items :: Maybe [SourceLocation]
$sel:items:ListSourceLocationsResponse' :: ListSourceLocationsResponse -> Maybe [SourceLocation]
items} -> Maybe [SourceLocation]
items) (\s :: ListSourceLocationsResponse
s@ListSourceLocationsResponse' {} Maybe [SourceLocation]
a -> ListSourceLocationsResponse
s {$sel:items:ListSourceLocationsResponse' :: Maybe [SourceLocation]
items = Maybe [SourceLocation]
a} :: ListSourceLocationsResponse) ((Maybe [SourceLocation] -> f (Maybe [SourceLocation]))
-> ListSourceLocationsResponse -> f ListSourceLocationsResponse)
-> ((Maybe [SourceLocation] -> f (Maybe [SourceLocation]))
-> Maybe [SourceLocation] -> f (Maybe [SourceLocation]))
-> (Maybe [SourceLocation] -> f (Maybe [SourceLocation]))
-> ListSourceLocationsResponse
-> f ListSourceLocationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[SourceLocation] [SourceLocation] [SourceLocation] [SourceLocation]
-> Iso
(Maybe [SourceLocation])
(Maybe [SourceLocation])
(Maybe [SourceLocation])
(Maybe [SourceLocation])
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
[SourceLocation] [SourceLocation] [SourceLocation] [SourceLocation]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listSourceLocationsResponse_nextToken :: Lens.Lens' ListSourceLocationsResponse (Prelude.Maybe Prelude.Text)
listSourceLocationsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListSourceLocationsResponse -> f ListSourceLocationsResponse
listSourceLocationsResponse_nextToken = (ListSourceLocationsResponse -> Maybe Text)
-> (ListSourceLocationsResponse
-> Maybe Text -> ListSourceLocationsResponse)
-> Lens' ListSourceLocationsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSourceLocationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSourceLocationsResponse' :: ListSourceLocationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSourceLocationsResponse
s@ListSourceLocationsResponse' {} Maybe Text
a -> ListSourceLocationsResponse
s {$sel:nextToken:ListSourceLocationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListSourceLocationsResponse)
listSourceLocationsResponse_httpStatus :: Lens.Lens' ListSourceLocationsResponse Prelude.Int
listSourceLocationsResponse_httpStatus :: (Int -> f Int)
-> ListSourceLocationsResponse -> f ListSourceLocationsResponse
listSourceLocationsResponse_httpStatus = (ListSourceLocationsResponse -> Int)
-> (ListSourceLocationsResponse
-> Int -> ListSourceLocationsResponse)
-> Lens
ListSourceLocationsResponse ListSourceLocationsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSourceLocationsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListSourceLocationsResponse' :: ListSourceLocationsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListSourceLocationsResponse
s@ListSourceLocationsResponse' {} Int
a -> ListSourceLocationsResponse
s {$sel:httpStatus:ListSourceLocationsResponse' :: Int
httpStatus = Int
a} :: ListSourceLocationsResponse)
instance Prelude.NFData ListSourceLocationsResponse