content: module Stratosphere.ElasticLoadBalancingV2.Listener.FixedResponseConfigProperty (
          FixedResponseConfigProperty(..), mkFixedResponseConfigProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data FixedResponseConfigProperty
    = FixedResponseConfigProperty {contentType :: (Prelude.Maybe (Value Prelude.Text)),
                                   messageBody :: (Prelude.Maybe (Value Prelude.Text)),
                                   statusCode :: (Value Prelude.Text)}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkFixedResponseConfigProperty ::
    Value Prelude.Text -> FixedResponseConfigProperty
  mkFixedResponseConfigProperty statusCode
    = FixedResponseConfigProperty
        {statusCode = statusCode, contentType = Prelude.Nothing,
         messageBody = Prelude.Nothing}
  instance ToResourceProperties FixedResponseConfigProperty where
    toResourceProperties FixedResponseConfigProperty {..}
      = ResourceProperties
          {awsType = "AWS::ElasticLoadBalancingV2::Listener.FixedResponseConfig",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          ((Prelude.<>)
                             ["StatusCode" JSON..= statusCode]
                             (Prelude.catMaybes
                                [(JSON..=) "ContentType" Prelude.<$> contentType,
                                 (JSON..=) "MessageBody" Prelude.<$> messageBody]))}
  instance JSON.ToJSON FixedResponseConfigProperty where
    toJSON FixedResponseConfigProperty {..}
      = JSON.object
          (Prelude.fromList
             ((Prelude.<>)
                ["StatusCode" JSON..= statusCode]
                (Prelude.catMaybes
                   [(JSON..=) "ContentType" Prelude.<$> contentType,
                    (JSON..=) "MessageBody" Prelude.<$> messageBody])))
  instance Property "ContentType" FixedResponseConfigProperty where
    type PropertyType "ContentType" FixedResponseConfigProperty = Value Prelude.Text
    set newValue FixedResponseConfigProperty {..}
      = FixedResponseConfigProperty
          {contentType = Prelude.pure newValue, ..}
  instance Property "MessageBody" FixedResponseConfigProperty where
    type PropertyType "MessageBody" FixedResponseConfigProperty = Value Prelude.Text
    set newValue FixedResponseConfigProperty {..}
      = FixedResponseConfigProperty
          {messageBody = Prelude.pure newValue, ..}
  instance Property "StatusCode" FixedResponseConfigProperty where
    type PropertyType "StatusCode" FixedResponseConfigProperty = Value Prelude.Text
    set newValue FixedResponseConfigProperty {..}
      = FixedResponseConfigProperty {statusCode = newValue, ..}