content: module Stratosphere.Wisdom.MessageTemplate.SystemAttributesProperty (
          module Exports, SystemAttributesProperty(..),
          mkSystemAttributesProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import {-# SOURCE #-} Stratosphere.Wisdom.MessageTemplate.SystemEndpointAttributesProperty as Exports
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data SystemAttributesProperty
    = SystemAttributesProperty {customerEndpoint :: (Prelude.Maybe SystemEndpointAttributesProperty),
                                name :: (Prelude.Maybe (Value Prelude.Text)),
                                systemEndpoint :: (Prelude.Maybe SystemEndpointAttributesProperty)}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkSystemAttributesProperty :: SystemAttributesProperty
  mkSystemAttributesProperty
    = SystemAttributesProperty
        {customerEndpoint = Prelude.Nothing, name = Prelude.Nothing,
         systemEndpoint = Prelude.Nothing}
  instance ToResourceProperties SystemAttributesProperty where
    toResourceProperties SystemAttributesProperty {..}
      = ResourceProperties
          {awsType = "AWS::Wisdom::MessageTemplate.SystemAttributes",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          (Prelude.catMaybes
                             [(JSON..=) "CustomerEndpoint" Prelude.<$> customerEndpoint,
                              (JSON..=) "Name" Prelude.<$> name,
                              (JSON..=) "SystemEndpoint" Prelude.<$> systemEndpoint])}
  instance JSON.ToJSON SystemAttributesProperty where
    toJSON SystemAttributesProperty {..}
      = JSON.object
          (Prelude.fromList
             (Prelude.catMaybes
                [(JSON..=) "CustomerEndpoint" Prelude.<$> customerEndpoint,
                 (JSON..=) "Name" Prelude.<$> name,
                 (JSON..=) "SystemEndpoint" Prelude.<$> systemEndpoint]))
  instance Property "CustomerEndpoint" SystemAttributesProperty where
    type PropertyType "CustomerEndpoint" SystemAttributesProperty = SystemEndpointAttributesProperty
    set newValue SystemAttributesProperty {..}
      = SystemAttributesProperty
          {customerEndpoint = Prelude.pure newValue, ..}
  instance Property "Name" SystemAttributesProperty where
    type PropertyType "Name" SystemAttributesProperty = Value Prelude.Text
    set newValue SystemAttributesProperty {..}
      = SystemAttributesProperty {name = Prelude.pure newValue, ..}
  instance Property "SystemEndpoint" SystemAttributesProperty where
    type PropertyType "SystemEndpoint" SystemAttributesProperty = SystemEndpointAttributesProperty
    set newValue SystemAttributesProperty {..}
      = SystemAttributesProperty
          {systemEndpoint = Prelude.pure newValue, ..}