{-# 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.DMS.Types.OrderableReplicationInstance where
import qualified Amazonka.Core as Core
import Amazonka.DMS.Types.ReleaseStatusValues
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data OrderableReplicationInstance = OrderableReplicationInstance'
{
OrderableReplicationInstance -> Maybe Text
engineVersion :: Prelude.Maybe Prelude.Text,
OrderableReplicationInstance -> Maybe Int
minAllocatedStorage :: Prelude.Maybe Prelude.Int,
OrderableReplicationInstance -> Maybe ReleaseStatusValues
releaseStatus :: Prelude.Maybe ReleaseStatusValues,
OrderableReplicationInstance -> Maybe Int
includedAllocatedStorage :: Prelude.Maybe Prelude.Int,
OrderableReplicationInstance -> Maybe [Text]
availabilityZones :: Prelude.Maybe [Prelude.Text],
OrderableReplicationInstance -> Maybe Int
maxAllocatedStorage :: Prelude.Maybe Prelude.Int,
OrderableReplicationInstance -> Maybe Text
replicationInstanceClass :: Prelude.Maybe Prelude.Text,
OrderableReplicationInstance -> Maybe Int
defaultAllocatedStorage :: Prelude.Maybe Prelude.Int,
OrderableReplicationInstance -> Maybe Text
storageType :: Prelude.Maybe Prelude.Text
}
deriving (OrderableReplicationInstance
-> OrderableReplicationInstance -> Bool
(OrderableReplicationInstance
-> OrderableReplicationInstance -> Bool)
-> (OrderableReplicationInstance
-> OrderableReplicationInstance -> Bool)
-> Eq OrderableReplicationInstance
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OrderableReplicationInstance
-> OrderableReplicationInstance -> Bool
$c/= :: OrderableReplicationInstance
-> OrderableReplicationInstance -> Bool
== :: OrderableReplicationInstance
-> OrderableReplicationInstance -> Bool
$c== :: OrderableReplicationInstance
-> OrderableReplicationInstance -> Bool
Prelude.Eq, ReadPrec [OrderableReplicationInstance]
ReadPrec OrderableReplicationInstance
Int -> ReadS OrderableReplicationInstance
ReadS [OrderableReplicationInstance]
(Int -> ReadS OrderableReplicationInstance)
-> ReadS [OrderableReplicationInstance]
-> ReadPrec OrderableReplicationInstance
-> ReadPrec [OrderableReplicationInstance]
-> Read OrderableReplicationInstance
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OrderableReplicationInstance]
$creadListPrec :: ReadPrec [OrderableReplicationInstance]
readPrec :: ReadPrec OrderableReplicationInstance
$creadPrec :: ReadPrec OrderableReplicationInstance
readList :: ReadS [OrderableReplicationInstance]
$creadList :: ReadS [OrderableReplicationInstance]
readsPrec :: Int -> ReadS OrderableReplicationInstance
$creadsPrec :: Int -> ReadS OrderableReplicationInstance
Prelude.Read, Int -> OrderableReplicationInstance -> ShowS
[OrderableReplicationInstance] -> ShowS
OrderableReplicationInstance -> String
(Int -> OrderableReplicationInstance -> ShowS)
-> (OrderableReplicationInstance -> String)
-> ([OrderableReplicationInstance] -> ShowS)
-> Show OrderableReplicationInstance
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OrderableReplicationInstance] -> ShowS
$cshowList :: [OrderableReplicationInstance] -> ShowS
show :: OrderableReplicationInstance -> String
$cshow :: OrderableReplicationInstance -> String
showsPrec :: Int -> OrderableReplicationInstance -> ShowS
$cshowsPrec :: Int -> OrderableReplicationInstance -> ShowS
Prelude.Show, (forall x.
OrderableReplicationInstance -> Rep OrderableReplicationInstance x)
-> (forall x.
Rep OrderableReplicationInstance x -> OrderableReplicationInstance)
-> Generic OrderableReplicationInstance
forall x.
Rep OrderableReplicationInstance x -> OrderableReplicationInstance
forall x.
OrderableReplicationInstance -> Rep OrderableReplicationInstance x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep OrderableReplicationInstance x -> OrderableReplicationInstance
$cfrom :: forall x.
OrderableReplicationInstance -> Rep OrderableReplicationInstance x
Prelude.Generic)
newOrderableReplicationInstance ::
OrderableReplicationInstance
newOrderableReplicationInstance :: OrderableReplicationInstance
newOrderableReplicationInstance =
OrderableReplicationInstance' :: Maybe Text
-> Maybe Int
-> Maybe ReleaseStatusValues
-> Maybe Int
-> Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> OrderableReplicationInstance
OrderableReplicationInstance'
{ $sel:engineVersion:OrderableReplicationInstance' :: Maybe Text
engineVersion =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:minAllocatedStorage:OrderableReplicationInstance' :: Maybe Int
minAllocatedStorage = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:releaseStatus:OrderableReplicationInstance' :: Maybe ReleaseStatusValues
releaseStatus = Maybe ReleaseStatusValues
forall a. Maybe a
Prelude.Nothing,
$sel:includedAllocatedStorage:OrderableReplicationInstance' :: Maybe Int
includedAllocatedStorage = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:availabilityZones:OrderableReplicationInstance' :: Maybe [Text]
availabilityZones = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:maxAllocatedStorage:OrderableReplicationInstance' :: Maybe Int
maxAllocatedStorage = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:replicationInstanceClass:OrderableReplicationInstance' :: Maybe Text
replicationInstanceClass = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:defaultAllocatedStorage:OrderableReplicationInstance' :: Maybe Int
defaultAllocatedStorage = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:storageType:OrderableReplicationInstance' :: Maybe Text
storageType = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
orderableReplicationInstance_engineVersion :: Lens.Lens' OrderableReplicationInstance (Prelude.Maybe Prelude.Text)
orderableReplicationInstance_engineVersion :: (Maybe Text -> f (Maybe Text))
-> OrderableReplicationInstance -> f OrderableReplicationInstance
orderableReplicationInstance_engineVersion = (OrderableReplicationInstance -> Maybe Text)
-> (OrderableReplicationInstance
-> Maybe Text -> OrderableReplicationInstance)
-> Lens
OrderableReplicationInstance
OrderableReplicationInstance
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableReplicationInstance' {Maybe Text
engineVersion :: Maybe Text
$sel:engineVersion:OrderableReplicationInstance' :: OrderableReplicationInstance -> Maybe Text
engineVersion} -> Maybe Text
engineVersion) (\s :: OrderableReplicationInstance
s@OrderableReplicationInstance' {} Maybe Text
a -> OrderableReplicationInstance
s {$sel:engineVersion:OrderableReplicationInstance' :: Maybe Text
engineVersion = Maybe Text
a} :: OrderableReplicationInstance)
orderableReplicationInstance_minAllocatedStorage :: Lens.Lens' OrderableReplicationInstance (Prelude.Maybe Prelude.Int)
orderableReplicationInstance_minAllocatedStorage :: (Maybe Int -> f (Maybe Int))
-> OrderableReplicationInstance -> f OrderableReplicationInstance
orderableReplicationInstance_minAllocatedStorage = (OrderableReplicationInstance -> Maybe Int)
-> (OrderableReplicationInstance
-> Maybe Int -> OrderableReplicationInstance)
-> Lens
OrderableReplicationInstance
OrderableReplicationInstance
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableReplicationInstance' {Maybe Int
minAllocatedStorage :: Maybe Int
$sel:minAllocatedStorage:OrderableReplicationInstance' :: OrderableReplicationInstance -> Maybe Int
minAllocatedStorage} -> Maybe Int
minAllocatedStorage) (\s :: OrderableReplicationInstance
s@OrderableReplicationInstance' {} Maybe Int
a -> OrderableReplicationInstance
s {$sel:minAllocatedStorage:OrderableReplicationInstance' :: Maybe Int
minAllocatedStorage = Maybe Int
a} :: OrderableReplicationInstance)
orderableReplicationInstance_releaseStatus :: Lens.Lens' OrderableReplicationInstance (Prelude.Maybe ReleaseStatusValues)
orderableReplicationInstance_releaseStatus :: (Maybe ReleaseStatusValues -> f (Maybe ReleaseStatusValues))
-> OrderableReplicationInstance -> f OrderableReplicationInstance
orderableReplicationInstance_releaseStatus = (OrderableReplicationInstance -> Maybe ReleaseStatusValues)
-> (OrderableReplicationInstance
-> Maybe ReleaseStatusValues -> OrderableReplicationInstance)
-> Lens
OrderableReplicationInstance
OrderableReplicationInstance
(Maybe ReleaseStatusValues)
(Maybe ReleaseStatusValues)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableReplicationInstance' {Maybe ReleaseStatusValues
releaseStatus :: Maybe ReleaseStatusValues
$sel:releaseStatus:OrderableReplicationInstance' :: OrderableReplicationInstance -> Maybe ReleaseStatusValues
releaseStatus} -> Maybe ReleaseStatusValues
releaseStatus) (\s :: OrderableReplicationInstance
s@OrderableReplicationInstance' {} Maybe ReleaseStatusValues
a -> OrderableReplicationInstance
s {$sel:releaseStatus:OrderableReplicationInstance' :: Maybe ReleaseStatusValues
releaseStatus = Maybe ReleaseStatusValues
a} :: OrderableReplicationInstance)
orderableReplicationInstance_includedAllocatedStorage :: Lens.Lens' OrderableReplicationInstance (Prelude.Maybe Prelude.Int)
orderableReplicationInstance_includedAllocatedStorage :: (Maybe Int -> f (Maybe Int))
-> OrderableReplicationInstance -> f OrderableReplicationInstance
orderableReplicationInstance_includedAllocatedStorage = (OrderableReplicationInstance -> Maybe Int)
-> (OrderableReplicationInstance
-> Maybe Int -> OrderableReplicationInstance)
-> Lens
OrderableReplicationInstance
OrderableReplicationInstance
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableReplicationInstance' {Maybe Int
includedAllocatedStorage :: Maybe Int
$sel:includedAllocatedStorage:OrderableReplicationInstance' :: OrderableReplicationInstance -> Maybe Int
includedAllocatedStorage} -> Maybe Int
includedAllocatedStorage) (\s :: OrderableReplicationInstance
s@OrderableReplicationInstance' {} Maybe Int
a -> OrderableReplicationInstance
s {$sel:includedAllocatedStorage:OrderableReplicationInstance' :: Maybe Int
includedAllocatedStorage = Maybe Int
a} :: OrderableReplicationInstance)
orderableReplicationInstance_availabilityZones :: Lens.Lens' OrderableReplicationInstance (Prelude.Maybe [Prelude.Text])
orderableReplicationInstance_availabilityZones :: (Maybe [Text] -> f (Maybe [Text]))
-> OrderableReplicationInstance -> f OrderableReplicationInstance
orderableReplicationInstance_availabilityZones = (OrderableReplicationInstance -> Maybe [Text])
-> (OrderableReplicationInstance
-> Maybe [Text] -> OrderableReplicationInstance)
-> Lens
OrderableReplicationInstance
OrderableReplicationInstance
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableReplicationInstance' {Maybe [Text]
availabilityZones :: Maybe [Text]
$sel:availabilityZones:OrderableReplicationInstance' :: OrderableReplicationInstance -> Maybe [Text]
availabilityZones} -> Maybe [Text]
availabilityZones) (\s :: OrderableReplicationInstance
s@OrderableReplicationInstance' {} Maybe [Text]
a -> OrderableReplicationInstance
s {$sel:availabilityZones:OrderableReplicationInstance' :: Maybe [Text]
availabilityZones = Maybe [Text]
a} :: OrderableReplicationInstance) ((Maybe [Text] -> f (Maybe [Text]))
-> OrderableReplicationInstance -> f OrderableReplicationInstance)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> OrderableReplicationInstance
-> f OrderableReplicationInstance
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
orderableReplicationInstance_maxAllocatedStorage :: Lens.Lens' OrderableReplicationInstance (Prelude.Maybe Prelude.Int)
orderableReplicationInstance_maxAllocatedStorage :: (Maybe Int -> f (Maybe Int))
-> OrderableReplicationInstance -> f OrderableReplicationInstance
orderableReplicationInstance_maxAllocatedStorage = (OrderableReplicationInstance -> Maybe Int)
-> (OrderableReplicationInstance
-> Maybe Int -> OrderableReplicationInstance)
-> Lens
OrderableReplicationInstance
OrderableReplicationInstance
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableReplicationInstance' {Maybe Int
maxAllocatedStorage :: Maybe Int
$sel:maxAllocatedStorage:OrderableReplicationInstance' :: OrderableReplicationInstance -> Maybe Int
maxAllocatedStorage} -> Maybe Int
maxAllocatedStorage) (\s :: OrderableReplicationInstance
s@OrderableReplicationInstance' {} Maybe Int
a -> OrderableReplicationInstance
s {$sel:maxAllocatedStorage:OrderableReplicationInstance' :: Maybe Int
maxAllocatedStorage = Maybe Int
a} :: OrderableReplicationInstance)
orderableReplicationInstance_replicationInstanceClass :: Lens.Lens' OrderableReplicationInstance (Prelude.Maybe Prelude.Text)
orderableReplicationInstance_replicationInstanceClass :: (Maybe Text -> f (Maybe Text))
-> OrderableReplicationInstance -> f OrderableReplicationInstance
orderableReplicationInstance_replicationInstanceClass = (OrderableReplicationInstance -> Maybe Text)
-> (OrderableReplicationInstance
-> Maybe Text -> OrderableReplicationInstance)
-> Lens
OrderableReplicationInstance
OrderableReplicationInstance
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableReplicationInstance' {Maybe Text
replicationInstanceClass :: Maybe Text
$sel:replicationInstanceClass:OrderableReplicationInstance' :: OrderableReplicationInstance -> Maybe Text
replicationInstanceClass} -> Maybe Text
replicationInstanceClass) (\s :: OrderableReplicationInstance
s@OrderableReplicationInstance' {} Maybe Text
a -> OrderableReplicationInstance
s {$sel:replicationInstanceClass:OrderableReplicationInstance' :: Maybe Text
replicationInstanceClass = Maybe Text
a} :: OrderableReplicationInstance)
orderableReplicationInstance_defaultAllocatedStorage :: Lens.Lens' OrderableReplicationInstance (Prelude.Maybe Prelude.Int)
orderableReplicationInstance_defaultAllocatedStorage :: (Maybe Int -> f (Maybe Int))
-> OrderableReplicationInstance -> f OrderableReplicationInstance
orderableReplicationInstance_defaultAllocatedStorage = (OrderableReplicationInstance -> Maybe Int)
-> (OrderableReplicationInstance
-> Maybe Int -> OrderableReplicationInstance)
-> Lens
OrderableReplicationInstance
OrderableReplicationInstance
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableReplicationInstance' {Maybe Int
defaultAllocatedStorage :: Maybe Int
$sel:defaultAllocatedStorage:OrderableReplicationInstance' :: OrderableReplicationInstance -> Maybe Int
defaultAllocatedStorage} -> Maybe Int
defaultAllocatedStorage) (\s :: OrderableReplicationInstance
s@OrderableReplicationInstance' {} Maybe Int
a -> OrderableReplicationInstance
s {$sel:defaultAllocatedStorage:OrderableReplicationInstance' :: Maybe Int
defaultAllocatedStorage = Maybe Int
a} :: OrderableReplicationInstance)
orderableReplicationInstance_storageType :: Lens.Lens' OrderableReplicationInstance (Prelude.Maybe Prelude.Text)
orderableReplicationInstance_storageType :: (Maybe Text -> f (Maybe Text))
-> OrderableReplicationInstance -> f OrderableReplicationInstance
orderableReplicationInstance_storageType = (OrderableReplicationInstance -> Maybe Text)
-> (OrderableReplicationInstance
-> Maybe Text -> OrderableReplicationInstance)
-> Lens
OrderableReplicationInstance
OrderableReplicationInstance
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrderableReplicationInstance' {Maybe Text
storageType :: Maybe Text
$sel:storageType:OrderableReplicationInstance' :: OrderableReplicationInstance -> Maybe Text
storageType} -> Maybe Text
storageType) (\s :: OrderableReplicationInstance
s@OrderableReplicationInstance' {} Maybe Text
a -> OrderableReplicationInstance
s {$sel:storageType:OrderableReplicationInstance' :: Maybe Text
storageType = Maybe Text
a} :: OrderableReplicationInstance)
instance Core.FromJSON OrderableReplicationInstance where
parseJSON :: Value -> Parser OrderableReplicationInstance
parseJSON =
String
-> (Object -> Parser OrderableReplicationInstance)
-> Value
-> Parser OrderableReplicationInstance
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"OrderableReplicationInstance"
( \Object
x ->
Maybe Text
-> Maybe Int
-> Maybe ReleaseStatusValues
-> Maybe Int
-> Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> OrderableReplicationInstance
OrderableReplicationInstance'
(Maybe Text
-> Maybe Int
-> Maybe ReleaseStatusValues
-> Maybe Int
-> Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> OrderableReplicationInstance)
-> Parser (Maybe Text)
-> Parser
(Maybe Int
-> Maybe ReleaseStatusValues
-> Maybe Int
-> Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> OrderableReplicationInstance)
forall (f :: * -> *) a b. Functor 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
"EngineVersion")
Parser
(Maybe Int
-> Maybe ReleaseStatusValues
-> Maybe Int
-> Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> OrderableReplicationInstance)
-> Parser (Maybe Int)
-> Parser
(Maybe ReleaseStatusValues
-> Maybe Int
-> Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> OrderableReplicationInstance)
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
"MinAllocatedStorage")
Parser
(Maybe ReleaseStatusValues
-> Maybe Int
-> Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> OrderableReplicationInstance)
-> Parser (Maybe ReleaseStatusValues)
-> Parser
(Maybe Int
-> Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> OrderableReplicationInstance)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ReleaseStatusValues)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ReleaseStatus")
Parser
(Maybe Int
-> Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> OrderableReplicationInstance)
-> Parser (Maybe Int)
-> Parser
(Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> OrderableReplicationInstance)
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
"IncludedAllocatedStorage")
Parser
(Maybe [Text]
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> OrderableReplicationInstance)
-> Parser (Maybe [Text])
-> Parser
(Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> OrderableReplicationInstance)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AvailabilityZones"
Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
)
Parser
(Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> OrderableReplicationInstance)
-> Parser (Maybe Int)
-> Parser
(Maybe Text
-> Maybe Int -> Maybe Text -> OrderableReplicationInstance)
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
"MaxAllocatedStorage")
Parser
(Maybe Text
-> Maybe Int -> Maybe Text -> OrderableReplicationInstance)
-> Parser (Maybe Text)
-> Parser (Maybe Int -> Maybe Text -> OrderableReplicationInstance)
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
"ReplicationInstanceClass")
Parser (Maybe Int -> Maybe Text -> OrderableReplicationInstance)
-> Parser (Maybe Int)
-> Parser (Maybe Text -> OrderableReplicationInstance)
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
"DefaultAllocatedStorage")
Parser (Maybe Text -> OrderableReplicationInstance)
-> Parser (Maybe Text) -> Parser OrderableReplicationInstance
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
"StorageType")
)
instance
Prelude.Hashable
OrderableReplicationInstance
instance Prelude.NFData OrderableReplicationInstance