{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Location.Types.BatchDeleteDevicePositionHistoryError where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Location.Types.BatchItemError
import qualified Amazonka.Prelude as Prelude
data BatchDeleteDevicePositionHistoryError = BatchDeleteDevicePositionHistoryError'
{
BatchDeleteDevicePositionHistoryError -> Text
deviceId :: Prelude.Text,
BatchDeleteDevicePositionHistoryError -> BatchItemError
error :: BatchItemError
}
deriving (BatchDeleteDevicePositionHistoryError
-> BatchDeleteDevicePositionHistoryError -> Bool
(BatchDeleteDevicePositionHistoryError
-> BatchDeleteDevicePositionHistoryError -> Bool)
-> (BatchDeleteDevicePositionHistoryError
-> BatchDeleteDevicePositionHistoryError -> Bool)
-> Eq BatchDeleteDevicePositionHistoryError
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDeleteDevicePositionHistoryError
-> BatchDeleteDevicePositionHistoryError -> Bool
$c/= :: BatchDeleteDevicePositionHistoryError
-> BatchDeleteDevicePositionHistoryError -> Bool
== :: BatchDeleteDevicePositionHistoryError
-> BatchDeleteDevicePositionHistoryError -> Bool
$c== :: BatchDeleteDevicePositionHistoryError
-> BatchDeleteDevicePositionHistoryError -> Bool
Prelude.Eq, ReadPrec [BatchDeleteDevicePositionHistoryError]
ReadPrec BatchDeleteDevicePositionHistoryError
Int -> ReadS BatchDeleteDevicePositionHistoryError
ReadS [BatchDeleteDevicePositionHistoryError]
(Int -> ReadS BatchDeleteDevicePositionHistoryError)
-> ReadS [BatchDeleteDevicePositionHistoryError]
-> ReadPrec BatchDeleteDevicePositionHistoryError
-> ReadPrec [BatchDeleteDevicePositionHistoryError]
-> Read BatchDeleteDevicePositionHistoryError
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDeleteDevicePositionHistoryError]
$creadListPrec :: ReadPrec [BatchDeleteDevicePositionHistoryError]
readPrec :: ReadPrec BatchDeleteDevicePositionHistoryError
$creadPrec :: ReadPrec BatchDeleteDevicePositionHistoryError
readList :: ReadS [BatchDeleteDevicePositionHistoryError]
$creadList :: ReadS [BatchDeleteDevicePositionHistoryError]
readsPrec :: Int -> ReadS BatchDeleteDevicePositionHistoryError
$creadsPrec :: Int -> ReadS BatchDeleteDevicePositionHistoryError
Prelude.Read, Int -> BatchDeleteDevicePositionHistoryError -> ShowS
[BatchDeleteDevicePositionHistoryError] -> ShowS
BatchDeleteDevicePositionHistoryError -> String
(Int -> BatchDeleteDevicePositionHistoryError -> ShowS)
-> (BatchDeleteDevicePositionHistoryError -> String)
-> ([BatchDeleteDevicePositionHistoryError] -> ShowS)
-> Show BatchDeleteDevicePositionHistoryError
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDeleteDevicePositionHistoryError] -> ShowS
$cshowList :: [BatchDeleteDevicePositionHistoryError] -> ShowS
show :: BatchDeleteDevicePositionHistoryError -> String
$cshow :: BatchDeleteDevicePositionHistoryError -> String
showsPrec :: Int -> BatchDeleteDevicePositionHistoryError -> ShowS
$cshowsPrec :: Int -> BatchDeleteDevicePositionHistoryError -> ShowS
Prelude.Show, (forall x.
BatchDeleteDevicePositionHistoryError
-> Rep BatchDeleteDevicePositionHistoryError x)
-> (forall x.
Rep BatchDeleteDevicePositionHistoryError x
-> BatchDeleteDevicePositionHistoryError)
-> Generic BatchDeleteDevicePositionHistoryError
forall x.
Rep BatchDeleteDevicePositionHistoryError x
-> BatchDeleteDevicePositionHistoryError
forall x.
BatchDeleteDevicePositionHistoryError
-> Rep BatchDeleteDevicePositionHistoryError x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDeleteDevicePositionHistoryError x
-> BatchDeleteDevicePositionHistoryError
$cfrom :: forall x.
BatchDeleteDevicePositionHistoryError
-> Rep BatchDeleteDevicePositionHistoryError x
Prelude.Generic)
newBatchDeleteDevicePositionHistoryError ::
Prelude.Text ->
BatchItemError ->
BatchDeleteDevicePositionHistoryError
newBatchDeleteDevicePositionHistoryError :: Text -> BatchItemError -> BatchDeleteDevicePositionHistoryError
newBatchDeleteDevicePositionHistoryError
Text
pDeviceId_
BatchItemError
pError_ =
BatchDeleteDevicePositionHistoryError' :: Text -> BatchItemError -> BatchDeleteDevicePositionHistoryError
BatchDeleteDevicePositionHistoryError'
{ $sel:deviceId:BatchDeleteDevicePositionHistoryError' :: Text
deviceId =
Text
pDeviceId_,
$sel:error:BatchDeleteDevicePositionHistoryError' :: BatchItemError
error = BatchItemError
pError_
}
batchDeleteDevicePositionHistoryError_deviceId :: Lens.Lens' BatchDeleteDevicePositionHistoryError Prelude.Text
batchDeleteDevicePositionHistoryError_deviceId :: (Text -> f Text)
-> BatchDeleteDevicePositionHistoryError
-> f BatchDeleteDevicePositionHistoryError
batchDeleteDevicePositionHistoryError_deviceId = (BatchDeleteDevicePositionHistoryError -> Text)
-> (BatchDeleteDevicePositionHistoryError
-> Text -> BatchDeleteDevicePositionHistoryError)
-> Lens
BatchDeleteDevicePositionHistoryError
BatchDeleteDevicePositionHistoryError
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteDevicePositionHistoryError' {Text
deviceId :: Text
$sel:deviceId:BatchDeleteDevicePositionHistoryError' :: BatchDeleteDevicePositionHistoryError -> Text
deviceId} -> Text
deviceId) (\s :: BatchDeleteDevicePositionHistoryError
s@BatchDeleteDevicePositionHistoryError' {} Text
a -> BatchDeleteDevicePositionHistoryError
s {$sel:deviceId:BatchDeleteDevicePositionHistoryError' :: Text
deviceId = Text
a} :: BatchDeleteDevicePositionHistoryError)
batchDeleteDevicePositionHistoryError_error :: Lens.Lens' BatchDeleteDevicePositionHistoryError BatchItemError
batchDeleteDevicePositionHistoryError_error :: (BatchItemError -> f BatchItemError)
-> BatchDeleteDevicePositionHistoryError
-> f BatchDeleteDevicePositionHistoryError
batchDeleteDevicePositionHistoryError_error = (BatchDeleteDevicePositionHistoryError -> BatchItemError)
-> (BatchDeleteDevicePositionHistoryError
-> BatchItemError -> BatchDeleteDevicePositionHistoryError)
-> Lens
BatchDeleteDevicePositionHistoryError
BatchDeleteDevicePositionHistoryError
BatchItemError
BatchItemError
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteDevicePositionHistoryError' {BatchItemError
error :: BatchItemError
$sel:error:BatchDeleteDevicePositionHistoryError' :: BatchDeleteDevicePositionHistoryError -> BatchItemError
error} -> BatchItemError
error) (\s :: BatchDeleteDevicePositionHistoryError
s@BatchDeleteDevicePositionHistoryError' {} BatchItemError
a -> BatchDeleteDevicePositionHistoryError
s {$sel:error:BatchDeleteDevicePositionHistoryError' :: BatchItemError
error = BatchItemError
a} :: BatchDeleteDevicePositionHistoryError)
instance
Core.FromJSON
BatchDeleteDevicePositionHistoryError
where
parseJSON :: Value -> Parser BatchDeleteDevicePositionHistoryError
parseJSON =
String
-> (Object -> Parser BatchDeleteDevicePositionHistoryError)
-> Value
-> Parser BatchDeleteDevicePositionHistoryError
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"BatchDeleteDevicePositionHistoryError"
( \Object
x ->
Text -> BatchItemError -> BatchDeleteDevicePositionHistoryError
BatchDeleteDevicePositionHistoryError'
(Text -> BatchItemError -> BatchDeleteDevicePositionHistoryError)
-> Parser Text
-> Parser (BatchItemError -> BatchDeleteDevicePositionHistoryError)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"DeviceId")
Parser (BatchItemError -> BatchDeleteDevicePositionHistoryError)
-> Parser BatchItemError
-> Parser BatchDeleteDevicePositionHistoryError
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser BatchItemError
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"Error")
)
instance
Prelude.Hashable
BatchDeleteDevicePositionHistoryError
instance
Prelude.NFData
BatchDeleteDevicePositionHistoryError