{-# 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.RegisterActivityType
(
RegisterActivityType (..),
newRegisterActivityType,
registerActivityType_defaultTaskScheduleToStartTimeout,
registerActivityType_defaultTaskList,
registerActivityType_defaultTaskPriority,
registerActivityType_defaultTaskHeartbeatTimeout,
registerActivityType_defaultTaskScheduleToCloseTimeout,
registerActivityType_defaultTaskStartToCloseTimeout,
registerActivityType_description,
registerActivityType_domain,
registerActivityType_name,
registerActivityType_version,
RegisterActivityTypeResponse (..),
newRegisterActivityTypeResponse,
)
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 RegisterActivityType = RegisterActivityType'
{
RegisterActivityType -> Maybe Text
defaultTaskScheduleToStartTimeout :: Prelude.Maybe Prelude.Text,
RegisterActivityType -> Maybe TaskList
defaultTaskList :: Prelude.Maybe TaskList,
RegisterActivityType -> Maybe Text
defaultTaskPriority :: Prelude.Maybe Prelude.Text,
RegisterActivityType -> Maybe Text
defaultTaskHeartbeatTimeout :: Prelude.Maybe Prelude.Text,
RegisterActivityType -> Maybe Text
defaultTaskScheduleToCloseTimeout :: Prelude.Maybe Prelude.Text,
RegisterActivityType -> Maybe Text
defaultTaskStartToCloseTimeout :: Prelude.Maybe Prelude.Text,
RegisterActivityType -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
RegisterActivityType -> Text
domain :: Prelude.Text,
RegisterActivityType -> Text
name :: Prelude.Text,
RegisterActivityType -> Text
version :: Prelude.Text
}
deriving (RegisterActivityType -> RegisterActivityType -> Bool
(RegisterActivityType -> RegisterActivityType -> Bool)
-> (RegisterActivityType -> RegisterActivityType -> Bool)
-> Eq RegisterActivityType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RegisterActivityType -> RegisterActivityType -> Bool
$c/= :: RegisterActivityType -> RegisterActivityType -> Bool
== :: RegisterActivityType -> RegisterActivityType -> Bool
$c== :: RegisterActivityType -> RegisterActivityType -> Bool
Prelude.Eq, ReadPrec [RegisterActivityType]
ReadPrec RegisterActivityType
Int -> ReadS RegisterActivityType
ReadS [RegisterActivityType]
(Int -> ReadS RegisterActivityType)
-> ReadS [RegisterActivityType]
-> ReadPrec RegisterActivityType
-> ReadPrec [RegisterActivityType]
-> Read RegisterActivityType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RegisterActivityType]
$creadListPrec :: ReadPrec [RegisterActivityType]
readPrec :: ReadPrec RegisterActivityType
$creadPrec :: ReadPrec RegisterActivityType
readList :: ReadS [RegisterActivityType]
$creadList :: ReadS [RegisterActivityType]
readsPrec :: Int -> ReadS RegisterActivityType
$creadsPrec :: Int -> ReadS RegisterActivityType
Prelude.Read, Int -> RegisterActivityType -> ShowS
[RegisterActivityType] -> ShowS
RegisterActivityType -> String
(Int -> RegisterActivityType -> ShowS)
-> (RegisterActivityType -> String)
-> ([RegisterActivityType] -> ShowS)
-> Show RegisterActivityType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RegisterActivityType] -> ShowS
$cshowList :: [RegisterActivityType] -> ShowS
show :: RegisterActivityType -> String
$cshow :: RegisterActivityType -> String
showsPrec :: Int -> RegisterActivityType -> ShowS
$cshowsPrec :: Int -> RegisterActivityType -> ShowS
Prelude.Show, (forall x. RegisterActivityType -> Rep RegisterActivityType x)
-> (forall x. Rep RegisterActivityType x -> RegisterActivityType)
-> Generic RegisterActivityType
forall x. Rep RegisterActivityType x -> RegisterActivityType
forall x. RegisterActivityType -> Rep RegisterActivityType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RegisterActivityType x -> RegisterActivityType
$cfrom :: forall x. RegisterActivityType -> Rep RegisterActivityType x
Prelude.Generic)
newRegisterActivityType ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
RegisterActivityType
newRegisterActivityType :: Text -> Text -> Text -> RegisterActivityType
newRegisterActivityType Text
pDomain_ Text
pName_ Text
pVersion_ =
RegisterActivityType' :: Maybe Text
-> Maybe TaskList
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> RegisterActivityType
RegisterActivityType'
{ $sel:defaultTaskScheduleToStartTimeout:RegisterActivityType' :: Maybe Text
defaultTaskScheduleToStartTimeout =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:defaultTaskList:RegisterActivityType' :: Maybe TaskList
defaultTaskList = Maybe TaskList
forall a. Maybe a
Prelude.Nothing,
$sel:defaultTaskPriority:RegisterActivityType' :: Maybe Text
defaultTaskPriority = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:defaultTaskHeartbeatTimeout:RegisterActivityType' :: Maybe Text
defaultTaskHeartbeatTimeout = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:defaultTaskScheduleToCloseTimeout:RegisterActivityType' :: Maybe Text
defaultTaskScheduleToCloseTimeout = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:defaultTaskStartToCloseTimeout:RegisterActivityType' :: Maybe Text
defaultTaskStartToCloseTimeout = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:RegisterActivityType' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:domain:RegisterActivityType' :: Text
domain = Text
pDomain_,
$sel:name:RegisterActivityType' :: Text
name = Text
pName_,
$sel:version:RegisterActivityType' :: Text
version = Text
pVersion_
}
registerActivityType_defaultTaskScheduleToStartTimeout :: Lens.Lens' RegisterActivityType (Prelude.Maybe Prelude.Text)
registerActivityType_defaultTaskScheduleToStartTimeout :: (Maybe Text -> f (Maybe Text))
-> RegisterActivityType -> f RegisterActivityType
registerActivityType_defaultTaskScheduleToStartTimeout = (RegisterActivityType -> Maybe Text)
-> (RegisterActivityType -> Maybe Text -> RegisterActivityType)
-> Lens
RegisterActivityType RegisterActivityType (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterActivityType' {Maybe Text
defaultTaskScheduleToStartTimeout :: Maybe Text
$sel:defaultTaskScheduleToStartTimeout:RegisterActivityType' :: RegisterActivityType -> Maybe Text
defaultTaskScheduleToStartTimeout} -> Maybe Text
defaultTaskScheduleToStartTimeout) (\s :: RegisterActivityType
s@RegisterActivityType' {} Maybe Text
a -> RegisterActivityType
s {$sel:defaultTaskScheduleToStartTimeout:RegisterActivityType' :: Maybe Text
defaultTaskScheduleToStartTimeout = Maybe Text
a} :: RegisterActivityType)
registerActivityType_defaultTaskList :: Lens.Lens' RegisterActivityType (Prelude.Maybe TaskList)
registerActivityType_defaultTaskList :: (Maybe TaskList -> f (Maybe TaskList))
-> RegisterActivityType -> f RegisterActivityType
registerActivityType_defaultTaskList = (RegisterActivityType -> Maybe TaskList)
-> (RegisterActivityType -> Maybe TaskList -> RegisterActivityType)
-> Lens
RegisterActivityType
RegisterActivityType
(Maybe TaskList)
(Maybe TaskList)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterActivityType' {Maybe TaskList
defaultTaskList :: Maybe TaskList
$sel:defaultTaskList:RegisterActivityType' :: RegisterActivityType -> Maybe TaskList
defaultTaskList} -> Maybe TaskList
defaultTaskList) (\s :: RegisterActivityType
s@RegisterActivityType' {} Maybe TaskList
a -> RegisterActivityType
s {$sel:defaultTaskList:RegisterActivityType' :: Maybe TaskList
defaultTaskList = Maybe TaskList
a} :: RegisterActivityType)
registerActivityType_defaultTaskPriority :: Lens.Lens' RegisterActivityType (Prelude.Maybe Prelude.Text)
registerActivityType_defaultTaskPriority :: (Maybe Text -> f (Maybe Text))
-> RegisterActivityType -> f RegisterActivityType
registerActivityType_defaultTaskPriority = (RegisterActivityType -> Maybe Text)
-> (RegisterActivityType -> Maybe Text -> RegisterActivityType)
-> Lens
RegisterActivityType RegisterActivityType (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterActivityType' {Maybe Text
defaultTaskPriority :: Maybe Text
$sel:defaultTaskPriority:RegisterActivityType' :: RegisterActivityType -> Maybe Text
defaultTaskPriority} -> Maybe Text
defaultTaskPriority) (\s :: RegisterActivityType
s@RegisterActivityType' {} Maybe Text
a -> RegisterActivityType
s {$sel:defaultTaskPriority:RegisterActivityType' :: Maybe Text
defaultTaskPriority = Maybe Text
a} :: RegisterActivityType)
registerActivityType_defaultTaskHeartbeatTimeout :: Lens.Lens' RegisterActivityType (Prelude.Maybe Prelude.Text)
registerActivityType_defaultTaskHeartbeatTimeout :: (Maybe Text -> f (Maybe Text))
-> RegisterActivityType -> f RegisterActivityType
registerActivityType_defaultTaskHeartbeatTimeout = (RegisterActivityType -> Maybe Text)
-> (RegisterActivityType -> Maybe Text -> RegisterActivityType)
-> Lens
RegisterActivityType RegisterActivityType (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterActivityType' {Maybe Text
defaultTaskHeartbeatTimeout :: Maybe Text
$sel:defaultTaskHeartbeatTimeout:RegisterActivityType' :: RegisterActivityType -> Maybe Text
defaultTaskHeartbeatTimeout} -> Maybe Text
defaultTaskHeartbeatTimeout) (\s :: RegisterActivityType
s@RegisterActivityType' {} Maybe Text
a -> RegisterActivityType
s {$sel:defaultTaskHeartbeatTimeout:RegisterActivityType' :: Maybe Text
defaultTaskHeartbeatTimeout = Maybe Text
a} :: RegisterActivityType)
registerActivityType_defaultTaskScheduleToCloseTimeout :: Lens.Lens' RegisterActivityType (Prelude.Maybe Prelude.Text)
registerActivityType_defaultTaskScheduleToCloseTimeout :: (Maybe Text -> f (Maybe Text))
-> RegisterActivityType -> f RegisterActivityType
registerActivityType_defaultTaskScheduleToCloseTimeout = (RegisterActivityType -> Maybe Text)
-> (RegisterActivityType -> Maybe Text -> RegisterActivityType)
-> Lens
RegisterActivityType RegisterActivityType (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterActivityType' {Maybe Text
defaultTaskScheduleToCloseTimeout :: Maybe Text
$sel:defaultTaskScheduleToCloseTimeout:RegisterActivityType' :: RegisterActivityType -> Maybe Text
defaultTaskScheduleToCloseTimeout} -> Maybe Text
defaultTaskScheduleToCloseTimeout) (\s :: RegisterActivityType
s@RegisterActivityType' {} Maybe Text
a -> RegisterActivityType
s {$sel:defaultTaskScheduleToCloseTimeout:RegisterActivityType' :: Maybe Text
defaultTaskScheduleToCloseTimeout = Maybe Text
a} :: RegisterActivityType)
registerActivityType_defaultTaskStartToCloseTimeout :: Lens.Lens' RegisterActivityType (Prelude.Maybe Prelude.Text)
registerActivityType_defaultTaskStartToCloseTimeout :: (Maybe Text -> f (Maybe Text))
-> RegisterActivityType -> f RegisterActivityType
registerActivityType_defaultTaskStartToCloseTimeout = (RegisterActivityType -> Maybe Text)
-> (RegisterActivityType -> Maybe Text -> RegisterActivityType)
-> Lens
RegisterActivityType RegisterActivityType (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterActivityType' {Maybe Text
defaultTaskStartToCloseTimeout :: Maybe Text
$sel:defaultTaskStartToCloseTimeout:RegisterActivityType' :: RegisterActivityType -> Maybe Text
defaultTaskStartToCloseTimeout} -> Maybe Text
defaultTaskStartToCloseTimeout) (\s :: RegisterActivityType
s@RegisterActivityType' {} Maybe Text
a -> RegisterActivityType
s {$sel:defaultTaskStartToCloseTimeout:RegisterActivityType' :: Maybe Text
defaultTaskStartToCloseTimeout = Maybe Text
a} :: RegisterActivityType)
registerActivityType_description :: Lens.Lens' RegisterActivityType (Prelude.Maybe Prelude.Text)
registerActivityType_description :: (Maybe Text -> f (Maybe Text))
-> RegisterActivityType -> f RegisterActivityType
registerActivityType_description = (RegisterActivityType -> Maybe Text)
-> (RegisterActivityType -> Maybe Text -> RegisterActivityType)
-> Lens
RegisterActivityType RegisterActivityType (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterActivityType' {Maybe Text
description :: Maybe Text
$sel:description:RegisterActivityType' :: RegisterActivityType -> Maybe Text
description} -> Maybe Text
description) (\s :: RegisterActivityType
s@RegisterActivityType' {} Maybe Text
a -> RegisterActivityType
s {$sel:description:RegisterActivityType' :: Maybe Text
description = Maybe Text
a} :: RegisterActivityType)
registerActivityType_domain :: Lens.Lens' RegisterActivityType Prelude.Text
registerActivityType_domain :: (Text -> f Text) -> RegisterActivityType -> f RegisterActivityType
registerActivityType_domain = (RegisterActivityType -> Text)
-> (RegisterActivityType -> Text -> RegisterActivityType)
-> Lens RegisterActivityType RegisterActivityType Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterActivityType' {Text
domain :: Text
$sel:domain:RegisterActivityType' :: RegisterActivityType -> Text
domain} -> Text
domain) (\s :: RegisterActivityType
s@RegisterActivityType' {} Text
a -> RegisterActivityType
s {$sel:domain:RegisterActivityType' :: Text
domain = Text
a} :: RegisterActivityType)
registerActivityType_name :: Lens.Lens' RegisterActivityType Prelude.Text
registerActivityType_name :: (Text -> f Text) -> RegisterActivityType -> f RegisterActivityType
registerActivityType_name = (RegisterActivityType -> Text)
-> (RegisterActivityType -> Text -> RegisterActivityType)
-> Lens RegisterActivityType RegisterActivityType Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterActivityType' {Text
name :: Text
$sel:name:RegisterActivityType' :: RegisterActivityType -> Text
name} -> Text
name) (\s :: RegisterActivityType
s@RegisterActivityType' {} Text
a -> RegisterActivityType
s {$sel:name:RegisterActivityType' :: Text
name = Text
a} :: RegisterActivityType)
registerActivityType_version :: Lens.Lens' RegisterActivityType Prelude.Text
registerActivityType_version :: (Text -> f Text) -> RegisterActivityType -> f RegisterActivityType
registerActivityType_version = (RegisterActivityType -> Text)
-> (RegisterActivityType -> Text -> RegisterActivityType)
-> Lens RegisterActivityType RegisterActivityType Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterActivityType' {Text
version :: Text
$sel:version:RegisterActivityType' :: RegisterActivityType -> Text
version} -> Text
version) (\s :: RegisterActivityType
s@RegisterActivityType' {} Text
a -> RegisterActivityType
s {$sel:version:RegisterActivityType' :: Text
version = Text
a} :: RegisterActivityType)
instance Core.AWSRequest RegisterActivityType where
type
AWSResponse RegisterActivityType =
RegisterActivityTypeResponse
request :: RegisterActivityType -> Request RegisterActivityType
request = Service -> RegisterActivityType -> Request RegisterActivityType
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy RegisterActivityType
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse RegisterActivityType)))
response =
AWSResponse RegisterActivityType
-> Logger
-> Service
-> Proxy RegisterActivityType
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse RegisterActivityType)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull AWSResponse RegisterActivityType
RegisterActivityTypeResponse
RegisterActivityTypeResponse'
instance Prelude.Hashable RegisterActivityType
instance Prelude.NFData RegisterActivityType
instance Core.ToHeaders RegisterActivityType where
toHeaders :: RegisterActivityType -> [Header]
toHeaders =
[Header] -> RegisterActivityType -> [Header]
forall a b. a -> b -> a
Prelude.const
( [[Header]] -> [Header]
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> [Header]
forall a. ToHeader a => HeaderName -> a -> [Header]
Core.=# ( ByteString
"SimpleWorkflowService.RegisterActivityType" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> [Header]
forall a. ToHeader a => HeaderName -> a -> [Header]
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON RegisterActivityType where
toJSON :: RegisterActivityType -> Value
toJSON RegisterActivityType' {Maybe Text
Maybe TaskList
Text
version :: Text
name :: Text
domain :: Text
description :: Maybe Text
defaultTaskStartToCloseTimeout :: Maybe Text
defaultTaskScheduleToCloseTimeout :: Maybe Text
defaultTaskHeartbeatTimeout :: Maybe Text
defaultTaskPriority :: Maybe Text
defaultTaskList :: Maybe TaskList
defaultTaskScheduleToStartTimeout :: Maybe Text
$sel:version:RegisterActivityType' :: RegisterActivityType -> Text
$sel:name:RegisterActivityType' :: RegisterActivityType -> Text
$sel:domain:RegisterActivityType' :: RegisterActivityType -> Text
$sel:description:RegisterActivityType' :: RegisterActivityType -> Maybe Text
$sel:defaultTaskStartToCloseTimeout:RegisterActivityType' :: RegisterActivityType -> Maybe Text
$sel:defaultTaskScheduleToCloseTimeout:RegisterActivityType' :: RegisterActivityType -> Maybe Text
$sel:defaultTaskHeartbeatTimeout:RegisterActivityType' :: RegisterActivityType -> Maybe Text
$sel:defaultTaskPriority:RegisterActivityType' :: RegisterActivityType -> Maybe Text
$sel:defaultTaskList:RegisterActivityType' :: RegisterActivityType -> Maybe TaskList
$sel:defaultTaskScheduleToStartTimeout:RegisterActivityType' :: RegisterActivityType -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"defaultTaskScheduleToStartTimeout" 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
defaultTaskScheduleToStartTimeout,
(Text
"defaultTaskList" Text -> TaskList -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(TaskList -> Pair) -> Maybe TaskList -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TaskList
defaultTaskList,
(Text
"defaultTaskPriority" 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
defaultTaskPriority,
(Text
"defaultTaskHeartbeatTimeout" 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
defaultTaskHeartbeatTimeout,
(Text
"defaultTaskScheduleToCloseTimeout" 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
defaultTaskScheduleToCloseTimeout,
(Text
"defaultTaskStartToCloseTimeout" 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
defaultTaskStartToCloseTimeout,
(Text
"description" 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
description,
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
"name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"version" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
version)
]
)
instance Core.ToPath RegisterActivityType where
toPath :: RegisterActivityType -> ByteString
toPath = ByteString -> RegisterActivityType -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery RegisterActivityType where
toQuery :: RegisterActivityType -> QueryString
toQuery = QueryString -> RegisterActivityType -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data RegisterActivityTypeResponse = RegisterActivityTypeResponse'
{
}
deriving (RegisterActivityTypeResponse
-> RegisterActivityTypeResponse -> Bool
(RegisterActivityTypeResponse
-> RegisterActivityTypeResponse -> Bool)
-> (RegisterActivityTypeResponse
-> RegisterActivityTypeResponse -> Bool)
-> Eq RegisterActivityTypeResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RegisterActivityTypeResponse
-> RegisterActivityTypeResponse -> Bool
$c/= :: RegisterActivityTypeResponse
-> RegisterActivityTypeResponse -> Bool
== :: RegisterActivityTypeResponse
-> RegisterActivityTypeResponse -> Bool
$c== :: RegisterActivityTypeResponse
-> RegisterActivityTypeResponse -> Bool
Prelude.Eq, ReadPrec [RegisterActivityTypeResponse]
ReadPrec RegisterActivityTypeResponse
Int -> ReadS RegisterActivityTypeResponse
ReadS [RegisterActivityTypeResponse]
(Int -> ReadS RegisterActivityTypeResponse)
-> ReadS [RegisterActivityTypeResponse]
-> ReadPrec RegisterActivityTypeResponse
-> ReadPrec [RegisterActivityTypeResponse]
-> Read RegisterActivityTypeResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RegisterActivityTypeResponse]
$creadListPrec :: ReadPrec [RegisterActivityTypeResponse]
readPrec :: ReadPrec RegisterActivityTypeResponse
$creadPrec :: ReadPrec RegisterActivityTypeResponse
readList :: ReadS [RegisterActivityTypeResponse]
$creadList :: ReadS [RegisterActivityTypeResponse]
readsPrec :: Int -> ReadS RegisterActivityTypeResponse
$creadsPrec :: Int -> ReadS RegisterActivityTypeResponse
Prelude.Read, Int -> RegisterActivityTypeResponse -> ShowS
[RegisterActivityTypeResponse] -> ShowS
RegisterActivityTypeResponse -> String
(Int -> RegisterActivityTypeResponse -> ShowS)
-> (RegisterActivityTypeResponse -> String)
-> ([RegisterActivityTypeResponse] -> ShowS)
-> Show RegisterActivityTypeResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RegisterActivityTypeResponse] -> ShowS
$cshowList :: [RegisterActivityTypeResponse] -> ShowS
show :: RegisterActivityTypeResponse -> String
$cshow :: RegisterActivityTypeResponse -> String
showsPrec :: Int -> RegisterActivityTypeResponse -> ShowS
$cshowsPrec :: Int -> RegisterActivityTypeResponse -> ShowS
Prelude.Show, (forall x.
RegisterActivityTypeResponse -> Rep RegisterActivityTypeResponse x)
-> (forall x.
Rep RegisterActivityTypeResponse x -> RegisterActivityTypeResponse)
-> Generic RegisterActivityTypeResponse
forall x.
Rep RegisterActivityTypeResponse x -> RegisterActivityTypeResponse
forall x.
RegisterActivityTypeResponse -> Rep RegisterActivityTypeResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RegisterActivityTypeResponse x -> RegisterActivityTypeResponse
$cfrom :: forall x.
RegisterActivityTypeResponse -> Rep RegisterActivityTypeResponse x
Prelude.Generic)
newRegisterActivityTypeResponse ::
RegisterActivityTypeResponse
newRegisterActivityTypeResponse :: RegisterActivityTypeResponse
newRegisterActivityTypeResponse =
RegisterActivityTypeResponse
RegisterActivityTypeResponse'
instance Prelude.NFData RegisterActivityTypeResponse