content: module Stratosphere.Lightsail.Disk.AddOnProperty (
          module Exports, AddOnProperty(..), mkAddOnProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import {-# SOURCE #-} Stratosphere.Lightsail.Disk.AutoSnapshotAddOnProperty as Exports
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data AddOnProperty
    = AddOnProperty {addOnType :: (Value Prelude.Text),
                     autoSnapshotAddOnRequest :: (Prelude.Maybe AutoSnapshotAddOnProperty),
                     status :: (Prelude.Maybe (Value Prelude.Text))}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkAddOnProperty :: Value Prelude.Text -> AddOnProperty
  mkAddOnProperty addOnType
    = AddOnProperty
        {addOnType = addOnType, autoSnapshotAddOnRequest = Prelude.Nothing,
         status = Prelude.Nothing}
  instance ToResourceProperties AddOnProperty where
    toResourceProperties AddOnProperty {..}
      = ResourceProperties
          {awsType = "AWS::Lightsail::Disk.AddOn",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          ((Prelude.<>)
                             ["AddOnType" JSON..= addOnType]
                             (Prelude.catMaybes
                                [(JSON..=) "AutoSnapshotAddOnRequest"
                                   Prelude.<$> autoSnapshotAddOnRequest,
                                 (JSON..=) "Status" Prelude.<$> status]))}
  instance JSON.ToJSON AddOnProperty where
    toJSON AddOnProperty {..}
      = JSON.object
          (Prelude.fromList
             ((Prelude.<>)
                ["AddOnType" JSON..= addOnType]
                (Prelude.catMaybes
                   [(JSON..=) "AutoSnapshotAddOnRequest"
                      Prelude.<$> autoSnapshotAddOnRequest,
                    (JSON..=) "Status" Prelude.<$> status])))
  instance Property "AddOnType" AddOnProperty where
    type PropertyType "AddOnType" AddOnProperty = Value Prelude.Text
    set newValue AddOnProperty {..}
      = AddOnProperty {addOnType = newValue, ..}
  instance Property "AutoSnapshotAddOnRequest" AddOnProperty where
    type PropertyType "AutoSnapshotAddOnRequest" AddOnProperty = AutoSnapshotAddOnProperty
    set newValue AddOnProperty {..}
      = AddOnProperty
          {autoSnapshotAddOnRequest = Prelude.pure newValue, ..}
  instance Property "Status" AddOnProperty where
    type PropertyType "Status" AddOnProperty = Value Prelude.Text
    set newValue AddOnProperty {..}
      = AddOnProperty {status = Prelude.pure newValue, ..}