{-# 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.Nimble.ListStreamingImages
(
ListStreamingImages (..),
newListStreamingImages,
listStreamingImages_owner,
listStreamingImages_nextToken,
listStreamingImages_studioId,
ListStreamingImagesResponse (..),
newListStreamingImagesResponse,
listStreamingImagesResponse_streamingImages,
listStreamingImagesResponse_nextToken,
listStreamingImagesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Nimble.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListStreamingImages = ListStreamingImages'
{
ListStreamingImages -> Maybe Text
owner :: Prelude.Maybe Prelude.Text,
ListStreamingImages -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListStreamingImages -> Text
studioId :: Prelude.Text
}
deriving (ListStreamingImages -> ListStreamingImages -> Bool
(ListStreamingImages -> ListStreamingImages -> Bool)
-> (ListStreamingImages -> ListStreamingImages -> Bool)
-> Eq ListStreamingImages
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListStreamingImages -> ListStreamingImages -> Bool
$c/= :: ListStreamingImages -> ListStreamingImages -> Bool
== :: ListStreamingImages -> ListStreamingImages -> Bool
$c== :: ListStreamingImages -> ListStreamingImages -> Bool
Prelude.Eq, ReadPrec [ListStreamingImages]
ReadPrec ListStreamingImages
Int -> ReadS ListStreamingImages
ReadS [ListStreamingImages]
(Int -> ReadS ListStreamingImages)
-> ReadS [ListStreamingImages]
-> ReadPrec ListStreamingImages
-> ReadPrec [ListStreamingImages]
-> Read ListStreamingImages
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListStreamingImages]
$creadListPrec :: ReadPrec [ListStreamingImages]
readPrec :: ReadPrec ListStreamingImages
$creadPrec :: ReadPrec ListStreamingImages
readList :: ReadS [ListStreamingImages]
$creadList :: ReadS [ListStreamingImages]
readsPrec :: Int -> ReadS ListStreamingImages
$creadsPrec :: Int -> ReadS ListStreamingImages
Prelude.Read, Int -> ListStreamingImages -> ShowS
[ListStreamingImages] -> ShowS
ListStreamingImages -> String
(Int -> ListStreamingImages -> ShowS)
-> (ListStreamingImages -> String)
-> ([ListStreamingImages] -> ShowS)
-> Show ListStreamingImages
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListStreamingImages] -> ShowS
$cshowList :: [ListStreamingImages] -> ShowS
show :: ListStreamingImages -> String
$cshow :: ListStreamingImages -> String
showsPrec :: Int -> ListStreamingImages -> ShowS
$cshowsPrec :: Int -> ListStreamingImages -> ShowS
Prelude.Show, (forall x. ListStreamingImages -> Rep ListStreamingImages x)
-> (forall x. Rep ListStreamingImages x -> ListStreamingImages)
-> Generic ListStreamingImages
forall x. Rep ListStreamingImages x -> ListStreamingImages
forall x. ListStreamingImages -> Rep ListStreamingImages x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListStreamingImages x -> ListStreamingImages
$cfrom :: forall x. ListStreamingImages -> Rep ListStreamingImages x
Prelude.Generic)
newListStreamingImages ::
Prelude.Text ->
ListStreamingImages
newListStreamingImages :: Text -> ListStreamingImages
newListStreamingImages Text
pStudioId_ =
ListStreamingImages' :: Maybe Text -> Maybe Text -> Text -> ListStreamingImages
ListStreamingImages'
{ $sel:owner:ListStreamingImages' :: Maybe Text
owner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListStreamingImages' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:studioId:ListStreamingImages' :: Text
studioId = Text
pStudioId_
}
listStreamingImages_owner :: Lens.Lens' ListStreamingImages (Prelude.Maybe Prelude.Text)
listStreamingImages_owner :: (Maybe Text -> f (Maybe Text))
-> ListStreamingImages -> f ListStreamingImages
listStreamingImages_owner = (ListStreamingImages -> Maybe Text)
-> (ListStreamingImages -> Maybe Text -> ListStreamingImages)
-> Lens
ListStreamingImages ListStreamingImages (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStreamingImages' {Maybe Text
owner :: Maybe Text
$sel:owner:ListStreamingImages' :: ListStreamingImages -> Maybe Text
owner} -> Maybe Text
owner) (\s :: ListStreamingImages
s@ListStreamingImages' {} Maybe Text
a -> ListStreamingImages
s {$sel:owner:ListStreamingImages' :: Maybe Text
owner = Maybe Text
a} :: ListStreamingImages)
listStreamingImages_nextToken :: Lens.Lens' ListStreamingImages (Prelude.Maybe Prelude.Text)
listStreamingImages_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListStreamingImages -> f ListStreamingImages
listStreamingImages_nextToken = (ListStreamingImages -> Maybe Text)
-> (ListStreamingImages -> Maybe Text -> ListStreamingImages)
-> Lens
ListStreamingImages ListStreamingImages (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStreamingImages' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListStreamingImages' :: ListStreamingImages -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListStreamingImages
s@ListStreamingImages' {} Maybe Text
a -> ListStreamingImages
s {$sel:nextToken:ListStreamingImages' :: Maybe Text
nextToken = Maybe Text
a} :: ListStreamingImages)
listStreamingImages_studioId :: Lens.Lens' ListStreamingImages Prelude.Text
listStreamingImages_studioId :: (Text -> f Text) -> ListStreamingImages -> f ListStreamingImages
listStreamingImages_studioId = (ListStreamingImages -> Text)
-> (ListStreamingImages -> Text -> ListStreamingImages)
-> Lens ListStreamingImages ListStreamingImages Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStreamingImages' {Text
studioId :: Text
$sel:studioId:ListStreamingImages' :: ListStreamingImages -> Text
studioId} -> Text
studioId) (\s :: ListStreamingImages
s@ListStreamingImages' {} Text
a -> ListStreamingImages
s {$sel:studioId:ListStreamingImages' :: Text
studioId = Text
a} :: ListStreamingImages)
instance Core.AWSPager ListStreamingImages where
page :: ListStreamingImages
-> AWSResponse ListStreamingImages -> Maybe ListStreamingImages
page ListStreamingImages
rq AWSResponse ListStreamingImages
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListStreamingImages
ListStreamingImagesResponse
rs
ListStreamingImagesResponse
-> Getting (First Text) ListStreamingImagesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListStreamingImagesResponse
-> Const (First Text) ListStreamingImagesResponse
Lens' ListStreamingImagesResponse (Maybe Text)
listStreamingImagesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListStreamingImagesResponse
-> Const (First Text) ListStreamingImagesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListStreamingImagesResponse 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 ListStreamingImages
forall a. Maybe a
Prelude.Nothing
| Maybe [StreamingImage] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListStreamingImages
ListStreamingImagesResponse
rs
ListStreamingImagesResponse
-> Getting
(First [StreamingImage])
ListStreamingImagesResponse
[StreamingImage]
-> Maybe [StreamingImage]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [StreamingImage]
-> Const (First [StreamingImage]) (Maybe [StreamingImage]))
-> ListStreamingImagesResponse
-> Const (First [StreamingImage]) ListStreamingImagesResponse
Lens' ListStreamingImagesResponse (Maybe [StreamingImage])
listStreamingImagesResponse_streamingImages
((Maybe [StreamingImage]
-> Const (First [StreamingImage]) (Maybe [StreamingImage]))
-> ListStreamingImagesResponse
-> Const (First [StreamingImage]) ListStreamingImagesResponse)
-> (([StreamingImage]
-> Const (First [StreamingImage]) [StreamingImage])
-> Maybe [StreamingImage]
-> Const (First [StreamingImage]) (Maybe [StreamingImage]))
-> Getting
(First [StreamingImage])
ListStreamingImagesResponse
[StreamingImage]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([StreamingImage]
-> Const (First [StreamingImage]) [StreamingImage])
-> Maybe [StreamingImage]
-> Const (First [StreamingImage]) (Maybe [StreamingImage])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListStreamingImages
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListStreamingImages -> Maybe ListStreamingImages
forall a. a -> Maybe a
Prelude.Just (ListStreamingImages -> Maybe ListStreamingImages)
-> ListStreamingImages -> Maybe ListStreamingImages
forall a b. (a -> b) -> a -> b
Prelude.$
ListStreamingImages
rq
ListStreamingImages
-> (ListStreamingImages -> ListStreamingImages)
-> ListStreamingImages
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListStreamingImages -> Identity ListStreamingImages
Lens
ListStreamingImages ListStreamingImages (Maybe Text) (Maybe Text)
listStreamingImages_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListStreamingImages -> Identity ListStreamingImages)
-> Maybe Text -> ListStreamingImages -> ListStreamingImages
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListStreamingImages
ListStreamingImagesResponse
rs
ListStreamingImagesResponse
-> Getting (First Text) ListStreamingImagesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListStreamingImagesResponse
-> Const (First Text) ListStreamingImagesResponse
Lens' ListStreamingImagesResponse (Maybe Text)
listStreamingImagesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListStreamingImagesResponse
-> Const (First Text) ListStreamingImagesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListStreamingImagesResponse 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 ListStreamingImages where
type
AWSResponse ListStreamingImages =
ListStreamingImagesResponse
request :: ListStreamingImages -> Request ListStreamingImages
request = Service -> ListStreamingImages -> Request ListStreamingImages
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListStreamingImages
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListStreamingImages)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListStreamingImages))
-> Logger
-> Service
-> Proxy ListStreamingImages
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListStreamingImages)))
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 [StreamingImage]
-> Maybe Text -> Int -> ListStreamingImagesResponse
ListStreamingImagesResponse'
(Maybe [StreamingImage]
-> Maybe Text -> Int -> ListStreamingImagesResponse)
-> Either String (Maybe [StreamingImage])
-> Either String (Maybe Text -> Int -> ListStreamingImagesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object -> Text -> Either String (Maybe (Maybe [StreamingImage]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"streamingImages"
Either String (Maybe (Maybe [StreamingImage]))
-> Maybe [StreamingImage] -> Either String (Maybe [StreamingImage])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [StreamingImage]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Maybe Text -> Int -> ListStreamingImagesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListStreamingImagesResponse)
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 -> ListStreamingImagesResponse)
-> Either String Int -> Either String ListStreamingImagesResponse
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 ListStreamingImages
instance Prelude.NFData ListStreamingImages
instance Core.ToHeaders ListStreamingImages where
toHeaders :: ListStreamingImages -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListStreamingImages -> 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 ListStreamingImages where
toPath :: ListStreamingImages -> ByteString
toPath ListStreamingImages' {Maybe Text
Text
studioId :: Text
nextToken :: Maybe Text
owner :: Maybe Text
$sel:studioId:ListStreamingImages' :: ListStreamingImages -> Text
$sel:nextToken:ListStreamingImages' :: ListStreamingImages -> Maybe Text
$sel:owner:ListStreamingImages' :: ListStreamingImages -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/2020-08-01/studios/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
studioId,
ByteString
"/streaming-images"
]
instance Core.ToQuery ListStreamingImages where
toQuery :: ListStreamingImages -> QueryString
toQuery ListStreamingImages' {Maybe Text
Text
studioId :: Text
nextToken :: Maybe Text
owner :: Maybe Text
$sel:studioId:ListStreamingImages' :: ListStreamingImages -> Text
$sel:nextToken:ListStreamingImages' :: ListStreamingImages -> Maybe Text
$sel:owner:ListStreamingImages' :: ListStreamingImages -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"owner" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
owner,
ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken
]
data ListStreamingImagesResponse = ListStreamingImagesResponse'
{
ListStreamingImagesResponse -> Maybe [StreamingImage]
streamingImages :: Prelude.Maybe [StreamingImage],
ListStreamingImagesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListStreamingImagesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListStreamingImagesResponse -> ListStreamingImagesResponse -> Bool
(ListStreamingImagesResponse
-> ListStreamingImagesResponse -> Bool)
-> (ListStreamingImagesResponse
-> ListStreamingImagesResponse -> Bool)
-> Eq ListStreamingImagesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListStreamingImagesResponse -> ListStreamingImagesResponse -> Bool
$c/= :: ListStreamingImagesResponse -> ListStreamingImagesResponse -> Bool
== :: ListStreamingImagesResponse -> ListStreamingImagesResponse -> Bool
$c== :: ListStreamingImagesResponse -> ListStreamingImagesResponse -> Bool
Prelude.Eq, ReadPrec [ListStreamingImagesResponse]
ReadPrec ListStreamingImagesResponse
Int -> ReadS ListStreamingImagesResponse
ReadS [ListStreamingImagesResponse]
(Int -> ReadS ListStreamingImagesResponse)
-> ReadS [ListStreamingImagesResponse]
-> ReadPrec ListStreamingImagesResponse
-> ReadPrec [ListStreamingImagesResponse]
-> Read ListStreamingImagesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListStreamingImagesResponse]
$creadListPrec :: ReadPrec [ListStreamingImagesResponse]
readPrec :: ReadPrec ListStreamingImagesResponse
$creadPrec :: ReadPrec ListStreamingImagesResponse
readList :: ReadS [ListStreamingImagesResponse]
$creadList :: ReadS [ListStreamingImagesResponse]
readsPrec :: Int -> ReadS ListStreamingImagesResponse
$creadsPrec :: Int -> ReadS ListStreamingImagesResponse
Prelude.Read, Int -> ListStreamingImagesResponse -> ShowS
[ListStreamingImagesResponse] -> ShowS
ListStreamingImagesResponse -> String
(Int -> ListStreamingImagesResponse -> ShowS)
-> (ListStreamingImagesResponse -> String)
-> ([ListStreamingImagesResponse] -> ShowS)
-> Show ListStreamingImagesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListStreamingImagesResponse] -> ShowS
$cshowList :: [ListStreamingImagesResponse] -> ShowS
show :: ListStreamingImagesResponse -> String
$cshow :: ListStreamingImagesResponse -> String
showsPrec :: Int -> ListStreamingImagesResponse -> ShowS
$cshowsPrec :: Int -> ListStreamingImagesResponse -> ShowS
Prelude.Show, (forall x.
ListStreamingImagesResponse -> Rep ListStreamingImagesResponse x)
-> (forall x.
Rep ListStreamingImagesResponse x -> ListStreamingImagesResponse)
-> Generic ListStreamingImagesResponse
forall x.
Rep ListStreamingImagesResponse x -> ListStreamingImagesResponse
forall x.
ListStreamingImagesResponse -> Rep ListStreamingImagesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListStreamingImagesResponse x -> ListStreamingImagesResponse
$cfrom :: forall x.
ListStreamingImagesResponse -> Rep ListStreamingImagesResponse x
Prelude.Generic)
newListStreamingImagesResponse ::
Prelude.Int ->
ListStreamingImagesResponse
newListStreamingImagesResponse :: Int -> ListStreamingImagesResponse
newListStreamingImagesResponse Int
pHttpStatus_ =
ListStreamingImagesResponse' :: Maybe [StreamingImage]
-> Maybe Text -> Int -> ListStreamingImagesResponse
ListStreamingImagesResponse'
{ $sel:streamingImages:ListStreamingImagesResponse' :: Maybe [StreamingImage]
streamingImages =
Maybe [StreamingImage]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListStreamingImagesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListStreamingImagesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listStreamingImagesResponse_streamingImages :: Lens.Lens' ListStreamingImagesResponse (Prelude.Maybe [StreamingImage])
listStreamingImagesResponse_streamingImages :: (Maybe [StreamingImage] -> f (Maybe [StreamingImage]))
-> ListStreamingImagesResponse -> f ListStreamingImagesResponse
listStreamingImagesResponse_streamingImages = (ListStreamingImagesResponse -> Maybe [StreamingImage])
-> (ListStreamingImagesResponse
-> Maybe [StreamingImage] -> ListStreamingImagesResponse)
-> Lens' ListStreamingImagesResponse (Maybe [StreamingImage])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStreamingImagesResponse' {Maybe [StreamingImage]
streamingImages :: Maybe [StreamingImage]
$sel:streamingImages:ListStreamingImagesResponse' :: ListStreamingImagesResponse -> Maybe [StreamingImage]
streamingImages} -> Maybe [StreamingImage]
streamingImages) (\s :: ListStreamingImagesResponse
s@ListStreamingImagesResponse' {} Maybe [StreamingImage]
a -> ListStreamingImagesResponse
s {$sel:streamingImages:ListStreamingImagesResponse' :: Maybe [StreamingImage]
streamingImages = Maybe [StreamingImage]
a} :: ListStreamingImagesResponse) ((Maybe [StreamingImage] -> f (Maybe [StreamingImage]))
-> ListStreamingImagesResponse -> f ListStreamingImagesResponse)
-> ((Maybe [StreamingImage] -> f (Maybe [StreamingImage]))
-> Maybe [StreamingImage] -> f (Maybe [StreamingImage]))
-> (Maybe [StreamingImage] -> f (Maybe [StreamingImage]))
-> ListStreamingImagesResponse
-> f ListStreamingImagesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[StreamingImage] [StreamingImage] [StreamingImage] [StreamingImage]
-> Iso
(Maybe [StreamingImage])
(Maybe [StreamingImage])
(Maybe [StreamingImage])
(Maybe [StreamingImage])
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
[StreamingImage] [StreamingImage] [StreamingImage] [StreamingImage]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listStreamingImagesResponse_nextToken :: Lens.Lens' ListStreamingImagesResponse (Prelude.Maybe Prelude.Text)
listStreamingImagesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListStreamingImagesResponse -> f ListStreamingImagesResponse
listStreamingImagesResponse_nextToken = (ListStreamingImagesResponse -> Maybe Text)
-> (ListStreamingImagesResponse
-> Maybe Text -> ListStreamingImagesResponse)
-> Lens' ListStreamingImagesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStreamingImagesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListStreamingImagesResponse' :: ListStreamingImagesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListStreamingImagesResponse
s@ListStreamingImagesResponse' {} Maybe Text
a -> ListStreamingImagesResponse
s {$sel:nextToken:ListStreamingImagesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListStreamingImagesResponse)
listStreamingImagesResponse_httpStatus :: Lens.Lens' ListStreamingImagesResponse Prelude.Int
listStreamingImagesResponse_httpStatus :: (Int -> f Int)
-> ListStreamingImagesResponse -> f ListStreamingImagesResponse
listStreamingImagesResponse_httpStatus = (ListStreamingImagesResponse -> Int)
-> (ListStreamingImagesResponse
-> Int -> ListStreamingImagesResponse)
-> Lens
ListStreamingImagesResponse ListStreamingImagesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListStreamingImagesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListStreamingImagesResponse' :: ListStreamingImagesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListStreamingImagesResponse
s@ListStreamingImagesResponse' {} Int
a -> ListStreamingImagesResponse
s {$sel:httpStatus:ListStreamingImagesResponse' :: Int
httpStatus = Int
a} :: ListStreamingImagesResponse)
instance Prelude.NFData ListStreamingImagesResponse