module Stratosphere.RoboMaker.SimulationApplication.SimulationSoftwareSuiteProperty (
        SimulationSoftwareSuiteProperty(..),
        mkSimulationSoftwareSuiteProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SimulationSoftwareSuiteProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-robomaker-simulationapplication-simulationsoftwaresuite.html>
    SimulationSoftwareSuiteProperty {SimulationSoftwareSuiteProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-robomaker-simulationapplication-simulationsoftwaresuite.html#cfn-robomaker-simulationapplication-simulationsoftwaresuite-name>
                                     SimulationSoftwareSuiteProperty -> Value Text
name :: (Value Prelude.Text),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-robomaker-simulationapplication-simulationsoftwaresuite.html#cfn-robomaker-simulationapplication-simulationsoftwaresuite-version>
                                     SimulationSoftwareSuiteProperty -> Maybe (Value Text)
version :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (SimulationSoftwareSuiteProperty
-> SimulationSoftwareSuiteProperty -> Bool
(SimulationSoftwareSuiteProperty
 -> SimulationSoftwareSuiteProperty -> Bool)
-> (SimulationSoftwareSuiteProperty
    -> SimulationSoftwareSuiteProperty -> Bool)
-> Eq SimulationSoftwareSuiteProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SimulationSoftwareSuiteProperty
-> SimulationSoftwareSuiteProperty -> Bool
== :: SimulationSoftwareSuiteProperty
-> SimulationSoftwareSuiteProperty -> Bool
$c/= :: SimulationSoftwareSuiteProperty
-> SimulationSoftwareSuiteProperty -> Bool
/= :: SimulationSoftwareSuiteProperty
-> SimulationSoftwareSuiteProperty -> Bool
Prelude.Eq, Int -> SimulationSoftwareSuiteProperty -> ShowS
[SimulationSoftwareSuiteProperty] -> ShowS
SimulationSoftwareSuiteProperty -> String
(Int -> SimulationSoftwareSuiteProperty -> ShowS)
-> (SimulationSoftwareSuiteProperty -> String)
-> ([SimulationSoftwareSuiteProperty] -> ShowS)
-> Show SimulationSoftwareSuiteProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SimulationSoftwareSuiteProperty -> ShowS
showsPrec :: Int -> SimulationSoftwareSuiteProperty -> ShowS
$cshow :: SimulationSoftwareSuiteProperty -> String
show :: SimulationSoftwareSuiteProperty -> String
$cshowList :: [SimulationSoftwareSuiteProperty] -> ShowS
showList :: [SimulationSoftwareSuiteProperty] -> ShowS
Prelude.Show)
mkSimulationSoftwareSuiteProperty ::
  Value Prelude.Text -> SimulationSoftwareSuiteProperty
mkSimulationSoftwareSuiteProperty :: Value Text -> SimulationSoftwareSuiteProperty
mkSimulationSoftwareSuiteProperty Value Text
name
  = SimulationSoftwareSuiteProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, version :: Maybe (Value Text)
version = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SimulationSoftwareSuiteProperty where
  toResourceProperties :: SimulationSoftwareSuiteProperty -> ResourceProperties
toResourceProperties SimulationSoftwareSuiteProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SimulationSoftwareSuiteProperty -> ()
name :: SimulationSoftwareSuiteProperty -> Value Text
version :: SimulationSoftwareSuiteProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Value Text
version :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::RoboMaker::SimulationApplication.SimulationSoftwareSuite",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"Name" 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..= Value Text
name]
                           ([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
"Version" (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)
version]))}
instance JSON.ToJSON SimulationSoftwareSuiteProperty where
  toJSON :: SimulationSoftwareSuiteProperty -> Value
toJSON SimulationSoftwareSuiteProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SimulationSoftwareSuiteProperty -> ()
name :: SimulationSoftwareSuiteProperty -> Value Text
version :: SimulationSoftwareSuiteProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Value Text
version :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"Name" 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..= Value Text
name]
              ([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
"Version" (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)
version])))
instance Property "Name" SimulationSoftwareSuiteProperty where
  type PropertyType "Name" SimulationSoftwareSuiteProperty = Value Prelude.Text
  set :: PropertyType "Name" SimulationSoftwareSuiteProperty
-> SimulationSoftwareSuiteProperty
-> SimulationSoftwareSuiteProperty
set PropertyType "Name" SimulationSoftwareSuiteProperty
newValue SimulationSoftwareSuiteProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SimulationSoftwareSuiteProperty -> ()
name :: SimulationSoftwareSuiteProperty -> Value Text
version :: SimulationSoftwareSuiteProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Value Text
version :: Maybe (Value Text)
..}
    = SimulationSoftwareSuiteProperty {name :: Value Text
name = PropertyType "Name" SimulationSoftwareSuiteProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
version :: Maybe (Value Text)
haddock_workaround_ :: ()
version :: Maybe (Value Text)
..}
instance Property "Version" SimulationSoftwareSuiteProperty where
  type PropertyType "Version" SimulationSoftwareSuiteProperty = Value Prelude.Text
  set :: PropertyType "Version" SimulationSoftwareSuiteProperty
-> SimulationSoftwareSuiteProperty
-> SimulationSoftwareSuiteProperty
set PropertyType "Version" SimulationSoftwareSuiteProperty
newValue SimulationSoftwareSuiteProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SimulationSoftwareSuiteProperty -> ()
name :: SimulationSoftwareSuiteProperty -> Value Text
version :: SimulationSoftwareSuiteProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Value Text
version :: Maybe (Value Text)
..}
    = SimulationSoftwareSuiteProperty
        {version :: Maybe (Value Text)
version = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Version" SimulationSoftwareSuiteProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
haddock_workaround_ :: ()
name :: Value Text
..}