{-# 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.DevOpsGuru.Types.LogAnomalyShowcase where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.DevOpsGuru.Types.LogAnomalyClass
import qualified Amazonka.Prelude as Prelude
data LogAnomalyShowcase = LogAnomalyShowcase'
{
LogAnomalyShowcase -> Maybe [LogAnomalyClass]
logAnomalyClasses :: Prelude.Maybe [LogAnomalyClass]
}
deriving (LogAnomalyShowcase -> LogAnomalyShowcase -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LogAnomalyShowcase -> LogAnomalyShowcase -> Bool
$c/= :: LogAnomalyShowcase -> LogAnomalyShowcase -> Bool
== :: LogAnomalyShowcase -> LogAnomalyShowcase -> Bool
$c== :: LogAnomalyShowcase -> LogAnomalyShowcase -> Bool
Prelude.Eq, ReadPrec [LogAnomalyShowcase]
ReadPrec LogAnomalyShowcase
Int -> ReadS LogAnomalyShowcase
ReadS [LogAnomalyShowcase]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LogAnomalyShowcase]
$creadListPrec :: ReadPrec [LogAnomalyShowcase]
readPrec :: ReadPrec LogAnomalyShowcase
$creadPrec :: ReadPrec LogAnomalyShowcase
readList :: ReadS [LogAnomalyShowcase]
$creadList :: ReadS [LogAnomalyShowcase]
readsPrec :: Int -> ReadS LogAnomalyShowcase
$creadsPrec :: Int -> ReadS LogAnomalyShowcase
Prelude.Read, Int -> LogAnomalyShowcase -> ShowS
[LogAnomalyShowcase] -> ShowS
LogAnomalyShowcase -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LogAnomalyShowcase] -> ShowS
$cshowList :: [LogAnomalyShowcase] -> ShowS
show :: LogAnomalyShowcase -> String
$cshow :: LogAnomalyShowcase -> String
showsPrec :: Int -> LogAnomalyShowcase -> ShowS
$cshowsPrec :: Int -> LogAnomalyShowcase -> ShowS
Prelude.Show, forall x. Rep LogAnomalyShowcase x -> LogAnomalyShowcase
forall x. LogAnomalyShowcase -> Rep LogAnomalyShowcase x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LogAnomalyShowcase x -> LogAnomalyShowcase
$cfrom :: forall x. LogAnomalyShowcase -> Rep LogAnomalyShowcase x
Prelude.Generic)
newLogAnomalyShowcase ::
LogAnomalyShowcase
newLogAnomalyShowcase :: LogAnomalyShowcase
newLogAnomalyShowcase =
LogAnomalyShowcase'
{ $sel:logAnomalyClasses:LogAnomalyShowcase' :: Maybe [LogAnomalyClass]
logAnomalyClasses =
forall a. Maybe a
Prelude.Nothing
}
logAnomalyShowcase_logAnomalyClasses :: Lens.Lens' LogAnomalyShowcase (Prelude.Maybe [LogAnomalyClass])
logAnomalyShowcase_logAnomalyClasses :: Lens' LogAnomalyShowcase (Maybe [LogAnomalyClass])
logAnomalyShowcase_logAnomalyClasses = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LogAnomalyShowcase' {Maybe [LogAnomalyClass]
logAnomalyClasses :: Maybe [LogAnomalyClass]
$sel:logAnomalyClasses:LogAnomalyShowcase' :: LogAnomalyShowcase -> Maybe [LogAnomalyClass]
logAnomalyClasses} -> Maybe [LogAnomalyClass]
logAnomalyClasses) (\s :: LogAnomalyShowcase
s@LogAnomalyShowcase' {} Maybe [LogAnomalyClass]
a -> LogAnomalyShowcase
s {$sel:logAnomalyClasses:LogAnomalyShowcase' :: Maybe [LogAnomalyClass]
logAnomalyClasses = Maybe [LogAnomalyClass]
a} :: LogAnomalyShowcase) 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 LogAnomalyShowcase where
parseJSON :: Value -> Parser LogAnomalyShowcase
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"LogAnomalyShowcase"
( \Object
x ->
Maybe [LogAnomalyClass] -> LogAnomalyShowcase
LogAnomalyShowcase'
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
"LogAnomalyClasses"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
)
instance Prelude.Hashable LogAnomalyShowcase where
hashWithSalt :: Int -> LogAnomalyShowcase -> Int
hashWithSalt Int
_salt LogAnomalyShowcase' {Maybe [LogAnomalyClass]
logAnomalyClasses :: Maybe [LogAnomalyClass]
$sel:logAnomalyClasses:LogAnomalyShowcase' :: LogAnomalyShowcase -> Maybe [LogAnomalyClass]
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [LogAnomalyClass]
logAnomalyClasses
instance Prelude.NFData LogAnomalyShowcase where
rnf :: LogAnomalyShowcase -> ()
rnf LogAnomalyShowcase' {Maybe [LogAnomalyClass]
logAnomalyClasses :: Maybe [LogAnomalyClass]
$sel:logAnomalyClasses:LogAnomalyShowcase' :: LogAnomalyShowcase -> Maybe [LogAnomalyClass]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [LogAnomalyClass]
logAnomalyClasses