{-# 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.ResourceQuotas where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.ElasticBeanstalk.Types.ResourceQuota
import qualified Amazonka.Prelude as Prelude
data ResourceQuotas = ResourceQuotas'
{
ResourceQuotas -> Maybe ResourceQuota
applicationQuota :: Prelude.Maybe ResourceQuota,
ResourceQuotas -> Maybe ResourceQuota
applicationVersionQuota :: Prelude.Maybe ResourceQuota,
ResourceQuotas -> Maybe ResourceQuota
configurationTemplateQuota :: Prelude.Maybe ResourceQuota,
ResourceQuotas -> Maybe ResourceQuota
customPlatformQuota :: Prelude.Maybe ResourceQuota,
ResourceQuotas -> Maybe ResourceQuota
environmentQuota :: Prelude.Maybe ResourceQuota
}
deriving (ResourceQuotas -> ResourceQuotas -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ResourceQuotas -> ResourceQuotas -> Bool
$c/= :: ResourceQuotas -> ResourceQuotas -> Bool
== :: ResourceQuotas -> ResourceQuotas -> Bool
$c== :: ResourceQuotas -> ResourceQuotas -> Bool
Prelude.Eq, ReadPrec [ResourceQuotas]
ReadPrec ResourceQuotas
Int -> ReadS ResourceQuotas
ReadS [ResourceQuotas]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ResourceQuotas]
$creadListPrec :: ReadPrec [ResourceQuotas]
readPrec :: ReadPrec ResourceQuotas
$creadPrec :: ReadPrec ResourceQuotas
readList :: ReadS [ResourceQuotas]
$creadList :: ReadS [ResourceQuotas]
readsPrec :: Int -> ReadS ResourceQuotas
$creadsPrec :: Int -> ReadS ResourceQuotas
Prelude.Read, Int -> ResourceQuotas -> ShowS
[ResourceQuotas] -> ShowS
ResourceQuotas -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ResourceQuotas] -> ShowS
$cshowList :: [ResourceQuotas] -> ShowS
show :: ResourceQuotas -> String
$cshow :: ResourceQuotas -> String
showsPrec :: Int -> ResourceQuotas -> ShowS
$cshowsPrec :: Int -> ResourceQuotas -> ShowS
Prelude.Show, forall x. Rep ResourceQuotas x -> ResourceQuotas
forall x. ResourceQuotas -> Rep ResourceQuotas x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ResourceQuotas x -> ResourceQuotas
$cfrom :: forall x. ResourceQuotas -> Rep ResourceQuotas x
Prelude.Generic)
newResourceQuotas ::
ResourceQuotas
newResourceQuotas :: ResourceQuotas
newResourceQuotas =
ResourceQuotas'
{ $sel:applicationQuota:ResourceQuotas' :: Maybe ResourceQuota
applicationQuota = forall a. Maybe a
Prelude.Nothing,
$sel:applicationVersionQuota:ResourceQuotas' :: Maybe ResourceQuota
applicationVersionQuota = forall a. Maybe a
Prelude.Nothing,
$sel:configurationTemplateQuota:ResourceQuotas' :: Maybe ResourceQuota
configurationTemplateQuota = forall a. Maybe a
Prelude.Nothing,
$sel:customPlatformQuota:ResourceQuotas' :: Maybe ResourceQuota
customPlatformQuota = forall a. Maybe a
Prelude.Nothing,
$sel:environmentQuota:ResourceQuotas' :: Maybe ResourceQuota
environmentQuota = forall a. Maybe a
Prelude.Nothing
}
resourceQuotas_applicationQuota :: Lens.Lens' ResourceQuotas (Prelude.Maybe ResourceQuota)
resourceQuotas_applicationQuota :: Lens' ResourceQuotas (Maybe ResourceQuota)
resourceQuotas_applicationQuota = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceQuotas' {Maybe ResourceQuota
applicationQuota :: Maybe ResourceQuota
$sel:applicationQuota:ResourceQuotas' :: ResourceQuotas -> Maybe ResourceQuota
applicationQuota} -> Maybe ResourceQuota
applicationQuota) (\s :: ResourceQuotas
s@ResourceQuotas' {} Maybe ResourceQuota
a -> ResourceQuotas
s {$sel:applicationQuota:ResourceQuotas' :: Maybe ResourceQuota
applicationQuota = Maybe ResourceQuota
a} :: ResourceQuotas)
resourceQuotas_applicationVersionQuota :: Lens.Lens' ResourceQuotas (Prelude.Maybe ResourceQuota)
resourceQuotas_applicationVersionQuota :: Lens' ResourceQuotas (Maybe ResourceQuota)
resourceQuotas_applicationVersionQuota = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceQuotas' {Maybe ResourceQuota
applicationVersionQuota :: Maybe ResourceQuota
$sel:applicationVersionQuota:ResourceQuotas' :: ResourceQuotas -> Maybe ResourceQuota
applicationVersionQuota} -> Maybe ResourceQuota
applicationVersionQuota) (\s :: ResourceQuotas
s@ResourceQuotas' {} Maybe ResourceQuota
a -> ResourceQuotas
s {$sel:applicationVersionQuota:ResourceQuotas' :: Maybe ResourceQuota
applicationVersionQuota = Maybe ResourceQuota
a} :: ResourceQuotas)
resourceQuotas_configurationTemplateQuota :: Lens.Lens' ResourceQuotas (Prelude.Maybe ResourceQuota)
resourceQuotas_configurationTemplateQuota :: Lens' ResourceQuotas (Maybe ResourceQuota)
resourceQuotas_configurationTemplateQuota = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceQuotas' {Maybe ResourceQuota
configurationTemplateQuota :: Maybe ResourceQuota
$sel:configurationTemplateQuota:ResourceQuotas' :: ResourceQuotas -> Maybe ResourceQuota
configurationTemplateQuota} -> Maybe ResourceQuota
configurationTemplateQuota) (\s :: ResourceQuotas
s@ResourceQuotas' {} Maybe ResourceQuota
a -> ResourceQuotas
s {$sel:configurationTemplateQuota:ResourceQuotas' :: Maybe ResourceQuota
configurationTemplateQuota = Maybe ResourceQuota
a} :: ResourceQuotas)
resourceQuotas_customPlatformQuota :: Lens.Lens' ResourceQuotas (Prelude.Maybe ResourceQuota)
resourceQuotas_customPlatformQuota :: Lens' ResourceQuotas (Maybe ResourceQuota)
resourceQuotas_customPlatformQuota = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceQuotas' {Maybe ResourceQuota
customPlatformQuota :: Maybe ResourceQuota
$sel:customPlatformQuota:ResourceQuotas' :: ResourceQuotas -> Maybe ResourceQuota
customPlatformQuota} -> Maybe ResourceQuota
customPlatformQuota) (\s :: ResourceQuotas
s@ResourceQuotas' {} Maybe ResourceQuota
a -> ResourceQuotas
s {$sel:customPlatformQuota:ResourceQuotas' :: Maybe ResourceQuota
customPlatformQuota = Maybe ResourceQuota
a} :: ResourceQuotas)
resourceQuotas_environmentQuota :: Lens.Lens' ResourceQuotas (Prelude.Maybe ResourceQuota)
resourceQuotas_environmentQuota :: Lens' ResourceQuotas (Maybe ResourceQuota)
resourceQuotas_environmentQuota = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceQuotas' {Maybe ResourceQuota
environmentQuota :: Maybe ResourceQuota
$sel:environmentQuota:ResourceQuotas' :: ResourceQuotas -> Maybe ResourceQuota
environmentQuota} -> Maybe ResourceQuota
environmentQuota) (\s :: ResourceQuotas
s@ResourceQuotas' {} Maybe ResourceQuota
a -> ResourceQuotas
s {$sel:environmentQuota:ResourceQuotas' :: Maybe ResourceQuota
environmentQuota = Maybe ResourceQuota
a} :: ResourceQuotas)
instance Data.FromXML ResourceQuotas where
parseXML :: [Node] -> Either String ResourceQuotas
parseXML [Node]
x =
Maybe ResourceQuota
-> Maybe ResourceQuota
-> Maybe ResourceQuota
-> Maybe ResourceQuota
-> Maybe ResourceQuota
-> ResourceQuotas
ResourceQuotas'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"ApplicationQuota")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"ApplicationVersionQuota")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"ConfigurationTemplateQuota")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"CustomPlatformQuota")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"EnvironmentQuota")
instance Prelude.Hashable ResourceQuotas where
hashWithSalt :: Int -> ResourceQuotas -> Int
hashWithSalt Int
_salt ResourceQuotas' {Maybe ResourceQuota
environmentQuota :: Maybe ResourceQuota
customPlatformQuota :: Maybe ResourceQuota
configurationTemplateQuota :: Maybe ResourceQuota
applicationVersionQuota :: Maybe ResourceQuota
applicationQuota :: Maybe ResourceQuota
$sel:environmentQuota:ResourceQuotas' :: ResourceQuotas -> Maybe ResourceQuota
$sel:customPlatformQuota:ResourceQuotas' :: ResourceQuotas -> Maybe ResourceQuota
$sel:configurationTemplateQuota:ResourceQuotas' :: ResourceQuotas -> Maybe ResourceQuota
$sel:applicationVersionQuota:ResourceQuotas' :: ResourceQuotas -> Maybe ResourceQuota
$sel:applicationQuota:ResourceQuotas' :: ResourceQuotas -> Maybe ResourceQuota
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ResourceQuota
applicationQuota
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ResourceQuota
applicationVersionQuota
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ResourceQuota
configurationTemplateQuota
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ResourceQuota
customPlatformQuota
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ResourceQuota
environmentQuota
instance Prelude.NFData ResourceQuotas where
rnf :: ResourceQuotas -> ()
rnf ResourceQuotas' {Maybe ResourceQuota
environmentQuota :: Maybe ResourceQuota
customPlatformQuota :: Maybe ResourceQuota
configurationTemplateQuota :: Maybe ResourceQuota
applicationVersionQuota :: Maybe ResourceQuota
applicationQuota :: Maybe ResourceQuota
$sel:environmentQuota:ResourceQuotas' :: ResourceQuotas -> Maybe ResourceQuota
$sel:customPlatformQuota:ResourceQuotas' :: ResourceQuotas -> Maybe ResourceQuota
$sel:configurationTemplateQuota:ResourceQuotas' :: ResourceQuotas -> Maybe ResourceQuota
$sel:applicationVersionQuota:ResourceQuotas' :: ResourceQuotas -> Maybe ResourceQuota
$sel:applicationQuota:ResourceQuotas' :: ResourceQuotas -> Maybe ResourceQuota
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe ResourceQuota
applicationQuota
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ResourceQuota
applicationVersionQuota
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ResourceQuota
configurationTemplateQuota
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ResourceQuota
customPlatformQuota
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ResourceQuota
environmentQuota