module Stratosphere.ConnectCampaignsV2.Campaign.PredictiveConfigProperty (
        PredictiveConfigProperty(..), mkPredictiveConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PredictiveConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connectcampaignsv2-campaign-predictiveconfig.html>
    PredictiveConfigProperty {PredictiveConfigProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connectcampaignsv2-campaign-predictiveconfig.html#cfn-connectcampaignsv2-campaign-predictiveconfig-bandwidthallocation>
                              PredictiveConfigProperty -> Value Double
bandwidthAllocation :: (Value Prelude.Double)}
  deriving stock (PredictiveConfigProperty -> PredictiveConfigProperty -> Bool
(PredictiveConfigProperty -> PredictiveConfigProperty -> Bool)
-> (PredictiveConfigProperty -> PredictiveConfigProperty -> Bool)
-> Eq PredictiveConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PredictiveConfigProperty -> PredictiveConfigProperty -> Bool
== :: PredictiveConfigProperty -> PredictiveConfigProperty -> Bool
$c/= :: PredictiveConfigProperty -> PredictiveConfigProperty -> Bool
/= :: PredictiveConfigProperty -> PredictiveConfigProperty -> Bool
Prelude.Eq, Int -> PredictiveConfigProperty -> ShowS
[PredictiveConfigProperty] -> ShowS
PredictiveConfigProperty -> String
(Int -> PredictiveConfigProperty -> ShowS)
-> (PredictiveConfigProperty -> String)
-> ([PredictiveConfigProperty] -> ShowS)
-> Show PredictiveConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PredictiveConfigProperty -> ShowS
showsPrec :: Int -> PredictiveConfigProperty -> ShowS
$cshow :: PredictiveConfigProperty -> String
show :: PredictiveConfigProperty -> String
$cshowList :: [PredictiveConfigProperty] -> ShowS
showList :: [PredictiveConfigProperty] -> ShowS
Prelude.Show)
mkPredictiveConfigProperty ::
  Value Prelude.Double -> PredictiveConfigProperty
mkPredictiveConfigProperty :: Value Double -> PredictiveConfigProperty
mkPredictiveConfigProperty Value Double
bandwidthAllocation
  = PredictiveConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       bandwidthAllocation :: Value Double
bandwidthAllocation = Value Double
bandwidthAllocation}
instance ToResourceProperties PredictiveConfigProperty where
  toResourceProperties :: PredictiveConfigProperty -> ResourceProperties
toResourceProperties PredictiveConfigProperty {()
Value Double
haddock_workaround_ :: PredictiveConfigProperty -> ()
bandwidthAllocation :: PredictiveConfigProperty -> Value Double
haddock_workaround_ :: ()
bandwidthAllocation :: Value Double
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ConnectCampaignsV2::Campaign.PredictiveConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"BandwidthAllocation" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
bandwidthAllocation]}
instance JSON.ToJSON PredictiveConfigProperty where
  toJSON :: PredictiveConfigProperty -> Value
toJSON PredictiveConfigProperty {()
Value Double
haddock_workaround_ :: PredictiveConfigProperty -> ()
bandwidthAllocation :: PredictiveConfigProperty -> Value Double
haddock_workaround_ :: ()
bandwidthAllocation :: Value Double
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"BandwidthAllocation" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
bandwidthAllocation]
instance Property "BandwidthAllocation" PredictiveConfigProperty where
  type PropertyType "BandwidthAllocation" PredictiveConfigProperty = Value Prelude.Double
  set :: PropertyType "BandwidthAllocation" PredictiveConfigProperty
-> PredictiveConfigProperty -> PredictiveConfigProperty
set PropertyType "BandwidthAllocation" PredictiveConfigProperty
newValue PredictiveConfigProperty {()
Value Double
haddock_workaround_ :: PredictiveConfigProperty -> ()
bandwidthAllocation :: PredictiveConfigProperty -> Value Double
haddock_workaround_ :: ()
bandwidthAllocation :: Value Double
..}
    = PredictiveConfigProperty {bandwidthAllocation :: Value Double
bandwidthAllocation = PropertyType "BandwidthAllocation" PredictiveConfigProperty
Value Double
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}