module Stratosphere.IoTFleetWise.SignalCatalog.BranchProperty (
        BranchProperty(..), mkBranchProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BranchProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-signalcatalog-branch.html>
    BranchProperty {BranchProperty -> ()
haddock_workaround_ :: (),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-signalcatalog-branch.html#cfn-iotfleetwise-signalcatalog-branch-description>
                    BranchProperty -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-signalcatalog-branch.html#cfn-iotfleetwise-signalcatalog-branch-fullyqualifiedname>
                    BranchProperty -> Value Text
fullyQualifiedName :: (Value Prelude.Text)}
  deriving stock (BranchProperty -> BranchProperty -> Bool
(BranchProperty -> BranchProperty -> Bool)
-> (BranchProperty -> BranchProperty -> Bool) -> Eq BranchProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BranchProperty -> BranchProperty -> Bool
== :: BranchProperty -> BranchProperty -> Bool
$c/= :: BranchProperty -> BranchProperty -> Bool
/= :: BranchProperty -> BranchProperty -> Bool
Prelude.Eq, Int -> BranchProperty -> ShowS
[BranchProperty] -> ShowS
BranchProperty -> String
(Int -> BranchProperty -> ShowS)
-> (BranchProperty -> String)
-> ([BranchProperty] -> ShowS)
-> Show BranchProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BranchProperty -> ShowS
showsPrec :: Int -> BranchProperty -> ShowS
$cshow :: BranchProperty -> String
show :: BranchProperty -> String
$cshowList :: [BranchProperty] -> ShowS
showList :: [BranchProperty] -> ShowS
Prelude.Show)
mkBranchProperty :: Value Prelude.Text -> BranchProperty
mkBranchProperty :: Value Text -> BranchProperty
mkBranchProperty Value Text
fullyQualifiedName
  = BranchProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), fullyQualifiedName :: Value Text
fullyQualifiedName = Value Text
fullyQualifiedName,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties BranchProperty where
  toResourceProperties :: BranchProperty -> ResourceProperties
toResourceProperties BranchProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: BranchProperty -> ()
description :: BranchProperty -> Maybe (Value Text)
fullyQualifiedName :: BranchProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
fullyQualifiedName :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTFleetWise::SignalCatalog.Branch",
         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
"FullyQualifiedName" 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
fullyQualifiedName]
                           ([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
"Description" (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)
description]))}
instance JSON.ToJSON BranchProperty where
  toJSON :: BranchProperty -> Value
toJSON BranchProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: BranchProperty -> ()
description :: BranchProperty -> Maybe (Value Text)
fullyQualifiedName :: BranchProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
fullyQualifiedName :: 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
"FullyQualifiedName" 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
fullyQualifiedName]
              ([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
"Description" (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)
description])))
instance Property "Description" BranchProperty where
  type PropertyType "Description" BranchProperty = Value Prelude.Text
  set :: PropertyType "Description" BranchProperty
-> BranchProperty -> BranchProperty
set PropertyType "Description" BranchProperty
newValue BranchProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: BranchProperty -> ()
description :: BranchProperty -> Maybe (Value Text)
fullyQualifiedName :: BranchProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
fullyQualifiedName :: Value Text
..}
    = BranchProperty {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" BranchProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
fullyQualifiedName :: Value Text
haddock_workaround_ :: ()
fullyQualifiedName :: Value Text
..}
instance Property "FullyQualifiedName" BranchProperty where
  type PropertyType "FullyQualifiedName" BranchProperty = Value Prelude.Text
  set :: PropertyType "FullyQualifiedName" BranchProperty
-> BranchProperty -> BranchProperty
set PropertyType "FullyQualifiedName" BranchProperty
newValue BranchProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: BranchProperty -> ()
description :: BranchProperty -> Maybe (Value Text)
fullyQualifiedName :: BranchProperty -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
fullyQualifiedName :: Value Text
..}
    = BranchProperty {fullyQualifiedName :: Value Text
fullyQualifiedName = PropertyType "FullyQualifiedName" BranchProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
..}