{-# 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.ElastiCache.Types.ReservedCacheNodesOffering where
import qualified Amazonka.Core as Core
import Amazonka.ElastiCache.Types.RecurringCharge
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ReservedCacheNodesOffering = ReservedCacheNodesOffering'
{
ReservedCacheNodesOffering -> Maybe Text
cacheNodeType :: Prelude.Maybe Prelude.Text,
ReservedCacheNodesOffering -> Maybe Text
productDescription :: Prelude.Maybe Prelude.Text,
ReservedCacheNodesOffering -> Maybe [RecurringCharge]
recurringCharges :: Prelude.Maybe [RecurringCharge],
ReservedCacheNodesOffering -> Maybe Text
offeringType :: Prelude.Maybe Prelude.Text,
ReservedCacheNodesOffering -> Maybe Double
usagePrice :: Prelude.Maybe Prelude.Double,
ReservedCacheNodesOffering -> Maybe Double
fixedPrice :: Prelude.Maybe Prelude.Double,
ReservedCacheNodesOffering -> Maybe Int
duration :: Prelude.Maybe Prelude.Int,
ReservedCacheNodesOffering -> Maybe Text
reservedCacheNodesOfferingId :: Prelude.Maybe Prelude.Text
}
deriving (ReservedCacheNodesOffering -> ReservedCacheNodesOffering -> Bool
(ReservedCacheNodesOffering -> ReservedCacheNodesOffering -> Bool)
-> (ReservedCacheNodesOffering
-> ReservedCacheNodesOffering -> Bool)
-> Eq ReservedCacheNodesOffering
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ReservedCacheNodesOffering -> ReservedCacheNodesOffering -> Bool
$c/= :: ReservedCacheNodesOffering -> ReservedCacheNodesOffering -> Bool
== :: ReservedCacheNodesOffering -> ReservedCacheNodesOffering -> Bool
$c== :: ReservedCacheNodesOffering -> ReservedCacheNodesOffering -> Bool
Prelude.Eq, ReadPrec [ReservedCacheNodesOffering]
ReadPrec ReservedCacheNodesOffering
Int -> ReadS ReservedCacheNodesOffering
ReadS [ReservedCacheNodesOffering]
(Int -> ReadS ReservedCacheNodesOffering)
-> ReadS [ReservedCacheNodesOffering]
-> ReadPrec ReservedCacheNodesOffering
-> ReadPrec [ReservedCacheNodesOffering]
-> Read ReservedCacheNodesOffering
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ReservedCacheNodesOffering]
$creadListPrec :: ReadPrec [ReservedCacheNodesOffering]
readPrec :: ReadPrec ReservedCacheNodesOffering
$creadPrec :: ReadPrec ReservedCacheNodesOffering
readList :: ReadS [ReservedCacheNodesOffering]
$creadList :: ReadS [ReservedCacheNodesOffering]
readsPrec :: Int -> ReadS ReservedCacheNodesOffering
$creadsPrec :: Int -> ReadS ReservedCacheNodesOffering
Prelude.Read, Int -> ReservedCacheNodesOffering -> ShowS
[ReservedCacheNodesOffering] -> ShowS
ReservedCacheNodesOffering -> String
(Int -> ReservedCacheNodesOffering -> ShowS)
-> (ReservedCacheNodesOffering -> String)
-> ([ReservedCacheNodesOffering] -> ShowS)
-> Show ReservedCacheNodesOffering
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ReservedCacheNodesOffering] -> ShowS
$cshowList :: [ReservedCacheNodesOffering] -> ShowS
show :: ReservedCacheNodesOffering -> String
$cshow :: ReservedCacheNodesOffering -> String
showsPrec :: Int -> ReservedCacheNodesOffering -> ShowS
$cshowsPrec :: Int -> ReservedCacheNodesOffering -> ShowS
Prelude.Show, (forall x.
ReservedCacheNodesOffering -> Rep ReservedCacheNodesOffering x)
-> (forall x.
Rep ReservedCacheNodesOffering x -> ReservedCacheNodesOffering)
-> Generic ReservedCacheNodesOffering
forall x.
Rep ReservedCacheNodesOffering x -> ReservedCacheNodesOffering
forall x.
ReservedCacheNodesOffering -> Rep ReservedCacheNodesOffering x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ReservedCacheNodesOffering x -> ReservedCacheNodesOffering
$cfrom :: forall x.
ReservedCacheNodesOffering -> Rep ReservedCacheNodesOffering x
Prelude.Generic)
newReservedCacheNodesOffering ::
ReservedCacheNodesOffering
newReservedCacheNodesOffering :: ReservedCacheNodesOffering
newReservedCacheNodesOffering =
ReservedCacheNodesOffering' :: Maybe Text
-> Maybe Text
-> Maybe [RecurringCharge]
-> Maybe Text
-> Maybe Double
-> Maybe Double
-> Maybe Int
-> Maybe Text
-> ReservedCacheNodesOffering
ReservedCacheNodesOffering'
{ $sel:cacheNodeType:ReservedCacheNodesOffering' :: Maybe Text
cacheNodeType =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:productDescription:ReservedCacheNodesOffering' :: Maybe Text
productDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:recurringCharges:ReservedCacheNodesOffering' :: Maybe [RecurringCharge]
recurringCharges = Maybe [RecurringCharge]
forall a. Maybe a
Prelude.Nothing,
$sel:offeringType:ReservedCacheNodesOffering' :: Maybe Text
offeringType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:usagePrice:ReservedCacheNodesOffering' :: Maybe Double
usagePrice = Maybe Double
forall a. Maybe a
Prelude.Nothing,
$sel:fixedPrice:ReservedCacheNodesOffering' :: Maybe Double
fixedPrice = Maybe Double
forall a. Maybe a
Prelude.Nothing,
$sel:duration:ReservedCacheNodesOffering' :: Maybe Int
duration = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:reservedCacheNodesOfferingId:ReservedCacheNodesOffering' :: Maybe Text
reservedCacheNodesOfferingId = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
reservedCacheNodesOffering_cacheNodeType :: Lens.Lens' ReservedCacheNodesOffering (Prelude.Maybe Prelude.Text)
reservedCacheNodesOffering_cacheNodeType :: (Maybe Text -> f (Maybe Text))
-> ReservedCacheNodesOffering -> f ReservedCacheNodesOffering
reservedCacheNodesOffering_cacheNodeType = (ReservedCacheNodesOffering -> Maybe Text)
-> (ReservedCacheNodesOffering
-> Maybe Text -> ReservedCacheNodesOffering)
-> Lens
ReservedCacheNodesOffering
ReservedCacheNodesOffering
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReservedCacheNodesOffering' {Maybe Text
cacheNodeType :: Maybe Text
$sel:cacheNodeType:ReservedCacheNodesOffering' :: ReservedCacheNodesOffering -> Maybe Text
cacheNodeType} -> Maybe Text
cacheNodeType) (\s :: ReservedCacheNodesOffering
s@ReservedCacheNodesOffering' {} Maybe Text
a -> ReservedCacheNodesOffering
s {$sel:cacheNodeType:ReservedCacheNodesOffering' :: Maybe Text
cacheNodeType = Maybe Text
a} :: ReservedCacheNodesOffering)
reservedCacheNodesOffering_productDescription :: Lens.Lens' ReservedCacheNodesOffering (Prelude.Maybe Prelude.Text)
reservedCacheNodesOffering_productDescription :: (Maybe Text -> f (Maybe Text))
-> ReservedCacheNodesOffering -> f ReservedCacheNodesOffering
reservedCacheNodesOffering_productDescription = (ReservedCacheNodesOffering -> Maybe Text)
-> (ReservedCacheNodesOffering
-> Maybe Text -> ReservedCacheNodesOffering)
-> Lens
ReservedCacheNodesOffering
ReservedCacheNodesOffering
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReservedCacheNodesOffering' {Maybe Text
productDescription :: Maybe Text
$sel:productDescription:ReservedCacheNodesOffering' :: ReservedCacheNodesOffering -> Maybe Text
productDescription} -> Maybe Text
productDescription) (\s :: ReservedCacheNodesOffering
s@ReservedCacheNodesOffering' {} Maybe Text
a -> ReservedCacheNodesOffering
s {$sel:productDescription:ReservedCacheNodesOffering' :: Maybe Text
productDescription = Maybe Text
a} :: ReservedCacheNodesOffering)
reservedCacheNodesOffering_recurringCharges :: Lens.Lens' ReservedCacheNodesOffering (Prelude.Maybe [RecurringCharge])
reservedCacheNodesOffering_recurringCharges :: (Maybe [RecurringCharge] -> f (Maybe [RecurringCharge]))
-> ReservedCacheNodesOffering -> f ReservedCacheNodesOffering
reservedCacheNodesOffering_recurringCharges = (ReservedCacheNodesOffering -> Maybe [RecurringCharge])
-> (ReservedCacheNodesOffering
-> Maybe [RecurringCharge] -> ReservedCacheNodesOffering)
-> Lens
ReservedCacheNodesOffering
ReservedCacheNodesOffering
(Maybe [RecurringCharge])
(Maybe [RecurringCharge])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReservedCacheNodesOffering' {Maybe [RecurringCharge]
recurringCharges :: Maybe [RecurringCharge]
$sel:recurringCharges:ReservedCacheNodesOffering' :: ReservedCacheNodesOffering -> Maybe [RecurringCharge]
recurringCharges} -> Maybe [RecurringCharge]
recurringCharges) (\s :: ReservedCacheNodesOffering
s@ReservedCacheNodesOffering' {} Maybe [RecurringCharge]
a -> ReservedCacheNodesOffering
s {$sel:recurringCharges:ReservedCacheNodesOffering' :: Maybe [RecurringCharge]
recurringCharges = Maybe [RecurringCharge]
a} :: ReservedCacheNodesOffering) ((Maybe [RecurringCharge] -> f (Maybe [RecurringCharge]))
-> ReservedCacheNodesOffering -> f ReservedCacheNodesOffering)
-> ((Maybe [RecurringCharge] -> f (Maybe [RecurringCharge]))
-> Maybe [RecurringCharge] -> f (Maybe [RecurringCharge]))
-> (Maybe [RecurringCharge] -> f (Maybe [RecurringCharge]))
-> ReservedCacheNodesOffering
-> f ReservedCacheNodesOffering
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[RecurringCharge]
[RecurringCharge]
[RecurringCharge]
[RecurringCharge]
-> Iso
(Maybe [RecurringCharge])
(Maybe [RecurringCharge])
(Maybe [RecurringCharge])
(Maybe [RecurringCharge])
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
[RecurringCharge]
[RecurringCharge]
[RecurringCharge]
[RecurringCharge]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
reservedCacheNodesOffering_offeringType :: Lens.Lens' ReservedCacheNodesOffering (Prelude.Maybe Prelude.Text)
reservedCacheNodesOffering_offeringType :: (Maybe Text -> f (Maybe Text))
-> ReservedCacheNodesOffering -> f ReservedCacheNodesOffering
reservedCacheNodesOffering_offeringType = (ReservedCacheNodesOffering -> Maybe Text)
-> (ReservedCacheNodesOffering
-> Maybe Text -> ReservedCacheNodesOffering)
-> Lens
ReservedCacheNodesOffering
ReservedCacheNodesOffering
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReservedCacheNodesOffering' {Maybe Text
offeringType :: Maybe Text
$sel:offeringType:ReservedCacheNodesOffering' :: ReservedCacheNodesOffering -> Maybe Text
offeringType} -> Maybe Text
offeringType) (\s :: ReservedCacheNodesOffering
s@ReservedCacheNodesOffering' {} Maybe Text
a -> ReservedCacheNodesOffering
s {$sel:offeringType:ReservedCacheNodesOffering' :: Maybe Text
offeringType = Maybe Text
a} :: ReservedCacheNodesOffering)
reservedCacheNodesOffering_usagePrice :: Lens.Lens' ReservedCacheNodesOffering (Prelude.Maybe Prelude.Double)
reservedCacheNodesOffering_usagePrice :: (Maybe Double -> f (Maybe Double))
-> ReservedCacheNodesOffering -> f ReservedCacheNodesOffering
reservedCacheNodesOffering_usagePrice = (ReservedCacheNodesOffering -> Maybe Double)
-> (ReservedCacheNodesOffering
-> Maybe Double -> ReservedCacheNodesOffering)
-> Lens
ReservedCacheNodesOffering
ReservedCacheNodesOffering
(Maybe Double)
(Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReservedCacheNodesOffering' {Maybe Double
usagePrice :: Maybe Double
$sel:usagePrice:ReservedCacheNodesOffering' :: ReservedCacheNodesOffering -> Maybe Double
usagePrice} -> Maybe Double
usagePrice) (\s :: ReservedCacheNodesOffering
s@ReservedCacheNodesOffering' {} Maybe Double
a -> ReservedCacheNodesOffering
s {$sel:usagePrice:ReservedCacheNodesOffering' :: Maybe Double
usagePrice = Maybe Double
a} :: ReservedCacheNodesOffering)
reservedCacheNodesOffering_fixedPrice :: Lens.Lens' ReservedCacheNodesOffering (Prelude.Maybe Prelude.Double)
reservedCacheNodesOffering_fixedPrice :: (Maybe Double -> f (Maybe Double))
-> ReservedCacheNodesOffering -> f ReservedCacheNodesOffering
reservedCacheNodesOffering_fixedPrice = (ReservedCacheNodesOffering -> Maybe Double)
-> (ReservedCacheNodesOffering
-> Maybe Double -> ReservedCacheNodesOffering)
-> Lens
ReservedCacheNodesOffering
ReservedCacheNodesOffering
(Maybe Double)
(Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReservedCacheNodesOffering' {Maybe Double
fixedPrice :: Maybe Double
$sel:fixedPrice:ReservedCacheNodesOffering' :: ReservedCacheNodesOffering -> Maybe Double
fixedPrice} -> Maybe Double
fixedPrice) (\s :: ReservedCacheNodesOffering
s@ReservedCacheNodesOffering' {} Maybe Double
a -> ReservedCacheNodesOffering
s {$sel:fixedPrice:ReservedCacheNodesOffering' :: Maybe Double
fixedPrice = Maybe Double
a} :: ReservedCacheNodesOffering)
reservedCacheNodesOffering_duration :: Lens.Lens' ReservedCacheNodesOffering (Prelude.Maybe Prelude.Int)
reservedCacheNodesOffering_duration :: (Maybe Int -> f (Maybe Int))
-> ReservedCacheNodesOffering -> f ReservedCacheNodesOffering
reservedCacheNodesOffering_duration = (ReservedCacheNodesOffering -> Maybe Int)
-> (ReservedCacheNodesOffering
-> Maybe Int -> ReservedCacheNodesOffering)
-> Lens
ReservedCacheNodesOffering
ReservedCacheNodesOffering
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReservedCacheNodesOffering' {Maybe Int
duration :: Maybe Int
$sel:duration:ReservedCacheNodesOffering' :: ReservedCacheNodesOffering -> Maybe Int
duration} -> Maybe Int
duration) (\s :: ReservedCacheNodesOffering
s@ReservedCacheNodesOffering' {} Maybe Int
a -> ReservedCacheNodesOffering
s {$sel:duration:ReservedCacheNodesOffering' :: Maybe Int
duration = Maybe Int
a} :: ReservedCacheNodesOffering)
reservedCacheNodesOffering_reservedCacheNodesOfferingId :: Lens.Lens' ReservedCacheNodesOffering (Prelude.Maybe Prelude.Text)
reservedCacheNodesOffering_reservedCacheNodesOfferingId :: (Maybe Text -> f (Maybe Text))
-> ReservedCacheNodesOffering -> f ReservedCacheNodesOffering
reservedCacheNodesOffering_reservedCacheNodesOfferingId = (ReservedCacheNodesOffering -> Maybe Text)
-> (ReservedCacheNodesOffering
-> Maybe Text -> ReservedCacheNodesOffering)
-> Lens
ReservedCacheNodesOffering
ReservedCacheNodesOffering
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReservedCacheNodesOffering' {Maybe Text
reservedCacheNodesOfferingId :: Maybe Text
$sel:reservedCacheNodesOfferingId:ReservedCacheNodesOffering' :: ReservedCacheNodesOffering -> Maybe Text
reservedCacheNodesOfferingId} -> Maybe Text
reservedCacheNodesOfferingId) (\s :: ReservedCacheNodesOffering
s@ReservedCacheNodesOffering' {} Maybe Text
a -> ReservedCacheNodesOffering
s {$sel:reservedCacheNodesOfferingId:ReservedCacheNodesOffering' :: Maybe Text
reservedCacheNodesOfferingId = Maybe Text
a} :: ReservedCacheNodesOffering)
instance Core.FromXML ReservedCacheNodesOffering where
parseXML :: [Node] -> Either String ReservedCacheNodesOffering
parseXML [Node]
x =
Maybe Text
-> Maybe Text
-> Maybe [RecurringCharge]
-> Maybe Text
-> Maybe Double
-> Maybe Double
-> Maybe Int
-> Maybe Text
-> ReservedCacheNodesOffering
ReservedCacheNodesOffering'
(Maybe Text
-> Maybe Text
-> Maybe [RecurringCharge]
-> Maybe Text
-> Maybe Double
-> Maybe Double
-> Maybe Int
-> Maybe Text
-> ReservedCacheNodesOffering)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe [RecurringCharge]
-> Maybe Text
-> Maybe Double
-> Maybe Double
-> Maybe Int
-> Maybe Text
-> ReservedCacheNodesOffering)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"CacheNodeType")
Either
String
(Maybe Text
-> Maybe [RecurringCharge]
-> Maybe Text
-> Maybe Double
-> Maybe Double
-> Maybe Int
-> Maybe Text
-> ReservedCacheNodesOffering)
-> Either String (Maybe Text)
-> Either
String
(Maybe [RecurringCharge]
-> Maybe Text
-> Maybe Double
-> Maybe Double
-> Maybe Int
-> Maybe Text
-> ReservedCacheNodesOffering)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ProductDescription")
Either
String
(Maybe [RecurringCharge]
-> Maybe Text
-> Maybe Double
-> Maybe Double
-> Maybe Int
-> Maybe Text
-> ReservedCacheNodesOffering)
-> Either String (Maybe [RecurringCharge])
-> Either
String
(Maybe Text
-> Maybe Double
-> Maybe Double
-> Maybe Int
-> Maybe Text
-> ReservedCacheNodesOffering)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"RecurringCharges"
Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [RecurringCharge]))
-> Either String (Maybe [RecurringCharge])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [RecurringCharge])
-> [Node] -> Either String (Maybe [RecurringCharge])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [RecurringCharge]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"RecurringCharge")
)
Either
String
(Maybe Text
-> Maybe Double
-> Maybe Double
-> Maybe Int
-> Maybe Text
-> ReservedCacheNodesOffering)
-> Either String (Maybe Text)
-> Either
String
(Maybe Double
-> Maybe Double
-> Maybe Int
-> Maybe Text
-> ReservedCacheNodesOffering)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"OfferingType")
Either
String
(Maybe Double
-> Maybe Double
-> Maybe Int
-> Maybe Text
-> ReservedCacheNodesOffering)
-> Either String (Maybe Double)
-> Either
String
(Maybe Double
-> Maybe Int -> Maybe Text -> ReservedCacheNodesOffering)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Double)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"UsagePrice")
Either
String
(Maybe Double
-> Maybe Int -> Maybe Text -> ReservedCacheNodesOffering)
-> Either String (Maybe Double)
-> Either
String (Maybe Int -> Maybe Text -> ReservedCacheNodesOffering)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Double)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"FixedPrice")
Either
String (Maybe Int -> Maybe Text -> ReservedCacheNodesOffering)
-> Either String (Maybe Int)
-> Either String (Maybe Text -> ReservedCacheNodesOffering)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Duration")
Either String (Maybe Text -> ReservedCacheNodesOffering)
-> Either String (Maybe Text)
-> Either String ReservedCacheNodesOffering
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ReservedCacheNodesOfferingId")
instance Prelude.Hashable ReservedCacheNodesOffering
instance Prelude.NFData ReservedCacheNodesOffering