{-# 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.Lens as Lens
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
(BatchGetRecordError -> BatchGetRecordError -> Bool)
-> (BatchGetRecordError -> BatchGetRecordError -> Bool)
-> Eq BatchGetRecordError
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]
(Int -> ReadS BatchGetRecordError)
-> ReadS [BatchGetRecordError]
-> ReadPrec BatchGetRecordError
-> ReadPrec [BatchGetRecordError]
-> Read 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
(Int -> BatchGetRecordError -> ShowS)
-> (BatchGetRecordError -> String)
-> ([BatchGetRecordError] -> ShowS)
-> Show BatchGetRecordError
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. BatchGetRecordError -> Rep BatchGetRecordError x)
-> (forall x. Rep BatchGetRecordError x -> BatchGetRecordError)
-> Generic BatchGetRecordError
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' :: Text -> Text -> Text -> Text -> BatchGetRecordError
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 :: (Text -> f Text) -> BatchGetRecordError -> f BatchGetRecordError
batchGetRecordError_featureGroupName = (BatchGetRecordError -> Text)
-> (BatchGetRecordError -> Text -> BatchGetRecordError)
-> Lens BatchGetRecordError BatchGetRecordError Text Text
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 :: (Text -> f Text) -> BatchGetRecordError -> f BatchGetRecordError
batchGetRecordError_recordIdentifierValueAsString = (BatchGetRecordError -> Text)
-> (BatchGetRecordError -> Text -> BatchGetRecordError)
-> Lens BatchGetRecordError BatchGetRecordError Text Text
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 :: (Text -> f Text) -> BatchGetRecordError -> f BatchGetRecordError
batchGetRecordError_errorCode = (BatchGetRecordError -> Text)
-> (BatchGetRecordError -> Text -> BatchGetRecordError)
-> Lens BatchGetRecordError BatchGetRecordError Text Text
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 :: (Text -> f Text) -> BatchGetRecordError -> f BatchGetRecordError
batchGetRecordError_errorMessage = (BatchGetRecordError -> Text)
-> (BatchGetRecordError -> Text -> BatchGetRecordError)
-> Lens BatchGetRecordError BatchGetRecordError Text Text
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 Core.FromJSON BatchGetRecordError where
parseJSON :: Value -> Parser BatchGetRecordError
parseJSON =
String
-> (Object -> Parser BatchGetRecordError)
-> Value
-> Parser BatchGetRecordError
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"BatchGetRecordError"
( \Object
x ->
Text -> Text -> Text -> Text -> BatchGetRecordError
BatchGetRecordError'
(Text -> Text -> Text -> Text -> BatchGetRecordError)
-> Parser Text
-> Parser (Text -> Text -> Text -> BatchGetRecordError)
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
"FeatureGroupName")
Parser (Text -> Text -> Text -> BatchGetRecordError)
-> Parser Text -> Parser (Text -> Text -> BatchGetRecordError)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"RecordIdentifierValueAsString")
Parser (Text -> Text -> BatchGetRecordError)
-> Parser Text -> Parser (Text -> BatchGetRecordError)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"ErrorCode")
Parser (Text -> BatchGetRecordError)
-> Parser Text -> Parser BatchGetRecordError
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"ErrorMessage")
)
instance Prelude.Hashable BatchGetRecordError
instance Prelude.NFData BatchGetRecordError