{-# 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.Kendra.Types.BatchDeleteDocumentResponseFailedDocument where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Kendra.Types.ErrorCode
import qualified Amazonka.Prelude as Prelude
data BatchDeleteDocumentResponseFailedDocument = BatchDeleteDocumentResponseFailedDocument'
{
BatchDeleteDocumentResponseFailedDocument -> Maybe ErrorCode
errorCode :: Prelude.Maybe ErrorCode,
BatchDeleteDocumentResponseFailedDocument -> Maybe Text
errorMessage :: Prelude.Maybe Prelude.Text,
BatchDeleteDocumentResponseFailedDocument -> Maybe Text
id :: Prelude.Maybe Prelude.Text
}
deriving (BatchDeleteDocumentResponseFailedDocument
-> BatchDeleteDocumentResponseFailedDocument -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDeleteDocumentResponseFailedDocument
-> BatchDeleteDocumentResponseFailedDocument -> Bool
$c/= :: BatchDeleteDocumentResponseFailedDocument
-> BatchDeleteDocumentResponseFailedDocument -> Bool
== :: BatchDeleteDocumentResponseFailedDocument
-> BatchDeleteDocumentResponseFailedDocument -> Bool
$c== :: BatchDeleteDocumentResponseFailedDocument
-> BatchDeleteDocumentResponseFailedDocument -> Bool
Prelude.Eq, ReadPrec [BatchDeleteDocumentResponseFailedDocument]
ReadPrec BatchDeleteDocumentResponseFailedDocument
Int -> ReadS BatchDeleteDocumentResponseFailedDocument
ReadS [BatchDeleteDocumentResponseFailedDocument]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDeleteDocumentResponseFailedDocument]
$creadListPrec :: ReadPrec [BatchDeleteDocumentResponseFailedDocument]
readPrec :: ReadPrec BatchDeleteDocumentResponseFailedDocument
$creadPrec :: ReadPrec BatchDeleteDocumentResponseFailedDocument
readList :: ReadS [BatchDeleteDocumentResponseFailedDocument]
$creadList :: ReadS [BatchDeleteDocumentResponseFailedDocument]
readsPrec :: Int -> ReadS BatchDeleteDocumentResponseFailedDocument
$creadsPrec :: Int -> ReadS BatchDeleteDocumentResponseFailedDocument
Prelude.Read, Int -> BatchDeleteDocumentResponseFailedDocument -> ShowS
[BatchDeleteDocumentResponseFailedDocument] -> ShowS
BatchDeleteDocumentResponseFailedDocument -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDeleteDocumentResponseFailedDocument] -> ShowS
$cshowList :: [BatchDeleteDocumentResponseFailedDocument] -> ShowS
show :: BatchDeleteDocumentResponseFailedDocument -> String
$cshow :: BatchDeleteDocumentResponseFailedDocument -> String
showsPrec :: Int -> BatchDeleteDocumentResponseFailedDocument -> ShowS
$cshowsPrec :: Int -> BatchDeleteDocumentResponseFailedDocument -> ShowS
Prelude.Show, forall x.
Rep BatchDeleteDocumentResponseFailedDocument x
-> BatchDeleteDocumentResponseFailedDocument
forall x.
BatchDeleteDocumentResponseFailedDocument
-> Rep BatchDeleteDocumentResponseFailedDocument x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDeleteDocumentResponseFailedDocument x
-> BatchDeleteDocumentResponseFailedDocument
$cfrom :: forall x.
BatchDeleteDocumentResponseFailedDocument
-> Rep BatchDeleteDocumentResponseFailedDocument x
Prelude.Generic)
newBatchDeleteDocumentResponseFailedDocument ::
BatchDeleteDocumentResponseFailedDocument
newBatchDeleteDocumentResponseFailedDocument :: BatchDeleteDocumentResponseFailedDocument
newBatchDeleteDocumentResponseFailedDocument =
BatchDeleteDocumentResponseFailedDocument'
{ $sel:errorCode:BatchDeleteDocumentResponseFailedDocument' :: Maybe ErrorCode
errorCode =
forall a. Maybe a
Prelude.Nothing,
$sel:errorMessage:BatchDeleteDocumentResponseFailedDocument' :: Maybe Text
errorMessage = forall a. Maybe a
Prelude.Nothing,
$sel:id:BatchDeleteDocumentResponseFailedDocument' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing
}
batchDeleteDocumentResponseFailedDocument_errorCode :: Lens.Lens' BatchDeleteDocumentResponseFailedDocument (Prelude.Maybe ErrorCode)
batchDeleteDocumentResponseFailedDocument_errorCode :: Lens' BatchDeleteDocumentResponseFailedDocument (Maybe ErrorCode)
batchDeleteDocumentResponseFailedDocument_errorCode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteDocumentResponseFailedDocument' {Maybe ErrorCode
errorCode :: Maybe ErrorCode
$sel:errorCode:BatchDeleteDocumentResponseFailedDocument' :: BatchDeleteDocumentResponseFailedDocument -> Maybe ErrorCode
errorCode} -> Maybe ErrorCode
errorCode) (\s :: BatchDeleteDocumentResponseFailedDocument
s@BatchDeleteDocumentResponseFailedDocument' {} Maybe ErrorCode
a -> BatchDeleteDocumentResponseFailedDocument
s {$sel:errorCode:BatchDeleteDocumentResponseFailedDocument' :: Maybe ErrorCode
errorCode = Maybe ErrorCode
a} :: BatchDeleteDocumentResponseFailedDocument)
batchDeleteDocumentResponseFailedDocument_errorMessage :: Lens.Lens' BatchDeleteDocumentResponseFailedDocument (Prelude.Maybe Prelude.Text)
batchDeleteDocumentResponseFailedDocument_errorMessage :: Lens' BatchDeleteDocumentResponseFailedDocument (Maybe Text)
batchDeleteDocumentResponseFailedDocument_errorMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteDocumentResponseFailedDocument' {Maybe Text
errorMessage :: Maybe Text
$sel:errorMessage:BatchDeleteDocumentResponseFailedDocument' :: BatchDeleteDocumentResponseFailedDocument -> Maybe Text
errorMessage} -> Maybe Text
errorMessage) (\s :: BatchDeleteDocumentResponseFailedDocument
s@BatchDeleteDocumentResponseFailedDocument' {} Maybe Text
a -> BatchDeleteDocumentResponseFailedDocument
s {$sel:errorMessage:BatchDeleteDocumentResponseFailedDocument' :: Maybe Text
errorMessage = Maybe Text
a} :: BatchDeleteDocumentResponseFailedDocument)
batchDeleteDocumentResponseFailedDocument_id :: Lens.Lens' BatchDeleteDocumentResponseFailedDocument (Prelude.Maybe Prelude.Text)
batchDeleteDocumentResponseFailedDocument_id :: Lens' BatchDeleteDocumentResponseFailedDocument (Maybe Text)
batchDeleteDocumentResponseFailedDocument_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteDocumentResponseFailedDocument' {Maybe Text
id :: Maybe Text
$sel:id:BatchDeleteDocumentResponseFailedDocument' :: BatchDeleteDocumentResponseFailedDocument -> Maybe Text
id} -> Maybe Text
id) (\s :: BatchDeleteDocumentResponseFailedDocument
s@BatchDeleteDocumentResponseFailedDocument' {} Maybe Text
a -> BatchDeleteDocumentResponseFailedDocument
s {$sel:id:BatchDeleteDocumentResponseFailedDocument' :: Maybe Text
id = Maybe Text
a} :: BatchDeleteDocumentResponseFailedDocument)
instance
Data.FromJSON
BatchDeleteDocumentResponseFailedDocument
where
parseJSON :: Value -> Parser BatchDeleteDocumentResponseFailedDocument
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"BatchDeleteDocumentResponseFailedDocument"
( \Object
x ->
Maybe ErrorCode
-> Maybe Text
-> Maybe Text
-> BatchDeleteDocumentResponseFailedDocument
BatchDeleteDocumentResponseFailedDocument'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ErrorCode")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ErrorMessage")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Id")
)
instance
Prelude.Hashable
BatchDeleteDocumentResponseFailedDocument
where
hashWithSalt :: Int -> BatchDeleteDocumentResponseFailedDocument -> Int
hashWithSalt
Int
_salt
BatchDeleteDocumentResponseFailedDocument' {Maybe Text
Maybe ErrorCode
id :: Maybe Text
errorMessage :: Maybe Text
errorCode :: Maybe ErrorCode
$sel:id:BatchDeleteDocumentResponseFailedDocument' :: BatchDeleteDocumentResponseFailedDocument -> Maybe Text
$sel:errorMessage:BatchDeleteDocumentResponseFailedDocument' :: BatchDeleteDocumentResponseFailedDocument -> Maybe Text
$sel:errorCode:BatchDeleteDocumentResponseFailedDocument' :: BatchDeleteDocumentResponseFailedDocument -> Maybe ErrorCode
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ErrorCode
errorCode
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
errorMessage
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
id
instance
Prelude.NFData
BatchDeleteDocumentResponseFailedDocument
where
rnf :: BatchDeleteDocumentResponseFailedDocument -> ()
rnf BatchDeleteDocumentResponseFailedDocument' {Maybe Text
Maybe ErrorCode
id :: Maybe Text
errorMessage :: Maybe Text
errorCode :: Maybe ErrorCode
$sel:id:BatchDeleteDocumentResponseFailedDocument' :: BatchDeleteDocumentResponseFailedDocument -> Maybe Text
$sel:errorMessage:BatchDeleteDocumentResponseFailedDocument' :: BatchDeleteDocumentResponseFailedDocument -> Maybe Text
$sel:errorCode:BatchDeleteDocumentResponseFailedDocument' :: BatchDeleteDocumentResponseFailedDocument -> Maybe ErrorCode
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe ErrorCode
errorCode
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
errorMessage
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id