{-# 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.ElasticBeanstalk.Types.PlatformFilter 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 PlatformFilter = PlatformFilter'
{
PlatformFilter -> Maybe Text
operator :: Prelude.Maybe Prelude.Text,
PlatformFilter -> Maybe Text
type' :: Prelude.Maybe Prelude.Text,
PlatformFilter -> Maybe [Text]
values :: Prelude.Maybe [Prelude.Text]
}
deriving (PlatformFilter -> PlatformFilter -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PlatformFilter -> PlatformFilter -> Bool
$c/= :: PlatformFilter -> PlatformFilter -> Bool
== :: PlatformFilter -> PlatformFilter -> Bool
$c== :: PlatformFilter -> PlatformFilter -> Bool
Prelude.Eq, ReadPrec [PlatformFilter]
ReadPrec PlatformFilter
Int -> ReadS PlatformFilter
ReadS [PlatformFilter]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PlatformFilter]
$creadListPrec :: ReadPrec [PlatformFilter]
readPrec :: ReadPrec PlatformFilter
$creadPrec :: ReadPrec PlatformFilter
readList :: ReadS [PlatformFilter]
$creadList :: ReadS [PlatformFilter]
readsPrec :: Int -> ReadS PlatformFilter
$creadsPrec :: Int -> ReadS PlatformFilter
Prelude.Read, Int -> PlatformFilter -> ShowS
[PlatformFilter] -> ShowS
PlatformFilter -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PlatformFilter] -> ShowS
$cshowList :: [PlatformFilter] -> ShowS
show :: PlatformFilter -> String
$cshow :: PlatformFilter -> String
showsPrec :: Int -> PlatformFilter -> ShowS
$cshowsPrec :: Int -> PlatformFilter -> ShowS
Prelude.Show, forall x. Rep PlatformFilter x -> PlatformFilter
forall x. PlatformFilter -> Rep PlatformFilter x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PlatformFilter x -> PlatformFilter
$cfrom :: forall x. PlatformFilter -> Rep PlatformFilter x
Prelude.Generic)
newPlatformFilter ::
PlatformFilter
newPlatformFilter :: PlatformFilter
newPlatformFilter =
PlatformFilter'
{ $sel:operator:PlatformFilter' :: Maybe Text
operator = forall a. Maybe a
Prelude.Nothing,
$sel:type':PlatformFilter' :: Maybe Text
type' = forall a. Maybe a
Prelude.Nothing,
$sel:values:PlatformFilter' :: Maybe [Text]
values = forall a. Maybe a
Prelude.Nothing
}
platformFilter_operator :: Lens.Lens' PlatformFilter (Prelude.Maybe Prelude.Text)
platformFilter_operator :: Lens' PlatformFilter (Maybe Text)
platformFilter_operator = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PlatformFilter' {Maybe Text
operator :: Maybe Text
$sel:operator:PlatformFilter' :: PlatformFilter -> Maybe Text
operator} -> Maybe Text
operator) (\s :: PlatformFilter
s@PlatformFilter' {} Maybe Text
a -> PlatformFilter
s {$sel:operator:PlatformFilter' :: Maybe Text
operator = Maybe Text
a} :: PlatformFilter)
platformFilter_type :: Lens.Lens' PlatformFilter (Prelude.Maybe Prelude.Text)
platformFilter_type :: Lens' PlatformFilter (Maybe Text)
platformFilter_type = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PlatformFilter' {Maybe Text
type' :: Maybe Text
$sel:type':PlatformFilter' :: PlatformFilter -> Maybe Text
type'} -> Maybe Text
type') (\s :: PlatformFilter
s@PlatformFilter' {} Maybe Text
a -> PlatformFilter
s {$sel:type':PlatformFilter' :: Maybe Text
type' = Maybe Text
a} :: PlatformFilter)
platformFilter_values :: Lens.Lens' PlatformFilter (Prelude.Maybe [Prelude.Text])
platformFilter_values :: Lens' PlatformFilter (Maybe [Text])
platformFilter_values = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PlatformFilter' {Maybe [Text]
values :: Maybe [Text]
$sel:values:PlatformFilter' :: PlatformFilter -> Maybe [Text]
values} -> Maybe [Text]
values) (\s :: PlatformFilter
s@PlatformFilter' {} Maybe [Text]
a -> PlatformFilter
s {$sel:values:PlatformFilter' :: Maybe [Text]
values = Maybe [Text]
a} :: PlatformFilter) 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 PlatformFilter where
hashWithSalt :: Int -> PlatformFilter -> Int
hashWithSalt Int
_salt PlatformFilter' {Maybe [Text]
Maybe Text
values :: Maybe [Text]
type' :: Maybe Text
operator :: Maybe Text
$sel:values:PlatformFilter' :: PlatformFilter -> Maybe [Text]
$sel:type':PlatformFilter' :: PlatformFilter -> Maybe Text
$sel:operator:PlatformFilter' :: PlatformFilter -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
operator
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
type'
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
values
instance Prelude.NFData PlatformFilter where
rnf :: PlatformFilter -> ()
rnf PlatformFilter' {Maybe [Text]
Maybe Text
values :: Maybe [Text]
type' :: Maybe Text
operator :: Maybe Text
$sel:values:PlatformFilter' :: PlatformFilter -> Maybe [Text]
$sel:type':PlatformFilter' :: PlatformFilter -> Maybe Text
$sel:operator:PlatformFilter' :: PlatformFilter -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
operator
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
type'
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
values
instance Data.ToQuery PlatformFilter where
toQuery :: PlatformFilter -> QueryString
toQuery PlatformFilter' {Maybe [Text]
Maybe Text
values :: Maybe [Text]
type' :: Maybe Text
operator :: Maybe Text
$sel:values:PlatformFilter' :: PlatformFilter -> Maybe [Text]
$sel:type':PlatformFilter' :: PlatformFilter -> Maybe Text
$sel:operator:PlatformFilter' :: PlatformFilter -> Maybe Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Operator" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
operator,
ByteString
"Type" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
type',
ByteString
"Values"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: forall a. ToQuery a => a -> QueryString
Data.toQuery
(forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"member" forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
values)
]