{-# 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.EventVariableSummary 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 EventVariableSummary = EventVariableSummary'
{
EventVariableSummary -> Maybe (Sensitive Text)
name :: Prelude.Maybe (Data.Sensitive Prelude.Text),
EventVariableSummary -> Maybe (Sensitive Text)
source :: Prelude.Maybe (Data.Sensitive Prelude.Text),
EventVariableSummary -> Maybe (Sensitive Text)
value :: Prelude.Maybe (Data.Sensitive Prelude.Text)
}
deriving (EventVariableSummary -> EventVariableSummary -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EventVariableSummary -> EventVariableSummary -> Bool
$c/= :: EventVariableSummary -> EventVariableSummary -> Bool
== :: EventVariableSummary -> EventVariableSummary -> Bool
$c== :: EventVariableSummary -> EventVariableSummary -> Bool
Prelude.Eq, Int -> EventVariableSummary -> ShowS
[EventVariableSummary] -> ShowS
EventVariableSummary -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EventVariableSummary] -> ShowS
$cshowList :: [EventVariableSummary] -> ShowS
show :: EventVariableSummary -> String
$cshow :: EventVariableSummary -> String
showsPrec :: Int -> EventVariableSummary -> ShowS
$cshowsPrec :: Int -> EventVariableSummary -> ShowS
Prelude.Show, forall x. Rep EventVariableSummary x -> EventVariableSummary
forall x. EventVariableSummary -> Rep EventVariableSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EventVariableSummary x -> EventVariableSummary
$cfrom :: forall x. EventVariableSummary -> Rep EventVariableSummary x
Prelude.Generic)
newEventVariableSummary ::
EventVariableSummary
newEventVariableSummary :: EventVariableSummary
newEventVariableSummary =
EventVariableSummary'
{ $sel:name:EventVariableSummary' :: Maybe (Sensitive Text)
name = forall a. Maybe a
Prelude.Nothing,
$sel:source:EventVariableSummary' :: Maybe (Sensitive Text)
source = forall a. Maybe a
Prelude.Nothing,
$sel:value:EventVariableSummary' :: Maybe (Sensitive Text)
value = forall a. Maybe a
Prelude.Nothing
}
eventVariableSummary_name :: Lens.Lens' EventVariableSummary (Prelude.Maybe Prelude.Text)
eventVariableSummary_name :: Lens' EventVariableSummary (Maybe Text)
eventVariableSummary_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventVariableSummary' {Maybe (Sensitive Text)
name :: Maybe (Sensitive Text)
$sel:name:EventVariableSummary' :: EventVariableSummary -> Maybe (Sensitive Text)
name} -> Maybe (Sensitive Text)
name) (\s :: EventVariableSummary
s@EventVariableSummary' {} Maybe (Sensitive Text)
a -> EventVariableSummary
s {$sel:name:EventVariableSummary' :: Maybe (Sensitive Text)
name = Maybe (Sensitive Text)
a} :: EventVariableSummary) 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 a. Iso' (Sensitive a) a
Data._Sensitive
eventVariableSummary_source :: Lens.Lens' EventVariableSummary (Prelude.Maybe Prelude.Text)
eventVariableSummary_source :: Lens' EventVariableSummary (Maybe Text)
eventVariableSummary_source = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventVariableSummary' {Maybe (Sensitive Text)
source :: Maybe (Sensitive Text)
$sel:source:EventVariableSummary' :: EventVariableSummary -> Maybe (Sensitive Text)
source} -> Maybe (Sensitive Text)
source) (\s :: EventVariableSummary
s@EventVariableSummary' {} Maybe (Sensitive Text)
a -> EventVariableSummary
s {$sel:source:EventVariableSummary' :: Maybe (Sensitive Text)
source = Maybe (Sensitive Text)
a} :: EventVariableSummary) 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 a. Iso' (Sensitive a) a
Data._Sensitive
eventVariableSummary_value :: Lens.Lens' EventVariableSummary (Prelude.Maybe Prelude.Text)
eventVariableSummary_value :: Lens' EventVariableSummary (Maybe Text)
eventVariableSummary_value = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventVariableSummary' {Maybe (Sensitive Text)
value :: Maybe (Sensitive Text)
$sel:value:EventVariableSummary' :: EventVariableSummary -> Maybe (Sensitive Text)
value} -> Maybe (Sensitive Text)
value) (\s :: EventVariableSummary
s@EventVariableSummary' {} Maybe (Sensitive Text)
a -> EventVariableSummary
s {$sel:value:EventVariableSummary' :: Maybe (Sensitive Text)
value = Maybe (Sensitive Text)
a} :: EventVariableSummary) 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 a. Iso' (Sensitive a) a
Data._Sensitive
instance Data.FromJSON EventVariableSummary where
parseJSON :: Value -> Parser EventVariableSummary
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"EventVariableSummary"
( \Object
x ->
Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> EventVariableSummary
EventVariableSummary'
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
"name")
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
"source")
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
"value")
)
instance Prelude.Hashable EventVariableSummary where
hashWithSalt :: Int -> EventVariableSummary -> Int
hashWithSalt Int
_salt EventVariableSummary' {Maybe (Sensitive Text)
value :: Maybe (Sensitive Text)
source :: Maybe (Sensitive Text)
name :: Maybe (Sensitive Text)
$sel:value:EventVariableSummary' :: EventVariableSummary -> Maybe (Sensitive Text)
$sel:source:EventVariableSummary' :: EventVariableSummary -> Maybe (Sensitive Text)
$sel:name:EventVariableSummary' :: EventVariableSummary -> Maybe (Sensitive Text)
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
source
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
value
instance Prelude.NFData EventVariableSummary where
rnf :: EventVariableSummary -> ()
rnf EventVariableSummary' {Maybe (Sensitive Text)
value :: Maybe (Sensitive Text)
source :: Maybe (Sensitive Text)
name :: Maybe (Sensitive Text)
$sel:value:EventVariableSummary' :: EventVariableSummary -> Maybe (Sensitive Text)
$sel:source:EventVariableSummary' :: EventVariableSummary -> Maybe (Sensitive Text)
$sel:name:EventVariableSummary' :: EventVariableSummary -> Maybe (Sensitive Text)
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
source
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
value