{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Lightsail.Types.RelationalDatabaseBundle
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Lightsail.Types.RelationalDatabaseBundle where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Describes a database bundle. A bundle describes the performance
-- specifications of the database.
--
-- /See:/ 'newRelationalDatabaseBundle' smart constructor.
data RelationalDatabaseBundle = RelationalDatabaseBundle'
  { -- | A Boolean value indicating whether the database bundle is encrypted.
    RelationalDatabaseBundle -> Maybe Bool
isEncrypted :: Prelude.Maybe Prelude.Bool,
    -- | The number of virtual CPUs (vCPUs) for the database bundle.
    RelationalDatabaseBundle -> Maybe Int
cpuCount :: Prelude.Maybe Prelude.Int,
    -- | The data transfer rate per month in GB for the database bundle.
    RelationalDatabaseBundle -> Maybe Int
transferPerMonthInGb :: Prelude.Maybe Prelude.Int,
    -- | The ID for the database bundle.
    RelationalDatabaseBundle -> Maybe Text
bundleId :: Prelude.Maybe Prelude.Text,
    -- | The name for the database bundle.
    RelationalDatabaseBundle -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The size of the disk for the database bundle.
    RelationalDatabaseBundle -> Maybe Int
diskSizeInGb :: Prelude.Maybe Prelude.Int,
    -- | The cost of the database bundle in US currency.
    RelationalDatabaseBundle -> Maybe Double
price :: Prelude.Maybe Prelude.Double,
    -- | A Boolean value indicating whether the database bundle is active.
    RelationalDatabaseBundle -> Maybe Bool
isActive :: Prelude.Maybe Prelude.Bool,
    -- | The amount of RAM in GB (for example, @2.0@) for the database bundle.
    RelationalDatabaseBundle -> Maybe Double
ramSizeInGb :: Prelude.Maybe Prelude.Double
  }
  deriving (RelationalDatabaseBundle -> RelationalDatabaseBundle -> Bool
(RelationalDatabaseBundle -> RelationalDatabaseBundle -> Bool)
-> (RelationalDatabaseBundle -> RelationalDatabaseBundle -> Bool)
-> Eq RelationalDatabaseBundle
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RelationalDatabaseBundle -> RelationalDatabaseBundle -> Bool
$c/= :: RelationalDatabaseBundle -> RelationalDatabaseBundle -> Bool
== :: RelationalDatabaseBundle -> RelationalDatabaseBundle -> Bool
$c== :: RelationalDatabaseBundle -> RelationalDatabaseBundle -> Bool
Prelude.Eq, ReadPrec [RelationalDatabaseBundle]
ReadPrec RelationalDatabaseBundle
Int -> ReadS RelationalDatabaseBundle
ReadS [RelationalDatabaseBundle]
(Int -> ReadS RelationalDatabaseBundle)
-> ReadS [RelationalDatabaseBundle]
-> ReadPrec RelationalDatabaseBundle
-> ReadPrec [RelationalDatabaseBundle]
-> Read RelationalDatabaseBundle
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RelationalDatabaseBundle]
$creadListPrec :: ReadPrec [RelationalDatabaseBundle]
readPrec :: ReadPrec RelationalDatabaseBundle
$creadPrec :: ReadPrec RelationalDatabaseBundle
readList :: ReadS [RelationalDatabaseBundle]
$creadList :: ReadS [RelationalDatabaseBundle]
readsPrec :: Int -> ReadS RelationalDatabaseBundle
$creadsPrec :: Int -> ReadS RelationalDatabaseBundle
Prelude.Read, Int -> RelationalDatabaseBundle -> ShowS
[RelationalDatabaseBundle] -> ShowS
RelationalDatabaseBundle -> String
(Int -> RelationalDatabaseBundle -> ShowS)
-> (RelationalDatabaseBundle -> String)
-> ([RelationalDatabaseBundle] -> ShowS)
-> Show RelationalDatabaseBundle
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RelationalDatabaseBundle] -> ShowS
$cshowList :: [RelationalDatabaseBundle] -> ShowS
show :: RelationalDatabaseBundle -> String
$cshow :: RelationalDatabaseBundle -> String
showsPrec :: Int -> RelationalDatabaseBundle -> ShowS
$cshowsPrec :: Int -> RelationalDatabaseBundle -> ShowS
Prelude.Show, (forall x.
 RelationalDatabaseBundle -> Rep RelationalDatabaseBundle x)
