content: module Stratosphere.WAFv2.RuleGroup.IPSetReferenceStatementProperty (
          module Exports, IPSetReferenceStatementProperty(..),
          mkIPSetReferenceStatementProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import {-# SOURCE #-} Stratosphere.WAFv2.RuleGroup.IPSetForwardedIPConfigurationProperty as Exports
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data IPSetReferenceStatementProperty
    = IPSetReferenceStatementProperty {arn :: (Value Prelude.Text),
                                       iPSetForwardedIPConfig :: (Prelude.Maybe IPSetForwardedIPConfigurationProperty)}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkIPSetReferenceStatementProperty ::
    Value Prelude.Text -> IPSetReferenceStatementProperty
  mkIPSetReferenceStatementProperty arn
    = IPSetReferenceStatementProperty
        {arn = arn, iPSetForwardedIPConfig = Prelude.Nothing}
  instance ToResourceProperties IPSetReferenceStatementProperty where
    toResourceProperties IPSetReferenceStatementProperty {..}
      = ResourceProperties
          {awsType = "AWS::WAFv2::RuleGroup.IPSetReferenceStatement",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          ((Prelude.<>)
                             ["Arn" JSON..= arn]
                             (Prelude.catMaybes
                                [(JSON..=) "IPSetForwardedIPConfig"
                                   Prelude.<$> iPSetForwardedIPConfig]))}
  instance JSON.ToJSON IPSetReferenceStatementProperty where
    toJSON IPSetReferenceStatementProperty {..}
      = JSON.object
          (Prelude.fromList
             ((Prelude.<>)
                ["Arn" JSON..= arn]
                (Prelude.catMaybes
                   [(JSON..=) "IPSetForwardedIPConfig"
                      Prelude.<$> iPSetForwardedIPConfig])))
  instance Property "Arn" IPSetReferenceStatementProperty where
    type PropertyType "Arn" IPSetReferenceStatementProperty = Value Prelude.Text
    set newValue IPSetReferenceStatementProperty {..}
      = IPSetReferenceStatementProperty {arn = newValue, ..}
  instance Property "IPSetForwardedIPConfig" IPSetReferenceStatementProperty where
    type PropertyType "IPSetForwardedIPConfig" IPSetReferenceStatementProperty = IPSetForwardedIPConfigurationProperty
    set newValue IPSetReferenceStatementProperty {..}
      = IPSetReferenceStatementProperty
          {iPSetForwardedIPConfig = Prelude.pure newValue, ..}