module Stratosphere.RoboMaker.RobotApplication.RobotSoftwareSuiteProperty (
        RobotSoftwareSuiteProperty(..), mkRobotSoftwareSuiteProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RobotSoftwareSuiteProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-robomaker-robotapplication-robotsoftwaresuite.html>
    RobotSoftwareSuiteProperty {RobotSoftwareSuiteProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-robomaker-robotapplication-robotsoftwaresuite.html#cfn-robomaker-robotapplication-robotsoftwaresuite-name>
                                RobotSoftwareSuiteProperty -> Value Text
name :: (Value Prelude.Text),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-robomaker-robotapplication-robotsoftwaresuite.html#cfn-robomaker-robotapplication-robotsoftwaresuite-version>
                                RobotSoftwareSuiteProperty -> Maybe (Value Text)
version :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (RobotSoftwareSuiteProperty -> RobotSoftwareSuiteProperty -> Bool
(RobotSoftwareSuiteProperty -> RobotSoftwareSuiteProperty -> Bool)
-> (RobotSoftwareSuiteProperty
    -> RobotSoftwareSuiteProperty -> Bool)
-> Eq RobotSoftwareSuiteProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RobotSoftwareSuiteProperty -> RobotSoftwareSuiteProperty -> Bool
== :: RobotSoftwareSuiteProperty -> RobotSoftwareSuiteProperty -> Bool
$c/= :: RobotSoftwareSuiteProperty -> RobotSoftwareSuiteProperty -> Bool
/= :: RobotSoftwareSuiteProperty -> RobotSoftwareSuiteProperty -> Bool
Prelude.Eq, Int -> RobotSoftwareSuiteProperty -> ShowS
[RobotSoftwareSuiteProperty] -> ShowS
RobotSoftwareSuiteProperty -> String
(Int -> RobotSoftwareSuiteProperty -> ShowS)
-> (RobotSoftwareSuiteProperty -> String)
-> ([RobotSoftwareSuiteProperty] -> ShowS)
-> Show RobotSoftwareSuiteProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RobotSoftwareSuiteProperty -> ShowS
showsPrec :: Int -> RobotSoftwareSuiteProperty -> ShowS
$cshow :: RobotSoftwareSuiteProperty -> String
show :: RobotSoftwareSuiteProperty -> String
$cshowList :: [RobotSoftwareSuiteProperty] -> ShowS
showList :: [RobotSoftwareSuiteProperty] -> ShowS
Prelude.Show)
mkRobotSoftwareSuiteProperty ::
  Value Prelude.Text -> RobotSoftwareSuiteProperty
mkRobotSoftwareSuiteProperty :: Value Text -> RobotSoftwareSuiteProperty
mkRobotSoftwareSuiteProperty Value Text
name
  = RobotSoftwareSuiteProperty
      {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 RobotSoftwareSuiteProperty where
  toResourceProperties :: RobotSoftwareSuiteProperty -> ResourceProperties
toResourceProperties RobotSoftwareSuiteProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RobotSoftwareSuiteProperty -> ()
name :: RobotSoftwareSuiteProperty -> Value Text
version :: RobotSoftwareSuiteProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Value Text
version :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::RoboMaker::RobotApplication.RobotSoftwareSuite",
         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 RobotSoftwareSuiteProperty where
  toJSON :: RobotSoftwareSuiteProperty -> Value
toJSON RobotSoftwareSuiteProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RobotSoftwareSuiteProperty -> ()
name :: RobotSoftwareSuiteProperty -> Value Text
version :: RobotSoftwareSuiteProperty -> 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" RobotSoftwareSuiteProperty where
  type PropertyType "Name" RobotSoftwareSuiteProperty = Value Prelude.Text
  set :: PropertyType "Name" RobotSoftwareSuiteProperty
-> RobotSoftwareSuiteProperty -> RobotSoftwareSuiteProperty
set PropertyType "Name" RobotSoftwareSuiteProperty
newValue RobotSoftwareSuiteProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RobotSoftwareSuiteProperty -> ()
name :: RobotSoftwareSuiteProperty -> Value Text
version :: RobotSoftwareSuiteProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Value Text
version :: Maybe (Value Text)
..}
    = RobotSoftwareSuiteProperty {name :: Value Text
name = PropertyType "Name" RobotSoftwareSuiteProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
version :: Maybe (Value Text)
haddock_workaround_ :: ()
version :: Maybe (Value Text)
..}
instance Property "Version" RobotSoftwareSuiteProperty where
  type PropertyType "Version" RobotSoftwareSuiteProperty = Value Prelude.Text
  set :: PropertyType "Version" RobotSoftwareSuiteProperty
-> RobotSoftwareSuiteProperty -> RobotSoftwareSuiteProperty
set PropertyType "Version" RobotSoftwareSuiteProperty
newValue RobotSoftwareSuiteProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RobotSoftwareSuiteProperty -> ()
name :: RobotSoftwareSuiteProperty -> Value Text
version :: RobotSoftwareSuiteProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Value Text
version :: Maybe (Value Text)
..}
    = RobotSoftwareSuiteProperty {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" RobotSoftwareSuiteProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
name :: Value Text
haddock_workaround_ :: ()
name :: Value Text
..}