{-# 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.Shield.Types.ProtectionGroupArbitraryPatternLimits where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ProtectionGroupArbitraryPatternLimits = ProtectionGroupArbitraryPatternLimits'
{
ProtectionGroupArbitraryPatternLimits -> Integer
maxMembers :: Prelude.Integer
}
deriving (ProtectionGroupArbitraryPatternLimits
-> ProtectionGroupArbitraryPatternLimits -> Bool
(ProtectionGroupArbitraryPatternLimits
-> ProtectionGroupArbitraryPatternLimits -> Bool)
-> (ProtectionGroupArbitraryPatternLimits
-> ProtectionGroupArbitraryPatternLimits -> Bool)
-> Eq ProtectionGroupArbitraryPatternLimits
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ProtectionGroupArbitraryPatternLimits
-> ProtectionGroupArbitraryPatternLimits -> Bool
$c/= :: ProtectionGroupArbitraryPatternLimits
-> ProtectionGroupArbitraryPatternLimits -> Bool
== :: ProtectionGroupArbitraryPatternLimits
-> ProtectionGroupArbitraryPatternLimits -> Bool
$c== :: ProtectionGroupArbitraryPatternLimits
-> ProtectionGroupArbitraryPatternLimits -> Bool
Prelude.Eq, ReadPrec [ProtectionGroupArbitraryPatternLimits]
ReadPrec ProtectionGroupArbitraryPatternLimits
Int -> ReadS ProtectionGroupArbitraryPatternLimits
ReadS [ProtectionGroupArbitraryPatternLimits]
(Int -> ReadS ProtectionGroupArbitraryPatternLimits)
-> ReadS [ProtectionGroupArbitraryPatternLimits]
-> ReadPrec ProtectionGroupArbitraryPatternLimits
-> ReadPrec [ProtectionGroupArbitraryPatternLimits]
-> Read ProtectionGroupArbitraryPatternLimits
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ProtectionGroupArbitraryPatternLimits]
$creadListPrec :: ReadPrec [ProtectionGroupArbitraryPatternLimits]
readPrec :: ReadPrec ProtectionGroupArbitraryPatternLimits
$creadPrec :: ReadPrec ProtectionGroupArbitraryPatternLimits
readList :: ReadS [ProtectionGroupArbitraryPatternLimits]
$creadList :: ReadS [ProtectionGroupArbitraryPatternLimits]
readsPrec :: Int -> ReadS ProtectionGroupArbitraryPatternLimits
$creadsPrec :: Int -> ReadS ProtectionGroupArbitraryPatternLimits
Prelude.Read, Int -> ProtectionGroupArbitraryPatternLimits -> ShowS
[ProtectionGroupArbitraryPatternLimits] -> ShowS
ProtectionGroupArbitraryPatternLimits -> String
(Int -> ProtectionGroupArbitraryPatternLimits -> ShowS)
-> (ProtectionGroupArbitraryPatternLimits -> String)
-> ([ProtectionGroupArbitraryPatternLimits] -> ShowS)
-> Show ProtectionGroupArbitraryPatternLimits
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ProtectionGroupArbitraryPatternLimits] -> ShowS
$cshowList :: [ProtectionGroupArbitraryPatternLimits] -> ShowS
show :: ProtectionGroupArbitraryPatternLimits -> String
$cshow :: ProtectionGroupArbitraryPatternLimits -> String
showsPrec :: Int -> ProtectionGroupArbitraryPatternLimits -> ShowS
$cshowsPrec :: Int -> ProtectionGroupArbitraryPatternLimits -> ShowS
Prelude.Show, (forall x.
ProtectionGroupArbitraryPatternLimits
-> Rep ProtectionGroupArbitraryPatternLimits x)
-> (forall x.
Rep ProtectionGroupArbitraryPatternLimits x
-> ProtectionGroupArbitraryPatternLimits)
-> Generic ProtectionGroupArbitraryPatternLimits
forall x.
Rep ProtectionGroupArbitraryPatternLimits x
-> ProtectionGroupArbitraryPatternLimits
forall x.
ProtectionGroupArbitraryPatternLimits
-> Rep ProtectionGroupArbitraryPatternLimits x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ProtectionGroupArbitraryPatternLimits x
-> ProtectionGroupArbitraryPatternLimits
$cfrom :: forall x.
ProtectionGroupArbitraryPatternLimits
-> Rep ProtectionGroupArbitraryPatternLimits x
Prelude.Generic)
newProtectionGroupArbitraryPatternLimits ::
Prelude.Integer ->
ProtectionGroupArbitraryPatternLimits
newProtectionGroupArbitraryPatternLimits :: Integer -> ProtectionGroupArbitraryPatternLimits
newProtectionGroupArbitraryPatternLimits Integer
pMaxMembers_ =
ProtectionGroupArbitraryPatternLimits' :: Integer -> ProtectionGroupArbitraryPatternLimits
ProtectionGroupArbitraryPatternLimits'
{ $sel:maxMembers:ProtectionGroupArbitraryPatternLimits' :: Integer
maxMembers =
Integer
pMaxMembers_
}
protectionGroupArbitraryPatternLimits_maxMembers :: Lens.Lens' ProtectionGroupArbitraryPatternLimits Prelude.Integer
protectionGroupArbitraryPatternLimits_maxMembers :: (Integer -> f Integer)
-> ProtectionGroupArbitraryPatternLimits
-> f ProtectionGroupArbitraryPatternLimits
protectionGroupArbitraryPatternLimits_maxMembers = (ProtectionGroupArbitraryPatternLimits -> Integer)
-> (ProtectionGroupArbitraryPatternLimits
-> Integer -> ProtectionGroupArbitraryPatternLimits)
-> Lens
ProtectionGroupArbitraryPatternLimits
ProtectionGroupArbitraryPatternLimits
Integer
Integer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProtectionGroupArbitraryPatternLimits' {Integer
maxMembers :: Integer
$sel:maxMembers:ProtectionGroupArbitraryPatternLimits' :: ProtectionGroupArbitraryPatternLimits -> Integer
maxMembers} -> Integer
maxMembers) (\s :: ProtectionGroupArbitraryPatternLimits
s@ProtectionGroupArbitraryPatternLimits' {} Integer
a -> ProtectionGroupArbitraryPatternLimits
s {$sel:maxMembers:ProtectionGroupArbitraryPatternLimits' :: Integer
maxMembers = Integer
a} :: ProtectionGroupArbitraryPatternLimits)
instance
Core.FromJSON
ProtectionGroupArbitraryPatternLimits
where
parseJSON :: Value -> Parser ProtectionGroupArbitraryPatternLimits
parseJSON =
String
-> (Object -> Parser ProtectionGroupArbitraryPatternLimits)
-> Value
-> Parser ProtectionGroupArbitraryPatternLimits
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ProtectionGroupArbitraryPatternLimits"
( \Object
x ->
Integer -> ProtectionGroupArbitraryPatternLimits
ProtectionGroupArbitraryPatternLimits'
(Integer -> ProtectionGroupArbitraryPatternLimits)
-> Parser Integer -> Parser ProtectionGroupArbitraryPatternLimits
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser Integer
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"MaxMembers")
)
instance
Prelude.Hashable
ProtectionGroupArbitraryPatternLimits
instance
Prelude.NFData
ProtectionGroupArbitraryPatternLimits