module Stratosphere.AppFlow.Flow.VeevaSourcePropertiesProperty (
        VeevaSourcePropertiesProperty(..), mkVeevaSourcePropertiesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VeevaSourcePropertiesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-veevasourceproperties.html>
    VeevaSourcePropertiesProperty {VeevaSourcePropertiesProperty -> ()
haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-veevasourceproperties.html#cfn-appflow-flow-veevasourceproperties-documenttype>
                                   VeevaSourcePropertiesProperty -> Maybe (Value Text)
documentType :: (Prelude.Maybe (Value Prelude.Text)),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-veevasourceproperties.html#cfn-appflow-flow-veevasourceproperties-includeallversions>
                                   VeevaSourcePropertiesProperty -> Maybe (Value Bool)
includeAllVersions :: (Prelude.Maybe (Value Prelude.Bool)),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-veevasourceproperties.html#cfn-appflow-flow-veevasourceproperties-includerenditions>
                                   VeevaSourcePropertiesProperty -> Maybe (Value Bool)
includeRenditions :: (Prelude.Maybe (Value Prelude.Bool)),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-veevasourceproperties.html#cfn-appflow-flow-veevasourceproperties-includesourcefiles>
                                   VeevaSourcePropertiesProperty -> Maybe (Value Bool)
includeSourceFiles :: (Prelude.Maybe (Value Prelude.Bool)),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-veevasourceproperties.html#cfn-appflow-flow-veevasourceproperties-object>
                                   VeevaSourcePropertiesProperty -> Value Text
object :: (Value Prelude.Text)}
  deriving stock (VeevaSourcePropertiesProperty
-> VeevaSourcePropertiesProperty -> Bool
(VeevaSourcePropertiesProperty
 -> VeevaSourcePropertiesProperty -> Bool)
-> (VeevaSourcePropertiesProperty
    -> VeevaSourcePropertiesProperty -> Bool)
-> Eq VeevaSourcePropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VeevaSourcePropertiesProperty
-> VeevaSourcePropertiesProperty -> Bool
== :: VeevaSourcePropertiesProperty
-> VeevaSourcePropertiesProperty -> Bool
$c/= :: VeevaSourcePropertiesProperty
-> VeevaSourcePropertiesProperty -> Bool
/= :: VeevaSourcePropertiesProperty
-> VeevaSourcePropertiesProperty -> Bool
Prelude.Eq, Int -> VeevaSourcePropertiesProperty -> ShowS
[VeevaSourcePropertiesProperty] -> ShowS
VeevaSourcePropertiesProperty -> String
(Int -> VeevaSourcePropertiesProperty -> ShowS)
-> (VeevaSourcePropertiesProperty -> String)
-> ([VeevaSourcePropertiesProperty] -> ShowS)
-> Show VeevaSourcePropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VeevaSourcePropertiesProperty -> ShowS
showsPrec :: Int -> VeevaSourcePropertiesProperty -> ShowS
$cshow :: VeevaSourcePropertiesProperty -> String
show :: VeevaSourcePropertiesProperty -> String
$cshowList :: [VeevaSourcePropertiesProperty] -> ShowS
showList :: [VeevaSourcePropertiesProperty] -> ShowS
Prelude.Show)
mkVeevaSourcePropertiesProperty ::
  Value Prelude.Text -> VeevaSourcePropertiesProperty
mkVeevaSourcePropertiesProperty :: Value Text -> VeevaSourcePropertiesProperty
mkVeevaSourcePropertiesProperty Value Text
object
  = VeevaSourcePropertiesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), object :: Value Text
object = Value Text
object,
       documentType :: Maybe (Value Text)
documentType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       includeAllVersions :: Maybe (Value Bool)
includeAllVersions = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       includeRenditions :: Maybe (Value Bool)
includeRenditions = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       includeSourceFiles :: Maybe (Value Bool)
includeSourceFiles = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VeevaSourcePropertiesProperty where
  toResourceProperties :: VeevaSourcePropertiesProperty -> ResourceProperties
toResourceProperties VeevaSourcePropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VeevaSourcePropertiesProperty -> ()
documentType :: VeevaSourcePropertiesProperty -> Maybe (Value Text)
includeAllVersions :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
includeRenditions :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
includeSourceFiles :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
object :: VeevaSourcePropertiesProperty -> Value Text
haddock_workaround_ :: ()
documentType :: Maybe (Value Text)
includeAllVersions :: Maybe (Value Bool)
includeRenditions :: Maybe (Value Bool)
includeSourceFiles :: Maybe (Value Bool)
object :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppFlow::Flow.VeevaSourceProperties",
         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 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
