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
=
PredictiveDialerConfigProperty {PredictiveDialerConfigProperty -> ()
haddock_workaround_ :: (),
PredictiveDialerConfigProperty -> Value Double
bandwidthAllocation :: (Value Prelude.Double),
PredictiveDialerConfigProperty -> Maybe (Value Double)
dialingCapacity :: (Prelude.Maybe (Value Prelude.Double))}
deriving stock (PredictiveDialerConfigProperty
-> PredictiveDialerConfigProperty -> Bool
(PredictiveDialerConfigProperty
-> PredictiveDialerConfigProperty -> Bool)
-> (PredictiveDialerConfigProperty
-> PredictiveDialerConfigProperty -> Bool)
-> Eq PredictiveDialerConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PredictiveDialerConfigProperty
-> PredictiveDialerConfigProperty -> Bool
== :: PredictiveDialerConfigProperty
-> PredictiveDialerConfigProperty -> Bool
$c/= :: PredictiveDialerConfigProperty
-> PredictiveDialerConfigProperty -> Bool
/= :: PredictiveDialerConfigProperty
-> PredictiveDialerConfigProperty -> Bool
Prelude.Eq, Int -> PredictiveDialerConfigProperty -> ShowS
[PredictiveDialerConfigProperty] -> ShowS
PredictiveDialerConfigProperty -> String
(Int -> PredictiveDialerConfigProperty -> ShowS)
-> (PredictiveDialerConfigProperty -> String)
-> ([PredictiveDialerConfigProperty] -> ShowS)
-> Show PredictiveDialerConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PredictiveDialerConfigProperty -> ShowS
showsPrec :: Int -> PredictiveDialerConfigProperty -> ShowS
$cshow :: PredictiveDialerConfigProperty -> String
show :: PredictiveDialerConfigProperty -> String
$cshowList :: [PredictiveDialerConfigProperty] -> ShowS
showList :: [PredictiveDialerConfigProperty] -> ShowS
Prelude.Show)
mkPredictiveDialerConfigProperty ::
Value Prelude.Double -> PredictiveDialerConfigProperty
mkPredictiveDialerConfigProperty :: Value Double -> PredictiveDialerConfigProperty
mkPredictiveDialerConfigProperty Value Double
bandwidthAllocation
= PredictiveDialerConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
bandwidthAllocation :: Value Double
bandwidthAllocation = Value Double
bandwidthAllocation,
dialingCapacity :: Maybe (Value Double)
dialingCapacity = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PredictiveDialerConfigProperty where
toResourceProperties :: PredictiveDialerConfigProperty -> ResourceProperties
toResourceProperties PredictiveDialerConfigProperty {Maybe (Value Double)
()
Value Double
haddock_workaround_ :: PredictiveDialerConfigProperty -> ()
bandwidthAllocation :: PredictiveDialerConfigProperty -> Value Double
dialingCapacity :: PredictiveDialerConfigProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
bandwidthAllocation :: Value Double
dialingCapacity :: Maybe (Value Double)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ConnectCampaigns::Campaign.PredictiveDialerConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[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]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"DialingCapacity" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
dialingCapacity]))}
instance JSON.ToJSON PredictiveDialerConfigProperty where
toJSON :: PredictiveDialerConfigProperty -> Value
toJSON PredictiveDialerConfigProperty {Maybe (Value Double)
()
Value Double
haddock_workaround_ :: PredictiveDialerConfigProperty -> ()
bandwidthAllocation :: PredictiveDialerConfigProperty -> Value Double
dialingCapacity :: PredictiveDialerConfigProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
bandwidthAllocation :: Value Double
dialingCapacity :: Maybe (Value Double)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[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]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"DialingCapacity" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
dialingCapacity])))
instance Property "BandwidthAllocation" PredictiveDialerConfigProperty where
type PropertyType "BandwidthAllocation" PredictiveDialerConfigProperty = Value Prelude.Double
set :: PropertyType "BandwidthAllocation" PredictiveDialerConfigProperty
-> PredictiveDialerConfigProperty -> PredictiveDialerConfigProperty
set PropertyType "BandwidthAllocation" PredictiveDialerConfigProperty
newValue PredictiveDialerConfigProperty {Maybe (Value Double)
()
Value Double
haddock_workaround_ :: PredictiveDialerConfigProperty -> ()
bandwidthAllocation :: PredictiveDialerConfigProperty -> Value Double
dialingCapacity :: PredictiveDialerConfigProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
bandwidthAllocation :: Value Double
dialingCapacity :: Maybe (Value Double)
..}
= PredictiveDialerConfigProperty
{bandwidthAllocation :: Value Double
bandwidthAllocation = PropertyType "BandwidthAllocation" PredictiveDialerConfigProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
dialingCapacity :: Maybe (Value Double)
haddock_workaround_ :: ()
dialingCapacity :: Maybe (Value Double)
..}
instance Property "DialingCapacity" PredictiveDialerConfigProperty where
type PropertyType "DialingCapacity" PredictiveDialerConfigProperty = Value Prelude.Double
set :: PropertyType "DialingCapacity" PredictiveDialerConfigProperty
-> PredictiveDialerConfigProperty -> PredictiveDialerConfigProperty
set PropertyType "DialingCapacity" PredictiveDialerConfigProperty
newValue PredictiveDialerConfigProperty {Maybe (Value Double)
()
Value Double
haddock_workaround_ :: PredictiveDialerConfigProperty -> ()
bandwidthAllocation :: PredictiveDialerConfigProperty -> Value Double
dialingCapacity :: PredictiveDialerConfigProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
bandwidthAllocation :: Value Double
dialingCapacity :: Maybe (Value Double)
..}
= PredictiveDialerConfigProperty
{dialingCapacity :: Maybe (Value Double)
dialingCapacity = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DialingCapacity" PredictiveDialerConfigProperty
Value Double
newValue, ()
Value Double
haddock_workaround_ :: ()
bandwidthAllocation :: Value Double
haddock_workaround_ :: ()
bandwidthAllocation :: Value Double
..}