-> (forall x.
    Rep RelationalDatabaseBundle x -> RelationalDatabaseBundle)
-> Generic RelationalDatabaseBundle
forall x.
Rep RelationalDatabaseBundle x -> RelationalDatabaseBundle
forall x.
RelationalDatabaseBundle -> Rep RelationalDatabaseBundle x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RelationalDatabaseBundle x -> RelationalDatabaseBundle
$cfrom :: forall x.
RelationalDatabaseBundle -> Rep RelationalDatabaseBundle x
Prelude.Generic)

-- |
-- Create a value of 'RelationalDatabaseBundle' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'isEncrypted', 'relationalDatabaseBundle_isEncrypted' - A Boolean value indicating whether the database bundle is encrypted.
--
-- 'cpuCount', 'relationalDatabaseBundle_cpuCount' - The number of virtual CPUs (vCPUs) for the database bundle.
--
-- 'transferPerMonthInGb', 'relationalDatabaseBundle_transferPerMonthInGb' - The data transfer rate per month in GB for the database bundle.
--
-- 'bundleId', 'relationalDatabaseBundle_bundleId' - The ID for the database bundle.
--
-- 'name', 'relationalDatabaseBundle_name' - The name for the database bundle.
--
-- 'diskSizeInGb', 'relationalDatabaseBundle_diskSizeInGb' - The size of the disk for the database bundle.
--
-- 'price', 'relationalDatabaseBundle_price' - The cost of the database bundle in US currency.
--
-- 'isActive', 'relationalDatabaseBundle_isActive' - A Boolean value indicating whether the database bundle is active.
--
-- 'ramSizeInGb', 'relationalDatabaseBundle_ramSizeInGb' - The amount of RAM in GB (for example, @2.0@) for the database bundle.
newRelationalDatabaseBundle ::
  RelationalDatabaseBundle
newRelationalDatabaseBundle :: RelationalDatabaseBundle
newRelationalDatabaseBundle =
  RelationalDatabaseBundle' :: Maybe Bool
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Double
-> Maybe Bool
-> Maybe Double
-> RelationalDatabaseBundle
RelationalDatabaseBundle'
    { $sel:isEncrypted:RelationalDatabaseBundle' :: Maybe Bool
isEncrypted =
        Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:cpuCount:RelationalDatabaseBundle' :: Maybe Int
cpuCount = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:transferPerMonthInGb:RelationalDatabaseBundle' :: Maybe Int
transferPerMonthInGb = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:bundleId:RelationalDatabaseBundle' :: Maybe Text
bundleId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:name:RelationalDatabaseBundle' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:diskSizeInGb:RelationalDatabaseBundle' :: Maybe Int
diskSizeInGb = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:price:RelationalDatabaseBundle' :: Maybe Double
price = Maybe Double
forall a. Maybe a
Prelude.Nothing,
      $sel:isActive:RelationalDatabaseBundle' :: Maybe Bool
isActive = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:ramSizeInGb:RelationalDatabaseBundle' :: Maybe Double
ramSizeInGb = Maybe Double
forall a. Maybe a
Prelude.Nothing
    }

-- | A Boolean value indicating whether the database bundle is encrypted.
relationalDatabaseBundle_isEncrypted :: Lens.Lens' RelationalDatabaseBundle (Prelude.Maybe Prelude.Bool)
relationalDatabaseBundle_isEncrypted :: (Maybe Bool -> f (Maybe Bool))
-> RelationalDatabaseBundle -> f RelationalDatabaseBundle
relationalDatabaseBundle_isEncrypted = (RelationalDatabaseBundle -> Maybe Bool)
-> (RelationalDatabaseBundle
    -> Maybe Bool -> RelationalDatabaseBundle)
-> Lens
     RelationalDatabaseBundle
     RelationalDatabaseBundle
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RelationalDatabaseBundle' {Maybe Bool
isEncrypted :: Maybe Bool
$sel:isEncrypted:RelationalDatabaseBundle' :: RelationalDatabaseBundle -> Maybe Bool
isEncrypted} -> Maybe Bool
isEncrypted) (\s :: RelationalDatabaseBundle
s@RelationalDatabaseBundle' {} Maybe Bool
a -> RelationalDatabaseBundle
s {$sel:isEncrypted:RelationalDatabaseBundle' :: Maybe Bool
isEncrypted = Maybe Bool
a} :: RelationalDatabaseBundle)

