{-# 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.UpdateCloudFormationCollectionFilter 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 UpdateCloudFormationCollectionFilter = UpdateCloudFormationCollectionFilter'
{
UpdateCloudFormationCollectionFilter -> Maybe [Text]
stackNames :: Prelude.Maybe [Prelude.Text]
}
deriving (UpdateCloudFormationCollectionFilter
-> UpdateCloudFormationCollectionFilter -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateCloudFormationCollectionFilter
-> UpdateCloudFormationCollectionFilter -> Bool
$c/= :: UpdateCloudFormationCollectionFilter
-> UpdateCloudFormationCollectionFilter -> Bool
== :: UpdateCloudFormationCollectionFilter
-> UpdateCloudFormationCollectionFilter -> Bool
$c== :: UpdateCloudFormationCollectionFilter
-> UpdateCloudFormationCollectionFilter -> Bool
Prelude.Eq, ReadPrec [UpdateCloudFormationCollectionFilter]
ReadPrec UpdateCloudFormationCollectionFilter
Int -> ReadS UpdateCloudFormationCollectionFilter
ReadS [UpdateCloudFormationCollectionFilter]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateCloudFormationCollectionFilter]
$creadListPrec :: ReadPrec [UpdateCloudFormationCollectionFilter]
readPrec :: ReadPrec UpdateCloudFormationCollectionFilter
$creadPrec :: ReadPrec UpdateCloudFormationCollectionFilter
readList :: ReadS [UpdateCloudFormationCollectionFilter]
$creadList :: ReadS [UpdateCloudFormationCollectionFilter]
readsPrec :: Int -> ReadS UpdateCloudFormationCollectionFilter
$creadsPrec :: Int -> ReadS UpdateCloudFormationCollectionFilter
Prelude.Read, Int -> UpdateCloudFormationCollectionFilter -> ShowS
[UpdateCloudFormationCollectionFilter] -> ShowS
UpdateCloudFormationCollectionFilter -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateCloudFormationCollectionFilter] -> ShowS
$cshowList :: [UpdateCloudFormationCollectionFilter] -> ShowS
show :: UpdateCloudFormationCollectionFilter -> String
$cshow :: UpdateCloudFormationCollectionFilter -> String
showsPrec :: Int -> UpdateCloudFormationCollectionFilter -> ShowS
$cshowsPrec :: Int -> UpdateCloudFormationCollectionFilter -> ShowS
Prelude.Show, forall x.
Rep UpdateCloudFormationCollectionFilter x
-> UpdateCloudFormationCollectionFilter
forall x.
UpdateCloudFormationCollectionFilter
-> Rep UpdateCloudFormationCollectionFilter x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateCloudFormationCollectionFilter x
-> UpdateCloudFormationCollectionFilter
$cfrom :: forall x.
UpdateCloudFormationCollectionFilter
-> Rep UpdateCloudFormationCollectionFilter x
Prelude.Generic)
newUpdateCloudFormationCollectionFilter ::
UpdateCloudFormationCollectionFilter
newUpdateCloudFormationCollectionFilter :: UpdateCloudFormationCollectionFilter
newUpdateCloudFormationCollectionFilter =
UpdateCloudFormationCollectionFilter'
{ $sel:stackNames:UpdateCloudFormationCollectionFilter' :: Maybe [Text]
stackNames =
forall a. Maybe a
Prelude.Nothing
}
updateCloudFormationCollectionFilter_stackNames :: Lens.Lens' UpdateCloudFormationCollectionFilter (Prelude.Maybe [Prelude.Text])
updateCloudFormationCollectionFilter_stackNames :: Lens' UpdateCloudFormationCollectionFilter (Maybe [Text])
updateCloudFormationCollectionFilter_stackNames = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCloudFormationCollectionFilter' {Maybe [Text]
stackNames :: Maybe [Text]
$sel:stackNames:UpdateCloudFormationCollectionFilter' :: UpdateCloudFormationCollectionFilter -> Maybe [Text]
stackNames} -> Maybe [Text]
stackNames) (\s :: UpdateCloudFormationCollectionFilter
s@UpdateCloudFormationCollectionFilter' {} Maybe [Text]
a -> UpdateCloudFormationCollectionFilter
s {$sel:stackNames:UpdateCloudFormationCollectionFilter' :: Maybe [Text]
stackNames = Maybe [Text]
a} :: UpdateCloudFormationCollectionFilter) 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
Prelude.Hashable
UpdateCloudFormationCollectionFilter
where
hashWithSalt :: Int -> UpdateCloudFormationCollectionFilter -> Int
hashWithSalt
Int
_salt
UpdateCloudFormationCollectionFilter' {Maybe [Text]
stackNames :: Maybe [Text]
$sel:stackNames:UpdateCloudFormationCollectionFilter' :: UpdateCloudFormationCollectionFilter -> Maybe [Text]
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
stackNames
instance
Prelude.NFData
UpdateCloudFormationCollectionFilter
where
rnf :: UpdateCloudFormationCollectionFilter -> ()
rnf UpdateCloudFormationCollectionFilter' {Maybe [Text]
stackNames :: Maybe [Text]
$sel:stackNames:UpdateCloudFormationCollectionFilter' :: UpdateCloudFormationCollectionFilter -> Maybe [Text]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
stackNames
instance
Data.ToJSON
UpdateCloudFormationCollectionFilter
where
toJSON :: UpdateCloudFormationCollectionFilter -> Value
toJSON UpdateCloudFormationCollectionFilter' {Maybe [Text]
stackNames :: Maybe [Text]
$sel:stackNames:UpdateCloudFormationCollectionFilter' :: UpdateCloudFormationCollectionFilter -> Maybe [Text]
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Key
"StackNames" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
stackNames]
)