module Stratosphere.AmplifyUIBuilder.Form.FormInputBindingPropertiesValuePropertiesProperty (
        FormInputBindingPropertiesValuePropertiesProperty(..),
        mkFormInputBindingPropertiesValuePropertiesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FormInputBindingPropertiesValuePropertiesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-form-forminputbindingpropertiesvalueproperties.html>
    FormInputBindingPropertiesValuePropertiesProperty {FormInputBindingPropertiesValuePropertiesProperty -> ()
haddock_workaround_ :: (),
                                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-form-forminputbindingpropertiesvalueproperties.html#cfn-amplifyuibuilder-form-forminputbindingpropertiesvalueproperties-model>
                                                       FormInputBindingPropertiesValuePropertiesProperty
-> Maybe (Value Text)
model :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (FormInputBindingPropertiesValuePropertiesProperty
-> FormInputBindingPropertiesValuePropertiesProperty -> Bool
(FormInputBindingPropertiesValuePropertiesProperty
 -> FormInputBindingPropertiesValuePropertiesProperty -> Bool)
-> (FormInputBindingPropertiesValuePropertiesProperty
    -> FormInputBindingPropertiesValuePropertiesProperty -> Bool)
-> Eq FormInputBindingPropertiesValuePropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FormInputBindingPropertiesValuePropertiesProperty
-> FormInputBindingPropertiesValuePropertiesProperty -> Bool
== :: FormInputBindingPropertiesValuePropertiesProperty
-> FormInputBindingPropertiesValuePropertiesProperty -> Bool
$c/= :: FormInputBindingPropertiesValuePropertiesProperty
-> FormInputBindingPropertiesValuePropertiesProperty -> Bool
/= :: FormInputBindingPropertiesValuePropertiesProperty
-> FormInputBindingPropertiesValuePropertiesProperty -> Bool
Prelude.Eq, Int -> FormInputBindingPropertiesValuePropertiesProperty -> ShowS
[FormInputBindingPropertiesValuePropertiesProperty] -> ShowS
FormInputBindingPropertiesValuePropertiesProperty -> String
(Int -> FormInputBindingPropertiesValuePropertiesProperty -> ShowS)
-> (FormInputBindingPropertiesValuePropertiesProperty -> String)
-> ([FormInputBindingPropertiesValuePropertiesProperty] -> ShowS)
-> Show FormInputBindingPropertiesValuePropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FormInputBindingPropertiesValuePropertiesProperty -> ShowS
showsPrec :: Int -> FormInputBindingPropertiesValuePropertiesProperty -> ShowS
$cshow :: FormInputBindingPropertiesValuePropertiesProperty -> String
show :: FormInputBindingPropertiesValuePropertiesProperty -> String
$cshowList :: [FormInputBindingPropertiesValuePropertiesProperty] -> ShowS
showList :: [FormInputBindingPropertiesValuePropertiesProperty] -> ShowS
Prelude.Show)
mkFormInputBindingPropertiesValuePropertiesProperty ::
  FormInputBindingPropertiesValuePropertiesProperty
mkFormInputBindingPropertiesValuePropertiesProperty :: FormInputBindingPropertiesValuePropertiesProperty
mkFormInputBindingPropertiesValuePropertiesProperty
  = FormInputBindingPropertiesValuePropertiesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), model :: Maybe (Value Text)
model = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FormInputBindingPropertiesValuePropertiesProperty where
  toResourceProperties :: FormInputBindingPropertiesValuePropertiesProperty
-> ResourceProperties
toResourceProperties
    FormInputBindingPropertiesValuePropertiesProperty {Maybe (Value Text)
()
haddock_workaround_ :: FormInputBindingPropertiesValuePropertiesProperty -> ()
model :: FormInputBindingPropertiesValuePropertiesProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
model :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AmplifyUIBuilder::Form.FormInputBindingPropertiesValueProperties",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Model" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
model])}
instance JSON.ToJSON FormInputBindingPropertiesValuePropertiesProperty where
  toJSON :: FormInputBindingPropertiesValuePropertiesProperty -> Value
toJSON FormInputBindingPropertiesValuePropertiesProperty {Maybe (Value Text)
()
haddock_workaround_ :: FormInputBindingPropertiesValuePropertiesProperty -> ()
model :: FormInputBindingPropertiesValuePropertiesProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
model :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Model" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
model]))
instance Property "Model" FormInputBindingPropertiesValuePropertiesProperty where
  type PropertyType "Model" FormInputBindingPropertiesValuePropertiesProperty = Value Prelude.Text
  set :: PropertyType
  "Model" FormInputBindingPropertiesValuePropertiesProperty
-> FormInputBindingPropertiesValuePropertiesProperty
-> FormInputBindingPropertiesValuePropertiesProperty
set PropertyType
  "Model" FormInputBindingPropertiesValuePropertiesProperty
newValue FormInputBindingPropertiesValuePropertiesProperty {Maybe (Value Text)
()
haddock_workaround_ :: FormInputBindingPropertiesValuePropertiesProperty -> ()
model :: FormInputBindingPropertiesValuePropertiesProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
model :: Maybe (Value Text)
..}
    = FormInputBindingPropertiesValuePropertiesProperty
        {model :: Maybe (Value Text)
model = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "Model" FormInputBindingPropertiesValuePropertiesProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}