module Stratosphere.CustomerProfiles.Integration.IncrementalPullConfigProperty (
        IncrementalPullConfigProperty(..), mkIncrementalPullConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IncrementalPullConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-integration-incrementalpullconfig.html>
    IncrementalPullConfigProperty {IncrementalPullConfigProperty -> ()
haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-integration-incrementalpullconfig.html#cfn-customerprofiles-integration-incrementalpullconfig-datetimetypefieldname>
                                   IncrementalPullConfigProperty -> Maybe (Value Text)
datetimeTypeFieldName :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (IncrementalPullConfigProperty
-> IncrementalPullConfigProperty -> Bool
(IncrementalPullConfigProperty
 -> IncrementalPullConfigProperty -> Bool)
-> (IncrementalPullConfigProperty
    -> IncrementalPullConfigProperty -> Bool)
-> Eq IncrementalPullConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IncrementalPullConfigProperty
-> IncrementalPullConfigProperty -> Bool
== :: IncrementalPullConfigProperty
-> IncrementalPullConfigProperty -> Bool
$c/= :: IncrementalPullConfigProperty
-> IncrementalPullConfigProperty -> Bool
/= :: IncrementalPullConfigProperty
-> IncrementalPullConfigProperty -> Bool
Prelude.Eq, Int -> IncrementalPullConfigProperty -> ShowS
[IncrementalPullConfigProperty] -> ShowS
IncrementalPullConfigProperty -> String
(Int -> IncrementalPullConfigProperty -> ShowS)
-> (IncrementalPullConfigProperty -> String)
-> ([IncrementalPullConfigProperty] -> ShowS)
-> Show IncrementalPullConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IncrementalPullConfigProperty -> ShowS
showsPrec :: Int -> IncrementalPullConfigProperty -> ShowS
$cshow :: IncrementalPullConfigProperty -> String
show :: IncrementalPullConfigProperty -> String
$cshowList :: [IncrementalPullConfigProperty] -> ShowS
showList :: [IncrementalPullConfigProperty] -> ShowS
Prelude.Show)
mkIncrementalPullConfigProperty :: IncrementalPullConfigProperty
mkIncrementalPullConfigProperty :: IncrementalPullConfigProperty
mkIncrementalPullConfigProperty
  = IncrementalPullConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), datetimeTypeFieldName :: Maybe (Value Text)
datetimeTypeFieldName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties IncrementalPullConfigProperty where
  toResourceProperties :: IncrementalPullConfigProperty -> ResourceProperties
toResourceProperties IncrementalPullConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: IncrementalPullConfigProperty -> ()
datetimeTypeFieldName :: IncrementalPullConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
datetimeTypeFieldName :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CustomerProfiles::Integration.IncrementalPullConfig",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [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..=) Key
"DatetimeTypeFieldName"
                              (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
datetimeTypeFieldName])}
instance JSON.ToJSON IncrementalPullConfigProperty where
  toJSON :: IncrementalPullConfigProperty -> Value
toJSON IncrementalPullConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: IncrementalPullConfigProperty -> ()
datetimeTypeFieldName :: IncrementalPullConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
datetimeTypeFieldName :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [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..=) Key
"DatetimeTypeFieldName"
                 (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
datetimeTypeFieldName]))
instance Property "DatetimeTypeFieldName" IncrementalPullConfigProperty where
  type PropertyType "DatetimeTypeFieldName" IncrementalPullConfigProperty = Value Prelude.Text
  set :: PropertyType "DatetimeTypeFieldName" IncrementalPullConfigProperty
-> IncrementalPullConfigProperty -> IncrementalPullConfigProperty
set PropertyType "DatetimeTypeFieldName" IncrementalPullConfigProperty
newValue IncrementalPullConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: IncrementalPullConfigProperty -> ()
datetimeTypeFieldName :: IncrementalPullConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
datetimeTypeFieldName :: Maybe (Value Text)
..}
    = IncrementalPullConfigProperty
        {datetimeTypeFieldName :: Maybe (Value Text)
datetimeTypeFieldName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DatetimeTypeFieldName" IncrementalPullConfigProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}