-- | The number of virtual CPUs (vCPUs) for the database bundle.
relationalDatabaseBundle_cpuCount :: Lens.Lens' RelationalDatabaseBundle (Prelude.Maybe Prelude.Int)
relationalDatabaseBundle_cpuCount :: (Maybe Int -> f (Maybe Int))
-> RelationalDatabaseBundle -> f RelationalDatabaseBundle
relationalDatabaseBundle_cpuCount = (RelationalDatabaseBundle -> Maybe Int)
-> (RelationalDatabaseBundle
    -> Maybe Int -> RelationalDatabaseBundle)
-> Lens
     RelationalDatabaseBundle
     RelationalDatabaseBundle
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RelationalDatabaseBundle' {Maybe Int
cpuCount :: Maybe Int
$sel:cpuCount:RelationalDatabaseBundle' :: RelationalDatabaseBundle -> Maybe Int
cpuCount} -> Maybe Int
cpuCount) (\s :: RelationalDatabaseBundle
s@RelationalDatabaseBundle' {} Maybe Int
a -> RelationalDatabaseBundle
s {$sel:cpuCount:RelationalDatabaseBundle' :: Maybe Int
cpuCount = Maybe Int
a} :: RelationalDatabaseBundle)

-- | The data transfer rate per month in GB for the database bundle.
relationalDatabaseBundle_transferPerMonthInGb :: Lens.Lens' RelationalDatabaseBundle (Prelude.Maybe Prelude.Int)
relationalDatabaseBundle_transferPerMonthInGb :: (Maybe Int -> f (Maybe Int))
-> RelationalDatabaseBundle -> f RelationalDatabaseBundle
relationalDatabaseBundle_transferPerMonthInGb = (RelationalDatabaseBundle -> Maybe Int)
-> (RelationalDatabaseBundle
    -> Maybe Int -> RelationalDatabaseBundle)
-> Lens
     RelationalDatabaseBundle
     RelationalDatabaseBundle
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RelationalDatabaseBundle' {Maybe Int
transferPerMonthInGb :: Maybe Int
$sel:transferPerMonthInGb:RelationalDatabaseBundle' :: RelationalDatabaseBundle -> Maybe Int
transferPerMonthInGb} -> Maybe Int
transferPerMonthInGb) (\s :: RelationalDatabaseBundle
s@RelationalDatabaseBundle' {} Maybe Int
a -> RelationalDatabaseBundle
s {$sel:transferPerMonthInGb:RelationalDatabaseBundle' :: Maybe Int
transferPerMonthInGb = Maybe Int
a} :: RelationalDatabaseBundle)

-- | The ID for the database bundle.
relationalDatabaseBundle_bundleId :: Lens.Lens' RelationalDatabaseBundle (Prelude.Maybe Prelude.Text)
relationalDatabaseBundle_bundleId :: (Maybe Text -> f (Maybe Text))
-> RelationalDatabaseBundle -> f RelationalDatabaseBundle
relationalDatabaseBundle_bundleId = (RelationalDatabaseBundle -> Maybe Text)
-> (RelationalDatabaseBundle
    -> Maybe Text -> RelationalDatabaseBundle)
-> Lens
     RelationalDatabaseBundle
     RelationalDatabaseBundle
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RelationalDatabaseBundle' {Maybe Text
bundleId :: Maybe Text
$sel:bundleId:RelationalDatabaseBundle' :: RelationalDatabaseBundle -> Maybe Text
bundleId} -> Maybe Text
bundleId) (\s :: RelationalDatabaseBundle
s@RelationalDatabaseBundle' {} Maybe Text
a -> RelationalDatabaseBundle
s {$sel:bundleId:RelationalDatabaseBundle' :: Maybe Text
bundleId = Maybe Text
a} :: RelationalDatabaseBundle)

-- | The name for the database bundle.
relationalDatabaseBundle_name :: Lens.Lens' RelationalDatabaseBundle (Prelude.Maybe Prelude.Text)
relationalDatabaseBundle_name :: (Maybe Text -> f (Maybe Text))
-> RelationalDatabaseBundle -> f RelationalDatabaseBundle
relationalDatabaseBundle_name = (RelationalDatabaseBundle -> Maybe Text)
-> (RelationalDatabaseBundle
    -> Maybe Text -> RelationalDatabaseBundle)
