{-# 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.Lightsail.Types.Bundle where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Lightsail.Types.InstancePlatform
import qualified Amazonka.Prelude as Prelude
data Bundle = Bundle'
{
Bundle -> Maybe Int
cpuCount :: Prelude.Maybe Prelude.Int,
Bundle -> Maybe Int
transferPerMonthInGb :: Prelude.Maybe Prelude.Int,
Bundle -> Maybe Text
bundleId :: Prelude.Maybe Prelude.Text,
Bundle -> Maybe Text
instanceType :: Prelude.Maybe Prelude.Text,
Bundle -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
Bundle -> Maybe Int
power :: Prelude.Maybe Prelude.Int,
Bundle -> Maybe Int
diskSizeInGb :: Prelude.Maybe Prelude.Int,
Bundle -> Maybe [InstancePlatform]
supportedPlatforms :: Prelude.Maybe [InstancePlatform],
Bundle -> Maybe Double
price :: Prelude.Maybe Prelude.Double,
Bundle -> Maybe Bool
isActive :: Prelude.Maybe Prelude.Bool,
Bundle -> Maybe Double
ramSizeInGb :: Prelude.Maybe Prelude.Double
}
deriving (Bundle -> Bundle -> Bool
(Bundle -> Bundle -> Bool)
-> (Bundle -> Bundle -> Bool) -> Eq Bundle
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Bundle -> Bundle -> Bool
$c/= :: Bundle -> Bundle -> Bool
== :: Bundle -> Bundle -> Bool
$c== :: Bundle -> Bundle -> Bool
Prelude.Eq, ReadPrec [Bundle]
ReadPrec Bundle
Int -> ReadS Bundle
ReadS [Bundle]
(Int -> ReadS Bundle)
-> ReadS [Bundle]
-> ReadPrec Bundle
-> ReadPrec [Bundle]
-> Read Bundle
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Bundle]
$creadListPrec :: ReadPrec [Bundle]
readPrec :: ReadPrec Bundle
$creadPrec :: ReadPrec Bundle
readList :: ReadS [Bundle]
$creadList :: ReadS [Bundle]
readsPrec :: Int -> ReadS Bundle
$creadsPrec :: Int -> ReadS Bundle
Prelude.Read, Int -> Bundle -> ShowS
[Bundle] -> ShowS
Bundle -> String
(Int -> Bundle -> ShowS)
-> (Bundle -> String) -> ([Bundle] -> ShowS) -> Show Bundle
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Bundle] -> ShowS
$cshowList :: [Bundle] -> ShowS
show :: Bundle -> String
$cshow :: Bundle -> String
showsPrec :: Int -> Bundle -> ShowS
$cshowsPrec :: Int -> Bundle -> ShowS
Prelude.Show, (forall x. Bundle -> Rep Bundle x)
-> (forall x. Rep Bundle x -> Bundle) -> Generic Bundle
forall x. Rep Bundle x -> Bundle
forall x. Bundle -> Rep Bundle x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Bundle x -> Bundle
$cfrom :: forall x. Bundle -> Rep Bundle x
Prelude.Generic)
newBundle ::
Bundle
newBundle :: Bundle
newBundle =
Bundle' :: Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe [InstancePlatform]
-> Maybe Double
-> Maybe Bool
-> Maybe Double
-> Bundle
Bundle'
{ $sel:cpuCount:Bundle' :: Maybe Int
cpuCount = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:transferPerMonthInGb:Bundle' :: Maybe Int
transferPerMonthInGb = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:bundleId:Bundle' :: Maybe Text
bundleId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:instanceType:Bundle' :: Maybe Text
instanceType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:Bundle' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:power:Bundle' :: Maybe Int
power = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:diskSizeInGb:Bundle' :: Maybe Int
diskSizeInGb = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:supportedPlatforms:Bundle' :: Maybe [InstancePlatform]
supportedPlatforms = Maybe [InstancePlatform]
forall a. Maybe a
Prelude.Nothing,
$sel:price:Bundle' :: Maybe Double
price = Maybe Double
forall a. Maybe a
Prelude.Nothing,
$sel:isActive:Bundle' :: Maybe Bool
isActive = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:ramSizeInGb:Bundle' :: Maybe Double
ramSizeInGb = Maybe Double
forall a. Maybe a
Prelude.Nothing
}
bundle_cpuCount :: Lens.Lens' Bundle (Prelude.Maybe Prelude.Int)
bundle_cpuCount :: (Maybe Int -> f (Maybe Int)) -> Bundle -> f Bundle
bundle_cpuCount = (Bundle -> Maybe Int)
-> (Bundle -> Maybe Int -> Bundle)
-> Lens Bundle Bundle (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Bundle' {Maybe Int
cpuCount :: Maybe Int
$sel:cpuCount:Bundle' :: Bundle -> Maybe Int
cpuCount} -> Maybe Int
cpuCount) (\s :: Bundle
s@Bundle' {} Maybe Int
a -> Bundle
s {$sel:cpuCount:Bundle' :: Maybe Int
cpuCount = Maybe Int
a} :: Bundle)
bundle_transferPerMonthInGb :: Lens.Lens' Bundle (Prelude.Maybe Prelude.Int)
bundle_transferPerMonthInGb :: (Maybe Int -> f (Maybe Int)) -> Bundle -> f Bundle
bundle_transferPerMonthInGb = (Bundle -> Maybe Int)
-> (Bundle -> Maybe Int -> Bundle)
-> Lens Bundle Bundle (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Bundle' {Maybe Int
transferPerMonthInGb :: Maybe Int
$sel:transferPerMonthInGb:Bundle' :: Bundle -> Maybe Int
transferPerMonthInGb} -> Maybe Int
transferPerMonthInGb) (\s :: Bundle
s@Bundle' {} Maybe Int
a -> Bundle
s {$sel:transferPerMonthInGb:Bundle' :: Maybe Int
transferPerMonthInGb = Maybe Int
a} :: Bundle)
bundle_bundleId :: Lens.Lens' Bundle (Prelude.Maybe Prelude.Text)
bundle_bundleId :: (Maybe Text -> f (Maybe Text)) -> Bundle -> f Bundle
bundle_bundleId = (Bundle -> Maybe Text)
-> (Bundle -> Maybe Text -> Bundle)
-> Lens Bundle Bundle (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Bundle' {Maybe Text
bundleId :: Maybe Text
$sel:bundleId:Bundle' :: Bundle -> Maybe Text
bundleId} -> Maybe Text
bundleId) (\s :: Bundle
s@Bundle' {} Maybe Text
a -> Bundle
s {$sel:bundleId:Bundle' :: Maybe Text
bundleId = Maybe Text
a} :: Bundle)
bundle_instanceType :: Lens.Lens' Bundle (Prelude.Maybe Prelude.Text)
bundle_instanceType :: (Maybe Text -> f (Maybe Text)) -> Bundle -> f Bundle
bundle_instanceType = (Bundle -> Maybe Text)
-> (Bundle -> Maybe Text -> Bundle)
-> Lens Bundle Bundle (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Bundle' {Maybe Text
instanceType :: Maybe Text
$sel:instanceType:Bundle' :: Bundle -> Maybe Text
instanceType} -> Maybe Text
instanceType) (\s :: Bundle
s@Bundle' {} Maybe Text
a -> Bundle
s {$sel:instanceType:Bundle' :: Maybe Text
instanceType = Maybe Text
a} :: Bundle)
bundle_name :: Lens.Lens' Bundle (Prelude.Maybe Prelude.Text)
bundle_name :: (Maybe Text -> f (Maybe Text)) -> Bundle -> f Bundle
bundle_name = (Bundle -> Maybe Text)
-> (Bundle -> Maybe Text -> Bundle)
-> Lens Bundle Bundle (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Bundle' {Maybe Text
name :: Maybe Text
$sel:name:Bundle' :: Bundle -> Maybe Text
name} -> Maybe Text
name) (\s :: Bundle
s@Bundle' {} Maybe Text
a -> Bundle
s {$sel:name:Bundle' :: Maybe Text
name = Maybe Text
a} :: Bundle)
bundle_power :: Lens.Lens' Bundle (Prelude.Maybe Prelude.Int)
bundle_power :: (Maybe Int -> f (Maybe Int)) -> Bundle -> f Bundle
bundle_power = (Bundle -> Maybe Int)
-> (Bundle -> Maybe Int -> Bundle)
-> Lens Bundle Bundle (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Bundle' {Maybe Int
power :: Maybe Int
$sel:power:Bundle' :: Bundle -> Maybe Int
power} -> Maybe Int
power) (\s :: Bundle
s@Bundle' {} Maybe Int
a -> Bundle
s {$sel:power:Bundle' :: Maybe Int
power = Maybe Int
a} :: Bundle)
bundle_diskSizeInGb :: Lens.Lens' Bundle (Prelude.Maybe Prelude.Int)
bundle_diskSizeInGb :: (Maybe Int -> f (Maybe Int)) -> Bundle -> f Bundle
bundle_diskSizeInGb = (Bundle -> Maybe Int)
-> (Bundle -> Maybe Int -> Bundle)
-> Lens Bundle Bundle (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Bundle' {Maybe Int
diskSizeInGb :: Maybe Int
$sel:diskSizeInGb:Bundle' :: Bundle -> Maybe Int
diskSizeInGb} -> Maybe Int
diskSizeInGb) (\s :: Bundle
s@Bundle' {} Maybe Int
a -> Bundle
s {$sel:diskSizeInGb:Bundle' :: Maybe Int
diskSizeInGb = Maybe Int
a} :: Bundle)
bundle_supportedPlatforms :: Lens.Lens' Bundle (Prelude.Maybe [InstancePlatform])
bundle_supportedPlatforms :: (Maybe [InstancePlatform] -> f (Maybe [InstancePlatform]))
-> Bundle -> f Bundle
bundle_supportedPlatforms = (Bundle -> Maybe [InstancePlatform])
-> (Bundle -> Maybe [InstancePlatform] -> Bundle)
-> Lens
Bundle Bundle (Maybe [InstancePlatform]) (Maybe [InstancePlatform])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Bundle' {Maybe [InstancePlatform]
supportedPlatforms :: Maybe [InstancePlatform]
$sel:supportedPlatforms:Bundle' :: Bundle -> Maybe [InstancePlatform]
supportedPlatforms} -> Maybe [InstancePlatform]
supportedPlatforms) (\s :: Bundle
s@Bundle' {} Maybe [InstancePlatform]
a -> Bundle
s {$sel:supportedPlatforms:Bundle' :: Maybe [InstancePlatform]
supportedPlatforms = Maybe [InstancePlatform]
a} :: Bundle) ((Maybe [InstancePlatform] -> f (Maybe [InstancePlatform]))
-> Bundle -> f Bundle)
-> ((Maybe [InstancePlatform] -> f (Maybe [InstancePlatform]))
-> Maybe [InstancePlatform] -> f (Maybe [InstancePlatform]))
-> (Maybe [InstancePlatform] -> f (Maybe [InstancePlatform]))
-> Bundle
-> f Bundle
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[InstancePlatform]
[InstancePlatform]
[InstancePlatform]
[InstancePlatform]
-> Iso
(Maybe [InstancePlatform])
(Maybe [InstancePlatform])
(Maybe [InstancePlatform])
(Maybe [InstancePlatform])
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 AnIso
[InstancePlatform]
[InstancePlatform]
[InstancePlatform]
[InstancePlatform]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
bundle_price :: Lens.Lens' Bundle (Prelude.Maybe Prelude.Double)
bundle_price :: (Maybe Double -> f (Maybe Double)) -> Bundle -> f Bundle
bundle_price = (Bundle -> Maybe Double)
-> (Bundle -> Maybe Double -> Bundle)
-> Lens Bundle Bundle (Maybe Double) (Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Bundle' {Maybe Double
price :: Maybe Double
$sel:price:Bundle' :: Bundle -> Maybe Double
price} -> Maybe Double
price) (\s :: Bundle
s@Bundle' {} Maybe Double
a -> Bundle
s {$sel:price:Bundle' :: Maybe Double
price = Maybe Double
a} :: Bundle)
bundle_isActive :: Lens.Lens' Bundle (Prelude.Maybe Prelude.Bool)
bundle_isActive :: (Maybe Bool -> f (Maybe Bool)) -> Bundle -> f Bundle
bundle_isActive = (Bundle -> Maybe Bool)
-> (Bundle -> Maybe Bool -> Bundle)
-> Lens Bundle Bundle (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Bundle' {Maybe Bool
isActive :: Maybe Bool
$sel:isActive:Bundle' :: Bundle -> Maybe Bool
isActive} -> Maybe Bool
isActive) (\s :: Bundle
s@Bundle' {} Maybe Bool
a -> Bundle
s {$sel:isActive:Bundle' :: Maybe Bool
isActive = Maybe Bool
a} :: Bundle)
bundle_ramSizeInGb :: Lens.Lens' Bundle (Prelude.Maybe Prelude.Double)
bundle_ramSizeInGb :: (Maybe Double -> f (Maybe Double)) -> Bundle -> f Bundle
bundle_ramSizeInGb = (Bundle -> Maybe Double)
-> (Bundle -> Maybe Double -> Bundle)
-> Lens Bundle Bundle (Maybe Double) (Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Bundle' {Maybe Double
ramSizeInGb :: Maybe Double
$sel:ramSizeInGb:Bundle' :: Bundle -> Maybe Double
ramSizeInGb} -> Maybe Double
ramSizeInGb) (\s :: Bundle
s@Bundle' {} Maybe Double
a -> Bundle
s {$sel:ramSizeInGb:Bundle' :: Maybe Double
ramSizeInGb = Maybe Double
a} :: Bundle)
instance Core.FromJSON Bundle where
parseJSON :: Value -> Parser Bundle
parseJSON =
String -> (Object -> Parser Bundle) -> Value -> Parser Bundle
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"Bundle"
( \Object
x ->
Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe [InstancePlatform]
-> Maybe Double
-> Maybe Bool
-> Maybe Double
-> Bundle
Bundle'
(Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe [InstancePlatform]
-> Maybe Double
-> Maybe Bool
-> Maybe Double
-> Bundle)
-> Parser (Maybe Int)
-> Parser
(Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe [InstancePlatform]
-> Maybe Double
-> Maybe Bool
-> Maybe Double
-> Bundle)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"cpuCount")
Parser
(Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe [InstancePlatform]
-> Maybe Double
-> Maybe Bool
-> Maybe Double
-> Bundle)
-> Parser (Maybe Int)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe [InstancePlatform]
-> Maybe Double
-> Maybe Bool
-> Maybe Double
-> Bundle)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"transferPerMonthInGb")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe [InstancePlatform]
-> Maybe Double
-> Maybe Bool
-> Maybe Double
-> Bundle)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe [InstancePlatform]
-> Maybe Double
-> Maybe Bool
-> Maybe Double
-> Bundle)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"bundleId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe [InstancePlatform]
-> Maybe Double
-> Maybe Bool
-> Maybe Double
-> Bundle)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe [InstancePlatform]
-> Maybe Double
-> Maybe Bool
-> Maybe Double
-> Bundle)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"instanceType")
Parser
(Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe [InstancePlatform]
-> Maybe Double
-> Maybe Bool
-> Maybe Double
-> Bundle)
-> Parser (Maybe Text)
-> Parser
(Maybe Int
-> Maybe Int
-> Maybe [InstancePlatform]
-> Maybe Double
-> Maybe Bool
-> Maybe Double
-> Bundle)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"name")
Parser
(Maybe Int
-> Maybe Int
-> Maybe [InstancePlatform]
-> Maybe Double
-> Maybe Bool
-> Maybe Double
-> Bundle)
-> Parser (Maybe Int)
-> Parser
(Maybe Int
-> Maybe [InstancePlatform]
-> Maybe Double
-> Maybe Bool
-> Maybe Double
-> Bundle)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"power")
Parser
(Maybe Int
-> Maybe [InstancePlatform]
-> Maybe Double
-> Maybe Bool
-> Maybe Double
-> Bundle)
-> Parser (Maybe Int)
-> Parser
(Maybe [InstancePlatform]
-> Maybe Double -> Maybe Bool -> Maybe Double -> Bundle)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"diskSizeInGb")
Parser
(Maybe [InstancePlatform]
-> Maybe Double -> Maybe Bool -> Maybe Double -> Bundle)
-> Parser (Maybe [InstancePlatform])
-> Parser (Maybe Double -> Maybe Bool -> Maybe Double -> Bundle)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [InstancePlatform]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"supportedPlatforms"
Parser (Maybe (Maybe [InstancePlatform]))
-> Maybe [InstancePlatform] -> Parser (Maybe [InstancePlatform])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [InstancePlatform]
forall a. Monoid a => a
Prelude.mempty
)
Parser (Maybe Double -> Maybe Bool -> Maybe Double -> Bundle)
-> Parser (Maybe Double)
-> Parser (Maybe Bool -> Maybe Double -> Bundle)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Double)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"price")
Parser (Maybe Bool -> Maybe Double -> Bundle)
-> Parser (Maybe Bool) -> Parser (Maybe Double -> Bundle)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"isActive")
Parser (Maybe Double -> Bundle)
-> Parser (Maybe Double) -> Parser Bundle
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Double)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ramSizeInGb")
)
instance Prelude.Hashable Bundle
instance Prelude.NFData Bundle