{-# 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.HoneyCode.InvokeScreenAutomation
(
InvokeScreenAutomation (..),
newInvokeScreenAutomation,
invokeScreenAutomation_rowId,
invokeScreenAutomation_variables,
invokeScreenAutomation_clientRequestToken,
invokeScreenAutomation_workbookId,
invokeScreenAutomation_appId,
invokeScreenAutomation_screenId,
invokeScreenAutomation_screenAutomationId,
InvokeScreenAutomationResponse (..),
newInvokeScreenAutomationResponse,
invokeScreenAutomationResponse_httpStatus,
invokeScreenAutomationResponse_workbookCursor,
)
where
import qualified Amazonka.Core as Core
import Amazonka.HoneyCode.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 InvokeScreenAutomation = InvokeScreenAutomation'
{
InvokeScreenAutomation -> Maybe Text
rowId :: Prelude.Maybe Prelude.Text,
InvokeScreenAutomation
-> Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
variables :: Prelude.Maybe (Core.Sensitive (Prelude.HashMap Prelude.Text (Core.Sensitive VariableValue))),
InvokeScreenAutomation -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
InvokeScreenAutomation -> Text
workbookId :: Prelude.Text,
InvokeScreenAutomation -> Text
appId :: Prelude.Text,
InvokeScreenAutomation -> Text
screenId :: Prelude.Text,
InvokeScreenAutomation -> Text
screenAutomationId :: Prelude.Text
}
deriving (InvokeScreenAutomation -> InvokeScreenAutomation -> Bool
(InvokeScreenAutomation -> InvokeScreenAutomation -> Bool)
-> (InvokeScreenAutomation -> InvokeScreenAutomation -> Bool)
-> Eq InvokeScreenAutomation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InvokeScreenAutomation -> InvokeScreenAutomation -> Bool
$c/= :: InvokeScreenAutomation -> InvokeScreenAutomation -> Bool
== :: InvokeScreenAutomation -> InvokeScreenAutomation -> Bool
$c== :: InvokeScreenAutomation -> InvokeScreenAutomation -> Bool
Prelude.Eq, Int -> InvokeScreenAutomation -> ShowS
[InvokeScreenAutomation] -> ShowS
InvokeScreenAutomation -> String
(Int -> InvokeScreenAutomation -> ShowS)
-> (InvokeScreenAutomation -> String)
-> ([InvokeScreenAutomation] -> ShowS)
-> Show InvokeScreenAutomation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InvokeScreenAutomation] -> ShowS
$cshowList :: [InvokeScreenAutomation] -> ShowS
show :: InvokeScreenAutomation -> String
$cshow :: InvokeScreenAutomation -> String
showsPrec :: Int -> InvokeScreenAutomation -> ShowS
$cshowsPrec :: Int -> InvokeScreenAutomation -> ShowS
Prelude.Show, (forall x. InvokeScreenAutomation -> Rep InvokeScreenAutomation x)
-> (forall x.
Rep InvokeScreenAutomation x -> InvokeScreenAutomation)
-> Generic InvokeScreenAutomation
forall x. Rep InvokeScreenAutomation x -> InvokeScreenAutomation
forall x. InvokeScreenAutomation -> Rep InvokeScreenAutomation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep InvokeScreenAutomation x -> InvokeScreenAutomation
$cfrom :: forall x. InvokeScreenAutomation -> Rep InvokeScreenAutomation x
Prelude.Generic)
newInvokeScreenAutomation ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
InvokeScreenAutomation
newInvokeScreenAutomation :: Text -> Text -> Text -> Text -> InvokeScreenAutomation
newInvokeScreenAutomation
Text
pWorkbookId_
Text
pAppId_
Text
pScreenId_
Text
pScreenAutomationId_ =
InvokeScreenAutomation' :: Maybe Text
-> Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
-> Maybe Text
-> Text
-> Text
-> Text
-> Text
-> InvokeScreenAutomation
InvokeScreenAutomation'
{ $sel:rowId:InvokeScreenAutomation' :: Maybe Text
rowId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:variables:InvokeScreenAutomation' :: Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
variables = Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
forall a. Maybe a
Prelude.Nothing,
$sel:clientRequestToken:InvokeScreenAutomation' :: Maybe Text
clientRequestToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:workbookId:InvokeScreenAutomation' :: Text
workbookId = Text
pWorkbookId_,
$sel:appId:InvokeScreenAutomation' :: Text
appId = Text
pAppId_,
$sel:screenId:InvokeScreenAutomation' :: Text
screenId = Text
pScreenId_,
$sel:screenAutomationId:InvokeScreenAutomation' :: Text
screenAutomationId = Text
pScreenAutomationId_
}
invokeScreenAutomation_rowId :: Lens.Lens' InvokeScreenAutomation (Prelude.Maybe Prelude.Text)
invokeScreenAutomation_rowId :: (Maybe Text -> f (Maybe Text))
-> InvokeScreenAutomation -> f InvokeScreenAutomation
invokeScreenAutomation_rowId = (InvokeScreenAutomation -> Maybe Text)
-> (InvokeScreenAutomation -> Maybe Text -> InvokeScreenAutomation)
-> Lens
InvokeScreenAutomation
InvokeScreenAutomation
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InvokeScreenAutomation' {Maybe Text
rowId :: Maybe Text
$sel:rowId:InvokeScreenAutomation' :: InvokeScreenAutomation -> Maybe Text
rowId} -> Maybe Text
rowId) (\s :: InvokeScreenAutomation
s@InvokeScreenAutomation' {} Maybe Text
a -> InvokeScreenAutomation
s {$sel:rowId:InvokeScreenAutomation' :: Maybe Text
rowId = Maybe Text
a} :: InvokeScreenAutomation)
invokeScreenAutomation_variables :: Lens.Lens' InvokeScreenAutomation (Prelude.Maybe (Prelude.HashMap Prelude.Text VariableValue))
invokeScreenAutomation_variables :: (Maybe (HashMap Text VariableValue)
-> f (Maybe (HashMap Text VariableValue)))
-> InvokeScreenAutomation -> f InvokeScreenAutomation
invokeScreenAutomation_variables = (InvokeScreenAutomation
-> Maybe (Sensitive (HashMap Text (Sensitive VariableValue))))
-> (InvokeScreenAutomation
-> Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
-> InvokeScreenAutomation)
-> Lens
InvokeScreenAutomation
InvokeScreenAutomation
(Maybe (Sensitive (HashMap Text (Sensitive VariableValue))))
(Maybe (Sensitive (HashMap Text (Sensitive VariableValue))))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InvokeScreenAutomation' {Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
variables :: Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
$sel:variables:InvokeScreenAutomation' :: InvokeScreenAutomation
-> Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
variables} -> Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
variables) (\s :: InvokeScreenAutomation
s@InvokeScreenAutomation' {} Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
a -> InvokeScreenAutomation
s {$sel:variables:InvokeScreenAutomation' :: Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
variables = Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
a} :: InvokeScreenAutomation) ((Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
-> f (Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))))
-> InvokeScreenAutomation -> f InvokeScreenAutomation)
-> ((Maybe (HashMap Text VariableValue)
-> f (Maybe (HashMap Text VariableValue)))
-> Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
-> f (Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))))
-> (Maybe (HashMap Text VariableValue)
-> f (Maybe (HashMap Text VariableValue)))
-> InvokeScreenAutomation
-> f InvokeScreenAutomation
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(Sensitive (HashMap Text (Sensitive VariableValue)))
(Sensitive (HashMap Text (Sensitive VariableValue)))
(HashMap Text VariableValue)
(HashMap Text VariableValue)
-> Iso
(Maybe (Sensitive (HashMap Text (Sensitive VariableValue))))
(Maybe (Sensitive (HashMap Text (Sensitive VariableValue))))
(Maybe (HashMap Text VariableValue))
(Maybe (HashMap Text VariableValue))
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 (Exchange
(HashMap Text VariableValue)
(HashMap Text VariableValue)
(HashMap Text (Sensitive VariableValue))
(Identity (HashMap Text (Sensitive VariableValue)))
-> Exchange
(HashMap Text VariableValue)
(HashMap Text VariableValue)
(Sensitive (HashMap Text (Sensitive VariableValue)))
(Identity (Sensitive (HashMap Text (Sensitive VariableValue))))
forall a. Iso' (Sensitive a) a
Core._Sensitive (Exchange
(HashMap Text VariableValue)
(HashMap Text VariableValue)
(HashMap Text (Sensitive VariableValue))
(Identity (HashMap Text (Sensitive VariableValue)))
-> Exchange
(HashMap Text VariableValue)
(HashMap Text VariableValue)
(Sensitive (HashMap Text (Sensitive VariableValue)))
(Identity (Sensitive (HashMap Text (Sensitive VariableValue)))))
-> (Exchange
(HashMap Text VariableValue)
(HashMap Text VariableValue)
(HashMap Text VariableValue)
(Identity (HashMap Text VariableValue))
-> Exchange
(HashMap Text VariableValue)
(HashMap Text VariableValue)
(HashMap Text (Sensitive VariableValue))
(Identity (HashMap Text (Sensitive VariableValue))))
-> AnIso
(Sensitive (HashMap Text (Sensitive VariableValue)))
(Sensitive (HashMap Text (Sensitive VariableValue)))
(HashMap Text VariableValue)
(HashMap Text VariableValue)
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Exchange
(HashMap Text VariableValue)
(HashMap Text VariableValue)
(HashMap Text VariableValue)
(Identity (HashMap Text VariableValue))
-> Exchange
(HashMap Text VariableValue)
(HashMap Text VariableValue)
(HashMap Text (Sensitive VariableValue))
(Identity (HashMap Text (Sensitive VariableValue)))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced)
invokeScreenAutomation_clientRequestToken :: Lens.Lens' InvokeScreenAutomation (Prelude.Maybe Prelude.Text)
invokeScreenAutomation_clientRequestToken :: (Maybe Text -> f (Maybe Text))
-> InvokeScreenAutomation -> f InvokeScreenAutomation
invokeScreenAutomation_clientRequestToken = (InvokeScreenAutomation -> Maybe Text)
-> (InvokeScreenAutomation -> Maybe Text -> InvokeScreenAutomation)
-> Lens
InvokeScreenAutomation
InvokeScreenAutomation
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InvokeScreenAutomation' {Maybe Text
clientRequestToken :: Maybe Text
$sel:clientRequestToken:InvokeScreenAutomation' :: InvokeScreenAutomation -> Maybe Text
clientRequestToken} -> Maybe Text
clientRequestToken) (\s :: InvokeScreenAutomation
s@InvokeScreenAutomation' {} Maybe Text
a -> InvokeScreenAutomation
s {$sel:clientRequestToken:InvokeScreenAutomation' :: Maybe Text
clientRequestToken = Maybe Text
a} :: InvokeScreenAutomation)
invokeScreenAutomation_workbookId :: Lens.Lens' InvokeScreenAutomation Prelude.Text
invokeScreenAutomation_workbookId :: (Text -> f Text)
-> InvokeScreenAutomation -> f InvokeScreenAutomation
invokeScreenAutomation_workbookId = (InvokeScreenAutomation -> Text)
-> (InvokeScreenAutomation -> Text -> InvokeScreenAutomation)
-> Lens InvokeScreenAutomation InvokeScreenAutomation Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InvokeScreenAutomation' {Text
workbookId :: Text
$sel:workbookId:InvokeScreenAutomation' :: InvokeScreenAutomation -> Text
workbookId} -> Text
workbookId) (\s :: InvokeScreenAutomation
s@InvokeScreenAutomation' {} Text
a -> InvokeScreenAutomation
s {$sel:workbookId:InvokeScreenAutomation' :: Text
workbookId = Text
a} :: InvokeScreenAutomation)
invokeScreenAutomation_appId :: Lens.Lens' InvokeScreenAutomation Prelude.Text
invokeScreenAutomation_appId :: (Text -> f Text)
-> InvokeScreenAutomation -> f InvokeScreenAutomation
invokeScreenAutomation_appId = (InvokeScreenAutomation -> Text)
-> (InvokeScreenAutomation -> Text -> InvokeScreenAutomation)
-> Lens InvokeScreenAutomation InvokeScreenAutomation Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InvokeScreenAutomation' {Text
appId :: Text
$sel:appId:InvokeScreenAutomation' :: InvokeScreenAutomation -> Text
appId} -> Text
appId) (\s :: InvokeScreenAutomation
s@InvokeScreenAutomation' {} Text
a -> InvokeScreenAutomation
s {$sel:appId:InvokeScreenAutomation' :: Text
appId = Text
a} :: InvokeScreenAutomation)
invokeScreenAutomation_screenId :: Lens.Lens' InvokeScreenAutomation Prelude.Text
invokeScreenAutomation_screenId :: (Text -> f Text)
-> InvokeScreenAutomation -> f InvokeScreenAutomation
invokeScreenAutomation_screenId = (InvokeScreenAutomation -> Text)
-> (InvokeScreenAutomation -> Text -> InvokeScreenAutomation)
-> Lens InvokeScreenAutomation InvokeScreenAutomation Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InvokeScreenAutomation' {Text
screenId :: Text
$sel:screenId:InvokeScreenAutomation' :: InvokeScreenAutomation -> Text
screenId} -> Text
screenId) (\s :: InvokeScreenAutomation
s@InvokeScreenAutomation' {} Text
a -> InvokeScreenAutomation
s {$sel:screenId:InvokeScreenAutomation' :: Text
screenId = Text
a} :: InvokeScreenAutomation)
invokeScreenAutomation_screenAutomationId :: Lens.Lens' InvokeScreenAutomation Prelude.Text
invokeScreenAutomation_screenAutomationId :: (Text -> f Text)
-> InvokeScreenAutomation -> f InvokeScreenAutomation
invokeScreenAutomation_screenAutomationId = (InvokeScreenAutomation -> Text)
-> (InvokeScreenAutomation -> Text -> InvokeScreenAutomation)
-> Lens InvokeScreenAutomation InvokeScreenAutomation Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InvokeScreenAutomation' {Text
screenAutomationId :: Text
$sel:screenAutomationId:InvokeScreenAutomation' :: InvokeScreenAutomation -> Text
screenAutomationId} -> Text
screenAutomationId) (\s :: InvokeScreenAutomation
s@InvokeScreenAutomation' {} Text
a -> InvokeScreenAutomation
s {$sel:screenAutomationId:InvokeScreenAutomation' :: Text
screenAutomationId = Text
a} :: InvokeScreenAutomation)
instance Core.AWSRequest InvokeScreenAutomation where
type
AWSResponse InvokeScreenAutomation =
InvokeScreenAutomationResponse
request :: InvokeScreenAutomation -> Request InvokeScreenAutomation
request = Service -> InvokeScreenAutomation -> Request InvokeScreenAutomation
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy InvokeScreenAutomation
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse InvokeScreenAutomation)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse InvokeScreenAutomation))
-> Logger
-> Service
-> Proxy InvokeScreenAutomation
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse InvokeScreenAutomation)))
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 ->
Int -> Integer -> InvokeScreenAutomationResponse
InvokeScreenAutomationResponse'
(Int -> Integer -> InvokeScreenAutomationResponse)
-> Either String Int
-> Either String (Integer -> InvokeScreenAutomationResponse)
forall (f :: * -> *) a b. Functor 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 -> InvokeScreenAutomationResponse)
-> Either String Integer
-> Either String InvokeScreenAutomationResponse
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
"workbookCursor")
)
instance Prelude.Hashable InvokeScreenAutomation
instance Prelude.NFData InvokeScreenAutomation
instance Core.ToHeaders InvokeScreenAutomation where
toHeaders :: InvokeScreenAutomation -> ResponseHeaders
toHeaders =
ResponseHeaders -> InvokeScreenAutomation -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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 InvokeScreenAutomation where
toJSON :: InvokeScreenAutomation -> Value
toJSON InvokeScreenAutomation' {Maybe Text
Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
Text
screenAutomationId :: Text
screenId :: Text
appId :: Text
workbookId :: Text
clientRequestToken :: Maybe Text
variables :: Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
rowId :: Maybe Text
$sel:screenAutomationId:InvokeScreenAutomation' :: InvokeScreenAutomation -> Text
$sel:screenId:InvokeScreenAutomation' :: InvokeScreenAutomation -> Text
$sel:appId:InvokeScreenAutomation' :: InvokeScreenAutomation -> Text
$sel:workbookId:InvokeScreenAutomation' :: InvokeScreenAutomation -> Text
$sel:clientRequestToken:InvokeScreenAutomation' :: InvokeScreenAutomation -> Maybe Text
$sel:variables:InvokeScreenAutomation' :: InvokeScreenAutomation
-> Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
$sel:rowId:InvokeScreenAutomation' :: InvokeScreenAutomation -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"rowId" 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
rowId,
(Text
"variables" Text -> Sensitive (HashMap Text (Sensitive VariableValue)) -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Sensitive (HashMap Text (Sensitive VariableValue)) -> Pair)
-> Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
-> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
variables,
(Text
"clientRequestToken" 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
clientRequestToken
]
)
instance Core.ToPath InvokeScreenAutomation where
toPath :: InvokeScreenAutomation -> ByteString
toPath InvokeScreenAutomation' {Maybe Text
Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
Text
screenAutomationId :: Text
screenId :: Text
appId :: Text
workbookId :: Text
clientRequestToken :: Maybe Text
variables :: Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
rowId :: Maybe Text
$sel:screenAutomationId:InvokeScreenAutomation' :: InvokeScreenAutomation -> Text
$sel:screenId:InvokeScreenAutomation' :: InvokeScreenAutomation -> Text
$sel:appId:InvokeScreenAutomation' :: InvokeScreenAutomation -> Text
$sel:workbookId:InvokeScreenAutomation' :: InvokeScreenAutomation -> Text
$sel:clientRequestToken:InvokeScreenAutomation' :: InvokeScreenAutomation -> Maybe Text
$sel:variables:InvokeScreenAutomation' :: InvokeScreenAutomation
-> Maybe (Sensitive (HashMap Text (Sensitive VariableValue)))
$sel:rowId:InvokeScreenAutomation' :: InvokeScreenAutomation -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/workbooks/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
workbookId,
ByteString
"/apps/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
appId,
ByteString
"/screens/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
screenId,
ByteString
"/automations/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
screenAutomationId
]
instance Core.ToQuery InvokeScreenAutomation where
toQuery :: InvokeScreenAutomation -> QueryString
toQuery = QueryString -> InvokeScreenAutomation -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data InvokeScreenAutomationResponse = InvokeScreenAutomationResponse'
{
InvokeScreenAutomationResponse -> Int
httpStatus :: Prelude.Int,
InvokeScreenAutomationResponse -> Integer
workbookCursor :: Prelude.Integer
}
deriving (InvokeScreenAutomationResponse
-> InvokeScreenAutomationResponse -> Bool
(InvokeScreenAutomationResponse
-> InvokeScreenAutomationResponse -> Bool)
-> (InvokeScreenAutomationResponse
-> InvokeScreenAutomationResponse -> Bool)
-> Eq InvokeScreenAutomationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InvokeScreenAutomationResponse
-> InvokeScreenAutomationResponse -> Bool
$c/= :: InvokeScreenAutomationResponse
-> InvokeScreenAutomationResponse -> Bool
== :: InvokeScreenAutomationResponse
-> InvokeScreenAutomationResponse -> Bool
$c== :: InvokeScreenAutomationResponse
-> InvokeScreenAutomationResponse -> Bool
Prelude.Eq, ReadPrec [InvokeScreenAutomationResponse]
ReadPrec InvokeScreenAutomationResponse
Int -> ReadS InvokeScreenAutomationResponse
ReadS [InvokeScreenAutomationResponse]
(Int -> ReadS InvokeScreenAutomationResponse)
-> ReadS [InvokeScreenAutomationResponse]
-> ReadPrec InvokeScreenAutomationResponse
-> ReadPrec [InvokeScreenAutomationResponse]
-> Read InvokeScreenAutomationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InvokeScreenAutomationResponse]
$creadListPrec :: ReadPrec [InvokeScreenAutomationResponse]
readPrec :: ReadPrec InvokeScreenAutomationResponse
$creadPrec :: ReadPrec InvokeScreenAutomationResponse
readList :: ReadS [InvokeScreenAutomationResponse]
$creadList :: ReadS [InvokeScreenAutomationResponse]
readsPrec :: Int -> ReadS InvokeScreenAutomationResponse
$creadsPrec :: Int -> ReadS InvokeScreenAutomationResponse
Prelude.Read, Int -> InvokeScreenAutomationResponse -> ShowS
[InvokeScreenAutomationResponse] -> ShowS
InvokeScreenAutomationResponse -> String
(Int -> InvokeScreenAutomationResponse -> ShowS)
-> (InvokeScreenAutomationResponse -> String)
-> ([InvokeScreenAutomationResponse] -> ShowS)
-> Show InvokeScreenAutomationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InvokeScreenAutomationResponse] -> ShowS
$cshowList :: [InvokeScreenAutomationResponse] -> ShowS
show :: InvokeScreenAutomationResponse -> String
$cshow :: InvokeScreenAutomationResponse -> String
showsPrec :: Int -> InvokeScreenAutomationResponse -> ShowS
$cshowsPrec :: Int -> InvokeScreenAutomationResponse -> ShowS
Prelude.Show, (forall x.
InvokeScreenAutomationResponse
-> Rep InvokeScreenAutomationResponse x)
-> (forall x.
Rep InvokeScreenAutomationResponse x
-> InvokeScreenAutomationResponse)
-> Generic InvokeScreenAutomationResponse
forall x.
Rep InvokeScreenAutomationResponse x
-> InvokeScreenAutomationResponse
forall x.
InvokeScreenAutomationResponse
-> Rep InvokeScreenAutomationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep InvokeScreenAutomationResponse x
-> InvokeScreenAutomationResponse
$cfrom :: forall x.
InvokeScreenAutomationResponse
-> Rep InvokeScreenAutomationResponse x
Prelude.Generic)
newInvokeScreenAutomationResponse ::
Prelude.Int ->
Prelude.Integer ->
InvokeScreenAutomationResponse
newInvokeScreenAutomationResponse :: Int -> Integer -> InvokeScreenAutomationResponse
newInvokeScreenAutomationResponse
Int
pHttpStatus_
Integer
pWorkbookCursor_ =
InvokeScreenAutomationResponse' :: Int -> Integer -> InvokeScreenAutomationResponse
InvokeScreenAutomationResponse'
{ $sel:httpStatus:InvokeScreenAutomationResponse' :: Int
httpStatus =
Int
pHttpStatus_,
$sel:workbookCursor:InvokeScreenAutomationResponse' :: Integer
workbookCursor = Integer
pWorkbookCursor_
}
invokeScreenAutomationResponse_httpStatus :: Lens.Lens' InvokeScreenAutomationResponse Prelude.Int
invokeScreenAutomationResponse_httpStatus :: (Int -> f Int)
-> InvokeScreenAutomationResponse
-> f InvokeScreenAutomationResponse
invokeScreenAutomationResponse_httpStatus = (InvokeScreenAutomationResponse -> Int)
-> (InvokeScreenAutomationResponse
-> Int -> InvokeScreenAutomationResponse)
-> Lens
InvokeScreenAutomationResponse
InvokeScreenAutomationResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InvokeScreenAutomationResponse' {Int
httpStatus :: Int
$sel:httpStatus:InvokeScreenAutomationResponse' :: InvokeScreenAutomationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: InvokeScreenAutomationResponse
s@InvokeScreenAutomationResponse' {} Int
a -> InvokeScreenAutomationResponse
s {$sel:httpStatus:InvokeScreenAutomationResponse' :: Int
httpStatus = Int
a} :: InvokeScreenAutomationResponse)
invokeScreenAutomationResponse_workbookCursor :: Lens.Lens' InvokeScreenAutomationResponse Prelude.Integer
invokeScreenAutomationResponse_workbookCursor :: (Integer -> f Integer)
-> InvokeScreenAutomationResponse
-> f InvokeScreenAutomationResponse
invokeScreenAutomationResponse_workbookCursor = (InvokeScreenAutomationResponse -> Integer)
-> (InvokeScreenAutomationResponse
-> Integer -> InvokeScreenAutomationResponse)
-> Lens
InvokeScreenAutomationResponse
InvokeScreenAutomationResponse
Integer
Integer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InvokeScreenAutomationResponse' {Integer
workbookCursor :: Integer
$sel:workbookCursor:InvokeScreenAutomationResponse' :: InvokeScreenAutomationResponse -> Integer
workbookCursor} -> Integer
workbookCursor) (\s :: InvokeScreenAutomationResponse
s@InvokeScreenAutomationResponse' {} Integer
a -> InvokeScreenAutomationResponse
s {$sel:workbookCursor:InvokeScreenAutomationResponse' :: Integer
workbookCursor = Integer
a} :: InvokeScreenAutomationResponse)
instance
Prelude.NFData
InvokeScreenAutomationResponse