-> Lens
     RelationalDatabaseBundle
     RelationalDatabaseBundle
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RelationalDatabaseBundle' {Maybe Text
name :: Maybe Text
$sel:name:RelationalDatabaseBundle' :: RelationalDatabaseBundle -> Maybe Text
name} -> Maybe Text
name) (\s :: RelationalDatabaseBundle
s@RelationalDatabaseBundle' {} Maybe Text
a -> RelationalDatabaseBundle
s {$sel:name:RelationalDatabaseBundle' :: Maybe Text
name = Maybe Text
a} :: RelationalDatabaseBundle)

-- | The size of the disk for the database bundle.
relationalDatabaseBundle_diskSizeInGb :: Lens.Lens' RelationalDatabaseBundle (Prelude.Maybe Prelude.Int)
relationalDatabaseBundle_diskSizeInGb :: (Maybe Int -> f (Maybe Int))
-> RelationalDatabaseBundle -> f RelationalDatabaseBundle
relationalDatabaseBundle_diskSizeInGb = (RelationalDatabaseBundle -> Maybe Int)
-> (RelationalDatabaseBundle
    -> Maybe Int -> RelationalDatabaseBundle)
-> Lens
     RelationalDatabaseBundle
     RelationalDatabaseBundle
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RelationalDatabaseBundle' {Maybe Int
diskSizeInGb :: Maybe Int
$sel:diskSizeInGb:RelationalDatabaseBundle' :: RelationalDatabaseBundle -> Maybe Int
diskSizeInGb} -> Maybe Int
diskSizeInGb) (\s :: RelationalDatabaseBundle
s@RelationalDatabaseBundle' {} Maybe Int
a -> RelationalDatabaseBundle
s {$sel:diskSizeInGb:RelationalDatabaseBundle' :: Maybe Int
diskSizeInGb = Maybe Int
a} :: RelationalDatabaseBundle)

-- | The cost of the database bundle in US currency.
relationalDatabaseBundle_price :: Lens.Lens' RelationalDatabaseBundle (Prelude.Maybe Prelude.Double)
relationalDatabaseBundle_price :: (Maybe Double -> f (Maybe Double))
-> RelationalDatabaseBundle -> f RelationalDatabaseBundle
relationalDatabaseBundle_price = (RelationalDatabaseBundle -> Maybe Double)
-> (RelationalDatabaseBundle
    -> Maybe Double -> RelationalDatabaseBundle)
-> Lens
     RelationalDatabaseBundle
     RelationalDatabaseBundle
     (Maybe Double)
     (Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RelationalDatabaseBundle' {Maybe Double
price :: Maybe Double
$sel:price:RelationalDatabaseBundle' :: RelationalDatabaseBundle -> Maybe Double
price} -> Maybe Double
price) (\s :: RelationalDatabaseBundle
s@RelationalDatabaseBundle' {} Maybe Double
a -> RelationalDatabaseBundle
s {$sel:price:RelationalDatabaseBundle' :: Maybe Double
price = Maybe Double
a} :: RelationalDatabaseBundle)

-- | A Boolean value indicating whether the database bundle is active.
relationalDatabaseBundle_isActive :: Lens.Lens' RelationalDatabaseBundle (Prelude.Maybe Prelude.Bool)
relationalDatabaseBundle_isActive :: (Maybe Bool -> f (Maybe Bool))
-> RelationalDatabaseBundle -> f RelationalDatabaseBundle
relationalDatabaseBundle_isActive = (RelationalDatabaseBundle -> Maybe Bool)
-> (RelationalDatabaseBundle
    -> Maybe Bool -> RelationalDatabaseBundle)
-> Lens
     RelationalDatabaseBundle
     RelationalDatabaseBundle
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RelationalDatabaseBundle' {Maybe Bool
isActive :: Maybe Bool
$sel:isActive:RelationalDatabaseBundle' :: RelationalDatabaseBundle -> Maybe Bool
isActive} -> Maybe Bool
isActive) (\s :: RelationalDatabaseBundle
s@RelationalDatabaseBundle' {} Maybe Bool
a -> RelationalDatabaseBundle
s {$sel:isActive:RelationalDatabaseBundle' :: Maybe Bool
isActive = Maybe Bool
a} :: RelationalDatabaseBundle)

