{-# 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.CloudFormationCollectionFilter 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 CloudFormationCollectionFilter = CloudFormationCollectionFilter'
{
CloudFormationCollectionFilter -> Maybe [Text]
stackNames :: Prelude.Maybe [Prelude.Text]
}
deriving (CloudFormationCollectionFilter
-> CloudFormationCollectionFilter -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CloudFormationCollectionFilter
-> CloudFormationCollectionFilter -> Bool
$c/= :: CloudFormationCollectionFilter
-> CloudFormationCollectionFilter -> Bool
== :: CloudFormationCollectionFilter
-> CloudFormationCollectionFilter -> Bool
$c== :: CloudFormationCollectionFilter
-> CloudFormationCollectionFilter -> Bool
Prelude.Eq, ReadPrec [CloudFormationCollectionFilter]
ReadPrec CloudFormationCollectionFilter
Int -> ReadS CloudFormationCollectionFilter
ReadS [CloudFormationCollectionFilter]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CloudFormationCollectionFilter]
$creadListPrec :: ReadPrec [CloudFormationCollectionFilter]
readPrec :: ReadPrec CloudFormationCollectionFilter
$creadPrec :: ReadPrec CloudFormationCollectionFilter
readList :: ReadS [CloudFormationCollectionFilter]
$creadList :: ReadS [CloudFormationCollectionFilter]
readsPrec :: Int -> ReadS CloudFormationCollectionFilter
$creadsPrec :: Int -> ReadS CloudFormationCollectionFilter
Prelude.Read, Int -> CloudFormationCollectionFilter -> ShowS
[CloudFormationCollectionFilter] -> ShowS
CloudFormationCollectionFilter -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CloudFormationCollectionFilter] -> ShowS
$cshowList :: [CloudFormationCollectionFilter] -> ShowS
show :: CloudFormationCollectionFilter -> String
$cshow :: CloudFormationCollectionFilter -> String
showsPrec :: Int -> CloudFormationCollectionFilter -> ShowS
$cshowsPrec :: Int -> CloudFormationCollectionFilter -> ShowS
Prelude.Show, forall x.
Rep CloudFormationCollectionFilter x
-> CloudFormationCollectionFilter
forall x.
CloudFormationCollectionFilter
-> Rep CloudFormationCollectionFilter x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CloudFormationCollectionFilter x
-> CloudFormationCollectionFilter
$cfrom :: forall x.
CloudFormationCollectionFilter
-> Rep CloudFormationCollectionFilter x
Prelude.Generic)
newCloudFormationCollectionFilter ::
CloudFormationCollectionFilter
newCloudFormationCollectionFilter :: CloudFormationCollectionFilter
newCloudFormationCollectionFilter =
CloudFormationCollectionFilter'
{ $sel:stackNames:CloudFormationCollectionFilter' :: Maybe [Text]
stackNames =
forall a. Maybe a
Prelude.Nothing
}
cloudFormationCollectionFilter_stackNames :: Lens.Lens' CloudFormationCollectionFilter (Prelude.Maybe [Prelude.Text])
cloudFormationCollectionFilter_stackNames :: Lens' CloudFormationCollectionFilter (Maybe [Text])
cloudFormationCollectionFilter_stackNames = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloudFormationCollectionFilter' {Maybe [Text]
stackNames :: Maybe [Text]
$sel:stackNames:CloudFormationCollectionFilter' :: CloudFormationCollectionFilter -> Maybe [Text]
stackNames} -> Maybe [Text]
stackNames) (\s :: CloudFormationCollectionFilter
s@CloudFormationCollectionFilter' {} Maybe [Text]
a -> CloudFormationCollectionFilter
s {$sel:stackNames:CloudFormationCollectionFilter' :: Maybe [Text]
stackNames = Maybe [Text]
a} :: CloudFormationCollectionFilter) 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 CloudFormationCollectionFilter where
parseJSON :: Value -> Parser CloudFormationCollectionFilter
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"CloudFormationCollectionFilter"
( \Object
x ->
Maybe [Text] -> CloudFormationCollectionFilter
CloudFormationCollectionFilter'
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
"StackNames" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
)
instance
Prelude.Hashable
CloudFormationCollectionFilter
where
hashWithSalt :: Int -> CloudFormationCollectionFilter -> Int
hashWithSalt
Int
_salt
CloudFormationCollectionFilter' {Maybe [Text]
stackNames :: Maybe [Text]
$sel:stackNames:CloudFormationCollectionFilter' :: CloudFormationCollectionFilter -> Maybe [Text]
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
stackNames
instance
Prelude.NFData
CloudFormationCollectionFilter
where
rnf :: CloudFormationCollectionFilter -> ()
rnf CloudFormationCollectionFilter' {Maybe [Text]
stackNames :: Maybe [Text]
$sel:stackNames:CloudFormationCollectionFilter' :: CloudFormationCollectionFilter -> Maybe [Text]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
stackNames