{-# 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.FraudDetector.Types.AggregatedVariablesImportanceMetrics where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.FraudDetector.Types.AggregatedLogOddsMetric
import qualified Amazonka.Prelude as Prelude
data AggregatedVariablesImportanceMetrics = AggregatedVariablesImportanceMetrics'
{
AggregatedVariablesImportanceMetrics
-> Maybe [AggregatedLogOddsMetric]
logOddsMetrics :: Prelude.Maybe [AggregatedLogOddsMetric]
}
deriving (AggregatedVariablesImportanceMetrics
-> AggregatedVariablesImportanceMetrics -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AggregatedVariablesImportanceMetrics
-> AggregatedVariablesImportanceMetrics -> Bool
$c/= :: AggregatedVariablesImportanceMetrics
-> AggregatedVariablesImportanceMetrics -> Bool
== :: AggregatedVariablesImportanceMetrics
-> AggregatedVariablesImportanceMetrics -> Bool
$c== :: AggregatedVariablesImportanceMetrics
-> AggregatedVariablesImportanceMetrics -> Bool
Prelude.Eq, ReadPrec [AggregatedVariablesImportanceMetrics]
ReadPrec AggregatedVariablesImportanceMetrics
Int -> ReadS AggregatedVariablesImportanceMetrics
ReadS [AggregatedVariablesImportanceMetrics]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AggregatedVariablesImportanceMetrics]
$creadListPrec :: ReadPrec [AggregatedVariablesImportanceMetrics]
readPrec :: ReadPrec AggregatedVariablesImportanceMetrics
$creadPrec :: ReadPrec AggregatedVariablesImportanceMetrics
readList :: ReadS [AggregatedVariablesImportanceMetrics]
$creadList :: ReadS [AggregatedVariablesImportanceMetrics]
readsPrec :: Int -> ReadS AggregatedVariablesImportanceMetrics
$creadsPrec :: Int -> ReadS AggregatedVariablesImportanceMetrics
Prelude.Read, Int -> AggregatedVariablesImportanceMetrics -> ShowS
[AggregatedVariablesImportanceMetrics] -> ShowS
AggregatedVariablesImportanceMetrics -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AggregatedVariablesImportanceMetrics] -> ShowS
$cshowList :: [AggregatedVariablesImportanceMetrics] -> ShowS
show :: AggregatedVariablesImportanceMetrics -> String
$cshow :: AggregatedVariablesImportanceMetrics -> String
showsPrec :: Int -> AggregatedVariablesImportanceMetrics -> ShowS
$cshowsPrec :: Int -> AggregatedVariablesImportanceMetrics -> ShowS
Prelude.Show, forall x.
Rep AggregatedVariablesImportanceMetrics x
-> AggregatedVariablesImportanceMetrics
forall x.
AggregatedVariablesImportanceMetrics
-> Rep AggregatedVariablesImportanceMetrics x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AggregatedVariablesImportanceMetrics x
-> AggregatedVariablesImportanceMetrics
$cfrom :: forall x.
AggregatedVariablesImportanceMetrics
-> Rep AggregatedVariablesImportanceMetrics x
Prelude.Generic)
newAggregatedVariablesImportanceMetrics ::
AggregatedVariablesImportanceMetrics
newAggregatedVariablesImportanceMetrics :: AggregatedVariablesImportanceMetrics
newAggregatedVariablesImportanceMetrics =
AggregatedVariablesImportanceMetrics'
{ $sel:logOddsMetrics:AggregatedVariablesImportanceMetrics' :: Maybe [AggregatedLogOddsMetric]
logOddsMetrics =
forall a. Maybe a
Prelude.Nothing
}
aggregatedVariablesImportanceMetrics_logOddsMetrics :: Lens.Lens' AggregatedVariablesImportanceMetrics (Prelude.Maybe [AggregatedLogOddsMetric])
aggregatedVariablesImportanceMetrics_logOddsMetrics :: Lens'
AggregatedVariablesImportanceMetrics
(Maybe [AggregatedLogOddsMetric])
aggregatedVariablesImportanceMetrics_logOddsMetrics = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AggregatedVariablesImportanceMetrics' {Maybe [AggregatedLogOddsMetric]
logOddsMetrics :: Maybe [AggregatedLogOddsMetric]
$sel:logOddsMetrics:AggregatedVariablesImportanceMetrics' :: AggregatedVariablesImportanceMetrics
-> Maybe [AggregatedLogOddsMetric]
logOddsMetrics} -> Maybe [AggregatedLogOddsMetric]
logOddsMetrics) (\s :: AggregatedVariablesImportanceMetrics
s@AggregatedVariablesImportanceMetrics' {} Maybe [AggregatedLogOddsMetric]
a -> AggregatedVariablesImportanceMetrics
s {$sel:logOddsMetrics:AggregatedVariablesImportanceMetrics' :: Maybe [AggregatedLogOddsMetric]
logOddsMetrics = Maybe [AggregatedLogOddsMetric]
a} :: AggregatedVariablesImportanceMetrics) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Data.FromJSON
AggregatedVariablesImportanceMetrics
where
parseJSON :: Value -> Parser AggregatedVariablesImportanceMetrics
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"AggregatedVariablesImportanceMetrics"
( \Object
x ->
Maybe [AggregatedLogOddsMetric]
-> AggregatedVariablesImportanceMetrics
AggregatedVariablesImportanceMetrics'
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
"logOddsMetrics"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
)
instance
Prelude.Hashable
AggregatedVariablesImportanceMetrics
where
hashWithSalt :: Int -> AggregatedVariablesImportanceMetrics -> Int
hashWithSalt
Int
_salt
AggregatedVariablesImportanceMetrics' {Maybe [AggregatedLogOddsMetric]
logOddsMetrics :: Maybe [AggregatedLogOddsMetric]
$sel:logOddsMetrics:AggregatedVariablesImportanceMetrics' :: AggregatedVariablesImportanceMetrics
-> Maybe [AggregatedLogOddsMetric]
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [AggregatedLogOddsMetric]
logOddsMetrics
instance
Prelude.NFData
AggregatedVariablesImportanceMetrics
where
rnf :: AggregatedVariablesImportanceMetrics -> ()
rnf AggregatedVariablesImportanceMetrics' {Maybe [AggregatedLogOddsMetric]
logOddsMetrics :: Maybe [AggregatedLogOddsMetric]
$sel:logOddsMetrics:AggregatedVariablesImportanceMetrics' :: AggregatedVariablesImportanceMetrics
-> Maybe [AggregatedLogOddsMetric]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [AggregatedLogOddsMetric]
logOddsMetrics