{-# 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.IoTWireless.CreateWirelessGatewayTask
(
CreateWirelessGatewayTask (..),
newCreateWirelessGatewayTask,
createWirelessGatewayTask_id,
createWirelessGatewayTask_wirelessGatewayTaskDefinitionId,
CreateWirelessGatewayTaskResponse (..),
newCreateWirelessGatewayTaskResponse,
createWirelessGatewayTaskResponse_status,
createWirelessGatewayTaskResponse_wirelessGatewayTaskDefinitionId,
createWirelessGatewayTaskResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoTWireless.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 CreateWirelessGatewayTask = CreateWirelessGatewayTask'
{
CreateWirelessGatewayTask -> Text
id :: Prelude.Text,
CreateWirelessGatewayTask -> Text
wirelessGatewayTaskDefinitionId :: Prelude.Text
}
deriving (CreateWirelessGatewayTask -> CreateWirelessGatewayTask -> Bool
(CreateWirelessGatewayTask -> CreateWirelessGatewayTask -> Bool)
-> (CreateWirelessGatewayTask -> CreateWirelessGatewayTask -> Bool)
-> Eq CreateWirelessGatewayTask
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateWirelessGatewayTask -> CreateWirelessGatewayTask -> Bool
$c/= :: CreateWirelessGatewayTask -> CreateWirelessGatewayTask -> Bool
== :: CreateWirelessGatewayTask -> CreateWirelessGatewayTask -> Bool
$c== :: CreateWirelessGatewayTask -> CreateWirelessGatewayTask -> Bool
Prelude.Eq, ReadPrec [CreateWirelessGatewayTask]
ReadPrec CreateWirelessGatewayTask
Int -> ReadS CreateWirelessGatewayTask
ReadS [CreateWirelessGatewayTask]
(Int -> ReadS CreateWirelessGatewayTask)
-> ReadS [CreateWirelessGatewayTask]
-> ReadPrec CreateWirelessGatewayTask
-> ReadPrec [CreateWirelessGatewayTask]
-> Read CreateWirelessGatewayTask
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateWirelessGatewayTask]
$creadListPrec :: ReadPrec [CreateWirelessGatewayTask]
readPrec :: ReadPrec CreateWirelessGatewayTask
$creadPrec :: ReadPrec CreateWirelessGatewayTask
readList :: ReadS [CreateWirelessGatewayTask]
$creadList :: ReadS [CreateWirelessGatewayTask]
readsPrec :: Int -> ReadS CreateWirelessGatewayTask
$creadsPrec :: Int -> ReadS CreateWirelessGatewayTask
Prelude.Read, Int -> CreateWirelessGatewayTask -> ShowS
[CreateWirelessGatewayTask] -> ShowS
CreateWirelessGatewayTask -> String
(Int -> CreateWirelessGatewayTask -> ShowS)
-> (CreateWirelessGatewayTask -> String)
-> ([CreateWirelessGatewayTask] -> ShowS)
-> Show CreateWirelessGatewayTask
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateWirelessGatewayTask] -> ShowS
$cshowList :: [CreateWirelessGatewayTask] -> ShowS
show :: CreateWirelessGatewayTask -> String
$cshow :: CreateWirelessGatewayTask -> String
showsPrec :: Int -> CreateWirelessGatewayTask -> ShowS
$cshowsPrec :: Int -> CreateWirelessGatewayTask -> ShowS
Prelude.Show, (forall x.
CreateWirelessGatewayTask -> Rep CreateWirelessGatewayTask x)
-> (forall x.
Rep CreateWirelessGatewayTask x -> CreateWirelessGatewayTask)
-> Generic CreateWirelessGatewayTask
forall x.
Rep CreateWirelessGatewayTask x -> CreateWirelessGatewayTask
forall x.
CreateWirelessGatewayTask -> Rep CreateWirelessGatewayTask x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateWirelessGatewayTask x -> CreateWirelessGatewayTask
$cfrom :: forall x.
CreateWirelessGatewayTask -> Rep CreateWirelessGatewayTask x
Prelude.Generic)
newCreateWirelessGatewayTask ::
Prelude.Text ->
Prelude.Text ->
CreateWirelessGatewayTask
newCreateWirelessGatewayTask :: Text -> Text -> CreateWirelessGatewayTask
newCreateWirelessGatewayTask
Text
pId_
Text
pWirelessGatewayTaskDefinitionId_ =
CreateWirelessGatewayTask' :: Text -> Text -> CreateWirelessGatewayTask
CreateWirelessGatewayTask'
{ $sel:id:CreateWirelessGatewayTask' :: Text
id = Text
pId_,
$sel:wirelessGatewayTaskDefinitionId:CreateWirelessGatewayTask' :: Text
wirelessGatewayTaskDefinitionId =
Text
pWirelessGatewayTaskDefinitionId_
}
createWirelessGatewayTask_id :: Lens.Lens' CreateWirelessGatewayTask Prelude.Text
createWirelessGatewayTask_id :: (Text -> f Text)
-> CreateWirelessGatewayTask -> f CreateWirelessGatewayTask
createWirelessGatewayTask_id = (CreateWirelessGatewayTask -> Text)
-> (CreateWirelessGatewayTask -> Text -> CreateWirelessGatewayTask)
-> Lens
CreateWirelessGatewayTask CreateWirelessGatewayTask Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateWirelessGatewayTask' {Text
id :: Text
$sel:id:CreateWirelessGatewayTask' :: CreateWirelessGatewayTask -> Text
id} -> Text
id) (\s :: CreateWirelessGatewayTask
s@CreateWirelessGatewayTask' {} Text
a -> CreateWirelessGatewayTask
s {$sel:id:CreateWirelessGatewayTask' :: Text
id = Text
a} :: CreateWirelessGatewayTask)
createWirelessGatewayTask_wirelessGatewayTaskDefinitionId :: Lens.Lens' CreateWirelessGatewayTask Prelude.Text
createWirelessGatewayTask_wirelessGatewayTaskDefinitionId :: (Text -> f Text)
-> CreateWirelessGatewayTask -> f CreateWirelessGatewayTask
createWirelessGatewayTask_wirelessGatewayTaskDefinitionId = (CreateWirelessGatewayTask -> Text)
-> (CreateWirelessGatewayTask -> Text -> CreateWirelessGatewayTask)
-> Lens
CreateWirelessGatewayTask CreateWirelessGatewayTask Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateWirelessGatewayTask' {Text
wirelessGatewayTaskDefinitionId :: Text
$sel:wirelessGatewayTaskDefinitionId:CreateWirelessGatewayTask' :: CreateWirelessGatewayTask -> Text
wirelessGatewayTaskDefinitionId} -> Text
wirelessGatewayTaskDefinitionId) (\s :: CreateWirelessGatewayTask
s@CreateWirelessGatewayTask' {} Text
a -> CreateWirelessGatewayTask
s {$sel:wirelessGatewayTaskDefinitionId:CreateWirelessGatewayTask' :: Text
wirelessGatewayTaskDefinitionId = Text
a} :: CreateWirelessGatewayTask)
instance Core.AWSRequest CreateWirelessGatewayTask where
type
AWSResponse CreateWirelessGatewayTask =
CreateWirelessGatewayTaskResponse
request :: CreateWirelessGatewayTask -> Request CreateWirelessGatewayTask
request = Service
-> CreateWirelessGatewayTask -> Request CreateWirelessGatewayTask
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateWirelessGatewayTask
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateWirelessGatewayTask)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateWirelessGatewayTask))
-> Logger
-> Service
-> Proxy CreateWirelessGatewayTask
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateWirelessGatewayTask)))
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 WirelessGatewayTaskStatus
-> Maybe Text -> Int -> CreateWirelessGatewayTaskResponse
CreateWirelessGatewayTaskResponse'
(Maybe WirelessGatewayTaskStatus
-> Maybe Text -> Int -> CreateWirelessGatewayTaskResponse)
-> Either String (Maybe WirelessGatewayTaskStatus)
-> Either
String (Maybe Text -> Int -> CreateWirelessGatewayTaskResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe WirelessGatewayTaskStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Status")
Either
String (Maybe Text -> Int -> CreateWirelessGatewayTaskResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateWirelessGatewayTaskResponse)
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
"WirelessGatewayTaskDefinitionId")
Either String (Int -> CreateWirelessGatewayTaskResponse)
-> Either String Int
-> Either String CreateWirelessGatewayTaskResponse
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 CreateWirelessGatewayTask
instance Prelude.NFData CreateWirelessGatewayTask
instance Core.ToHeaders CreateWirelessGatewayTask where
toHeaders :: CreateWirelessGatewayTask -> ResponseHeaders
toHeaders = ResponseHeaders -> CreateWirelessGatewayTask -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToJSON CreateWirelessGatewayTask where
toJSON :: CreateWirelessGatewayTask -> Value
toJSON CreateWirelessGatewayTask' {Text
wirelessGatewayTaskDefinitionId :: Text
id :: Text
$sel:wirelessGatewayTaskDefinitionId:CreateWirelessGatewayTask' :: CreateWirelessGatewayTask -> Text
$sel:id:CreateWirelessGatewayTask' :: CreateWirelessGatewayTask -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"WirelessGatewayTaskDefinitionId"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
wirelessGatewayTaskDefinitionId
)
]
)
instance Core.ToPath CreateWirelessGatewayTask where
toPath :: CreateWirelessGatewayTask -> ByteString
toPath CreateWirelessGatewayTask' {Text
wirelessGatewayTaskDefinitionId :: Text
id :: Text
$sel:wirelessGatewayTaskDefinitionId:CreateWirelessGatewayTask' :: CreateWirelessGatewayTask -> Text
$sel:id:CreateWirelessGatewayTask' :: CreateWirelessGatewayTask -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/wireless-gateways/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
id, ByteString
"/tasks"]
instance Core.ToQuery CreateWirelessGatewayTask where
toQuery :: CreateWirelessGatewayTask -> QueryString
toQuery = QueryString -> CreateWirelessGatewayTask -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateWirelessGatewayTaskResponse = CreateWirelessGatewayTaskResponse'
{
CreateWirelessGatewayTaskResponse
-> Maybe WirelessGatewayTaskStatus
status :: Prelude.Maybe WirelessGatewayTaskStatus,
CreateWirelessGatewayTaskResponse -> Maybe Text
wirelessGatewayTaskDefinitionId :: Prelude.Maybe Prelude.Text,
CreateWirelessGatewayTaskResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateWirelessGatewayTaskResponse
-> CreateWirelessGatewayTaskResponse -> Bool
(CreateWirelessGatewayTaskResponse
-> CreateWirelessGatewayTaskResponse -> Bool)
-> (CreateWirelessGatewayTaskResponse
-> CreateWirelessGatewayTaskResponse -> Bool)
-> Eq CreateWirelessGatewayTaskResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateWirelessGatewayTaskResponse
-> CreateWirelessGatewayTaskResponse -> Bool
$c/= :: CreateWirelessGatewayTaskResponse
-> CreateWirelessGatewayTaskResponse -> Bool
== :: CreateWirelessGatewayTaskResponse
-> CreateWirelessGatewayTaskResponse -> Bool
$c== :: CreateWirelessGatewayTaskResponse
-> CreateWirelessGatewayTaskResponse -> Bool
Prelude.Eq, ReadPrec [CreateWirelessGatewayTaskResponse]
ReadPrec CreateWirelessGatewayTaskResponse
Int -> ReadS CreateWirelessGatewayTaskResponse
ReadS [CreateWirelessGatewayTaskResponse]
(Int -> ReadS CreateWirelessGatewayTaskResponse)
-> ReadS [CreateWirelessGatewayTaskResponse]
-> ReadPrec CreateWirelessGatewayTaskResponse
-> ReadPrec [CreateWirelessGatewayTaskResponse]
-> Read CreateWirelessGatewayTaskResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateWirelessGatewayTaskResponse]
$creadListPrec :: ReadPrec [CreateWirelessGatewayTaskResponse]
readPrec :: ReadPrec CreateWirelessGatewayTaskResponse
$creadPrec :: ReadPrec CreateWirelessGatewayTaskResponse
readList :: ReadS [CreateWirelessGatewayTaskResponse]
$creadList :: ReadS [CreateWirelessGatewayTaskResponse]
readsPrec :: Int -> ReadS CreateWirelessGatewayTaskResponse
$creadsPrec :: Int -> ReadS CreateWirelessGatewayTaskResponse
Prelude.Read, Int -> CreateWirelessGatewayTaskResponse -> ShowS
[CreateWirelessGatewayTaskResponse] -> ShowS
CreateWirelessGatewayTaskResponse -> String
(Int -> CreateWirelessGatewayTaskResponse -> ShowS)
-> (CreateWirelessGatewayTaskResponse -> String)
-> ([CreateWirelessGatewayTaskResponse] -> ShowS)
-> Show CreateWirelessGatewayTaskResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateWirelessGatewayTaskResponse] -> ShowS
$cshowList :: [CreateWirelessGatewayTaskResponse] -> ShowS
show :: CreateWirelessGatewayTaskResponse -> String
$cshow :: CreateWirelessGatewayTaskResponse -> String
showsPrec :: Int -> CreateWirelessGatewayTaskResponse -> ShowS
$cshowsPrec :: Int -> CreateWirelessGatewayTaskResponse -> ShowS
Prelude.Show, (forall x.
CreateWirelessGatewayTaskResponse
-> Rep CreateWirelessGatewayTaskResponse x)
-> (forall x.
Rep CreateWirelessGatewayTaskResponse x
-> CreateWirelessGatewayTaskResponse)
-> Generic CreateWirelessGatewayTaskResponse
forall x.
Rep CreateWirelessGatewayTaskResponse x
-> CreateWirelessGatewayTaskResponse
forall x.
CreateWirelessGatewayTaskResponse
-> Rep CreateWirelessGatewayTaskResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateWirelessGatewayTaskResponse x
-> CreateWirelessGatewayTaskResponse
$cfrom :: forall x.
CreateWirelessGatewayTaskResponse
-> Rep CreateWirelessGatewayTaskResponse x
Prelude.Generic)
newCreateWirelessGatewayTaskResponse ::
Prelude.Int ->
CreateWirelessGatewayTaskResponse
newCreateWirelessGatewayTaskResponse :: Int -> CreateWirelessGatewayTaskResponse
newCreateWirelessGatewayTaskResponse Int
pHttpStatus_ =
CreateWirelessGatewayTaskResponse' :: Maybe WirelessGatewayTaskStatus
-> Maybe Text -> Int -> CreateWirelessGatewayTaskResponse
CreateWirelessGatewayTaskResponse'
{ $sel:status:CreateWirelessGatewayTaskResponse' :: Maybe WirelessGatewayTaskStatus
status =
Maybe WirelessGatewayTaskStatus
forall a. Maybe a
Prelude.Nothing,
$sel:wirelessGatewayTaskDefinitionId:CreateWirelessGatewayTaskResponse' :: Maybe Text
wirelessGatewayTaskDefinitionId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateWirelessGatewayTaskResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createWirelessGatewayTaskResponse_status :: Lens.Lens' CreateWirelessGatewayTaskResponse (Prelude.Maybe WirelessGatewayTaskStatus)
createWirelessGatewayTaskResponse_status :: (Maybe WirelessGatewayTaskStatus
-> f (Maybe WirelessGatewayTaskStatus))
-> CreateWirelessGatewayTaskResponse
-> f CreateWirelessGatewayTaskResponse
createWirelessGatewayTaskResponse_status = (CreateWirelessGatewayTaskResponse
-> Maybe WirelessGatewayTaskStatus)
-> (CreateWirelessGatewayTaskResponse
-> Maybe WirelessGatewayTaskStatus
-> CreateWirelessGatewayTaskResponse)
-> Lens
CreateWirelessGatewayTaskResponse
CreateWirelessGatewayTaskResponse
(Maybe WirelessGatewayTaskStatus)
(Maybe WirelessGatewayTaskStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateWirelessGatewayTaskResponse' {Maybe WirelessGatewayTaskStatus
status :: Maybe WirelessGatewayTaskStatus
$sel:status:CreateWirelessGatewayTaskResponse' :: CreateWirelessGatewayTaskResponse
-> Maybe WirelessGatewayTaskStatus
status} -> Maybe WirelessGatewayTaskStatus
status) (\s :: CreateWirelessGatewayTaskResponse
s@CreateWirelessGatewayTaskResponse' {} Maybe WirelessGatewayTaskStatus
a -> CreateWirelessGatewayTaskResponse
s {$sel:status:CreateWirelessGatewayTaskResponse' :: Maybe WirelessGatewayTaskStatus
status = Maybe WirelessGatewayTaskStatus
a} :: CreateWirelessGatewayTaskResponse)
createWirelessGatewayTaskResponse_wirelessGatewayTaskDefinitionId :: Lens.Lens' CreateWirelessGatewayTaskResponse (Prelude.Maybe Prelude.Text)
createWirelessGatewayTaskResponse_wirelessGatewayTaskDefinitionId :: (Maybe Text -> f (Maybe Text))
-> CreateWirelessGatewayTaskResponse
-> f CreateWirelessGatewayTaskResponse
createWirelessGatewayTaskResponse_wirelessGatewayTaskDefinitionId = (CreateWirelessGatewayTaskResponse -> Maybe Text)
-> (CreateWirelessGatewayTaskResponse
-> Maybe Text -> CreateWirelessGatewayTaskResponse)
-> Lens
CreateWirelessGatewayTaskResponse
CreateWirelessGatewayTaskResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateWirelessGatewayTaskResponse' {Maybe Text
wirelessGatewayTaskDefinitionId :: Maybe Text
$sel:wirelessGatewayTaskDefinitionId:CreateWirelessGatewayTaskResponse' :: CreateWirelessGatewayTaskResponse -> Maybe Text
wirelessGatewayTaskDefinitionId} -> Maybe Text
wirelessGatewayTaskDefinitionId) (\s :: CreateWirelessGatewayTaskResponse
s@CreateWirelessGatewayTaskResponse' {} Maybe Text
a -> CreateWirelessGatewayTaskResponse
s {$sel:wirelessGatewayTaskDefinitionId:CreateWirelessGatewayTaskResponse' :: Maybe Text
wirelessGatewayTaskDefinitionId = Maybe Text
a} :: CreateWirelessGatewayTaskResponse)
createWirelessGatewayTaskResponse_httpStatus :: Lens.Lens' CreateWirelessGatewayTaskResponse Prelude.Int
createWirelessGatewayTaskResponse_httpStatus :: (Int -> f Int)
-> CreateWirelessGatewayTaskResponse
-> f CreateWirelessGatewayTaskResponse
createWirelessGatewayTaskResponse_httpStatus = (CreateWirelessGatewayTaskResponse -> Int)
-> (CreateWirelessGatewayTaskResponse
-> Int -> CreateWirelessGatewayTaskResponse)
-> Lens
CreateWirelessGatewayTaskResponse
CreateWirelessGatewayTaskResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateWirelessGatewayTaskResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateWirelessGatewayTaskResponse' :: CreateWirelessGatewayTaskResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateWirelessGatewayTaskResponse
s@CreateWirelessGatewayTaskResponse' {} Int
a -> CreateWirelessGatewayTaskResponse
s {$sel:httpStatus:CreateWirelessGatewayTaskResponse' :: Int
httpStatus = Int
a} :: CreateWirelessGatewayTaskResponse)
instance
Prelude.NFData
CreateWirelessGatewayTaskResponse