"DocumentType" (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)
documentType,
                               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
"IncludeAllVersions" (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)
includeAllVersions,
                               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
"IncludeRenditions" (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)
includeRenditions,
                               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
"IncludeSourceFiles" (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)
includeSourceFiles]))}
instance JSON.ToJSON VeevaSourcePropertiesProperty where
  toJSON :: VeevaSourcePropertiesProperty -> Value
toJSON VeevaSourcePropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VeevaSourcePropertiesProperty -> ()
documentType :: VeevaSourcePropertiesProperty -> Maybe (Value Text)
includeAllVersions :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
includeRenditions :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
includeSourceFiles :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
object :: VeevaSourcePropertiesProperty -> Value Text
haddock_workaround_ :: ()
documentType :: Maybe (Value Text)
includeAllVersions :: Maybe (Value Bool)
includeRenditions :: Maybe (Value Bool)
includeSourceFiles :: 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 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
"DocumentType" (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)
documentType,
                  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
"IncludeAllVersions" (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)
includeAllVersions,
                  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
"IncludeRenditions" (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)
includeRenditions,
                  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
"IncludeSourceFiles" (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)
includeSourceFiles])))
instance Property "DocumentType" VeevaSourcePropertiesProperty where
  type PropertyType "DocumentType" VeevaSourcePropertiesProperty = Value Prelude.Text
  set :: PropertyType "DocumentType" VeevaSourcePropertiesProperty
-> VeevaSourcePropertiesProperty -> VeevaSourcePropertiesProperty
set PropertyType "DocumentType" VeevaSourcePropertiesProperty
newValue VeevaSourcePropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VeevaSourcePropertiesProperty -> ()
documentType :: VeevaSourcePropertiesProperty -> Maybe (Value Text)
includeAllVersions :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
includeRenditions :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
includeSourceFiles :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
object :: VeevaSourcePropertiesProperty -> Value Text
haddock_workaround_ :: ()
documentType :: Maybe (Value Text)
includeAllVersions :: Maybe (Value Bool)
includeRenditions :: Maybe (Value Bool)
includeSourceFiles :: Maybe (Value Bool)
object :: Value Text
..}
    = VeevaSourcePropertiesProperty
        {documentType :: Maybe (Value Text)
documentType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DocumentType" VeevaSourcePropertiesProperty
Value Text
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
includeAllVersions :: Maybe (Value Bool)
includeRenditions :: Maybe (Value Bool)
includeSourceFiles :: Maybe (Value Bool)
object :: Value Text
haddock_workaround_ :: ()
includeAllVersions :: Maybe (Value Bool)
includeRenditions :: Maybe (Value Bool)
includeSourceFiles :: Maybe (Value Bool)
object :: Value Text
..}
instance Property "IncludeAllVersions" VeevaSourcePropertiesProperty where
  type PropertyType "IncludeAllVersions" VeevaSourcePropertiesProperty = Value Prelude.Bool
  set :: PropertyType "IncludeAllVersions" VeevaSourcePropertiesProperty
-> VeevaSourcePropertiesProperty -> VeevaSourcePropertiesProperty
set PropertyType "IncludeAllVersions" VeevaSourcePropertiesProperty
newValue VeevaSourcePropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VeevaSourcePropertiesProperty -> ()
documentType :: VeevaSourcePropertiesProperty -> Maybe (Value Text)
includeAllVersions :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
includeRenditions :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
includeSourceFiles :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
object :: VeevaSourcePropertiesProperty -> Value Text
haddock_workaround_ :: ()
documentType :: Maybe (Value Text)
includeAllVersions :: Maybe (Value Bool)
includeRenditions :: Maybe (Value Bool)
includeSourceFiles :: Maybe (Value Bool)
object :: Value Text
..}
    = VeevaSourcePropertiesProperty
        {includeAllVersions :: Maybe (Value Bool)
includeAllVersions = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IncludeAllVersions" VeevaSourcePropertiesProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
documentType :: Maybe (Value Text)
includeRenditions :: Maybe (Value Bool)
includeSourceFiles :: Maybe (Value Bool)
object :: Value Text
haddock_workaround_ :: ()
documentType :: Maybe (Value Text)
includeRenditions :: Maybe (Value Bool)
includeSourceFiles :: Maybe (Value Bool)
object :: Value Text
..}
instance Property "IncludeRenditions" VeevaSourcePropertiesProperty where
  type PropertyType "IncludeRenditions" VeevaSourcePropertiesProperty = Value Prelude.Bool
  set :: PropertyType "IncludeRenditions" VeevaSourcePropertiesProperty
