content: module Stratosphere.FSx.FileSystem.ReadCacheConfigurationProperty (
          ReadCacheConfigurationProperty(..),
          mkReadCacheConfigurationProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data ReadCacheConfigurationProperty
    = ReadCacheConfigurationProperty {sizeGiB :: (Prelude.Maybe (Value Prelude.Integer)),
                                      sizingMode :: (Prelude.Maybe (Value Prelude.Text))}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkReadCacheConfigurationProperty :: ReadCacheConfigurationProperty
  mkReadCacheConfigurationProperty
    = ReadCacheConfigurationProperty
        {sizeGiB = Prelude.Nothing, sizingMode = Prelude.Nothing}
  instance ToResourceProperties ReadCacheConfigurationProperty where
    toResourceProperties ReadCacheConfigurationProperty {..}
      = ResourceProperties
          {awsType = "AWS::FSx::FileSystem.ReadCacheConfiguration",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          (Prelude.catMaybes
                             [(JSON..=) "SizeGiB" Prelude.<$> sizeGiB,
                              (JSON..=) "SizingMode" Prelude.<$> sizingMode])}
  instance JSON.ToJSON ReadCacheConfigurationProperty where
    toJSON ReadCacheConfigurationProperty {..}
      = JSON.object
          (Prelude.fromList
             (Prelude.catMaybes
                [(JSON..=) "SizeGiB" Prelude.<$> sizeGiB,
                 (JSON..=) "SizingMode" Prelude.<$> sizingMode]))
  instance Property "SizeGiB" ReadCacheConfigurationProperty where
    type PropertyType "SizeGiB" ReadCacheConfigurationProperty = Value Prelude.Integer
    set newValue ReadCacheConfigurationProperty {..}
      = ReadCacheConfigurationProperty
          {sizeGiB = Prelude.pure newValue, ..}
  instance Property "SizingMode" ReadCacheConfigurationProperty where
    type PropertyType "SizingMode" ReadCacheConfigurationProperty = Value Prelude.Text
    set newValue ReadCacheConfigurationProperty {..}
      = ReadCacheConfigurationProperty
          {sizingMode = Prelude.pure newValue, ..}