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