{-# 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.SWF.PollForActivityTask
(
PollForActivityTask (..),
newPollForActivityTask,
pollForActivityTask_identity,
pollForActivityTask_domain,
pollForActivityTask_taskList,
PollForActivityTaskResponse (..),
newPollForActivityTaskResponse,
pollForActivityTaskResponse_activityType,
pollForActivityTaskResponse_activityId,
pollForActivityTaskResponse_input,
pollForActivityTaskResponse_taskToken,
pollForActivityTaskResponse_workflowExecution,
pollForActivityTaskResponse_httpStatus,
pollForActivityTaskResponse_startedEventId,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SWF.Types
data PollForActivityTask = PollForActivityTask'
{
PollForActivityTask -> Maybe Text
identity :: Prelude.Maybe Prelude.Text,
PollForActivityTask -> Text
domain :: Prelude.Text,
PollForActivityTask -> TaskList
taskList :: TaskList
}
deriving (PollForActivityTask -> PollForActivityTask -> Bool
(PollForActivityTask -> PollForActivityTask -> Bool)
-> (PollForActivityTask -> PollForActivityTask -> Bool)
-> Eq PollForActivityTask
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PollForActivityTask -> PollForActivityTask -> Bool
$c/= :: PollForActivityTask -> PollForActivityTask -> Bool
== :: PollForActivityTask -> PollForActivityTask -> Bool
$c== :: PollForActivityTask -> PollForActivityTask -> Bool
Prelude.Eq, ReadPrec [PollForActivityTask]
ReadPrec PollForActivityTask
Int -> ReadS PollForActivityTask
ReadS [PollForActivityTask]
(Int -> ReadS PollForActivityTask)
-> ReadS [PollForActivityTask]
-> ReadPrec PollForActivityTask
-> ReadPrec [PollForActivityTask]
-> Read PollForActivityTask
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PollForActivityTask]
$creadListPrec :: ReadPrec [PollForActivityTask]
readPrec :: ReadPrec PollForActivityTask
$creadPrec :: ReadPrec PollForActivityTask
readList :: ReadS [PollForActivityTask]
$creadList :: ReadS [PollForActivityTask]
readsPrec :: Int -> ReadS PollForActivityTask
$creadsPrec :: Int -> ReadS PollForActivityTask
Prelude.Read, Int -> PollForActivityTask -> ShowS
[PollForActivityTask] -> ShowS
PollForActivityTask -> String
(Int -> PollForActivityTask -> ShowS)
-> (PollForActivityTask -> String)
-> ([PollForActivityTask] -> ShowS)
-> Show PollForActivityTask
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PollForActivityTask] -> ShowS
$cshowList :: [PollForActivityTask] -> ShowS
show :: PollForActivityTask -> String
$cshow :: PollForActivityTask -> String
showsPrec :: Int -> PollForActivityTask -> ShowS
$cshowsPrec :: Int -> PollForActivityTask -> ShowS
Prelude.Show, (forall x. PollForActivityTask -> Rep PollForActivityTask x)
-> (forall x. Rep PollForActivityTask x -> PollForActivityTask)
-> Generic PollForActivityTask
forall x. Rep PollForActivityTask x -> PollForActivityTask
forall x. PollForActivityTask -> Rep PollForActivityTask x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PollForActivityTask x -> PollForActivityTask
$cfrom :: forall x. PollForActivityTask -> Rep PollForActivityTask x
Prelude.Generic)
newPollForActivityTask ::
Prelude.Text ->
TaskList ->
PollForActivityTask
newPollForActivityTask :: Text -> TaskList -> PollForActivityTask
newPollForActivityTask Text
pDomain_ TaskList
pTaskList_ =
PollForActivityTask' :: Maybe Text -> Text -> TaskList -> PollForActivityTask
PollForActivityTask'
{ $sel:identity:PollForActivityTask' :: Maybe Text
identity = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:domain:PollForActivityTask' :: Text
domain = Text
pDomain_,
$sel:taskList:PollForActivityTask' :: TaskList
taskList = TaskList
pTaskList_
}
pollForActivityTask_identity :: Lens.Lens' PollForActivityTask (Prelude.Maybe Prelude.Text)
pollForActivityTask_identity :: (Maybe Text -> f (Maybe Text))
-> PollForActivityTask -> f PollForActivityTask
pollForActivityTask_identity = (PollForActivityTask -> Maybe Text)
-> (PollForActivityTask -> Maybe Text -> PollForActivityTask)
-> Lens
PollForActivityTask PollForActivityTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PollForActivityTask' {Maybe Text
identity :: Maybe Text
$sel:identity:PollForActivityTask' :: PollForActivityTask -> Maybe Text
identity} -> Maybe Text
identity) (\s :: PollForActivityTask
s@PollForActivityTask' {} Maybe Text
a -> PollForActivityTask
s {$sel:identity:PollForActivityTask' :: Maybe Text
identity = Maybe Text
a} :: PollForActivityTask)
pollForActivityTask_domain :: Lens.Lens' PollForActivityTask Prelude.Text
pollForActivityTask_domain :: (Text -> f Text) -> PollForActivityTask -> f PollForActivityTask
pollForActivityTask_domain = (PollForActivityTask -> Text)
-> (PollForActivityTask -> Text -> PollForActivityTask)
-> Lens PollForActivityTask PollForActivityTask Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PollForActivityTask' {Text
domain :: Text
$sel:domain:PollForActivityTask' :: PollForActivityTask -> Text
domain} -> Text
domain) (\s :: PollForActivityTask
s@PollForActivityTask' {} Text
a -> PollForActivityTask
s {$sel:domain:PollForActivityTask' :: Text
domain = Text
a} :: PollForActivityTask)
pollForActivityTask_taskList :: Lens.Lens' PollForActivityTask TaskList
pollForActivityTask_taskList :: (TaskList -> f TaskList)
-> PollForActivityTask -> f PollForActivityTask
pollForActivityTask_taskList = (PollForActivityTask -> TaskList)
-> (PollForActivityTask -> TaskList -> PollForActivityTask)
-> Lens PollForActivityTask PollForActivityTask TaskList TaskList
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PollForActivityTask' {TaskList
taskList :: TaskList
$sel:taskList:PollForActivityTask' :: PollForActivityTask -> TaskList
taskList} -> TaskList
taskList) (\s :: PollForActivityTask
s@PollForActivityTask' {} TaskList
a -> PollForActivityTask
s {$sel:taskList:PollForActivityTask' :: TaskList
taskList = TaskList
a} :: PollForActivityTask)
instance Core.AWSRequest PollForActivityTask where
type
AWSResponse PollForActivityTask =
PollForActivityTaskResponse
request :: PollForActivityTask -> Request PollForActivityTask
request = Service -> PollForActivityTask -> Request PollForActivityTask
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy PollForActivityTask
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse PollForActivityTask)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse PollForActivityTask))
-> Logger
-> Service
-> Proxy PollForActivityTask
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse PollForActivityTask)))
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 ActivityType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe WorkflowExecution
-> Int
-> Integer
-> PollForActivityTaskResponse
PollForActivityTaskResponse'
(Maybe ActivityType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe WorkflowExecution
-> Int
-> Integer
-> PollForActivityTaskResponse)
-> Either String (Maybe ActivityType)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe WorkflowExecution
-> Int
-> Integer
-> PollForActivityTaskResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe ActivityType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"activityType")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe WorkflowExecution
-> Int
-> Integer
-> PollForActivityTaskResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe WorkflowExecution
-> Int
-> Integer
-> PollForActivityTaskResponse)
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
"activityId")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe WorkflowExecution
-> Int
-> Integer
-> PollForActivityTaskResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe WorkflowExecution
-> Int
-> Integer
-> PollForActivityTaskResponse)
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
"input")
Either
String
(Maybe Text
-> Maybe WorkflowExecution
-> Int
-> Integer
-> PollForActivityTaskResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe WorkflowExecution
-> Int -> Integer -> PollForActivityTaskResponse)
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
"taskToken")
Either
String
(Maybe WorkflowExecution
-> Int -> Integer -> PollForActivityTaskResponse)
-> Either String (Maybe WorkflowExecution)
-> Either String (Int -> Integer -> PollForActivityTaskResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe WorkflowExecution)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"workflowExecution")
Either String (Int -> Integer -> PollForActivityTaskResponse)
-> Either String Int
-> Either String (Integer -> PollForActivityTaskResponse)
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))
Either String (Integer -> PollForActivityTaskResponse)
-> Either String Integer
-> Either String PollForActivityTaskResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Integer
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"startedEventId")
)
instance Prelude.Hashable PollForActivityTask
instance Prelude.NFData PollForActivityTask
instance Core.ToHeaders PollForActivityTask where
toHeaders :: PollForActivityTask -> ResponseHeaders
toHeaders =
ResponseHeaders -> PollForActivityTask -> 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
"SimpleWorkflowService.PollForActivityTask" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON PollForActivityTask where
toJSON :: PollForActivityTask -> Value
toJSON PollForActivityTask' {Maybe Text
Text
TaskList
taskList :: TaskList
domain :: Text
identity :: Maybe Text
$sel:taskList:PollForActivityTask' :: PollForActivityTask -> TaskList
$sel:domain:PollForActivityTask' :: PollForActivityTask -> Text
$sel:identity:PollForActivityTask' :: PollForActivityTask -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"identity" 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
identity,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"domain" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
domain),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"taskList" Text -> TaskList -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= TaskList
taskList)
]
)
instance Core.ToPath PollForActivityTask where
toPath :: PollForActivityTask -> ByteString
toPath = ByteString -> PollForActivityTask -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery PollForActivityTask where
toQuery :: PollForActivityTask -> QueryString
toQuery = QueryString -> PollForActivityTask -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data PollForActivityTaskResponse = PollForActivityTaskResponse'
{
PollForActivityTaskResponse -> Maybe ActivityType
activityType :: Prelude.Maybe ActivityType,
PollForActivityTaskResponse -> Maybe Text
activityId :: Prelude.Maybe Prelude.Text,
PollForActivityTaskResponse -> Maybe Text
input :: Prelude.Maybe Prelude.Text,
PollForActivityTaskResponse -> Maybe Text
taskToken :: Prelude.Maybe Prelude.Text,
PollForActivityTaskResponse -> Maybe WorkflowExecution
workflowExecution :: Prelude.Maybe WorkflowExecution,
PollForActivityTaskResponse -> Int
httpStatus :: Prelude.Int,
PollForActivityTaskResponse -> Integer
startedEventId :: Prelude.Integer
}
deriving (PollForActivityTaskResponse -> PollForActivityTaskResponse -> Bool
(PollForActivityTaskResponse
-> PollForActivityTaskResponse -> Bool)
-> (PollForActivityTaskResponse
-> PollForActivityTaskResponse -> Bool)
-> Eq PollForActivityTaskResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PollForActivityTaskResponse -> PollForActivityTaskResponse -> Bool
$c/= :: PollForActivityTaskResponse -> PollForActivityTaskResponse -> Bool
== :: PollForActivityTaskResponse -> PollForActivityTaskResponse -> Bool
$c== :: PollForActivityTaskResponse -> PollForActivityTaskResponse -> Bool
Prelude.Eq, ReadPrec [PollForActivityTaskResponse]
ReadPrec PollForActivityTaskResponse
Int -> ReadS PollForActivityTaskResponse
ReadS [PollForActivityTaskResponse]
(Int -> ReadS PollForActivityTaskResponse)
-> ReadS [PollForActivityTaskResponse]
-> ReadPrec PollForActivityTaskResponse
-> ReadPrec [PollForActivityTaskResponse]
-> Read PollForActivityTaskResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PollForActivityTaskResponse]
$creadListPrec :: ReadPrec [PollForActivityTaskResponse]
readPrec :: ReadPrec PollForActivityTaskResponse
$creadPrec :: ReadPrec PollForActivityTaskResponse
readList :: ReadS [PollForActivityTaskResponse]
$creadList :: ReadS [PollForActivityTaskResponse]
readsPrec :: Int -> ReadS PollForActivityTaskResponse
$creadsPrec :: Int -> ReadS PollForActivityTaskResponse
Prelude.Read, Int -> PollForActivityTaskResponse -> ShowS
[PollForActivityTaskResponse] -> ShowS
PollForActivityTaskResponse -> String
(Int -> PollForActivityTaskResponse -> ShowS)
-> (PollForActivityTaskResponse -> String)
-> ([PollForActivityTaskResponse] -> ShowS)
-> Show PollForActivityTaskResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PollForActivityTaskResponse] -> ShowS
$cshowList :: [PollForActivityTaskResponse] -> ShowS
show :: PollForActivityTaskResponse -> String
$cshow :: PollForActivityTaskResponse -> String
showsPrec :: Int -> PollForActivityTaskResponse -> ShowS
$cshowsPrec :: Int -> PollForActivityTaskResponse -> ShowS
Prelude.Show, (forall x.
PollForActivityTaskResponse -> Rep PollForActivityTaskResponse x)
-> (forall x.
Rep PollForActivityTaskResponse x -> PollForActivityTaskResponse)
-> Generic PollForActivityTaskResponse
forall x.
Rep PollForActivityTaskResponse x -> PollForActivityTaskResponse
forall x.
PollForActivityTaskResponse -> Rep PollForActivityTaskResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PollForActivityTaskResponse x -> PollForActivityTaskResponse
$cfrom :: forall x.
PollForActivityTaskResponse -> Rep PollForActivityTaskResponse x
Prelude.Generic)
newPollForActivityTaskResponse ::
Prelude.Int ->
Prelude.Integer ->
PollForActivityTaskResponse
newPollForActivityTaskResponse :: Int -> Integer -> PollForActivityTaskResponse
newPollForActivityTaskResponse
Int
pHttpStatus_
Integer
pStartedEventId_ =
PollForActivityTaskResponse' :: Maybe ActivityType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe WorkflowExecution
-> Int
-> Integer
-> PollForActivityTaskResponse
PollForActivityTaskResponse'
{ $sel:activityType:PollForActivityTaskResponse' :: Maybe ActivityType
activityType =
Maybe ActivityType
forall a. Maybe a
Prelude.Nothing,
$sel:activityId:PollForActivityTaskResponse' :: Maybe Text
activityId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:input:PollForActivityTaskResponse' :: Maybe Text
input = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:taskToken:PollForActivityTaskResponse' :: Maybe Text
taskToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:workflowExecution:PollForActivityTaskResponse' :: Maybe WorkflowExecution
workflowExecution = Maybe WorkflowExecution
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:PollForActivityTaskResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:startedEventId:PollForActivityTaskResponse' :: Integer
startedEventId = Integer
pStartedEventId_
}
pollForActivityTaskResponse_activityType :: Lens.Lens' PollForActivityTaskResponse (Prelude.Maybe ActivityType)
pollForActivityTaskResponse_activityType :: (Maybe ActivityType -> f (Maybe ActivityType))
-> PollForActivityTaskResponse -> f PollForActivityTaskResponse
pollForActivityTaskResponse_activityType = (PollForActivityTaskResponse -> Maybe ActivityType)
-> (PollForActivityTaskResponse
-> Maybe ActivityType -> PollForActivityTaskResponse)
-> Lens
PollForActivityTaskResponse
PollForActivityTaskResponse
(Maybe ActivityType)
(Maybe ActivityType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PollForActivityTaskResponse' {Maybe ActivityType
activityType :: Maybe ActivityType
$sel:activityType:PollForActivityTaskResponse' :: PollForActivityTaskResponse -> Maybe ActivityType
activityType} -> Maybe ActivityType
activityType) (\s :: PollForActivityTaskResponse
s@PollForActivityTaskResponse' {} Maybe ActivityType
a -> PollForActivityTaskResponse
s {$sel:activityType:PollForActivityTaskResponse' :: Maybe ActivityType
activityType = Maybe ActivityType
a} :: PollForActivityTaskResponse)
pollForActivityTaskResponse_activityId :: Lens.Lens' PollForActivityTaskResponse (Prelude.Maybe Prelude.Text)
pollForActivityTaskResponse_activityId :: (Maybe Text -> f (Maybe Text))
-> PollForActivityTaskResponse -> f PollForActivityTaskResponse
pollForActivityTaskResponse_activityId = (PollForActivityTaskResponse -> Maybe Text)
-> (PollForActivityTaskResponse
-> Maybe Text -> PollForActivityTaskResponse)
-> Lens
PollForActivityTaskResponse
PollForActivityTaskResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PollForActivityTaskResponse' {Maybe Text
activityId :: Maybe Text
$sel:activityId:PollForActivityTaskResponse' :: PollForActivityTaskResponse -> Maybe Text
activityId} -> Maybe Text
activityId) (\s :: PollForActivityTaskResponse
s@PollForActivityTaskResponse' {} Maybe Text
a -> PollForActivityTaskResponse
s {$sel:activityId:PollForActivityTaskResponse' :: Maybe Text
activityId = Maybe Text
a} :: PollForActivityTaskResponse)
pollForActivityTaskResponse_input :: Lens.Lens' PollForActivityTaskResponse (Prelude.Maybe Prelude.Text)
pollForActivityTaskResponse_input :: (Maybe Text -> f (Maybe Text))
-> PollForActivityTaskResponse -> f PollForActivityTaskResponse
pollForActivityTaskResponse_input = (PollForActivityTaskResponse -> Maybe Text)
-> (PollForActivityTaskResponse
-> Maybe Text -> PollForActivityTaskResponse)
-> Lens
PollForActivityTaskResponse
PollForActivityTaskResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PollForActivityTaskResponse' {Maybe Text
input :: Maybe Text
$sel:input:PollForActivityTaskResponse' :: PollForActivityTaskResponse -> Maybe Text
input} -> Maybe Text
input) (\s :: PollForActivityTaskResponse
s@PollForActivityTaskResponse' {} Maybe Text
a -> PollForActivityTaskResponse
s {$sel:input:PollForActivityTaskResponse' :: Maybe Text
input = Maybe Text
a} :: PollForActivityTaskResponse)
pollForActivityTaskResponse_taskToken :: Lens.Lens' PollForActivityTaskResponse (Prelude.Maybe Prelude.Text)
pollForActivityTaskResponse_taskToken :: (Maybe Text -> f (Maybe Text))
-> PollForActivityTaskResponse -> f PollForActivityTaskResponse
pollForActivityTaskResponse_taskToken = (PollForActivityTaskResponse -> Maybe Text)
-> (PollForActivityTaskResponse
-> Maybe Text -> PollForActivityTaskResponse)
-> Lens
PollForActivityTaskResponse
PollForActivityTaskResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PollForActivityTaskResponse' {Maybe Text
taskToken :: Maybe Text
$sel:taskToken:PollForActivityTaskResponse' :: PollForActivityTaskResponse -> Maybe Text
taskToken} -> Maybe Text
taskToken) (\s :: PollForActivityTaskResponse
s@PollForActivityTaskResponse' {} Maybe Text
a -> PollForActivityTaskResponse
s {$sel:taskToken:PollForActivityTaskResponse' :: Maybe Text
taskToken = Maybe Text
a} :: PollForActivityTaskResponse)
pollForActivityTaskResponse_workflowExecution :: Lens.Lens' PollForActivityTaskResponse (Prelude.Maybe WorkflowExecution)
pollForActivityTaskResponse_workflowExecution :: (Maybe WorkflowExecution -> f (Maybe WorkflowExecution))
-> PollForActivityTaskResponse -> f PollForActivityTaskResponse
pollForActivityTaskResponse_workflowExecution = (PollForActivityTaskResponse -> Maybe WorkflowExecution)
-> (PollForActivityTaskResponse
-> Maybe WorkflowExecution -> PollForActivityTaskResponse)
-> Lens
PollForActivityTaskResponse
PollForActivityTaskResponse
(Maybe WorkflowExecution)
(Maybe WorkflowExecution)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PollForActivityTaskResponse' {Maybe WorkflowExecution
workflowExecution :: Maybe WorkflowExecution
$sel:workflowExecution:PollForActivityTaskResponse' :: PollForActivityTaskResponse -> Maybe WorkflowExecution
workflowExecution} -> Maybe WorkflowExecution
workflowExecution) (\s :: PollForActivityTaskResponse
s@PollForActivityTaskResponse' {} Maybe WorkflowExecution
a -> PollForActivityTaskResponse
s {$sel:workflowExecution:PollForActivityTaskResponse' :: Maybe WorkflowExecution
workflowExecution = Maybe WorkflowExecution
a} :: PollForActivityTaskResponse)
pollForActivityTaskResponse_httpStatus :: Lens.Lens' PollForActivityTaskResponse Prelude.Int
pollForActivityTaskResponse_httpStatus :: (Int -> f Int)
-> PollForActivityTaskResponse -> f PollForActivityTaskResponse
pollForActivityTaskResponse_httpStatus = (PollForActivityTaskResponse -> Int)
-> (PollForActivityTaskResponse
-> Int -> PollForActivityTaskResponse)
-> Lens
PollForActivityTaskResponse PollForActivityTaskResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PollForActivityTaskResponse' {Int
httpStatus :: Int
$sel:httpStatus:PollForActivityTaskResponse' :: PollForActivityTaskResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: PollForActivityTaskResponse
s@PollForActivityTaskResponse' {} Int
a -> PollForActivityTaskResponse
s {$sel:httpStatus:PollForActivityTaskResponse' :: Int
httpStatus = Int
a} :: PollForActivityTaskResponse)
pollForActivityTaskResponse_startedEventId :: Lens.Lens' PollForActivityTaskResponse Prelude.Integer
pollForActivityTaskResponse_startedEventId :: (Integer -> f Integer)
-> PollForActivityTaskResponse -> f PollForActivityTaskResponse
pollForActivityTaskResponse_startedEventId = (PollForActivityTaskResponse -> Integer)
-> (PollForActivityTaskResponse
-> Integer -> PollForActivityTaskResponse)
-> Lens
PollForActivityTaskResponse
PollForActivityTaskResponse
Integer
Integer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PollForActivityTaskResponse' {Integer
startedEventId :: Integer
$sel:startedEventId:PollForActivityTaskResponse' :: PollForActivityTaskResponse -> Integer
startedEventId} -> Integer
startedEventId) (\s :: PollForActivityTaskResponse
s@PollForActivityTaskResponse' {} Integer
a -> PollForActivityTaskResponse
s {$sel:startedEventId:PollForActivityTaskResponse' :: Integer
startedEventId = Integer
a} :: PollForActivityTaskResponse)
instance Prelude.NFData PollForActivityTaskResponse