module Stratosphere.CustomerProfiles.Integration.SalesforceSourcePropertiesProperty (
        SalesforceSourcePropertiesProperty(..),
        mkSalesforceSourcePropertiesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SalesforceSourcePropertiesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-integration-salesforcesourceproperties.html>
    SalesforceSourcePropertiesProperty {SalesforceSourcePropertiesProperty -> ()
haddock_workaround_ :: (),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-integration-salesforcesourceproperties.html#cfn-customerprofiles-integration-salesforcesourceproperties-enabledynamicfieldupdate>
                                        SalesforceSourcePropertiesProperty -> Maybe (Value Bool)
enableDynamicFieldUpdate :: (Prelude.Maybe (Value Prelude.Bool)),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-integration-salesforcesourceproperties.html#cfn-customerprofiles-integration-salesforcesourceproperties-includedeletedrecords>
                                        SalesforceSourcePropertiesProperty -> Maybe (Value Bool)
includeDeletedRecords :: (Prelude.Maybe (Value Prelude.Bool)),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-integration-salesforcesourceproperties.html#cfn-customerprofiles-integration-salesforcesourceproperties-object>
                                        SalesforceSourcePropertiesProperty -> Value Text
object :: (Value Prelude.Text)}
  deriving stock (SalesforceSourcePropertiesProperty
-> SalesforceSourcePropertiesProperty -> Bool
(SalesforceSourcePropertiesProperty
 -> SalesforceSourcePropertiesProperty -> Bool)
-> (SalesforceSourcePropertiesProperty
    -> SalesforceSourcePropertiesProperty -> Bool)
-> Eq SalesforceSourcePropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SalesforceSourcePropertiesProperty
-> SalesforceSourcePropertiesProperty -> Bool
== :: SalesforceSourcePropertiesProperty
-> SalesforceSourcePropertiesProperty -> Bool
$c/= :: SalesforceSourcePropertiesProperty
-> SalesforceSourcePropertiesProperty -> Bool
/= :: SalesforceSourcePropertiesProperty
-> SalesforceSourcePropertiesProperty -> Bool
Prelude.Eq, Int -> SalesforceSourcePropertiesProperty -> ShowS
[SalesforceSourcePropertiesProperty] -> ShowS
SalesforceSourcePropertiesProperty -> String
(Int -> SalesforceSourcePropertiesProperty -> ShowS)
-> (SalesforceSourcePropertiesProperty -> String)
-> ([SalesforceSourcePropertiesProperty] -> ShowS)
-> Show SalesforceSourcePropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SalesforceSourcePropertiesProperty -> ShowS
showsPrec :: Int -> SalesforceSourcePropertiesProperty -> ShowS
$cshow :: SalesforceSourcePropertiesProperty -> String
show :: SalesforceSourcePropertiesProperty -> String
$cshowList :: [SalesforceSourcePropertiesProperty] -> ShowS
showList :: [SalesforceSourcePropertiesProperty] -> ShowS
Prelude.Show)
mkSalesforceSourcePropertiesProperty ::
  Value Prelude.Text -> SalesforceSourcePropertiesProperty
mkSalesforceSourcePropertiesProperty :: Value Text -> SalesforceSourcePropertiesProperty
mkSalesforceSourcePropertiesProperty Value Text
object
  = SalesforceSourcePropertiesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), object :: Value Text
object = Value Text
object,
       enableDynamicFieldUpdate :: Maybe (Value Bool)
enableDynamicFieldUpdate = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       includeDeletedRecords :: Maybe (Value Bool)
includeDeletedRecords = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SalesforceSourcePropertiesProperty where
  toResourceProperties :: SalesforceSourcePropertiesProperty -> ResourceProperties
toResourceProperties SalesforceSourcePropertiesProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: SalesforceSourcePropertiesProperty -> ()
enableDynamicFieldUpdate :: SalesforceSourcePropertiesProperty -> Maybe (Value Bool)
includeDeletedRecords :: SalesforceSourcePropertiesProperty -> Maybe (Value Bool)
object :: SalesforceSourcePropertiesProperty -> Value Text
haddock_workaround_ :: ()
enableDynamicFieldUpdate :: Maybe (Value Bool)
includeDeletedRecords :: Maybe (Value Bool)
object :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CustomerProfiles::Integration.SalesforceSourceProperties",
         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
"Object" 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
object]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EnableDynamicFieldUpdate"
                                 (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enableDynamicFieldUpdate,
                               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IncludeDeletedRecords"
                                 (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
includeDeletedRecords]))}
instance JSON.ToJSON SalesforceSourcePropertiesProperty where
  toJSON :: SalesforceSourcePropertiesProperty -> Value
toJSON SalesforceSourcePropertiesProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: SalesforceSourcePropertiesProperty -> ()
enableDynamicFieldUpdate :: SalesforceSourcePropertiesProperty -> Maybe (Value Bool)
includeDeletedRecords :: SalesforceSourcePropertiesProperty -> Maybe (Value Bool)
object :: SalesforceSourcePropertiesProperty -> Value Text
haddock_workaround_ :: ()
enableDynamicFieldUpdate :: Maybe (Value Bool)
includeDeletedRecords :: Maybe (Value Bool)
object :: Value Text
..}
    = [(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
"Object" 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
object]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EnableDynamicFieldUpdate"
                    (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enableDynamicFieldUpdate,
                  Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IncludeDeletedRecords"
                    (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
includeDeletedRecords])))
instance Property "EnableDynamicFieldUpdate" SalesforceSourcePropertiesProperty where
  type PropertyType "EnableDynamicFieldUpdate" SalesforceSourcePropertiesProperty = Value Prelude.Bool
  set :: PropertyType
  "EnableDynamicFieldUpdate" SalesforceSourcePropertiesProperty
-> SalesforceSourcePropertiesProperty
-> SalesforceSourcePropertiesProperty
set PropertyType
  "EnableDynamicFieldUpdate" SalesforceSourcePropertiesProperty
newValue SalesforceSourcePropertiesProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: SalesforceSourcePropertiesProperty -> ()
enableDynamicFieldUpdate :: SalesforceSourcePropertiesProperty -> Maybe (Value Bool)
includeDeletedRecords :: SalesforceSourcePropertiesProperty -> Maybe (Value Bool)
object :: SalesforceSourcePropertiesProperty -> Value Text
haddock_workaround_ :: ()
enableDynamicFieldUpdate :: Maybe (Value Bool)
includeDeletedRecords :: Maybe (Value Bool)
object :: Value Text
..}
    = SalesforceSourcePropertiesProperty
        {enableDynamicFieldUpdate :: Maybe (Value Bool)
enableDynamicFieldUpdate = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "EnableDynamicFieldUpdate" SalesforceSourcePropertiesProperty
Value Bool
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
includeDeletedRecords :: Maybe (Value Bool)
object :: Value Text
haddock_workaround_ :: ()
includeDeletedRecords :: Maybe (Value Bool)
object :: Value Text
..}
instance Property "IncludeDeletedRecords" SalesforceSourcePropertiesProperty where
  type PropertyType "IncludeDeletedRecords" SalesforceSourcePropertiesProperty = Value Prelude.Bool
  set :: PropertyType
  "IncludeDeletedRecords" SalesforceSourcePropertiesProperty
-> SalesforceSourcePropertiesProperty
-> SalesforceSourcePropertiesProperty
set PropertyType
  "IncludeDeletedRecords" SalesforceSourcePropertiesProperty
newValue SalesforceSourcePropertiesProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: SalesforceSourcePropertiesProperty -> ()
enableDynamicFieldUpdate :: SalesforceSourcePropertiesProperty -> Maybe (Value Bool)
includeDeletedRecords :: SalesforceSourcePropertiesProperty -> Maybe (Value Bool)
object :: SalesforceSourcePropertiesProperty -> Value Text
haddock_workaround_ :: ()
enableDynamicFieldUpdate :: Maybe (Value Bool)
includeDeletedRecords :: Maybe (Value Bool)
object :: Value Text
..}
    = SalesforceSourcePropertiesProperty
        {includeDeletedRecords :: Maybe (Value Bool)
includeDeletedRecords = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "IncludeDeletedRecords" SalesforceSourcePropertiesProperty
Value Bool
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
enableDynamicFieldUpdate :: Maybe (Value Bool)
object :: Value Text
haddock_workaround_ :: ()
enableDynamicFieldUpdate :: Maybe (Value Bool)
object :: Value Text
..}
instance Property "Object" SalesforceSourcePropertiesProperty where
  type PropertyType "Object" SalesforceSourcePropertiesProperty = Value Prelude.Text
  set :: PropertyType "Object" SalesforceSourcePropertiesProperty
-> SalesforceSourcePropertiesProperty
-> SalesforceSourcePropertiesProperty
set PropertyType "Object" SalesforceSourcePropertiesProperty
newValue SalesforceSourcePropertiesProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: SalesforceSourcePropertiesProperty -> ()
enableDynamicFieldUpdate :: SalesforceSourcePropertiesProperty -> Maybe (Value Bool)
includeDeletedRecords :: SalesforceSourcePropertiesProperty -> Maybe (Value Bool)
object :: SalesforceSourcePropertiesProperty -> Value Text
haddock_workaround_ :: ()
enableDynamicFieldUpdate :: Maybe (Value Bool)
includeDeletedRecords :: Maybe (Value Bool)
object :: Value Text
..}
    = SalesforceSourcePropertiesProperty {object :: Value Text
object = PropertyType "Object" SalesforceSourcePropertiesProperty
Value Text
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
enableDynamicFieldUpdate :: Maybe (Value Bool)
includeDeletedRecords :: Maybe (Value Bool)
haddock_workaround_ :: ()
enableDynamicFieldUpdate :: Maybe (Value Bool)
includeDeletedRecords :: Maybe (Value Bool)
..}