content: module Stratosphere.ConnectCampaigns.Campaign.ProgressiveDialerConfigProperty (
          ProgressiveDialerConfigProperty(..),
          mkProgressiveDialerConfigProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data ProgressiveDialerConfigProperty
    = ProgressiveDialerConfigProperty {bandwidthAllocation :: (Value Prelude.Double),
                                       dialingCapacity :: (Prelude.Maybe (Value Prelude.Double))}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkProgressiveDialerConfigProperty ::
    Value Prelude.Double -> ProgressiveDialerConfigProperty
  mkProgressiveDialerConfigProperty bandwidthAllocation
    = ProgressiveDialerConfigProperty
        {bandwidthAllocation = bandwidthAllocation,
         dialingCapacity = Prelude.Nothing}
  instance ToResourceProperties ProgressiveDialerConfigProperty where
    toResourceProperties ProgressiveDialerConfigProperty {..}
      = ResourceProperties
          {awsType = "AWS::ConnectCampaigns::Campaign.ProgressiveDialerConfig",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          ((Prelude.<>)
                             ["BandwidthAllocation" JSON..= bandwidthAllocation]
                             (Prelude.catMaybes
                                [(JSON..=) "DialingCapacity" Prelude.<$> dialingCapacity]))}
  instance JSON.ToJSON ProgressiveDialerConfigProperty where
    toJSON ProgressiveDialerConfigProperty {..}
      = JSON.object
          (Prelude.fromList
             ((Prelude.<>)
                ["BandwidthAllocation" JSON..= bandwidthAllocation]
                (Prelude.catMaybes
                   [(JSON..=) "DialingCapacity" Prelude.<$> dialingCapacity])))
  instance Property "BandwidthAllocation" ProgressiveDialerConfigProperty where
    type PropertyType "BandwidthAllocation" ProgressiveDialerConfigProperty = Value Prelude.Double
    set newValue ProgressiveDialerConfigProperty {..}
      = ProgressiveDialerConfigProperty
          {bandwidthAllocation = newValue, ..}
  instance Property "DialingCapacity" ProgressiveDialerConfigProperty where
    type PropertyType "DialingCapacity" ProgressiveDialerConfigProperty = Value Prelude.Double
    set newValue ProgressiveDialerConfigProperty {..}
      = ProgressiveDialerConfigProperty
          {dialingCapacity = Prelude.pure newValue, ..}