packages feed

stratosphere-appflow-1.0.0: gen/Stratosphere/AppFlow/Flow/VeevaSourcePropertiesProperty.hs

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 {haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-veevasourceproperties.html#cfn-appflow-flow-veevasourceproperties-documenttype>
                                   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>
                                   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>
                                   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>
                                   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>
                                   object :: (Value Prelude.Text)}
  deriving stock (Prelude.Eq, Prelude.Show)
mkVeevaSourcePropertiesProperty ::
  Value Prelude.Text -> VeevaSourcePropertiesProperty
mkVeevaSourcePropertiesProperty object
  = VeevaSourcePropertiesProperty
      {haddock_workaround_ = (), object = object,
       documentType = Prelude.Nothing,
       includeAllVersions = Prelude.Nothing,
       includeRenditions = Prelude.Nothing,
       includeSourceFiles = Prelude.Nothing}
instance ToResourceProperties VeevaSourcePropertiesProperty where
  toResourceProperties VeevaSourcePropertiesProperty {..}
    = ResourceProperties
        {awsType = "AWS::AppFlow::Flow.VeevaSourceProperties",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        ((Prelude.<>)
                           ["Object" JSON..= object]
                           (Prelude.catMaybes
                              [(JSON..=) "DocumentType" Prelude.<$> documentType,
                               (JSON..=) "IncludeAllVersions" Prelude.<$> includeAllVersions,
                               (JSON..=) "IncludeRenditions" Prelude.<$> includeRenditions,
                               (JSON..=) "IncludeSourceFiles" Prelude.<$> includeSourceFiles]))}
instance JSON.ToJSON VeevaSourcePropertiesProperty where
  toJSON VeevaSourcePropertiesProperty {..}
    = JSON.object
        (Prelude.fromList
           ((Prelude.<>)
              ["Object" JSON..= object]
              (Prelude.catMaybes
                 [(JSON..=) "DocumentType" Prelude.<$> documentType,
                  (JSON..=) "IncludeAllVersions" Prelude.<$> includeAllVersions,
                  (JSON..=) "IncludeRenditions" Prelude.<$> includeRenditions,
                  (JSON..=) "IncludeSourceFiles" Prelude.<$> includeSourceFiles])))
instance Property "DocumentType" VeevaSourcePropertiesProperty where
  type PropertyType "DocumentType" VeevaSourcePropertiesProperty = Value Prelude.Text
  set newValue VeevaSourcePropertiesProperty {..}
    = VeevaSourcePropertiesProperty
        {documentType = Prelude.pure newValue, ..}
instance Property "IncludeAllVersions" VeevaSourcePropertiesProperty where
  type PropertyType "IncludeAllVersions" VeevaSourcePropertiesProperty = Value Prelude.Bool
  set newValue VeevaSourcePropertiesProperty {..}
    = VeevaSourcePropertiesProperty
        {includeAllVersions = Prelude.pure newValue, ..}
instance Property "IncludeRenditions" VeevaSourcePropertiesProperty where
  type PropertyType "IncludeRenditions" VeevaSourcePropertiesProperty = Value Prelude.Bool
  set newValue VeevaSourcePropertiesProperty {..}
    = VeevaSourcePropertiesProperty
        {includeRenditions = Prelude.pure newValue, ..}
instance Property "IncludeSourceFiles" VeevaSourcePropertiesProperty where
  type PropertyType "IncludeSourceFiles" VeevaSourcePropertiesProperty = Value Prelude.Bool
  set newValue VeevaSourcePropertiesProperty {..}
    = VeevaSourcePropertiesProperty
        {includeSourceFiles = Prelude.pure newValue, ..}
instance Property "Object" VeevaSourcePropertiesProperty where
  type PropertyType "Object" VeevaSourcePropertiesProperty = Value Prelude.Text
  set newValue VeevaSourcePropertiesProperty {..}
    = VeevaSourcePropertiesProperty {object = newValue, ..}