{-# 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.BatchDeleteTableRows
(
BatchDeleteTableRows (..),
newBatchDeleteTableRows,
batchDeleteTableRows_clientRequestToken,
batchDeleteTableRows_workbookId,
batchDeleteTableRows_tableId,
batchDeleteTableRows_rowIds,
BatchDeleteTableRowsResponse (..),
newBatchDeleteTableRowsResponse,
batchDeleteTableRowsResponse_failedBatchItems,
batchDeleteTableRowsResponse_httpStatus,
batchDeleteTableRowsResponse_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 BatchDeleteTableRows = BatchDeleteTableRows'
{
BatchDeleteTableRows -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
BatchDeleteTableRows -> Text
workbookId :: Prelude.Text,
BatchDeleteTableRows -> Text
tableId :: Prelude.Text,
BatchDeleteTableRows -> NonEmpty Text
rowIds :: Prelude.NonEmpty Prelude.Text
}
deriving (BatchDeleteTableRows -> BatchDeleteTableRows -> Bool
(BatchDeleteTableRows -> BatchDeleteTableRows -> Bool)
-> (BatchDeleteTableRows -> BatchDeleteTableRows -> Bool)
-> Eq BatchDeleteTableRows
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDeleteTableRows -> BatchDeleteTableRows -> Bool
$c/= :: BatchDeleteTableRows -> BatchDeleteTableRows -> Bool
== :: BatchDeleteTableRows -> BatchDeleteTableRows -> Bool
$c== :: BatchDeleteTableRows -> BatchDeleteTableRows -> Bool
Prelude.Eq, ReadPrec [BatchDeleteTableRows]
ReadPrec BatchDeleteTableRows
Int -> ReadS BatchDeleteTableRows
ReadS [BatchDeleteTableRows]
(Int -> ReadS BatchDeleteTableRows)
-> ReadS [BatchDeleteTableRows]
-> ReadPrec BatchDeleteTableRows
-> ReadPrec [BatchDeleteTableRows]
-> Read BatchDeleteTableRows
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDeleteTableRows]
$creadListPrec :: ReadPrec [BatchDeleteTableRows]
readPrec :: ReadPrec BatchDeleteTableRows
$creadPrec :: ReadPrec BatchDeleteTableRows
readList :: ReadS [BatchDeleteTableRows]
$creadList :: ReadS [BatchDeleteTableRows]
readsPrec :: Int -> ReadS BatchDeleteTableRows
$creadsPrec :: Int -> ReadS BatchDeleteTableRows
Prelude.Read, Int -> BatchDeleteTableRows -> ShowS
[BatchDeleteTableRows] -> ShowS
BatchDeleteTableRows -> String
(Int -> BatchDeleteTableRows -> ShowS)
-> (BatchDeleteTableRows -> String)
-> ([BatchDeleteTableRows] -> ShowS)
-> Show BatchDeleteTableRows
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDeleteTableRows] -> ShowS
$cshowList :: [BatchDeleteTableRows] -> ShowS
show :: BatchDeleteTableRows -> String
$cshow :: BatchDeleteTableRows -> String
showsPrec :: Int -> BatchDeleteTableRows -> ShowS
$cshowsPrec :: Int -> BatchDeleteTableRows -> ShowS
Prelude.Show, (forall x. BatchDeleteTableRows -> Rep BatchDeleteTableRows x)
-> (forall x. Rep BatchDeleteTableRows x -> BatchDeleteTableRows)
-> Generic BatchDeleteTableRows
forall x. Rep BatchDeleteTableRows x -> BatchDeleteTableRows
forall x. BatchDeleteTableRows -> Rep BatchDeleteTableRows x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchDeleteTableRows x -> BatchDeleteTableRows
$cfrom :: forall x. BatchDeleteTableRows -> Rep BatchDeleteTableRows x
Prelude.Generic)
newBatchDeleteTableRows ::
Prelude.Text ->
Prelude.Text ->
Prelude.NonEmpty Prelude.Text ->
BatchDeleteTableRows
newBatchDeleteTableRows :: Text -> Text -> NonEmpty Text -> BatchDeleteTableRows
newBatchDeleteTableRows
Text
pWorkbookId_
Text
pTableId_
NonEmpty Text
pRowIds_ =
BatchDeleteTableRows' :: Maybe Text -> Text -> Text -> NonEmpty Text -> BatchDeleteTableRows
BatchDeleteTableRows'
{ $sel:clientRequestToken:BatchDeleteTableRows' :: Maybe Text
clientRequestToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:workbookId:BatchDeleteTableRows' :: Text
workbookId = Text
pWorkbookId_,
$sel:tableId:BatchDeleteTableRows' :: Text
tableId = Text
pTableId_,
$sel:rowIds:BatchDeleteTableRows' :: NonEmpty Text
rowIds = Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text)))
-> NonEmpty Text -> NonEmpty Text
forall t b. AReview t b -> b -> t
Lens.# NonEmpty Text
pRowIds_
}
batchDeleteTableRows_clientRequestToken :: Lens.Lens' BatchDeleteTableRows (Prelude.Maybe Prelude.Text)
batchDeleteTableRows_clientRequestToken :: (Maybe Text -> f (Maybe Text))
-> BatchDeleteTableRows -> f BatchDeleteTableRows
batchDeleteTableRows_clientRequestToken = (BatchDeleteTableRows -> Maybe Text)
-> (BatchDeleteTableRows -> Maybe Text -> BatchDeleteTableRows)
-> Lens
BatchDeleteTableRows BatchDeleteTableRows (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteTableRows' {Maybe Text
clientRequestToken :: Maybe Text
$sel:clientRequestToken:BatchDeleteTableRows' :: BatchDeleteTableRows -> Maybe Text
clientRequestToken} -> Maybe Text
clientRequestToken) (\s :: BatchDeleteTableRows
s@BatchDeleteTableRows' {} Maybe Text
a -> BatchDeleteTableRows
s {$sel:clientRequestToken:BatchDeleteTableRows' :: Maybe Text
clientRequestToken = Maybe Text
a} :: BatchDeleteTableRows)
batchDeleteTableRows_workbookId :: Lens.Lens' BatchDeleteTableRows Prelude.Text
batchDeleteTableRows_workbookId :: (Text -> f Text) -> BatchDeleteTableRows -> f BatchDeleteTableRows
batchDeleteTableRows_workbookId = (BatchDeleteTableRows -> Text)
-> (BatchDeleteTableRows -> Text -> BatchDeleteTableRows)
-> Lens BatchDeleteTableRows BatchDeleteTableRows Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteTableRows' {Text
workbookId :: Text
$sel:workbookId:BatchDeleteTableRows' :: BatchDeleteTableRows -> Text
workbookId} -> Text
workbookId) (\s :: BatchDeleteTableRows
s@BatchDeleteTableRows' {} Text
a -> BatchDeleteTableRows
s {$sel:workbookId:BatchDeleteTableRows' :: Text
workbookId = Text
a} :: BatchDeleteTableRows)
batchDeleteTableRows_tableId :: Lens.Lens' BatchDeleteTableRows Prelude.Text
batchDeleteTableRows_tableId :: (Text -> f Text) -> BatchDeleteTableRows -> f BatchDeleteTableRows
batchDeleteTableRows_tableId = (BatchDeleteTableRows -> Text)
-> (BatchDeleteTableRows -> Text -> BatchDeleteTableRows)
-> Lens BatchDeleteTableRows BatchDeleteTableRows Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteTableRows' {Text
tableId :: Text
$sel:tableId:BatchDeleteTableRows' :: BatchDeleteTableRows -> Text
tableId} -> Text
tableId) (\s :: BatchDeleteTableRows
s@BatchDeleteTableRows' {} Text
a -> BatchDeleteTableRows
s {$sel:tableId:BatchDeleteTableRows' :: Text
tableId = Text
a} :: BatchDeleteTableRows)
batchDeleteTableRows_rowIds :: Lens.Lens' BatchDeleteTableRows (Prelude.NonEmpty Prelude.Text)
batchDeleteTableRows_rowIds :: (NonEmpty Text -> f (NonEmpty Text))
-> BatchDeleteTableRows -> f BatchDeleteTableRows
batchDeleteTableRows_rowIds = (BatchDeleteTableRows -> NonEmpty Text)
-> (BatchDeleteTableRows -> NonEmpty Text -> BatchDeleteTableRows)
-> Lens
BatchDeleteTableRows
BatchDeleteTableRows
(NonEmpty Text)
(NonEmpty Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteTableRows' {NonEmpty Text
rowIds :: NonEmpty Text
$sel:rowIds:BatchDeleteTableRows' :: BatchDeleteTableRows -> NonEmpty Text
rowIds} -> NonEmpty Text
rowIds) (\s :: BatchDeleteTableRows
s@BatchDeleteTableRows' {} NonEmpty Text
a -> BatchDeleteTableRows
s {$sel:rowIds:BatchDeleteTableRows' :: NonEmpty Text
rowIds = NonEmpty Text
a} :: BatchDeleteTableRows) ((NonEmpty Text -> f (NonEmpty Text))
-> BatchDeleteTableRows -> f BatchDeleteTableRows)
-> ((NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text))
-> (NonEmpty Text -> f (NonEmpty Text))
-> BatchDeleteTableRows
-> f BatchDeleteTableRows
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest BatchDeleteTableRows where
type
AWSResponse BatchDeleteTableRows =
BatchDeleteTableRowsResponse
request :: BatchDeleteTableRows -> Request BatchDeleteTableRows
request = Service -> BatchDeleteTableRows -> Request BatchDeleteTableRows
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy BatchDeleteTableRows
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse BatchDeleteTableRows)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse BatchDeleteTableRows))
-> Logger
-> Service
-> Proxy BatchDeleteTableRows
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse BatchDeleteTableRows)))
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 [FailedBatchItem]
-> Int -> Integer -> BatchDeleteTableRowsResponse
BatchDeleteTableRowsResponse'
(Maybe [FailedBatchItem]
-> Int -> Integer -> BatchDeleteTableRowsResponse)
-> Either String (Maybe [FailedBatchItem])
-> Either String (Int -> Integer -> BatchDeleteTableRowsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object -> Text -> Either String (Maybe (Maybe [FailedBatchItem]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"failedBatchItems"
Either String (Maybe (Maybe [FailedBatchItem]))
-> Maybe [FailedBatchItem]
-> Either String (Maybe [FailedBatchItem])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [FailedBatchItem]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> Integer -> BatchDeleteTableRowsResponse)
-> Either String Int
-> Either String (Integer -> BatchDeleteTableRowsResponse)
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 -> BatchDeleteTableRowsResponse)
-> Either String Integer
-> Either String BatchDeleteTableRowsResponse
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 BatchDeleteTableRows
instance Prelude.NFData BatchDeleteTableRows
instance Core.ToHeaders BatchDeleteTableRows where
toHeaders :: BatchDeleteTableRows -> ResponseHeaders
toHeaders =
ResponseHeaders -> BatchDeleteTableRows -> 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 BatchDeleteTableRows where
toJSON :: BatchDeleteTableRows -> Value
toJSON BatchDeleteTableRows' {Maybe Text
NonEmpty Text
Text
rowIds :: NonEmpty Text
tableId :: Text
workbookId :: Text
clientRequestToken :: Maybe Text
$sel:rowIds:BatchDeleteTableRows' :: BatchDeleteTableRows -> NonEmpty Text
$sel:tableId:BatchDeleteTableRows' :: BatchDeleteTableRows -> Text
$sel:workbookId:BatchDeleteTableRows' :: BatchDeleteTableRows -> Text
$sel:clientRequestToken:BatchDeleteTableRows' :: BatchDeleteTableRows -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (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,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"rowIds" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty Text
rowIds)
]
)
instance Core.ToPath BatchDeleteTableRows where
toPath :: BatchDeleteTableRows -> ByteString
toPath BatchDeleteTableRows' {Maybe Text
NonEmpty Text
Text
rowIds :: NonEmpty Text
tableId :: Text
workbookId :: Text
clientRequestToken :: Maybe Text
$sel:rowIds:BatchDeleteTableRows' :: BatchDeleteTableRows -> NonEmpty Text
$sel:tableId:BatchDeleteTableRows' :: BatchDeleteTableRows -> Text
$sel:workbookId:BatchDeleteTableRows' :: BatchDeleteTableRows -> Text
$sel:clientRequestToken:BatchDeleteTableRows' :: BatchDeleteTableRows -> 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
"/tables/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
tableId,
ByteString
"/rows/batchdelete"
]
instance Core.ToQuery BatchDeleteTableRows where
toQuery :: BatchDeleteTableRows -> QueryString
toQuery = QueryString -> BatchDeleteTableRows -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data BatchDeleteTableRowsResponse = BatchDeleteTableRowsResponse'
{
BatchDeleteTableRowsResponse -> Maybe [FailedBatchItem]
failedBatchItems :: Prelude.Maybe [FailedBatchItem],
BatchDeleteTableRowsResponse -> Int
httpStatus :: Prelude.Int,
BatchDeleteTableRowsResponse -> Integer
workbookCursor :: Prelude.Integer
}
deriving (BatchDeleteTableRowsResponse
-> BatchDeleteTableRowsResponse -> Bool
(BatchDeleteTableRowsResponse
-> BatchDeleteTableRowsResponse -> Bool)
-> (BatchDeleteTableRowsResponse
-> BatchDeleteTableRowsResponse -> Bool)
-> Eq BatchDeleteTableRowsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDeleteTableRowsResponse
-> BatchDeleteTableRowsResponse -> Bool
$c/= :: BatchDeleteTableRowsResponse
-> BatchDeleteTableRowsResponse -> Bool
== :: BatchDeleteTableRowsResponse
-> BatchDeleteTableRowsResponse -> Bool
$c== :: BatchDeleteTableRowsResponse
-> BatchDeleteTableRowsResponse -> Bool
Prelude.Eq, ReadPrec [BatchDeleteTableRowsResponse]
ReadPrec BatchDeleteTableRowsResponse
Int -> ReadS BatchDeleteTableRowsResponse
ReadS [BatchDeleteTableRowsResponse]
(Int -> ReadS BatchDeleteTableRowsResponse)
-> ReadS [BatchDeleteTableRowsResponse]
-> ReadPrec BatchDeleteTableRowsResponse
-> ReadPrec [BatchDeleteTableRowsResponse]
-> Read BatchDeleteTableRowsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDeleteTableRowsResponse]
$creadListPrec :: ReadPrec [BatchDeleteTableRowsResponse]
readPrec :: ReadPrec BatchDeleteTableRowsResponse
$creadPrec :: ReadPrec BatchDeleteTableRowsResponse
readList :: ReadS [BatchDeleteTableRowsResponse]
$creadList :: ReadS [BatchDeleteTableRowsResponse]
readsPrec :: Int -> ReadS BatchDeleteTableRowsResponse
$creadsPrec :: Int -> ReadS BatchDeleteTableRowsResponse
Prelude.Read, Int -> BatchDeleteTableRowsResponse -> ShowS
[BatchDeleteTableRowsResponse] -> ShowS
BatchDeleteTableRowsResponse -> String
(Int -> BatchDeleteTableRowsResponse -> ShowS)
-> (BatchDeleteTableRowsResponse -> String)
-> ([BatchDeleteTableRowsResponse] -> ShowS)
-> Show BatchDeleteTableRowsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDeleteTableRowsResponse] -> ShowS
$cshowList :: [BatchDeleteTableRowsResponse] -> ShowS
show :: BatchDeleteTableRowsResponse -> String
$cshow :: BatchDeleteTableRowsResponse -> String
showsPrec :: Int -> BatchDeleteTableRowsResponse -> ShowS
$cshowsPrec :: Int -> BatchDeleteTableRowsResponse -> ShowS
Prelude.Show, (forall x.
BatchDeleteTableRowsResponse -> Rep BatchDeleteTableRowsResponse x)
-> (forall x.
Rep BatchDeleteTableRowsResponse x -> BatchDeleteTableRowsResponse)
-> Generic BatchDeleteTableRowsResponse
forall x.
Rep BatchDeleteTableRowsResponse x -> BatchDeleteTableRowsResponse
forall x.
BatchDeleteTableRowsResponse -> Rep BatchDeleteTableRowsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDeleteTableRowsResponse x -> BatchDeleteTableRowsResponse
$cfrom :: forall x.
BatchDeleteTableRowsResponse -> Rep BatchDeleteTableRowsResponse x
Prelude.Generic)
newBatchDeleteTableRowsResponse ::
Prelude.Int ->
Prelude.Integer ->
BatchDeleteTableRowsResponse
newBatchDeleteTableRowsResponse :: Int -> Integer -> BatchDeleteTableRowsResponse
newBatchDeleteTableRowsResponse
Int
pHttpStatus_
Integer
pWorkbookCursor_ =
BatchDeleteTableRowsResponse' :: Maybe [FailedBatchItem]
-> Int -> Integer -> BatchDeleteTableRowsResponse
BatchDeleteTableRowsResponse'
{ $sel:failedBatchItems:BatchDeleteTableRowsResponse' :: Maybe [FailedBatchItem]
failedBatchItems =
Maybe [FailedBatchItem]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:BatchDeleteTableRowsResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:workbookCursor:BatchDeleteTableRowsResponse' :: Integer
workbookCursor = Integer
pWorkbookCursor_
}
batchDeleteTableRowsResponse_failedBatchItems :: Lens.Lens' BatchDeleteTableRowsResponse (Prelude.Maybe [FailedBatchItem])
batchDeleteTableRowsResponse_failedBatchItems :: (Maybe [FailedBatchItem] -> f (Maybe [FailedBatchItem]))
-> BatchDeleteTableRowsResponse -> f BatchDeleteTableRowsResponse
batchDeleteTableRowsResponse_failedBatchItems = (BatchDeleteTableRowsResponse -> Maybe [FailedBatchItem])
-> (BatchDeleteTableRowsResponse
-> Maybe [FailedBatchItem] -> BatchDeleteTableRowsResponse)
-> Lens
BatchDeleteTableRowsResponse
BatchDeleteTableRowsResponse
(Maybe [FailedBatchItem])
(Maybe [FailedBatchItem])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteTableRowsResponse' {Maybe [FailedBatchItem]
failedBatchItems :: Maybe [FailedBatchItem]
$sel:failedBatchItems:BatchDeleteTableRowsResponse' :: BatchDeleteTableRowsResponse -> Maybe [FailedBatchItem]
failedBatchItems} -> Maybe [FailedBatchItem]
failedBatchItems) (\s :: BatchDeleteTableRowsResponse
s@BatchDeleteTableRowsResponse' {} Maybe [FailedBatchItem]
a -> BatchDeleteTableRowsResponse
s {$sel:failedBatchItems:BatchDeleteTableRowsResponse' :: Maybe [FailedBatchItem]
failedBatchItems = Maybe [FailedBatchItem]
a} :: BatchDeleteTableRowsResponse) ((Maybe [FailedBatchItem] -> f (Maybe [FailedBatchItem]))
-> BatchDeleteTableRowsResponse -> f BatchDeleteTableRowsResponse)
-> ((Maybe [FailedBatchItem] -> f (Maybe [FailedBatchItem]))
-> Maybe [FailedBatchItem] -> f (Maybe [FailedBatchItem]))
-> (Maybe [FailedBatchItem] -> f (Maybe [FailedBatchItem]))
-> BatchDeleteTableRowsResponse
-> f BatchDeleteTableRowsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[FailedBatchItem]
[FailedBatchItem]
[FailedBatchItem]
[FailedBatchItem]
-> Iso
(Maybe [FailedBatchItem])
(Maybe [FailedBatchItem])
(Maybe [FailedBatchItem])
(Maybe [FailedBatchItem])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[FailedBatchItem]
[FailedBatchItem]
[FailedBatchItem]
[FailedBatchItem]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchDeleteTableRowsResponse_httpStatus :: Lens.Lens' BatchDeleteTableRowsResponse Prelude.Int
batchDeleteTableRowsResponse_httpStatus :: (Int -> f Int)
-> BatchDeleteTableRowsResponse -> f BatchDeleteTableRowsResponse
batchDeleteTableRowsResponse_httpStatus = (BatchDeleteTableRowsResponse -> Int)
-> (BatchDeleteTableRowsResponse
-> Int -> BatchDeleteTableRowsResponse)
-> Lens
BatchDeleteTableRowsResponse BatchDeleteTableRowsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteTableRowsResponse' {Int
httpStatus :: Int
$sel:httpStatus:BatchDeleteTableRowsResponse' :: BatchDeleteTableRowsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: BatchDeleteTableRowsResponse
s@BatchDeleteTableRowsResponse' {} Int
a -> BatchDeleteTableRowsResponse
s {$sel:httpStatus:BatchDeleteTableRowsResponse' :: Int
httpStatus = Int
a} :: BatchDeleteTableRowsResponse)
batchDeleteTableRowsResponse_workbookCursor :: Lens.Lens' BatchDeleteTableRowsResponse Prelude.Integer
batchDeleteTableRowsResponse_workbookCursor :: (Integer -> f Integer)
-> BatchDeleteTableRowsResponse -> f BatchDeleteTableRowsResponse
batchDeleteTableRowsResponse_workbookCursor = (BatchDeleteTableRowsResponse -> Integer)
-> (BatchDeleteTableRowsResponse
-> Integer -> BatchDeleteTableRowsResponse)
-> Lens
BatchDeleteTableRowsResponse
BatchDeleteTableRowsResponse
Integer
Integer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteTableRowsResponse' {Integer
workbookCursor :: Integer
$sel:workbookCursor:BatchDeleteTableRowsResponse' :: BatchDeleteTableRowsResponse -> Integer
workbookCursor} -> Integer
workbookCursor) (\s :: BatchDeleteTableRowsResponse
s@BatchDeleteTableRowsResponse' {} Integer
a -> BatchDeleteTableRowsResponse
s {$sel:workbookCursor:BatchDeleteTableRowsResponse' :: Integer
workbookCursor = Integer
a} :: BatchDeleteTableRowsResponse)
instance Prelude.NFData BatchDeleteTableRowsResponse