module Stratosphere.BillingConductor.BillingGroup.ComputationPreferenceProperty (
        ComputationPreferenceProperty(..), mkComputationPreferenceProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ComputationPreferenceProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-billinggroup-computationpreference.html>
    ComputationPreferenceProperty {ComputationPreferenceProperty -> ()
haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-billinggroup-computationpreference.html#cfn-billingconductor-billinggroup-computationpreference-pricingplanarn>
                                   ComputationPreferenceProperty -> Value Text
pricingPlanArn :: (Value Prelude.Text)}
  deriving stock (ComputationPreferenceProperty
-> ComputationPreferenceProperty -> Bool
(ComputationPreferenceProperty
 -> ComputationPreferenceProperty -> Bool)
-> (ComputationPreferenceProperty
    -> ComputationPreferenceProperty -> Bool)
-> Eq ComputationPreferenceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ComputationPreferenceProperty
-> ComputationPreferenceProperty -> Bool
== :: ComputationPreferenceProperty
-> ComputationPreferenceProperty -> Bool
$c/= :: ComputationPreferenceProperty
-> ComputationPreferenceProperty -> Bool
/= :: ComputationPreferenceProperty
-> ComputationPreferenceProperty -> Bool
Prelude.Eq, Int -> ComputationPreferenceProperty -> ShowS
[ComputationPreferenceProperty] -> ShowS
ComputationPreferenceProperty -> String
(Int -> ComputationPreferenceProperty -> ShowS)
-> (ComputationPreferenceProperty -> String)
-> ([ComputationPreferenceProperty] -> ShowS)
-> Show ComputationPreferenceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ComputationPreferenceProperty -> ShowS
showsPrec :: Int -> ComputationPreferenceProperty -> ShowS
$cshow :: ComputationPreferenceProperty -> String
show :: ComputationPreferenceProperty -> String
$cshowList :: [ComputationPreferenceProperty] -> ShowS
showList :: [ComputationPreferenceProperty] -> ShowS
Prelude.Show)
mkComputationPreferenceProperty ::
  Value Prelude.Text -> ComputationPreferenceProperty
mkComputationPreferenceProperty :: Value Text -> ComputationPreferenceProperty
mkComputationPreferenceProperty Value Text
pricingPlanArn
  = ComputationPreferenceProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), pricingPlanArn :: Value Text
pricingPlanArn = Value Text
pricingPlanArn}
instance ToResourceProperties ComputationPreferenceProperty where
  toResourceProperties :: ComputationPreferenceProperty -> ResourceProperties
toResourceProperties ComputationPreferenceProperty {()
Value Text
haddock_workaround_ :: ComputationPreferenceProperty -> ()
pricingPlanArn :: ComputationPreferenceProperty -> Value Text
haddock_workaround_ :: ()
pricingPlanArn :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::BillingConductor::BillingGroup.ComputationPreference",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"PricingPlanArn" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
pricingPlanArn]}
instance JSON.ToJSON ComputationPreferenceProperty where
  toJSON :: ComputationPreferenceProperty -> Value
toJSON ComputationPreferenceProperty {()
Value Text
haddock_workaround_ :: ComputationPreferenceProperty -> ()
pricingPlanArn :: ComputationPreferenceProperty -> Value Text
haddock_workaround_ :: ()
pricingPlanArn :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"PricingPlanArn" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
pricingPlanArn]
instance Property "PricingPlanArn" ComputationPreferenceProperty where
  type PropertyType "PricingPlanArn" ComputationPreferenceProperty = Value Prelude.Text
  set :: PropertyType "PricingPlanArn" ComputationPreferenceProperty
-> ComputationPreferenceProperty -> ComputationPreferenceProperty
set PropertyType "PricingPlanArn" ComputationPreferenceProperty
newValue ComputationPreferenceProperty {()
Value Text
haddock_workaround_ :: ComputationPreferenceProperty -> ()
pricingPlanArn :: ComputationPreferenceProperty -> Value Text
haddock_workaround_ :: ()
pricingPlanArn :: Value Text
..}
    = ComputationPreferenceProperty {pricingPlanArn :: Value Text
pricingPlanArn = PropertyType "PricingPlanArn" ComputationPreferenceProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}