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