-> VeevaSourcePropertiesProperty -> VeevaSourcePropertiesProperty
set PropertyType "IncludeRenditions" VeevaSourcePropertiesProperty
newValue VeevaSourcePropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VeevaSourcePropertiesProperty -> ()
documentType :: VeevaSourcePropertiesProperty -> Maybe (Value Text)
includeAllVersions :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
includeRenditions :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
includeSourceFiles :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
object :: VeevaSourcePropertiesProperty -> Value Text
haddock_workaround_ :: ()
documentType :: Maybe (Value Text)
includeAllVersions :: Maybe (Value Bool)
includeRenditions :: Maybe (Value Bool)
includeSourceFiles :: Maybe (Value Bool)
object :: Value Text
..}
    = VeevaSourcePropertiesProperty
        {includeRenditions :: Maybe (Value Bool)
includeRenditions = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IncludeRenditions" VeevaSourcePropertiesProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
documentType :: Maybe (Value Text)
includeAllVersions :: Maybe (Value Bool)
includeSourceFiles :: Maybe (Value Bool)
object :: Value Text
haddock_workaround_ :: ()
documentType :: Maybe (Value Text)
includeAllVersions :: Maybe (Value Bool)
includeSourceFiles :: Maybe (Value Bool)
object :: Value Text
..}
instance Property "IncludeSourceFiles" VeevaSourcePropertiesProperty where
  type PropertyType "IncludeSourceFiles" VeevaSourcePropertiesProperty = Value Prelude.Bool
  set :: PropertyType "IncludeSourceFiles" VeevaSourcePropertiesProperty
-> VeevaSourcePropertiesProperty -> VeevaSourcePropertiesProperty
set PropertyType "IncludeSourceFiles" VeevaSourcePropertiesProperty
newValue VeevaSourcePropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VeevaSourcePropertiesProperty -> ()
documentType :: VeevaSourcePropertiesProperty -> Maybe (Value Text)
includeAllVersions :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
includeRenditions :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
includeSourceFiles :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
object :: VeevaSourcePropertiesProperty -> Value Text
haddock_workaround_ :: ()
documentType :: Maybe (Value Text)
includeAllVersions :: Maybe (Value Bool)
includeRenditions :: Maybe (Value Bool)
includeSourceFiles :: Maybe (Value Bool)
object :: Value Text
..}
    = VeevaSourcePropertiesProperty
        {includeSourceFiles :: Maybe (Value Bool)
includeSourceFiles = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IncludeSourceFiles" VeevaSourcePropertiesProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
documentType :: Maybe (Value Text)
includeAllVersions :: Maybe (Value Bool)
includeRenditions :: Maybe (Value Bool)
object :: Value Text
haddock_workaround_ :: ()
documentType :: Maybe (Value Text)
includeAllVersions :: Maybe (Value Bool)
includeRenditions :: Maybe (Value Bool)
object :: Value Text
..}
instance Property "Object" VeevaSourcePropertiesProperty where
  type PropertyType "Object" VeevaSourcePropertiesProperty = Value Prelude.Text
  set :: PropertyType "Object" VeevaSourcePropertiesProperty
-> VeevaSourcePropertiesProperty -> VeevaSourcePropertiesProperty
set PropertyType "Object" VeevaSourcePropertiesProperty
newValue VeevaSourcePropertiesProperty {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: VeevaSourcePropertiesProperty -> ()
documentType :: VeevaSourcePropertiesProperty -> Maybe (Value Text)
includeAllVersions :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
includeRenditions :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
includeSourceFiles :: VeevaSourcePropertiesProperty -> Maybe (Value Bool)
object :: VeevaSourcePropertiesProperty -> Value Text
haddock_workaround_ :: ()
documentType :: Maybe (Value Text)
includeAllVersions :: Maybe (Value Bool)
includeRenditions :: Maybe (Value Bool)
includeSourceFiles :: Maybe (Value Bool)
object :: Value Text
..}
    = VeevaSourcePropertiesProperty {object :: Value Text
object = PropertyType "Object" VeevaSourcePropertiesProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
documentType :: Maybe (Value Text)
includeAllVersions :: Maybe (Value Bool)
includeRenditions :: Maybe (Value Bool)
includeSourceFiles :: Maybe (Value Bool)
haddock_workaround_ :: ()
documentType :: Maybe (Value Text)
includeAllVersions :: Maybe (Value Bool)
includeRenditions :: Maybe (Value Bool)
includeSourceFiles :: Maybe (Value Bool)
..}