{-# 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.SageMakerFeatureStoreRuntime.Types.BatchGetRecordError where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data BatchGetRecordError = BatchGetRecordError'
{
BatchGetRecordError -> Text
featureGroupName :: Prelude.Text,
BatchGetRecordError -> Text
recordIdentifierValueAsString :: Prelude.Text,
BatchGetRecordError -> Text
errorCode :: Prelude.Text,
BatchGetRecordError -> Text
errorMessage :: Prelude.Text
}
deriving (BatchGetRecordError -> BatchGetRecordError -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchGetRecordError -> BatchGetRecordError -> Bool
$c/= :: BatchGetRecordError -> BatchGetRecordError -> Bool
== :: BatchGetRecordError -> BatchGetRecordError -> Bool
$c== :: BatchGetRecordError -> BatchGetRecordError -> Bool
Prelude.Eq, ReadPrec [BatchGetRecordError]
ReadPrec BatchGetRecordError
Int -> ReadS BatchGetRecordError
ReadS [BatchGetRecordError]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchGetRecordError]
$creadListPrec :: ReadPrec [BatchGetRecordError]
readPrec :: ReadPrec BatchGetRecordError
$creadPrec :: ReadPrec BatchGetRecordError
readList :: ReadS [BatchGetRecordError]
$creadList :: ReadS [BatchGetRecordError]
readsPrec :: Int -> ReadS BatchGetRecordError
$creadsPrec :: Int -> ReadS BatchGetRecordError
Prelude.Read, Int -> BatchGetRecordError -> ShowS
[BatchGetRecordError] -> ShowS
BatchGetRecordError -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchGetRecordError] -> ShowS
$cshowList :: [BatchGetRecordError] -> ShowS
show :: BatchGetRecordError -> String
$cshow :: BatchGetRecordError -> String
showsPrec :: Int -> BatchGetRecordError -> ShowS
$cshowsPrec :: Int -> BatchGetRecordError -> ShowS
Prelude.Show, forall x. Rep BatchGetRecordError x -> BatchGetRecordError
forall x. BatchGetRecordError -> Rep BatchGetRecordError x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchGetRecordError x -> BatchGetRecordError
$cfrom :: forall x. BatchGetRecordError -> Rep BatchGetRecordError x
Prelude.Generic)
newBatchGetRecordError ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
BatchGetRecordError
newBatchGetRecordError :: Text -> Text -> Text -> Text -> BatchGetRecordError
newBatchGetRecordError
Text
pFeatureGroupName_
Text
pRecordIdentifierValueAsString_
Text
pErrorCode_
Text
pErrorMessage_ =
BatchGetRecordError'
{ $sel:featureGroupName:BatchGetRecordError' :: Text
featureGroupName =
Text
pFeatureGroupName_,
$sel:recordIdentifierValueAsString:BatchGetRecordError' :: Text
recordIdentifierValueAsString =
Text
pRecordIdentifierValueAsString_,
$sel:errorCode:BatchGetRecordError' :: Text
errorCode = Text
pErrorCode_,
$sel:errorMessage:BatchGetRecordError' :: Text
errorMessage = Text
pErrorMessage_
}
batchGetRecordError_featureGroupName :: Lens.Lens' BatchGetRecordError Prelude.Text
batchGetRecordError_featureGroupName :: Lens' BatchGetRecordError Text
batchGetRecordError_featureGroupName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetRecordError' {Text
featureGroupName :: Text
$sel:featureGroupName:BatchGetRecordError' :: BatchGetRecordError -> Text
featureGroupName} -> Text
featureGroupName) (\s :: BatchGetRecordError
s@BatchGetRecordError' {} Text
a -> BatchGetRecordError
s {$sel:featureGroupName:BatchGetRecordError' :: Text
featureGroupName = Text
a} :: BatchGetRecordError)
batchGetRecordError_recordIdentifierValueAsString :: Lens.Lens' BatchGetRecordError Prelude.Text
batchGetRecordError_recordIdentifierValueAsString :: Lens' BatchGetRecordError Text
batchGetRecordError_recordIdentifierValueAsString = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetRecordError' {Text
recordIdentifierValueAsString :: Text
$sel:recordIdentifierValueAsString:BatchGetRecordError' :: BatchGetRecordError -> Text
recordIdentifierValueAsString} -> Text
recordIdentifierValueAsString) (\s :: BatchGetRecordError
s@BatchGetRecordError' {} Text
a -> BatchGetRecordError
s {$sel:recordIdentifierValueAsString:BatchGetRecordError' :: Text
recordIdentifierValueAsString = Text
a} :: BatchGetRecordError)
batchGetRecordError_errorCode :: Lens.Lens' BatchGetRecordError Prelude.Text
batchGetRecordError_errorCode :: Lens' BatchGetRecordError Text
batchGetRecordError_errorCode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetRecordError' {Text
errorCode :: Text
$sel:errorCode:BatchGetRecordError' :: BatchGetRecordError -> Text
errorCode} -> Text
errorCode) (\s :: BatchGetRecordError
s@BatchGetRecordError' {} Text
a -> BatchGetRecordError
s {$sel:errorCode:BatchGetRecordError' :: Text
errorCode = Text
a} :: BatchGetRecordError)
batchGetRecordError_errorMessage :: Lens.Lens' BatchGetRecordError Prelude.Text
batchGetRecordError_errorMessage :: Lens' BatchGetRecordError Text
batchGetRecordError_errorMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetRecordError' {Text
errorMessage :: Text
$sel:errorMessage:BatchGetRecordError' :: BatchGetRecordError -> Text
errorMessage} -> Text
errorMessage) (\s :: BatchGetRecordError
s@BatchGetRecordError' {} Text
a -> BatchGetRecordError
s {$sel:errorMessage:BatchGetRecordError' :: Text
errorMessage = Text
a} :: BatchGetRecordError)
instance Data.FromJSON BatchGetRecordError where
parseJSON :: Value -> Parser BatchGetRecordError
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"BatchGetRecordError"
( \Object
x ->
Text -> Text -> Text -> Text -> BatchGetRecordError
BatchGetRecordError'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"FeatureGroupName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"RecordIdentifierValueAsString")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser 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 a
Data..: Key
"ErrorMessage")
)
instance Prelude.Hashable BatchGetRecordError where
hashWithSalt :: Int -> BatchGetRecordError -> Int
hashWithSalt Int
_salt BatchGetRecordError' {Text
errorMessage :: Text
errorCode :: Text
recordIdentifierValueAsString :: Text
featureGroupName :: Text
$sel:errorMessage:BatchGetRecordError' :: BatchGetRecordError -> Text
$sel:errorCode:BatchGetRecordError' :: BatchGetRecordError -> Text
$sel:recordIdentifierValueAsString:BatchGetRecordError' :: BatchGetRecordError -> Text
$sel:featureGroupName:BatchGetRecordError' :: BatchGetRecordError -> Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
featureGroupName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
recordIdentifierValueAsString
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
errorCode
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
errorMessage
instance Prelude.NFData BatchGetRecordError where
rnf :: BatchGetRecordError -> ()
rnf BatchGetRecordError' {Text
errorMessage :: Text
errorCode :: Text
recordIdentifierValueAsString :: Text
featureGroupName :: Text
$sel:errorMessage:BatchGetRecordError' :: BatchGetRecordError -> Text
$sel:errorCode:BatchGetRecordError' :: BatchGetRecordError -> Text
$sel:recordIdentifierValueAsString:BatchGetRecordError' :: BatchGetRecordError -> Text
$sel:featureGroupName:BatchGetRecordError' :: BatchGetRecordError -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
featureGroupName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
recordIdentifierValueAsString
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
errorCode
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
errorMessage