{-# 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.SageMakerGeoSpatial.Types.VectorEnrichmentJobErrorDetails 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
import Amazonka.SageMakerGeoSpatial.Types.VectorEnrichmentJobErrorType
data VectorEnrichmentJobErrorDetails = VectorEnrichmentJobErrorDetails'
{
VectorEnrichmentJobErrorDetails -> Maybe Text
errorMessage :: Prelude.Maybe Prelude.Text,
VectorEnrichmentJobErrorDetails
-> Maybe VectorEnrichmentJobErrorType
errorType :: Prelude.Maybe VectorEnrichmentJobErrorType
}
deriving (VectorEnrichmentJobErrorDetails
-> VectorEnrichmentJobErrorDetails -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VectorEnrichmentJobErrorDetails
-> VectorEnrichmentJobErrorDetails -> Bool
$c/= :: VectorEnrichmentJobErrorDetails
-> VectorEnrichmentJobErrorDetails -> Bool
== :: VectorEnrichmentJobErrorDetails
-> VectorEnrichmentJobErrorDetails -> Bool
$c== :: VectorEnrichmentJobErrorDetails
-> VectorEnrichmentJobErrorDetails -> Bool
Prelude.Eq, ReadPrec [VectorEnrichmentJobErrorDetails]
ReadPrec VectorEnrichmentJobErrorDetails
Int -> ReadS VectorEnrichmentJobErrorDetails
ReadS [VectorEnrichmentJobErrorDetails]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VectorEnrichmentJobErrorDetails]
$creadListPrec :: ReadPrec [VectorEnrichmentJobErrorDetails]
readPrec :: ReadPrec VectorEnrichmentJobErrorDetails
$creadPrec :: ReadPrec VectorEnrichmentJobErrorDetails
readList :: ReadS [VectorEnrichmentJobErrorDetails]
$creadList :: ReadS [VectorEnrichmentJobErrorDetails]
readsPrec :: Int -> ReadS VectorEnrichmentJobErrorDetails
$creadsPrec :: Int -> ReadS VectorEnrichmentJobErrorDetails
Prelude.Read, Int -> VectorEnrichmentJobErrorDetails -> ShowS
[VectorEnrichmentJobErrorDetails] -> ShowS
VectorEnrichmentJobErrorDetails -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VectorEnrichmentJobErrorDetails] -> ShowS
$cshowList :: [VectorEnrichmentJobErrorDetails] -> ShowS
show :: VectorEnrichmentJobErrorDetails -> String
$cshow :: VectorEnrichmentJobErrorDetails -> String
showsPrec :: Int -> VectorEnrichmentJobErrorDetails -> ShowS
$cshowsPrec :: Int -> VectorEnrichmentJobErrorDetails -> ShowS
Prelude.Show, forall x.
Rep VectorEnrichmentJobErrorDetails x
-> VectorEnrichmentJobErrorDetails
forall x.
VectorEnrichmentJobErrorDetails
-> Rep VectorEnrichmentJobErrorDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep VectorEnrichmentJobErrorDetails x
-> VectorEnrichmentJobErrorDetails
$cfrom :: forall x.
VectorEnrichmentJobErrorDetails
-> Rep VectorEnrichmentJobErrorDetails x
Prelude.Generic)
newVectorEnrichmentJobErrorDetails ::
VectorEnrichmentJobErrorDetails
newVectorEnrichmentJobErrorDetails :: VectorEnrichmentJobErrorDetails
newVectorEnrichmentJobErrorDetails =
VectorEnrichmentJobErrorDetails'
{ $sel:errorMessage:VectorEnrichmentJobErrorDetails' :: Maybe Text
errorMessage =
forall a. Maybe a
Prelude.Nothing,
$sel:errorType:VectorEnrichmentJobErrorDetails' :: Maybe VectorEnrichmentJobErrorType
errorType = forall a. Maybe a
Prelude.Nothing
}
vectorEnrichmentJobErrorDetails_errorMessage :: Lens.Lens' VectorEnrichmentJobErrorDetails (Prelude.Maybe Prelude.Text)
vectorEnrichmentJobErrorDetails_errorMessage :: Lens' VectorEnrichmentJobErrorDetails (Maybe Text)
vectorEnrichmentJobErrorDetails_errorMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VectorEnrichmentJobErrorDetails' {Maybe Text
errorMessage :: Maybe Text
$sel:errorMessage:VectorEnrichmentJobErrorDetails' :: VectorEnrichmentJobErrorDetails -> Maybe Text
errorMessage} -> Maybe Text
errorMessage) (\s :: VectorEnrichmentJobErrorDetails
s@VectorEnrichmentJobErrorDetails' {} Maybe Text
a -> VectorEnrichmentJobErrorDetails
s {$sel:errorMessage:VectorEnrichmentJobErrorDetails' :: Maybe Text
errorMessage = Maybe Text
a} :: VectorEnrichmentJobErrorDetails)
vectorEnrichmentJobErrorDetails_errorType :: Lens.Lens' VectorEnrichmentJobErrorDetails (Prelude.Maybe VectorEnrichmentJobErrorType)
vectorEnrichmentJobErrorDetails_errorType :: Lens'
VectorEnrichmentJobErrorDetails
(Maybe VectorEnrichmentJobErrorType)
vectorEnrichmentJobErrorDetails_errorType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VectorEnrichmentJobErrorDetails' {Maybe VectorEnrichmentJobErrorType
errorType :: Maybe VectorEnrichmentJobErrorType
$sel:errorType:VectorEnrichmentJobErrorDetails' :: VectorEnrichmentJobErrorDetails
-> Maybe VectorEnrichmentJobErrorType
errorType} -> Maybe VectorEnrichmentJobErrorType
errorType) (\s :: VectorEnrichmentJobErrorDetails
s@VectorEnrichmentJobErrorDetails' {} Maybe VectorEnrichmentJobErrorType
a -> VectorEnrichmentJobErrorDetails
s {$sel:errorType:VectorEnrichmentJobErrorDetails' :: Maybe VectorEnrichmentJobErrorType
errorType = Maybe VectorEnrichmentJobErrorType
a} :: VectorEnrichmentJobErrorDetails)
instance
Data.FromJSON
VectorEnrichmentJobErrorDetails
where
parseJSON :: Value -> Parser VectorEnrichmentJobErrorDetails
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"VectorEnrichmentJobErrorDetails"
( \Object
x ->
Maybe Text
-> Maybe VectorEnrichmentJobErrorType
-> VectorEnrichmentJobErrorDetails
VectorEnrichmentJobErrorDetails'
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
"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
"ErrorType")
)
instance
Prelude.Hashable
VectorEnrichmentJobErrorDetails
where
hashWithSalt :: Int -> VectorEnrichmentJobErrorDetails -> Int
hashWithSalt
Int
_salt
VectorEnrichmentJobErrorDetails' {Maybe Text
Maybe VectorEnrichmentJobErrorType
errorType :: Maybe VectorEnrichmentJobErrorType
errorMessage :: Maybe Text
$sel:errorType:VectorEnrichmentJobErrorDetails' :: VectorEnrichmentJobErrorDetails
-> Maybe VectorEnrichmentJobErrorType
$sel:errorMessage:VectorEnrichmentJobErrorDetails' :: VectorEnrichmentJobErrorDetails -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
errorMessage
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe VectorEnrichmentJobErrorType
errorType
instance
Prelude.NFData
VectorEnrichmentJobErrorDetails
where
rnf :: VectorEnrichmentJobErrorDetails -> ()
rnf VectorEnrichmentJobErrorDetails' {Maybe Text
Maybe VectorEnrichmentJobErrorType
errorType :: Maybe VectorEnrichmentJobErrorType
errorMessage :: Maybe Text
$sel:errorType:VectorEnrichmentJobErrorDetails' :: VectorEnrichmentJobErrorDetails
-> Maybe VectorEnrichmentJobErrorType
$sel:errorMessage:VectorEnrichmentJobErrorDetails' :: VectorEnrichmentJobErrorDetails -> Maybe Text
..} =
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 VectorEnrichmentJobErrorType
errorType