stratosphere-connectcampaigns-1.0.0: gen/Stratosphere/ConnectCampaigns/Campaign/PredictiveDialerConfigProperty.hs
module Stratosphere.ConnectCampaigns.Campaign.PredictiveDialerConfigProperty (
PredictiveDialerConfigProperty(..),
mkPredictiveDialerConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PredictiveDialerConfigProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connectcampaigns-campaign-predictivedialerconfig.html>
PredictiveDialerConfigProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connectcampaigns-campaign-predictivedialerconfig.html#cfn-connectcampaigns-campaign-predictivedialerconfig-bandwidthallocation>
bandwidthAllocation :: (Value Prelude.Double),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connectcampaigns-campaign-predictivedialerconfig.html#cfn-connectcampaigns-campaign-predictivedialerconfig-dialingcapacity>
dialingCapacity :: (Prelude.Maybe (Value Prelude.Double))}
deriving stock (Prelude.Eq, Prelude.Show)
mkPredictiveDialerConfigProperty ::
Value Prelude.Double -> PredictiveDialerConfigProperty
mkPredictiveDialerConfigProperty bandwidthAllocation
= PredictiveDialerConfigProperty
{haddock_workaround_ = (),
bandwidthAllocation = bandwidthAllocation,
dialingCapacity = Prelude.Nothing}
instance ToResourceProperties PredictiveDialerConfigProperty where
toResourceProperties PredictiveDialerConfigProperty {..}
= ResourceProperties
{awsType = "AWS::ConnectCampaigns::Campaign.PredictiveDialerConfig",
supportsTags = Prelude.False,
properties = Prelude.fromList
((Prelude.<>)
["BandwidthAllocation" JSON..= bandwidthAllocation]
(Prelude.catMaybes
[(JSON..=) "DialingCapacity" Prelude.<$> dialingCapacity]))}
instance JSON.ToJSON PredictiveDialerConfigProperty where
toJSON PredictiveDialerConfigProperty {..}
= JSON.object
(Prelude.fromList
((Prelude.<>)
["BandwidthAllocation" JSON..= bandwidthAllocation]
(Prelude.catMaybes
[(JSON..=) "DialingCapacity" Prelude.<$> dialingCapacity])))
instance Property "BandwidthAllocation" PredictiveDialerConfigProperty where
type PropertyType "BandwidthAllocation" PredictiveDialerConfigProperty = Value Prelude.Double
set newValue PredictiveDialerConfigProperty {..}
= PredictiveDialerConfigProperty
{bandwidthAllocation = newValue, ..}
instance Property "DialingCapacity" PredictiveDialerConfigProperty where
type PropertyType "DialingCapacity" PredictiveDialerConfigProperty = Value Prelude.Double
set newValue PredictiveDialerConfigProperty {..}
= PredictiveDialerConfigProperty
{dialingCapacity = Prelude.pure newValue, ..}