{-# 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.BillingConductor.Types.UpdateCustomLineItemFlatChargeDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data UpdateCustomLineItemFlatChargeDetails = UpdateCustomLineItemFlatChargeDetails'
{
UpdateCustomLineItemFlatChargeDetails -> Double
chargeValue :: Prelude.Double
}
deriving (UpdateCustomLineItemFlatChargeDetails
-> UpdateCustomLineItemFlatChargeDetails -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateCustomLineItemFlatChargeDetails
-> UpdateCustomLineItemFlatChargeDetails -> Bool
$c/= :: UpdateCustomLineItemFlatChargeDetails
-> UpdateCustomLineItemFlatChargeDetails -> Bool
== :: UpdateCustomLineItemFlatChargeDetails
-> UpdateCustomLineItemFlatChargeDetails -> Bool
$c== :: UpdateCustomLineItemFlatChargeDetails
-> UpdateCustomLineItemFlatChargeDetails -> Bool
Prelude.Eq, ReadPrec [UpdateCustomLineItemFlatChargeDetails]
ReadPrec UpdateCustomLineItemFlatChargeDetails
Int -> ReadS UpdateCustomLineItemFlatChargeDetails
ReadS [UpdateCustomLineItemFlatChargeDetails]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateCustomLineItemFlatChargeDetails]
$creadListPrec :: ReadPrec [UpdateCustomLineItemFlatChargeDetails]
readPrec :: ReadPrec UpdateCustomLineItemFlatChargeDetails
$creadPrec :: ReadPrec UpdateCustomLineItemFlatChargeDetails
readList :: ReadS [UpdateCustomLineItemFlatChargeDetails]
$creadList :: ReadS [UpdateCustomLineItemFlatChargeDetails]
readsPrec :: Int -> ReadS UpdateCustomLineItemFlatChargeDetails
$creadsPrec :: Int -> ReadS UpdateCustomLineItemFlatChargeDetails
Prelude.Read, Int -> UpdateCustomLineItemFlatChargeDetails -> ShowS
[UpdateCustomLineItemFlatChargeDetails] -> ShowS
UpdateCustomLineItemFlatChargeDetails -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateCustomLineItemFlatChargeDetails] -> ShowS
$cshowList :: [UpdateCustomLineItemFlatChargeDetails] -> ShowS
show :: UpdateCustomLineItemFlatChargeDetails -> String
$cshow :: UpdateCustomLineItemFlatChargeDetails -> String
showsPrec :: Int -> UpdateCustomLineItemFlatChargeDetails -> ShowS
$cshowsPrec :: Int -> UpdateCustomLineItemFlatChargeDetails -> ShowS
Prelude.Show, forall x.
Rep UpdateCustomLineItemFlatChargeDetails x
-> UpdateCustomLineItemFlatChargeDetails
forall x.
UpdateCustomLineItemFlatChargeDetails
-> Rep UpdateCustomLineItemFlatChargeDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateCustomLineItemFlatChargeDetails x
-> UpdateCustomLineItemFlatChargeDetails
$cfrom :: forall x.
UpdateCustomLineItemFlatChargeDetails
-> Rep UpdateCustomLineItemFlatChargeDetails x
Prelude.Generic)
newUpdateCustomLineItemFlatChargeDetails ::
Prelude.Double ->
UpdateCustomLineItemFlatChargeDetails
newUpdateCustomLineItemFlatChargeDetails :: Double -> UpdateCustomLineItemFlatChargeDetails
newUpdateCustomLineItemFlatChargeDetails
Double
pChargeValue_ =
UpdateCustomLineItemFlatChargeDetails'
{ $sel:chargeValue:UpdateCustomLineItemFlatChargeDetails' :: Double
chargeValue =
Double
pChargeValue_
}
updateCustomLineItemFlatChargeDetails_chargeValue :: Lens.Lens' UpdateCustomLineItemFlatChargeDetails Prelude.Double
updateCustomLineItemFlatChargeDetails_chargeValue :: Lens' UpdateCustomLineItemFlatChargeDetails Double
updateCustomLineItemFlatChargeDetails_chargeValue = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCustomLineItemFlatChargeDetails' {Double
chargeValue :: Double
$sel:chargeValue:UpdateCustomLineItemFlatChargeDetails' :: UpdateCustomLineItemFlatChargeDetails -> Double
chargeValue} -> Double
chargeValue) (\s :: UpdateCustomLineItemFlatChargeDetails
s@UpdateCustomLineItemFlatChargeDetails' {} Double
a -> UpdateCustomLineItemFlatChargeDetails
s {$sel:chargeValue:UpdateCustomLineItemFlatChargeDetails' :: Double
chargeValue = Double
a} :: UpdateCustomLineItemFlatChargeDetails)
instance
Prelude.Hashable
UpdateCustomLineItemFlatChargeDetails
where
hashWithSalt :: Int -> UpdateCustomLineItemFlatChargeDetails -> Int
hashWithSalt
Int
_salt
UpdateCustomLineItemFlatChargeDetails' {Double
chargeValue :: Double
$sel:chargeValue:UpdateCustomLineItemFlatChargeDetails' :: UpdateCustomLineItemFlatChargeDetails -> Double
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Double
chargeValue
instance
Prelude.NFData
UpdateCustomLineItemFlatChargeDetails
where
rnf :: UpdateCustomLineItemFlatChargeDetails -> ()
rnf UpdateCustomLineItemFlatChargeDetails' {Double
chargeValue :: Double
$sel:chargeValue:UpdateCustomLineItemFlatChargeDetails' :: UpdateCustomLineItemFlatChargeDetails -> Double
..} =
forall a. NFData a => a -> ()
Prelude.rnf Double
chargeValue
instance
Data.ToJSON
UpdateCustomLineItemFlatChargeDetails
where
toJSON :: UpdateCustomLineItemFlatChargeDetails -> Value
toJSON UpdateCustomLineItemFlatChargeDetails' {Double
chargeValue :: Double
$sel:chargeValue:UpdateCustomLineItemFlatChargeDetails' :: UpdateCustomLineItemFlatChargeDetails -> Double
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[forall a. a -> Maybe a
Prelude.Just (Key
"ChargeValue" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Double
chargeValue)]
)