-- | The amount of RAM in GB (for example, @2.0@) for the database bundle.
relationalDatabaseBundle_ramSizeInGb :: Lens.Lens' RelationalDatabaseBundle (Prelude.Maybe Prelude.Double)
relationalDatabaseBundle_ramSizeInGb :: (Maybe Double -> f (Maybe Double))
-> RelationalDatabaseBundle -> f RelationalDatabaseBundle
relationalDatabaseBundle_ramSizeInGb = (RelationalDatabaseBundle -> Maybe Double)
-> (RelationalDatabaseBundle
    -> Maybe Double -> RelationalDatabaseBundle)
-> Lens
     RelationalDatabaseBundle
     RelationalDatabaseBundle
     (Maybe Double)
     (Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RelationalDatabaseBundle' {Maybe Double
ramSizeInGb :: Maybe Double
$sel:ramSizeInGb:RelationalDatabaseBundle' :: RelationalDatabaseBundle -> Maybe Double
ramSizeInGb} -> Maybe Double
ramSizeInGb) (\s :: RelationalDatabaseBundle
s@RelationalDatabaseBundle' {} Maybe Double
a -> RelationalDatabaseBundle
s {$sel:ramSizeInGb:RelationalDatabaseBundle' :: Maybe Double
ramSizeInGb = Maybe Double
a} :: RelationalDatabaseBundle)

instance Core.FromJSON RelationalDatabaseBundle where
  parseJSON :: Value -> Parser RelationalDatabaseBundle
parseJSON =
    String
-> (Object -> Parser RelationalDatabaseBundle)
-> Value
-> Parser RelationalDatabaseBundle
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"RelationalDatabaseBundle"
      ( \Object
x ->
          Maybe Bool
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Double
-> Maybe Bool
-> Maybe Double
-> RelationalDatabaseBundle
RelationalDatabaseBundle'
            (Maybe Bool
 -> Maybe Int
 -> Maybe Int
 -> Maybe Text
 -> Maybe Text
 -> Maybe Int
 -> Maybe Double
 -> Maybe Bool
 -> Maybe Double
 -> RelationalDatabaseBundle)
-> Parser (Maybe Bool)
-> Parser
     (Maybe Int
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Double
      -> Maybe Bool
      -> Maybe Double
      -> RelationalDatabaseBundle)
forall (f :: * -> *) a b. Functor 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
"isEncrypted")
            Parser
  (Maybe Int
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Double
   -> Maybe Bool
   -> Maybe Double
   -> RelationalDatabaseBundle)
-> Parser (Maybe Int)
-> Parser
     (Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Double
      -> Maybe Bool
      -> Maybe Double
      -> RelationalDatabaseBundle)
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
"cpuCount")
            Parser
  (Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Double
   -> Maybe Bool
   -> Maybe Double
   -> RelationalDatabaseBundle)
-> Parser (Maybe Int)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Double
      -> Maybe Bool
      -> Maybe Double
      -> RelationalDatabaseBundle)
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 Int
   -> Maybe Double
   -> Maybe Bool
   -> Maybe Double
   -> RelationalDatabaseBundle)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Int
      -> Maybe Double
      -> Maybe Bool
      -> Maybe Double
      -> RelationalDatabaseBundle)
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 Int
   -> Maybe Double
   -> Maybe Bool
   -> Maybe Double
   -> RelationalDatabaseBundle)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int
      -> Maybe Double
      -> Maybe Bool
      -> Maybe Double
      -> RelationalDatabaseBundle)
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 Double
   -> Maybe Bool
   -> Maybe Double
   -> RelationalDatabaseBundle)
-> Parser (Maybe Int)
-> Parser
     (Maybe Double
      -> Maybe Bool -> Maybe Double -> RelationalDatabaseBundle)
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 Double
   -> Maybe Bool -> Maybe Double -> RelationalDatabaseBundle)
-> Parser (Maybe Double)
-> Parser (Maybe Bool -> Maybe Double -> RelationalDatabaseBundle)
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 -> RelationalDatabaseBundle)
-> Parser (Maybe Bool)
-> Parser (Maybe Double -> RelationalDatabaseBundle)
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 -> RelationalDatabaseBundle)
-> Parser (Maybe Double) -> Parser RelationalDatabaseBundle
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 RelationalDatabaseBundle

instance Prelude.NFData RelationalDatabaseBundle